From f9fd0f265726cf8abc8378574ffc512ee03f5b46 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 1 Sep 2014 14:14:48 +0200 Subject: [PATCH 001/338] Fix timezone issues in EwsUtilities and ExchangeServiceBase. Timezone should be set to UTC explicitly to work on systems with non-UTC timezone. --- .../webservices/data/EwsUtilities.java | 3 ++ .../webservices/data/ExchangeServiceBase.java | 33 +++++++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index b202e81a0..9cf8abf37 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -782,6 +782,7 @@ protected static T parse(Class cls, String value) } else if (cls.isInstance(new Date())) { Object o = null; DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + df.setTimeZone(TimeZone.getTimeZone("UTC")); return (T) df.parse(value); } else if (cls.isInstance(Boolean.valueOf(false))) // else if( cls.isInstance(new Boolean(false))) @@ -878,6 +879,7 @@ protected static void validateParamCollection(EventType[] eventTypes, static String dateTimeToXSDate(Date date) { String format = "yyyy-MM-dd'Z'"; DateFormat utcFormatter = new SimpleDateFormat(format); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); return utcFormatter.format(date); } @@ -891,6 +893,7 @@ static String dateTimeToXSDate(Date date) { protected static String dateTimeToXSDateTime(Date date) { String format = "yyyy-MM-dd'T'HH:mm:ss'Z'"; DateFormat utcFormatter = new SimpleDateFormat(format); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); return utcFormatter.format(date); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 3e489faa1..747831785 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -499,21 +499,25 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { if (dateString.endsWith("Z")) { // String in UTC format yyyy-MM-ddTHH:mm:ssZ utcFormatter = new SimpleDateFormat(utcPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); try { dt = utcFormatter.parse(dateString); } catch (ParseException e) { utcFormatter = new SimpleDateFormat(pattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); // dateString = dateString.substring(0, 10)+"T12:00:00Z"; try { dt = utcFormatter.parse(dateString); } catch (ParseException e1) { utcFormatter = new SimpleDateFormat(localPattern1); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); try { dt = utcFormatter.parse(dateString); - }catch(ParseException ex){ + } catch (ParseException ex){ utcFormatter = new SimpleDateFormat(utcPattern1); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); } try{ dt = utcFormatter.parse(dateString); @@ -528,6 +532,7 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { } else if (dateString.endsWith("z")) { // String in UTC format yyyy-MM-ddTHH:mm:ssZ utcFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'z'"); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); try { dt = utcFormatter.parse(dateString); } catch (ParseException e) { @@ -547,10 +552,12 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { dateString = String.format("%sGMT%s", date, zone); try { utcFormatter = new SimpleDateFormat(localPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); dt = utcFormatter.parse(dateString); } catch (ParseException e) { try { utcFormatter = new SimpleDateFormat(pattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); dt = utcFormatter.parse(dateString); } catch (ParseException ex) { throw new IllegalArgumentException(ex); @@ -559,9 +566,10 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { } else { // Invalid format utcFormatter = new SimpleDateFormat(localPattern2); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); try { dt = utcFormatter.parse(dateString); - } catch (ParseException e) { + } catch (ParseException e) { e.printStackTrace(); throw new IllegalArgumentException(errMsg); } @@ -580,16 +588,16 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { * The string value to parse. * @return The parsed DateTime value. */ - protected Date convertStartDateToUnspecifiedDateTime(String value) + protected Date convertStartDateToUnspecifiedDateTime(String value) throws ParseException { - if (value == null || value.isEmpty()) { - return null; - } else { - DateFormat df = new SimpleDateFormat("yyyy-MM-dd'Z'"); + if (value == null || value.isEmpty()) { + return null; + } else { + DateFormat df = new SimpleDateFormat("yyyy-MM-dd'Z'"); return df.parse(value); - } - } - + } + } + /** * Converts the date time to universal date time string. * @@ -598,10 +606,9 @@ protected Date convertStartDateToUnspecifiedDateTime(String value) * @return String representation of DateTime in yyyy-MM-ddTHH:mm:ssZ format. */ protected String convertDateTimeToUniversalDateTimeString(Date dt) { - - DateFormat utcFormatter = null; String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - utcFormatter = new SimpleDateFormat(utcPattern); + DateFormat utcFormatter = new SimpleDateFormat(utcPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); return utcFormatter.format(dt); } From f4f7b9d019aa99edcdf9b915be0fa2d7cd085044 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Tue, 2 Sep 2014 17:46:09 +0200 Subject: [PATCH 002/338] Remove unused methods from ServiceRequestBase. - ServiceRequestBase.emit() is unused. - ServiceRequestBase.endGetEwsHttpWebResponse() is unused, but also incorrect: Why would one compare an HTTP status code with an enum ordinal?! --- .../webservices/data/ServiceRequestBase.java | 109 ------------------ 1 file changed, 109 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 07568653b..663be3cea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -316,69 +316,6 @@ private String getRequestedServiceVersionString() { } } - /** - * Send request and get response. - * - * @return HttpWebRequest object from which response stream can be read. - * @throws Exception - * the exception - */ - protected HttpWebRequest emit(OutParam request) - throws Exception { - request.setParam(this.getService().prepareHttpWebRequest()); - this.getService().traceHttpRequestHeaders( - TraceFlags.EwsRequestHttpHeaders, request.getParam()); - - // If tracing is enabled, we generate the request in-memory so that we - // can pass it along to the ITraceListener. Then we copy the stream to - // the request stream. - if (this.service.isTraceEnabledFor(TraceFlags.EwsRequest)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - EwsServiceXmlWriter writer = new EwsServiceXmlWriter(this.service, - memoryStream); - this.writeToXml(writer); - this.service.traceXml(TraceFlags.EwsRequest, memoryStream); - OutputStream urlOutStream = request.getParam().getOutputStream(); - // request.getParam().write(memoryStream); - // System.out.println("Actual XML : "+new - // String(memoryStream.toByteArray())+": end of XML"); - - memoryStream.writeTo(urlOutStream); - urlOutStream.flush(); - urlOutStream.close(); - writer.dispose(); - memoryStream.close(); - } else { - // ByteArrayOutputStream bos = new ByteArrayOutputStream(); - // ObjectOutputStream urlOutStream = new ObjectOutputStream(bos); - OutputStream urlOutStream = request.getParam().getOutputStream(); - EwsServiceXmlWriter writer = new EwsServiceXmlWriter(this.service, - urlOutStream); - this.writeToXml(writer); - // request.getParam().write(bos); - urlOutStream.flush(); - urlOutStream.close(); - writer.dispose(); - } - // Closing and flushing stream does not ensure xml data is posted. Hence - // try to get response code. This will force the xml data to be posted. - request.getParam().executeRequest(); - - if (request.getParam().getResponseCode() >= 400) { - throw new HttpErrorException( - "The remote server returned an error: (" - + request.getParam().getResponseCode() + ")" - + request.getParam().getResponseText(), request - .getParam().getResponseCode()); - // throw new - // Exception("The remote server returned an error: ("+request.getParam().getResponseCode()+")"+request.getParam().getResponseText()); - - } - - return request.getParam(); - - } - /** * Get the request stream * @@ -578,52 +515,6 @@ private void readSoapHeader(EwsServiceXmlReader reader) throws Exception { XmlElementNames.SOAPHeaderElementName)); } - /** - * Ends getting the specified async HttpWebRequest object from the specified - * IEwsHttpWebRequest object with exception handling. - * - * @param request - * The specified HttpWebRequest - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @return An HttpWebResponse instance - */ - protected HttpWebRequest endGetEwsHttpWebResponse( - OutParam request, AsyncRequestResult asyncResult) - throws Exception { - - try { - // Note that this call may throw ArgumentException if the - // HttpWebRequest instance is not the original one, - // and we just let it out - request.getParam().executeRequest(); - if (request.getParam().getResponseCode() >= 400) { - throw new HttpErrorException( - "The remote server returned an error: (" - + request.getParam().getResponseCode() + ")" - + request.getParam().getResponseText(), request - .getParam().getResponseCode()); - // throw new - // Exception("The remote server returned an error: ("+request.getParam().getResponseCode()+")"+request.getParam().getResponseText()); - - } - return request.getParam(); - } catch (HttpErrorException ex) { - if (ex.getHttpErrorCode() == WebExceptionStatus.ProtocolError - .ordinal()) { - this.processWebException(ex, request.getParam()); - } - - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, ex.getMessage()), ex); - } catch (IOException e) { - // Wrap exception. - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); - } - } - /** * Processes the web exception. * From 1df5c0161582098941f423b659e0fdcce2dd170f Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Wed, 3 Sep 2014 11:07:34 +0200 Subject: [PATCH 003/338] Remove commented call to ServiceRequestBase.endGetEwsHttpWebResponse(). Also removed a getter call without assignment and some other commented code in SimpleServiceRequestBase that made no sense. --- .../data/SimpleServiceRequestBase.java | 30 ++++++------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index fa8394be4..8e46aa8a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -72,29 +72,17 @@ protected Object internalExecute() } } - - /** - * Ends executing this async request. - * - * @param asyncResult The async result - * @return Service response object. - */ - protected Object endInternalExecute(IAsyncResult asyncResult)throws Exception - { - // We have done enough validation before - // AsyncRequestResult asyncRequestResult = - // (AsyncRequestResult)asyncResult; - /* - * HttpWebRequest request =((AsyncRequestResult) - * asyncResult).getHttpWebRequest(); OutParam outparam = - * new OutParam(); outparam.setParam(request); - */ - FutureTask task = ((AsyncRequestResult) asyncResult).getTask(); - // HttpWebRequest response = this.endGetEwsHttpWebResponse(outparam, - // (AsyncRequestResult) asyncRequestResult.getWebAsyncResult());*/ + + /** + * Ends executing this async request. + * + * @param asyncResult The async result + * @return Service response object. + */ + protected Object endInternalExecute(IAsyncResult asyncResult) throws Exception { HttpWebRequest response = (HttpWebRequest) asyncResult.get(); return this.readResponse(response); - } + } /** * Begins executing this async request. From 3958400e49081973e84ce132e43e9b80d12f5b44 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Tue, 2 Sep 2014 17:18:08 +0200 Subject: [PATCH 004/338] Enabled preemptive authentication in HttpClientWebRequest, reducing connection overhead. --- .../exchange/webservices/data/HttpClientWebRequest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 2433a1169..e107b5023 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -112,7 +112,8 @@ public void prepareConnection() throws EWSHttpException { } } if(getUserName() != null) { - client.getState().setCredentials(AuthScope.ANY, new NTCredentials(getUserName(), getPassword(), "", getDomain())); + client.getState().setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(), "", getDomain())); + client.getParams().setAuthenticationPreemptive(true); } client.getHttpConnectionManager().getParams().setSoTimeout(getTimeout()); From 607fa5875802a785df68fbfc8d6f95f46dad7272 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Fri, 12 Sep 2014 09:52:36 -0700 Subject: [PATCH 005/338] Fix javadoc errors as reported by IntelliJ --- .../webservices/data/ComparisonHelpers.java | 2 +- .../data/EwsSSLProtocolSocketFactory.java | 4 +- .../webservices/data/EwsUtilities.java | 38 ++++++++----------- .../exchange/webservices/data/Folder.java | 2 +- .../webservices/data/HttpWebRequest.java | 10 ++--- .../data/StreamingSubscriptionConnection.java | 15 ++------ .../data/UpdateInboxRulesResponse.java | 1 - .../webservices/data/XmlNameTable.java | 13 +++---- 8 files changed, 33 insertions(+), 52 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java index 1a93d2b8a..0753190a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java @@ -15,7 +15,7 @@ class ComparisonHelpers { /** * Case insensitive check if the collection contains the string. - * @param collectionThe collection of objects, only strings are checked + * @param collection The collection of objects, only strings are checked * @param match String to match * @return true, if match contained in the collection */ diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index a8b777bad..0f44d97b1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -136,8 +136,8 @@ public Socket createSocket( * * @param host the host name/IP * @param port the port on the host - * @param clientHost the local host name/IP to bind the socket to - * @param clientPort the port on the local machine + * @param localAddress the local host name/IP to bind the socket to + * @param localPort the port on the local machine * @param params {@link HttpConnectionParams Http connection parameters} * * @return Socket a new socket diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index b202e81a0..d37293d25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -133,10 +133,10 @@ public ServiceObjectInfo createInstance() { /** - *Copies source stream to target. + * Copies source stream to target. * - *@param source The source. - *@param name target The target. + * @param source The source stream. + * @param target The target stream. **/ protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputStream target)throws Exception { @@ -158,12 +158,12 @@ protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputSt pw1.println(pw.toString());*/ - - - - - + + + + + ByteArrayOutputStream memContentStream = source; if (memContentStream != null) { @@ -1368,7 +1368,7 @@ public boolean predicate(Character obj) { /** * Validates string parameter to be * non-empty string (null value not allowed). - * @param paramThe string parameter. + * @param param The string parameter. * @param paramName Name of the parameter. * @throws ArgumentNullException * @throws ArgumentException @@ -1659,13 +1659,10 @@ protected static int countMatchingChars(String str, * Determines whether every element in the collection * matches the conditions defined by the specified predicate. * - * @param typeparam T - * Entry type. - * @param collection - * The collection. - * @param predicate - * Predicate that defines the conditions - * to check against the elements. + * @param Entry type. + * @param collection The collection. + * @param predicate Predicate that defines the conditions to check against the elements. + * * @return True if every element in the collection matches * the conditions defined by the specified predicate; otherwise, false. * @throws ServiceLocalException @@ -1686,12 +1683,9 @@ protected static boolean trueForAll(Iterable collection, /** * Call an action for each member of a collection. * - * @param typeparam T - * Collection element type. - * @param collection - * The collection. - * @param action - * The action to apply. + * @param Collection element type. + * @param collection The collection. + * @param action The action to apply. */ protected static void forEach(Iterable collection, IAction action) { diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index 96a3c2a31..e5ef5f48d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -240,7 +240,7 @@ public void delete(DeleteMode deleteMode) throws Exception { * * @param deletemode * the delete mode - * @throws deleteSubFolders + * @param deleteSubFolders * Indicates whether sub-folders should also be deleted. * @throws Exception */ diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index bf5ea3d6b..b2be1c900 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -398,8 +398,7 @@ public Map getHeaders() { /** * Sets the Headers. * - * @param contentType - * the new content type + * @param headers The headers */ public void setHeaders(Map headers) { this.headers = headers; @@ -408,10 +407,9 @@ public void setHeaders(Map headers) { /** * Sets the credentials. * - * @param emailAddress - * the email-id - * @param pwd - * the password + * @param domain user domain + * @param user user name + * @param pwd password */ public void setCredentials(String domain, String user, String pwd) { this.domain = domain; diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index 0fc9b08a4..40943e9f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -232,9 +232,7 @@ public StreamingSubscriptionConnection(ExchangeService service, * * @param subscription * The subscription to add. - * @throws Exception - * @exception Thrown - * when AddSubscription is called while connected. + * @throws Exception Thrown when AddSubscription is called while connected. */ public void addSubscription(StreamingSubscription subscription) throws Exception { @@ -256,9 +254,7 @@ public void addSubscription(StreamingSubscription subscription) * * @param subscription * The subscription to remove. - * @throws Exception - * @exception Thrown - * when RemoveSubscription is called while connected. + * @throws Exception Thrown when RemoveSubscription is called while connected. */ public void removeSubscription(StreamingSubscription subscription) throws Exception { @@ -279,9 +275,7 @@ public void removeSubscription(StreamingSubscription subscription) * results in a long-standing call to EWS. * * @throws Exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * @exception Thrown - * when Open is called while connected. + * @throws ServiceLocalException Thrown when Open is called while connected. */ public void open() throws ServiceLocalException, Exception { synchronized (this) { @@ -323,9 +317,6 @@ private void onRequestDisconnect(Object sender, /** * Closes this connection so it stops receiving events from the server.This * terminates a long-standing call to EWS. - * - * @exception Thrown - * when Close is called while not connected. */ public void close() { synchronized (this) { diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index e8f275bd8..3d88777b5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -8,7 +8,6 @@ /** * Represents the response to a UpdateInboxRulesResponse operation. - * @param */ final class UpdateInboxRulesResponse extends ServiceResponse{ diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index f00b27bfa..649ca340d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -25,8 +25,7 @@ protected XmlNameTable() { * @param array * : The name to add. * @return The new atomized String or the existing one if it already exists. - * @throws System.ArgumentNullException - * : array is null. + * @throws ArgumentNullException array is null. */ public abstract String Add(String array); @@ -42,11 +41,11 @@ protected XmlNameTable() { * The number of characters in the name. * @return The new atomized String or the existing one if it already exists. * If length is zero, String.Empty is returned - * @throws System.IndexOutOfRangeException + * @throws ArgumentOutOfRangeException * 0 > offset -or- offset >= array.Length -or- length > * array.Length The above conditions do not cause an exception * to be thrown if length =0. - * @throws System.ArgumentOutOfRangeException + * @throws ArgumentOutOfRangeException * length < 0. */ public abstract String Add(char[] array, int offset, int length); @@ -59,7 +58,7 @@ protected XmlNameTable() { * The name to look up. * @return The atomized String or null if the String has not already been * atomized. - * @throws System.ArgumentNullException + * @throws ArgumentNullException * : array is null. */ public abstract String Get(String array); @@ -78,11 +77,11 @@ protected XmlNameTable() { * The number of characters in the name. * @return The atomized String or null if the String has not already been * atomized. If length is zero, String.Empty is returned - * @throws System.IndexOutOfRangeException + * @throws ArgumentOutOfRangeException * 0 > offset -or- offset >= array.Length -or- length > * array.Length The above conditions do not cause an exception * to be thrown if length =0. - * @throws System.ArgumentOutOfRangeException + * @throws ArgumentOutOfRangeException * length < 0. */ public abstract String Get(char[] array, int offset, int length); From 2b7218dbf314add4a2aea9680aaff599168b05e9 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 00:06:30 -0700 Subject: [PATCH 006/338] Fix #62: validatePropertyAccess() in UserConfiguration is wrong The condition for the if statement inside this method was reversed. --- .../microsoft/exchange/webservices/data/UserConfiguration.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index a0d0fbc8d..21fcbb31e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -682,12 +682,11 @@ private void resetIsDirty() { */ private void validatePropertyAccess(UserConfigurationProperties property) throws PropertyException { - if (this.propertiesAvailableForAccess.contains(property)) { + if (!this.propertiesAvailableForAccess.contains(property)) { throw new PropertyException( Strings.MustLoadOrAssignPropertyBeforeAccess, property .toString()); } - } /** From c9f8e2f7e47a0dd51b5964b8418dc185e04f9334 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 10:19:59 -0700 Subject: [PATCH 007/338] Fix #67: Implement Travis continous integration --- .travis.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..dff5f3a5d --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: java From 456c5cc9e5ddf9495507043b47c2d216d528a193 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 10:28:44 -0700 Subject: [PATCH 008/338] Fix #67: Add build status to readme --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 607817fc3..5564973a9 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/OfficeDev/ews-java-api.svg)](https://travis-ci.org/OfficeDev/ews-java-api) + # Getting Started with the EWS JAVA API ## Using the EWS JAVA API for https From a8b06acf9359203d37986e88c30a753ed3804776 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 20:32:54 -0700 Subject: [PATCH 009/338] Fix #33: EwsXmlReader uses == to compare Objects --- .../webservices/data/EwsXmlReader.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 2bc9e70be..7640e4bc0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -708,19 +708,15 @@ public boolean isStartElement(String namespacePrefix, String localName) { /** * Determines whether current element is a start element. * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @return boolean + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return boolean true for matching start element; false otherwise. */ public boolean isStartElement(XmlNamespace xmlNamespace, String localName) { - return (this.isStartElement()) - && (this.getLocalName().equals(localName)) - && ((this.getNamespacePrefix() == EwsUtilities - .getNamespacePrefix(xmlNamespace)) || (this - .getNamespaceUri() == EwsUtilities - .getNamespaceUri(xmlNamespace))); + return this.isStartElement() + && this.getLocalName().equals(localName) + && (this.getNamespacePrefix().equals(EwsUtilities.getNamespacePrefix(xmlNamespace)) || + this.getNamespaceUri().equals(EwsUtilities.getNamespaceUri(xmlNamespace))); } /** From 32a0b58f6c012375ed85edfdb308c2b964167aec Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 20:43:57 -0700 Subject: [PATCH 010/338] Fix #9: ExtendedPropertyDefinition.equals() is flawed --- .../webservices/data/ExtendedPropertyDefinition.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 7d01259b6..5445c113b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -194,15 +194,15 @@ protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, return (extPropDef1 == extPropDef2) || (extPropDef1 != null && extPropDef2 != null - && ((extPropDef1.getId() == extPropDef2.getId()) || (extPropDef1 + && (extPropDef1.getId().equals(extPropDef2.getId()) || (extPropDef1 .getId() != null && extPropDef1.getId().equals( extPropDef2.getId()))) && extPropDef1.getMapiType() == extPropDef2 .getMapiType() - && ((extPropDef1.getTag() == extPropDef2.getTag()) || (extPropDef1 + && (extPropDef1.getTag().equals(extPropDef2.getTag()) || (extPropDef1 .getTag() != null && extPropDef1.getTag() .equals(extPropDef2.getTag()))) - && ((extPropDef1.getName() == extPropDef2.getName()) || (extPropDef1 + && (extPropDef1.getName().equals(extPropDef2.getName()) || (extPropDef1 .getName() != null && extPropDef1.getName() .equals(extPropDef2.getName()))) && extPropDef1.getPropertySet() == extPropDef2 From f52ac1d698cab7254d532e9baf91b2e07a17af19 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 21:37:29 -0700 Subject: [PATCH 011/338] Rename XMLNodeType to XmlNodeType --- .../webservices/data/AlternateMailbox.java | 2 +- .../data/AlternateMailboxCollection.java | 2 +- .../webservices/data/AutodiscoverError.java | 2 +- .../webservices/data/AutodiscoverRequest.java | 6 +-- .../data/AutodiscoverResponseCollection.java | 4 +- .../webservices/data/AutodiscoverService.java | 4 +- .../webservices/data/ComplexProperty.java | 13 +++--- .../data/CreateAttachmentResponse.java | 4 +- .../webservices/data/DomainSettingError.java | 2 +- .../webservices/data/EwsXmlReader.java | 42 +++++++++---------- .../data/ExecuteDiagnosticMethodResponse.java | 4 +- .../data/FindConversationResponse.java | 2 +- .../webservices/data/FindFolderResponse.java | 2 +- .../webservices/data/FindItemResponse.java | 2 +- .../data/GetAttachmentResponse.java | 2 +- .../data/GetDomainSettingsResponse.java | 8 ++-- .../data/GetStreamingEventsResponse.java | 2 +- .../data/GetUserSettingsResponse.java | 8 ++-- .../data/HangingServiceRequestBase.java | 2 +- .../webservices/data/ItemCollection.java | 2 +- .../webservices/data/OutlookAccount.java | 2 +- .../webservices/data/OutlookProtocol.java | 4 +- .../webservices/data/OutlookUser.java | 2 +- .../webservices/data/PropertyBag.java | 2 +- .../webservices/data/ProtocolConnection.java | 2 +- .../data/ProtocolConnectionCollection.java | 2 +- .../data/RecurrencePropertyDefinition.java | 4 +- .../webservices/data/ServiceRequestBase.java | 7 +--- .../webservices/data/SoapFaultDetails.java | 4 +- .../webservices/data/UserConfiguration.java | 2 +- .../webservices/data/UserSettingError.java | 2 +- .../webservices/data/WebClientUrl.java | 2 +- .../data/WebClientUrlCollection.java | 2 +- .../{XMLNodeType.java => XmlNodeType.java} | 16 +++---- 34 files changed, 81 insertions(+), 87 deletions(-) rename src/main/java/microsoft/exchange/webservices/data/{XMLNodeType.java => XmlNodeType.java} (95%) diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index 30130a134..8cb7fd236 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -46,7 +46,7 @@ protected static AlternateMailbox loadFromXml(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName() .equalsIgnoreCase(XmlElementNames.Type)) { altMailbox.setType(reader.readElementValue(String.class)); diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index 0385c5c70..1eac80c93 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -40,7 +40,7 @@ protected static AlternateMailboxCollection loadFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.AlternateMailbox))) { instance.getEntries().add( diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index 5721b947b..13aa5a138 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -53,7 +53,7 @@ protected static AutodiscoverError parse(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equalsIgnoreCase( XmlElementNames.ErrorCode)) { error.errorCode = reader.readElementValue(Integer.class); diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index dfaa91901..4113a16cb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -168,10 +168,10 @@ protected AutodiscoverResponse internalExecute() // WCF may not generate an XML declaration. ewsXmlReader.read(); - if (ewsXmlReader.getNodeType().getNodeType() == XMLNodeType.START_DOCUMENT) { + if (ewsXmlReader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { ewsXmlReader.readStartElement(XmlNamespace.Soap, XmlElementNames.SOAPEnvelopeElementName); - } else if ((ewsXmlReader.getNodeType().getNodeType() != XMLNodeType.START_ELEMENT) + } else if ((ewsXmlReader.getNodeType().getNodeType() != XmlNodeType.START_ELEMENT) || (!ewsXmlReader.getLocalName().equals( XmlElementNames.SOAPEnvelopeElementName)) || (!ewsXmlReader.getNamespaceUri().equals( @@ -381,7 +381,7 @@ private SoapFaultDetails readSoapFault(EwsXmlReader reader) { try { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_DOCUMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { reader.read(); } if (!reader.isStartElement() diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index b54a54edc..0d29fa79f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -74,7 +74,7 @@ protected void loadFromXml(EwsXmlReader reader, String endElementName) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( this.getResponseCollectionXmlElementName())) { this.loadResponseCollectionFromXml(reader); @@ -99,7 +99,7 @@ private void loadResponseCollectionFromXml(EwsXmlReader reader) if (!reader.isEmptyElement()) { do { reader.read(); - if ((reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && (reader.getLocalName().equals(this .getResponseInstanceXmlElementName()))) { TResponse response = this.createResponseInstance(); diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 5b67010e5..7a2bd1635 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -236,12 +236,12 @@ TSettings getLegacyUserSettingsAtUrl( ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( memoryStream.toByteArray()); EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); - reader.read(new XMLNodeType(XMLNodeType.START_DOCUMENT)); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); settings.loadFromXml(reader); } else { EwsXmlReader reader = new EwsXmlReader(serviceResponseStream); - reader.read(new XMLNodeType(XMLNodeType.START_DOCUMENT)); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); settings.loadFromXml(reader); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index b25bb1f37..475da0f1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -6,7 +6,6 @@ **************************************************************************/ package microsoft.exchange.webservices.data; -import java.net.URI; import java.util.ArrayList; import java.util.List; @@ -193,12 +192,12 @@ protected void loadFromXml(EwsServiceXmlReader reader, reader.read(); switch (reader.getNodeType().nodeType) { - case XMLNodeType.START_ELEMENT: + case XmlNodeType.START_ELEMENT: if (!this.tryReadElementFromXml(reader)) { reader.skipCurrentElement(); } break; - case XMLNodeType.CHARACTERS: + case XmlNodeType.CHARACTERS: this.readTextValueFromXml(reader); break; } @@ -266,12 +265,12 @@ private void internalLoadFromXml( reader.read(); switch (reader.getNodeType().nodeType) { - case XMLNodeType.START_ELEMENT: + case XmlNodeType.START_ELEMENT: if (!this.tryReadElementFromXml(reader)) { reader.skipCurrentElement(); } break; - case XMLNodeType.CHARACTERS: + case XmlNodeType.CHARACTERS: this.readTextValueFromXml(reader); break; } @@ -298,12 +297,12 @@ private void internalupdateLoadFromXml( reader.read(); switch (reader.getNodeType().nodeType) { - case XMLNodeType.START_ELEMENT: + case XmlNodeType.START_ELEMENT: if (!this.tryReadElementFromXmlToPatch(reader)) { reader.skipCurrentElement(); } break; - case XMLNodeType.CHARACTERS: + case XmlNodeType.CHARACTERS: this.readTextValueFromXml(reader); break; } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index ef28ce570..ca03a3c89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -46,8 +46,8 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Attachments); - // reader.read(XMLNodeType.START_ELEMENT); - XMLNodeType x = new XMLNodeType(XMLNodeType.START_ELEMENT); + // reader.read(XmlNodeType.START_ELEMENT); + XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); reader.read(x); this.attachment.loadFromXml(reader, reader.getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index 3799ac9db..d1da1d8db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -40,7 +40,7 @@ void loadFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { this.errorCode = reader .readElementValue(AutodiscoverErrorCode.class); diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 2bc9e70be..7842ad2e2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -103,7 +103,7 @@ private static String formatElementName(String namespacePrefix, * the exception */ private void internalReadElement(XmlNamespace xmlNamespace, - String localName, XMLNodeType nodeType) throws Exception { + String localName, XmlNodeType nodeType) throws Exception { if (xmlNamespace == XmlNamespace.NotSpecified) { this.internalReadElement("", localName, nodeType); @@ -140,7 +140,7 @@ private void internalReadElement(XmlNamespace xmlNamespace, * the exception */ private void internalReadElement(String namespacePrefix, String localName, - XMLNodeType nodeType) throws Exception { + XmlNodeType nodeType) throws Exception { read(nodeType); if ((!this.getLocalName().equals(localName)) || @@ -192,7 +192,7 @@ public void read() throws ServiceXmlDeserializationException, * @throws Exception * the exception */ - public void read(XMLNodeType nodeType) throws Exception { + public void read(XmlNodeType nodeType) throws Exception { this.read(); if (!this.getNodeType().equals(nodeType)) { throw new ServiceXmlDeserializationException(String @@ -437,14 +437,14 @@ public T readElementValue(Class cls) throws Exception { public String readValue() throws XMLStreamException, ServiceXmlDeserializationException { String errMsg = String.format("Could not read value from %s.", - XMLNodeType.getString(this.presentEvent.getEventType())); + XmlNodeType.getString(this.presentEvent.getEventType())); if (this.presentEvent.isStartElement()) { // Go to next event and check for Characters event this.read(); if (this.presentEvent.isCharacters()) { StringBuffer elementValue = new StringBuffer(); do { - if (this.getNodeType().nodeType == XMLNodeType.CHARACTERS) { + if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { Characters characters = (Characters) this.presentEvent; if (!characters.isIgnorableWhiteSpace() && !characters.isWhiteSpace()) { @@ -463,10 +463,10 @@ public String readValue() throws XMLStreamException, return elementValue.toString(); } else { errMsg = errMsg + "Could not find " - + XMLNodeType.getString(XMLNodeType.CHARACTERS); + + XmlNodeType.getString(XmlNodeType.CHARACTERS); throw new ServiceXmlDeserializationException(errMsg); } - } else if (this.presentEvent.getEventType() == XMLNodeType.CHARACTERS + } else if (this.presentEvent.getEventType() == XmlNodeType.CHARACTERS && this.presentEvent.isCharacters()) { /* * if(this.presentEvent.asCharacters().getData().equals("<")) { @@ -475,7 +475,7 @@ public String readValue() throws XMLStreamException, .asCharacters().getData()); do { this.read(); - if (this.getNodeType().nodeType == XMLNodeType.CHARACTERS) { + if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { Characters characters = (Characters) this.presentEvent; if (!characters.isIgnorableWhiteSpace() && !characters.isWhiteSpace()) { @@ -494,7 +494,7 @@ public String readValue() throws XMLStreamException, */ } else { errMsg = errMsg + "Expected is " - + XMLNodeType.getString(XMLNodeType.START_ELEMENT); + + XmlNodeType.getString(XmlNodeType.START_ELEMENT); throw new ServiceXmlDeserializationException(errMsg); } @@ -601,8 +601,8 @@ public void readBase64ElementValue(OutputStream outputStream) */ public void readStartElement(String namespacePrefix, String localName) throws Exception { - this.internalReadElement(namespacePrefix, localName, new XMLNodeType( - XMLNodeType.START_ELEMENT)); + this.internalReadElement(namespacePrefix, localName, new XmlNodeType( + XmlNodeType.START_ELEMENT)); } /** @@ -617,8 +617,8 @@ public void readStartElement(String namespacePrefix, String localName) */ public void readStartElement(XmlNamespace xmlNamespace, String localName) throws Exception { - this.internalReadElement(xmlNamespace, localName, new XMLNodeType( - XMLNodeType.START_ELEMENT)); + this.internalReadElement(xmlNamespace, localName, new XmlNodeType( + XmlNodeType.START_ELEMENT)); } /** @@ -633,8 +633,8 @@ public void readStartElement(XmlNamespace xmlNamespace, String localName) */ public void readEndElement(String namespacePrefix, String elementName) throws Exception { - this.internalReadElement(namespacePrefix, elementName, new XMLNodeType( - XMLNodeType.END_ELEMENT)); + this.internalReadElement(namespacePrefix, elementName, new XmlNodeType( + XmlNodeType.END_ELEMENT)); } /** @@ -650,8 +650,8 @@ public void readEndElement(String namespacePrefix, String elementName) public void readEndElement(XmlNamespace xmlNamespace, String localName) throws Exception { - this.internalReadElement(xmlNamespace, localName, new XMLNodeType( - XMLNodeType.END_ELEMENT)); + this.internalReadElement(xmlNamespace, localName, new XmlNodeType( + XmlNodeType.END_ELEMENT)); } @@ -862,7 +862,7 @@ public void ensureCurrentNodeIsStartElement(XmlNamespace xmlNamespace, */ public void ensureCurrentNodeIsStartElement() throws ServiceXmlDeserializationException { - XMLNodeType presentNodeType = new XMLNodeType(this.presentEvent + XmlNodeType presentNodeType = new XmlNodeType(this.presentEvent .getEventType()); if (!this.presentEvent.isStartElement()) { throw new ServiceXmlDeserializationException(String.format( @@ -1147,13 +1147,13 @@ protected String getNamespaceUri() { /** * Gets the type of the node. * - * @return XMLNodeType + * @return XmlNodeType * @throws javax.xml.stream.XMLStreamException * the xML stream exception */ - public XMLNodeType getNodeType() throws XMLStreamException { + public XmlNodeType getNodeType() throws XMLStreamException { XMLEvent event = this.presentEvent; - XMLNodeType nodeType = new XMLNodeType(event.getEventType()); + XmlNodeType nodeType = new XmlNodeType(event.getEventType()); return nodeType; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index 1917a9197..2549fbb19 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -77,7 +77,7 @@ public Document retriveDocument(XMLEventReader xmlEventReader) while (xmlEventReader.hasNext()) { XMLEvent xmleve = (XMLEvent) xmlEventReader.next(); - if (xmleve.getEventType() == XMLNodeType.END_ELEMENT) { + if (xmleve.getEventType() == XmlNodeType.END_ELEMENT) { Node node = currentElement.getParentNode(); if (node instanceof Document) { currentElement = ((Document) node).getDocumentElement(); @@ -86,7 +86,7 @@ public Document retriveDocument(XMLEventReader xmlEventReader) } } - if (xmleve.getEventType() == XMLNodeType.START_ELEMENT) { + if (xmleve.getEventType() == XmlNodeType.START_ELEMENT) { // startElement((StartElement) xmleve,doc); StartElement ele = (StartElement) xmleve; Element element = null; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index 9c5a86d3f..967c605ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -51,7 +51,7 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { Conversation item = EwsUtilities. createEwsObjectFromXmlElementName(Conversation.class, reader.getService(),reader.getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index 1aedb9884..d5d020184 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -46,7 +46,7 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) do { reader.read(); - if (reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { Folder folder = EwsUtilities .createEwsObjectFromXmlElementName(Folder.class, reader.getService(), reader.getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index ad6c59aa0..523f59bf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -150,7 +150,7 @@ private void internalReadItemsFromXml(EwsServiceXmlReader reader, do { reader.read(); - if (reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { Item item = EwsUtilities.createEwsObjectFromXmlElementName( Item.class, reader.getService(), reader .getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index 8a26144e2..20d1c14fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -45,7 +45,7 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Attachments); if (!reader.isEmptyElement()) { - XMLNodeType x = new XMLNodeType(XMLNodeType.START_ELEMENT); + XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); reader.read(x); this.attachment.loadFromXml(reader, reader.getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index eebdc3898..8571c3306 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -102,7 +102,7 @@ protected void loadFromXml(EwsXmlReader reader, String endElementName) do { reader.read(); - if (reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { if (reader.getLocalName() .equals(XmlElementNames.RedirectTarget)) { this.redirectTarget = reader.readElementValue(); @@ -139,7 +139,7 @@ protected void loadDomainSettingsFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.DomainSetting))) { String settingClass = reader.readAttributeValue( @@ -187,7 +187,7 @@ private void readSettingFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( XmlElementNames.DomainStringSetting)) { name = reader.readElementValue(DomainSettingName.class); @@ -219,7 +219,7 @@ private void loadDomainSettingErrorsFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().nodeType == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.DomainSettingError))) { DomainSettingError error = new DomainSettingError(); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index 237d26768..3db86f570 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -84,7 +84,7 @@ protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT && + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT && reader.getLocalName() == XmlElementNames.SubscriptionId) { this.getErrorSubscriptionIds().add( reader.readElementValue(XmlNamespace.Messages, diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 018bb44f7..47564edae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -144,7 +144,7 @@ protected void loadFromXml(EwsXmlReader reader, String endElementName) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName() .equals(XmlElementNames.RedirectTarget)) { @@ -177,7 +177,7 @@ protected void loadUserSettingsFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.UserSetting))) { String settingClass = reader.readAttributeValue( @@ -224,7 +224,7 @@ private void readSettingFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.Name)) { name = reader.readElementValue(UserSettingName.class); } else if (reader.getLocalName().equals(XmlElementNames.Value)) { @@ -265,7 +265,7 @@ private void loadUserSettingErrorsFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.UserSettingError))) { UserSettingError error = new UserSettingError(); diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index fe76707fe..876ea0c89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -439,7 +439,7 @@ protected void readPreamble(EwsServiceXmlReader ewsXmlReader) throws Exception { // Do nothing. try { - ewsXmlReader.read(new XMLNodeType(XMLNodeType.START_DOCUMENT)); + ewsXmlReader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); } catch (XmlException ex){ throw new ServiceRequestException(Strings. diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index db15e5b57..da7fb88af 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -50,7 +50,7 @@ protected void loadFromXml(EwsServiceXmlReader reader, do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { TItem item = EwsUtilities .createEwsObjectFromXmlElementName(Item.class, reader.getService(), reader.getLocalName()); diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index 0898bf16a..26cfe5ffc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -59,7 +59,7 @@ protected void loadFromXml(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.AccountType)) { this.setAccountType(reader.readElementValue()); } else if (reader.getLocalName().equals(XmlElementNames.Action)) { diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index b2ab3ef3b..68ac5e6e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -544,7 +544,7 @@ protected void loadFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.Type)) { this.setProtocolType(OutlookProtocol. protocolNameToType(reader.readElementValue())); @@ -655,7 +655,7 @@ private static void loadWebClientUrlsFromXml(EwsXmlReader reader, do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if(reader.getLocalName().equals(XmlElementNames.OWAUrl)) { String authMethod = reader.readAttributeValue( XmlAttributeNames.AuthenticationMethod); diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index 15da54d20..f5baf78a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -80,7 +80,7 @@ protected void loadFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { this.displayName = reader.readElementValue(); } else if (reader.getLocalName().equals( diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index b3d05a168..2dd7f66e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -475,7 +475,7 @@ protected void loadFromXml(EwsServiceXmlReader reader, boolean clear, do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { OutParam propertyDefinitionOut = new OutParam(); PropertyDefinition propertyDefinition; diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index 7a41f5f0c..16de20d1d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -45,7 +45,7 @@ protected static ProtocolConnection loadFromXml(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( XmlElementNames.EncryptionMethod)) { connection.setEncryptionMethod(reader diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index 017f5d3d1..df07f2261 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -42,7 +42,7 @@ static ProtocolConnectionCollection LoadFromXml(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( XmlElementNames.ProtocolConnection)) { connection = ProtocolConnection.loadFromXml(reader); diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index 74f61f2a3..f5339e6b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -49,7 +49,7 @@ protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, Recurrence recurrence = null; - reader.read(new XMLNodeType(XMLNodeType.START_ELEMENT)); // This is the + reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the // pattern // element @@ -101,7 +101,7 @@ protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, recurrence.loadFromXml(reader, reader.getLocalName()); - reader.read(new XMLNodeType(XMLNodeType.START_ELEMENT)); // This is the + reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the // range // element diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 91c94b83a..625574e17 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -11,20 +11,15 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.util.Date; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; import javax.xml.stream.XMLStreamException; -import javax.xml.ws.WebServiceException; import javax.xml.ws.http.HTTPException; -import org.apache.commons.httpclient.HttpException; - //import org.eclipse.ecf.core.util.AsyncResult; /** @@ -968,7 +963,7 @@ private boolean isNullOrEmpty(String str) { private void readXmlDeclaration(EwsServiceXmlReader reader) throws Exception { try { - reader.read(new XMLNodeType(XMLNodeType.START_DOCUMENT)); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); } catch (XmlException ex) { throw new ServiceRequestException( Strings.ServiceResponseDoesNotContainXml, ex); diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index 42b79a902..0f281b7c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -70,7 +70,7 @@ protected static SoapFaultDetails parse(EwsXmlReader reader, do { reader.read(); if (reader.getNodeType().equals( - new XMLNodeType(XMLNodeType.START_ELEMENT))) { + new XmlNodeType(XmlNodeType.START_ELEMENT))) { String localName = reader.getLocalName(); if (localName.equals(XmlElementNames.SOAPFaultCodeElementName)) { soapFaultDetails.setFaultCode(reader.readElementValue()); @@ -111,7 +111,7 @@ private void parseDetailNode(EwsXmlReader reader) do { reader.read(); if (reader.getNodeType().equals( - new XMLNodeType(XMLNodeType.START_ELEMENT))) { + new XmlNodeType(XmlNodeType.START_ELEMENT))) { String localName = reader.getLocalName(); if (localName .equals(XmlElementNames.EwsResponseCodeElementName)) { diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index a0d0fbc8d..b23500834 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -595,7 +595,7 @@ protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { reader.read(); // Position at first property element do { - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( XmlElementNames.UserConfigurationName)) { String responseName = reader diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index cbd1abbb2..f9bd0d8c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -56,7 +56,7 @@ protected void loadFromXml(EwsXmlReader reader) throws Exception { do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { this.setErrorCode(reader .readElementValue(AutodiscoverErrorCode.class)); diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index 385e5246e..50a87c722 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -53,7 +53,7 @@ protected static WebClientUrl loadFromXml(EwsXmlReader reader) do { reader.read(); - if (reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { if (reader.getLocalName().equals( XmlElementNames.AuthenticationMethods)) { webClientUrl.setAuthenticationMethods(reader diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index f7eacb31d..1f16f26d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -41,7 +41,7 @@ protected static WebClientUrlCollection loadFromXml(EwsXmlReader reader) do { reader.read(); - if ((reader.getNodeType().getNodeType() == XMLNodeType.START_ELEMENT) && + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && (reader.getLocalName() .equals(XmlElementNames.WebClientUrl))) { instance.getUrls().add(WebClientUrl.loadFromXml(reader)); diff --git a/src/main/java/microsoft/exchange/webservices/data/XMLNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java similarity index 95% rename from src/main/java/microsoft/exchange/webservices/data/XMLNodeType.java rename to src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index ce7cbe982..b050afe60 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XMLNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -1,27 +1,27 @@ /************************************************************************** - * copyright file="XMLNodeType.java" company="Microsoft" + * copyright file="XmlNodeType.java" company="Microsoft" * Copyright (c) Microsoft Corporation. All rights reserved. * - * Defines the XMLNodeType.java. + * Defines the XmlNodeType.java. **************************************************************************/ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamConstants; /** - * The Class XMLNodeType. + * The Class XmlNodeType. */ -class XMLNodeType implements XMLStreamConstants { +class XmlNodeType implements XMLStreamConstants { /** The node type. */ int nodeType; /** - * Instantiates a new XML node type. + * Instantiates a new Xml node type. * * @param nodeType The node type. */ - XMLNodeType(int nodeType) { + XmlNodeType(int nodeType) { this.nodeType = nodeType; } @@ -166,8 +166,8 @@ public boolean equals(Object obj) { if (this == obj) { return true; } - if (obj instanceof XMLNodeType) { - XMLNodeType other = (XMLNodeType)obj; + if (obj instanceof XmlNodeType) { + XmlNodeType other = (XmlNodeType)obj; return this.nodeType == other.nodeType; } else { return super.equals(obj); From 1cb89bc0ba1b9de762a7b3d09bed67bea1988817 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 00:24:56 -0700 Subject: [PATCH 012/338] Fix #31 and #32 remove useless null checks --- .../microsoft/exchange/webservices/data/RemoveFromCalendar.java | 2 -- .../exchange/webservices/data/SuppressReadReceipt.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index eb9556657..80efb70d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -30,8 +30,6 @@ class RemoveFromCalendar extends ServiceObject { */ RemoveFromCalendar(Item referenceItem) throws Exception { super(referenceItem.getService()); - EwsUtilities.EwsAssert(referenceItem != null, - "RemoveFromCalendar.ctor", "referenceItem is null"); referenceItem.throwIfThisIsNew(); diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index d88a2ef96..d87159cfd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -25,8 +25,6 @@ final class SuppressReadReceipt extends ServiceObject { */ protected SuppressReadReceipt(Item referenceItem) throws Exception { super(referenceItem.getService()); - EwsUtilities.EwsAssert(referenceItem != null, - "SuppressReadReceipt.ctor", "referenceItem is null"); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; From 695d30e83bd93a573aad49567dd44e0ecf7658df Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 08:25:41 -0700 Subject: [PATCH 013/338] Rewrite ExtendedPropertyDefinition.isEqualTo() for readability --- .../data/ExtendedPropertyDefinition.java | 84 ++++++++++--------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 5445c113b..936df8d9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -166,48 +166,54 @@ public ExtendedPropertyDefinition(UUID propertySetId, int id, } /** - * Determines whether two specified instances of ExtendedPropertyDefinition - * are equal. + * Determines whether two specified instances of ExtendedPropertyDefinition are equal. * - * @param extPropDef1 - * First extended property definition. - * @param extPropDef2 - * Second extended property definition. + * @param extPropDef1 First extended property definition. + * @param extPropDef2 Second extended property definition. * @return True if extended property definitions are equal. */ -/* protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, - ExtendedPropertyDefinition extPropDef2) { - return (extPropDef1 == extPropDef2) || - ((Object)extPropDef1 != null && - (Object)extPropDef2 != null && - extPropDef1.getId() == extPropDef2.getId() && - extPropDef1.getMapiType() == extPropDef2.getMapiType() && - extPropDef1.getTag().intValue() == extPropDef2.getTag().intValue() && - extPropDef1.getName().equals(extPropDef2.getName()) && - extPropDef1.getPropertySet() == extPropDef2.getPropertySet() && - extPropDef1.propertySetId - .equals(extPropDef2.propertySetId)); - }*/ - - protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, - ExtendedPropertyDefinition extPropDef2) { - return (extPropDef1 == extPropDef2) - || (extPropDef1 != null - && extPropDef2 != null - && (extPropDef1.getId().equals(extPropDef2.getId()) || (extPropDef1 - .getId() != null && extPropDef1.getId().equals( - extPropDef2.getId()))) - && extPropDef1.getMapiType() == extPropDef2 - .getMapiType() - && (extPropDef1.getTag().equals(extPropDef2.getTag()) || (extPropDef1 - .getTag() != null && extPropDef1.getTag() - .equals(extPropDef2.getTag()))) - && (extPropDef1.getName().equals(extPropDef2.getName()) || (extPropDef1 - .getName() != null && extPropDef1.getName() - .equals(extPropDef2.getName()))) - && extPropDef1.getPropertySet() == extPropDef2 - .getPropertySet() && ((extPropDef1.propertySetId == extPropDef2.propertySetId) || (extPropDef1.propertySetId != null && extPropDef1.propertySetId - .equals(extPropDef2.propertySetId)))); + protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2) { + if (extPropDef1 == extPropDef2) { + return true; + } + + if (extPropDef1 == null || extPropDef2 == null) { + return false; + } + + if (extPropDef1.getId() != null) { + if (!extPropDef1.getId().equals(extPropDef2.getId())) { + return false; + } + } else if (extPropDef2.getId() != null) { + return false; + } + + if (extPropDef1.getMapiType() != extPropDef2.getMapiType()) { + return false; + } + + if (extPropDef1.getName() != null) { + if (!extPropDef1.getName().equals(extPropDef2.getName())) { + return false; + } + } else if (extPropDef2.getName() != null) { + return false; + } + + if (extPropDef1.getPropertySet() != extPropDef2.getPropertySet()) { + return false; + } + + if (extPropDef1.propertySetId != null) { + if (!extPropDef1.propertySetId.equals(extPropDef2.propertySetId)) { + return false; + } + } else if (extPropDef2.propertySetId != null) { + return false; + } + + return true; } /** From 9860c5058c8ed4eb741d9bb0eb1b4c0e7abb03e6 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 21 Sep 2014 10:09:32 -0700 Subject: [PATCH 014/338] Fix #11: Invalid downcast check --- .../microsoft/exchange/webservices/data/ExchangeService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 06a2e7cbf..068f628e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -1428,14 +1428,13 @@ protected Item bindToItem(ItemId itemId, PropertySet propertySet) protected TItem bindToItem(Class c, ItemId itemId, PropertySet propertySet) throws Exception { Item result = this.bindToItem(itemId, propertySet); - if (result instanceof Item) { + if (c.isAssignableFrom(result.getClass())) { return (TItem) result; } else { throw new ServiceLocalException(String.format( Strings.ItemTypeNotCompatible, result.getClass().getName(), c.getName())); } - // return (TItem)result; } /** From 5fbb35674320adc6c52bb268477bbb577c7a96f6 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:24:15 -0700 Subject: [PATCH 015/338] Remove extra semi-colons causing IntelliJ warnings --- .../exchange/webservices/data/Attachment.java | 2 +- .../webservices/data/Base64EncoderStream.java | 47 +++++++++---------- .../data/CancelMeetingMessageSchema.java | 2 +- .../webservices/data/ConversationSchema.java | 26 +++++----- .../webservices/data/EmailMessageSchema.java | 8 ++-- .../exchange/webservices/data/ItemSchema.java | 8 ++-- .../data/MapiTypeConverterMapEntry.java | 1 + .../data/MeetingMessageSchema.java | 2 +- .../data/ResponseObjectSchema.java | 4 +- .../webservices/data/ServiceObjectSchema.java | 6 +-- .../exchange/webservices/data/TaskSchema.java | 4 +- .../webservices/data/XmlNameTable.java | 2 +- 12 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index 4ade58309..a8ca3fc00 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -79,7 +79,7 @@ protected void throwIfThisIsNotNew() { protected boolean canSetFieldValue(T field, T value) { this.throwIfThisIsNotNew(); return super.canSetFieldValue(field, value); - }; + } /** * Gets the Id of the attachment. diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index 073ad16cb..d4480d265 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -34,7 +34,7 @@ private static char encode(byte uc) { return '+'; } return '/'; - }; + } /** * Checks if is base64. @@ -56,17 +56,17 @@ private static boolean isBase64(char c) { if (c == '+') { return true; } - ; + if (c == '/') { return true; } - ; + if (c == '=') { return true; } - ; + return false; - }; + } /** * Decode. @@ -88,9 +88,9 @@ private static byte decode(char c) { if (c == '+') { return 62; } - ; + return 63; - }; + } /** * Encode. @@ -106,7 +106,7 @@ public static String encode(byte[] vby) { if (vby.length == 0) { return retValString; } - ; + for (int i = 0; i < vby.length; i += 3) { byte by1 = 0; @@ -116,7 +116,7 @@ public static String encode(byte[] vby) { if (i + 1 < vby.length) { by2 = vby[i + 1]; } - ; + if (i + 2 < vby.length) { by3 = vby[i + 2]; } @@ -135,21 +135,21 @@ public static String encode(byte[] vby) { } else { retval.append("="); } - ; + if (i + 2 < vby.length) { retval.append(encode(by7)); } else { retval.append("="); } - ; + if (i % (76 / 4 * 3) == 0) { retval.append("\r\n"); } } - ; + retValString = retval.toString(); return retValString; - }; + } /** * Decode. @@ -175,37 +175,36 @@ public static byte[] decode(String dstr) { if (i + 1 < str.length()) { c2 = str.charAt(i + 1); } - ; + if (i + 2 < str.length()) { c3 = str.charAt(i + 2); } - ; + if (i + 3 < str.length()) { c4 = str.charAt(i + 3); } - ; + byte by1 = 0, by2 = 0, by3 = 0, by4 = 0; by1 = decode(c1); by2 = decode(c2); by3 = decode(c3); by4 = decode(c4); - retval.add(Byte - .valueOf((byte)((byte)(by1 << 2) | (byte)(by2 >> 4)))); + retval.add(Byte.valueOf((byte)((byte)(by1 << 2) | (byte)(by2 >> 4)))); + if (c3 != '=') { - retval.add(Byte - .valueOf((byte)(((by2 & 0xf) << 4) | (by3 >> 2)))); + retval.add(Byte.valueOf((byte)(((by2 & 0xf) << 4) | (by3 >> 2)))); } + if (c4 != '=') { retval.add(Byte.valueOf((byte)(((by3 & 0x3) << 6) | by4))); } - ; } - ; + byte[] byteArry = new byte[retval.size()]; for (int i = 0; i < retval.size(); i++) { byteArry[i] = retval.get(i); } - return byteArry; - }; + return byteArry; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index 50ffeaf33..28d2d7dac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -23,7 +23,7 @@ class CancelMeetingMessageSchema extends ServiceObjectSchema { new ICreateComplexPropertyDelegate() { public MessageBody createComplexProperty() { return new MessageBody(); - }; + } }); /** This must be declared after the property definitions. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index f91d3ee47..55372b0ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -134,7 +134,7 @@ private static class FieldUris { new ICreateComplexPropertyDelegate() { public ConversationId createComplexProperty() { return new ConversationId(); - }; + } }); /** @@ -161,7 +161,7 @@ public ConversationId createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); @@ -179,7 +179,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -196,7 +196,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -213,7 +213,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -230,7 +230,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -247,7 +247,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -286,7 +286,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -303,7 +303,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -433,7 +433,7 @@ public StringList createComplexProperty() { public StringList createComplexProperty() { return new StringList(XmlElementNames. ItemClass); - }; + } }); /** @@ -451,7 +451,7 @@ public StringList createComplexProperty() { public StringList createComplexProperty() { return new StringList(XmlElementNames. ItemClass); - }; + } }); /** @@ -492,7 +492,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public ItemIdCollection createComplexProperty() { return new ItemIdCollection(); - }; + } }); /** @@ -509,7 +509,7 @@ public ItemIdCollection createComplexProperty() { new ICreateComplexPropertyDelegate() { public ItemIdCollection createComplexProperty() { return new ItemIdCollection(); - }; + } }); /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index 468b315b2..f4d05c135 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -88,7 +88,7 @@ private static interface FieldUris { @Override public EmailAddressCollection createComplexProperty() { return new EmailAddressCollection(); - }; + } }); /** @@ -109,7 +109,7 @@ public EmailAddressCollection createComplexProperty() { @Override public EmailAddressCollection createComplexProperty() { return new EmailAddressCollection(); - }; + } }); /** @@ -130,7 +130,7 @@ public EmailAddressCollection createComplexProperty() { @Override public EmailAddressCollection createComplexProperty() { return new EmailAddressCollection(); - }; + } }); /** @@ -167,7 +167,7 @@ public EmailAddressCollection createComplexProperty() { @Override public EmailAddress createComplexProperty() { return new EmailAddress(); - }; + } }); /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index adb13bc5a..4d406983b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -147,7 +147,7 @@ private static interface FieldUris { new ICreateComplexPropertyDelegate() { public ItemId createComplexProperty() { return new ItemId(); - }; + } }); /** @@ -164,7 +164,7 @@ public ItemId createComplexProperty() { new ICreateComplexPropertyDelegate() { public MessageBody createComplexProperty() { return new MessageBody(); - }; + } }); /** @@ -204,7 +204,7 @@ public MessageBody createComplexProperty() { new ICreateComplexPropertyDelegate() { public MimeContent createComplexProperty() { return new MimeContent(); - }; + } }); /** @@ -218,7 +218,7 @@ public MimeContent createComplexProperty() { new ICreateComplexPropertyDelegate() { public FolderId createComplexProperty() { return new FolderId(); - }; + } }); /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index ee4cd4a5e..a97e227d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -86,6 +86,7 @@ public String func(Object o) { return String.valueOf(o); } }; + this.parse = new IFunction() { public Object func(String o) { return o; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index d954643c8..112ef2e69 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -49,7 +49,7 @@ private static interface FieldUris { @Override public ItemId createComplexProperty() { return new ItemId(); - }; + } }); /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index fc7074705..97161aa47 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -24,7 +24,7 @@ class ResponseObjectSchema extends ServiceObjectSchema { new ICreateComplexPropertyDelegate() { public ItemId createComplexProperty() { return new ItemId(); - }; + } }); /** The Body prefix. */ @@ -37,7 +37,7 @@ public ItemId createComplexProperty() { new ICreateComplexPropertyDelegate() { public MessageBody createComplexProperty() { return new MessageBody(); - }; + } }); /** This must be declared after the property definitions. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index 8416f4283..6a7906f8a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -69,7 +69,7 @@ public List> createInstance() { * ); } */ return typeList; - }; + } }); /** @@ -88,7 +88,7 @@ public Map createInstance() { propDefDictionary); } return propDefDictionary; - }; + } }); /** @@ -274,7 +274,7 @@ protected static void initializeSchemaPropertyNames() { () { public ExtendedPropertyCollection createComplexProperty() { return new ExtendedPropertyCollection(); - }; + } }); /** The properties. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index ef85b8a59..ba7ac1661 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -149,7 +149,7 @@ private static class FieldUris { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** @@ -180,7 +180,7 @@ public StringList createComplexProperty() { new ICreateComplexPropertyDelegate() { public StringList createComplexProperty() { return new StringList(); - }; + } }); /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index 649ca340d..5d19a9e4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -16,7 +16,7 @@ public abstract class XmlNameTable { * Initializes a new instance of the XmlNameTable class. */ protected XmlNameTable() { - }; + } /** * When overridden in a derived class, atomizes the specified String and From b416f548999245824c4b546734b335f8fb4ad8de Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:28:15 -0700 Subject: [PATCH 016/338] Fix spaces before semi-colons --- .../exchange/webservices/data/DelegatePermissions.java | 4 ++-- .../exchange/webservices/data/ResolveNamesRequest.java | 2 +- .../webservices/data/StartTimeZonePropertyDefinition.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 5dd625ffb..86532ff27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -313,12 +313,12 @@ protected void validateUpdateDelegate() throws ServiceValidationException { private static class DelegateFolderPermission { /** - * Intializes this DelegateFolderPermission. + * Initializes this DelegateFolderPermission. * @param permissionLevel The DelegateFolderPermissionLevel */ protected void initialize( DelegateFolderPermissionLevel permissionLevel) { - this.setPermissionLevel(permissionLevel) ; + this.setPermissionLevel(permissionLevel); this.setIsExistingPermissionLevelCustom(permissionLevel== DelegateFolderPermissionLevel.Custom); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index 8c63d5f5f..8ff731779 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -51,7 +51,7 @@ final class ResolveNamesRequest extends private ResolveNameSearchLocation searchLocation; /** The Contact PropertySet. **/ - private PropertySet contactDataPropertySet ; + private PropertySet contactDataPropertySet; /** The parent folder ids. */ private FolderIdWrapperList parentFolderIds = new FolderIdWrapperList(); diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index ab6dba46f..2afd7aa15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -69,7 +69,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, if (value != null) { if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { - ExchangeService service = (ExchangeService)writer.getService() ; + ExchangeService service = (ExchangeService)writer.getService(); if (service != null && service.getExchange2007CompatibilityMode() == false) { MeetingTimeZone meetingTimeZone = new MeetingTimeZone( From f6485f968eaaee1e56b3e1c207399465d0c1f04f Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:29:06 -0700 Subject: [PATCH 017/338] Fix IntelliJ warning about '== false' usage --- .../webservices/data/StartTimeZonePropertyDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index 2afd7aa15..24eff687b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -70,7 +70,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, if (value != null) { if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { ExchangeService service = (ExchangeService)writer.getService(); - if (service != null && service.getExchange2007CompatibilityMode() == false) + if (service != null && !service.getExchange2007CompatibilityMode()) { MeetingTimeZone meetingTimeZone = new MeetingTimeZone( (TimeZoneDefinition)value); From 184e90827f20c1ff874082d534eb40bf124cbf1a Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:38:27 -0700 Subject: [PATCH 018/338] Remove unused using statements in AsyncExecutor --- .../java/microsoft/exchange/webservices/data/AsyncExecutor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index e937290bf..817ac53fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -6,12 +6,10 @@ **************************************************************************/ package microsoft.exchange.webservices.data; -import java.util.concurrent.AbstractExecutorService; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; -import java.util.concurrent.FutureTask; import java.util.concurrent.RunnableFuture; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; From 2d3d8183ae0346527965144aa9e16e393f32034c Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:39:35 -0700 Subject: [PATCH 019/338] Remove unused fields in AsyncExecutor --- .../webservices/data/AsyncExecutor.java | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index 817ac53fa..202f58d01 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -14,25 +14,13 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; - class AsyncExecutor extends ThreadPoolExecutor implements ExecutorService{ - - int poolSize = 1; - - int maxPoolSize = 1; - - long keepAliveTime = 10; - - final static ArrayBlockingQueue queue = - new ArrayBlockingQueue( - 1); - +class AsyncExecutor extends ThreadPoolExecutor implements ExecutorService { + final static ArrayBlockingQueue queue = new ArrayBlockingQueue(1); + AsyncExecutor(){ super(1,5,10,TimeUnit.SECONDS, queue); } - - - - + public Future submit(Callable task,AsyncCallback callback) { if (task == null) throw new NullPointerException(); RunnableFuture ftask = newTaskFor(task); @@ -42,5 +30,4 @@ public Future submit(Callable task,AsyncCallback callback) { new Thread(callback).start(); return ftask; } - } From 2c386851371a284ba16b75d43963daa2d830a63e Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:53:34 -0700 Subject: [PATCH 020/338] IntelliJ: Remove redundant null check in AttachmentCollection --- .../exchange/webservices/data/AttachmentCollection.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index b88815bef..40e13c36e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -387,8 +387,7 @@ public void validate() throws Exception { .ordinal()) { FileAttachment fileAttachment = (FileAttachment) attachment; - if (fileAttachment != null - && fileAttachment.isContactPhoto()) { + if (fileAttachment.isContactPhoto()) { if (contactPhotoFound) { throw new ServiceValidationException( Strings.MultipleContactPhotosInAttachment); From 5ec0297b754b44e26bb80319619000b276278f32 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:54:15 -0700 Subject: [PATCH 021/338] IntelliJ: Fix too many args and typo --- .../exchange/webservices/data/AutodiscoverDnsClient.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index 0fd6403ea..b5554ee73 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -100,9 +100,7 @@ private DnsSrvRecord findBestMatchingSrvRecord(String domain) dnsSrvRecordList = DnsClient.dnsQuery(DnsSrvRecord.class, domain, this.service.getDnsServerAddress()); } catch (DnsException ex) { - String dnsExcMessage = String.format("DnsQuery returned error " + - "error '%s' error code 0x{1:X8}.", - ex.getMessage(), ex.getError()); + String dnsExcMessage = String.format("DnsQuery returned error '%s'.", ex.getMessage()); this.service .traceMessage( TraceFlags.AutodiscoverConfiguration, @@ -110,7 +108,7 @@ private DnsSrvRecord findBestMatchingSrvRecord(String domain) return null; } catch (SecurityException ex) { // In restricted environments, we may not be allowed to call - // unmanaged code. + // un-managed code. this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( "DnsQuery cannot be called. Security error: %s.", From a939028d8d54183b8b38d0d01d8fcd0785b671d0 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 15:54:41 -0700 Subject: [PATCH 022/338] DnsException should pass message to parent and remove getErrorCode() --- .../webservices/data/DnsException.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index 391533e7d..877e3722a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -11,30 +11,16 @@ * Defines DnsException class. */ class DnsException extends Exception { - /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L; - /** The exception. */ - String exception; - /** * Instantiates a new dns exception. - * + * * @param exceptionMessage * the exception message */ protected DnsException(String exceptionMessage) { - exception = exceptionMessage; - - } - - /** - * Gets the error. - * - * @return the error - */ - protected String getError() { - return exception; + super(exceptionMessage); } } From 173bfb1128c2939e48602bd60a1c07f772eee090 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 18:55:10 -0700 Subject: [PATCH 023/338] IntelliJ: Fix var name trigger typos in AutodiscoverEndpoints --- .../webservices/data/AutodiscoverEndpoints.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index 9d10eabe0..dc6acbec6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -29,17 +29,17 @@ enum AutodiscoverEndpoints { /** The WS-Security/X509Cert endpoint.*/ WSSecurityX509Cert(16); - /** The autodis endpts. */ + /** The autodiscover end points. */ @SuppressWarnings("unused") - private final int autodisEndpts; + private final int autodiscoverEndPoints; /** * Instantiates a new autodiscover endpoints. * - * @param autodisEndpts - * the autodis endpts + * @param autodiscoverEndPoints + * the autodiscover end points */ - AutodiscoverEndpoints(int autodisEndpts) { - this.autodisEndpts = autodisEndpts; + AutodiscoverEndpoints(int autodiscoverEndPoints) { + this.autodiscoverEndPoints = autodiscoverEndPoints; } } From 5234a8b1ee93103e7812b843315bd2651ba990cc Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 18:57:39 -0700 Subject: [PATCH 024/338] IntelliJ: Add missing call to super in AutodiscoverRemoteException --- .../webservices/data/AutodiscoverRemoteException.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 877e0bbe8..88a748eeb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -34,9 +34,9 @@ public AutodiscoverRemoteException(AutodiscoverError error) { * @param error * the error */ - protected AutodiscoverRemoteException(String message, - AutodiscoverError error) { - this.error = error; + protected AutodiscoverRemoteException(String message, AutodiscoverError error) { + super(message); + this.error = error; } /** From 9056652f9d71b31414e0cf831201ea65983912f7 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 19:20:50 -0700 Subject: [PATCH 025/338] IntelliJ: Fix warnings for AutodiscoverRequest --- .../webservices/data/AutodiscoverRequest.java | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index dfaa91901..504c2f598 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -21,10 +21,8 @@ /** * Represents the base class for all requested made to the Autodiscover service. - * */ abstract class AutodiscoverRequest { - /** The service. */ private AutodiscoverService service; @@ -233,12 +231,13 @@ protected AutodiscoverResponse internalExecute() Strings.ServiceRequestFailed, ex.getMessage()), ex); } finally { try { - request.close(); - } catch (Exception e2) { - request = null; + if (request != null) { + request.close(); + } + } catch (Exception e) { + // do nothing } } - } /** @@ -248,10 +247,8 @@ protected AutodiscoverResponse internalExecute() * WebException * @param req * HttpWebRequest - * */ private void processWebException(Exception exception, HttpWebRequest req) { - SoapFaultDetails soapFaultDetails = null; if (null != req) { try { if (500 == req.getResponseCode()) { @@ -277,7 +274,6 @@ private void processWebException(Exception exception, HttpWebRequest req) { new ByteArrayInputStream( memoryStream.toByteArray()); EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); - //soapFaultDetails = this.readSoapFault(reader); this.readSoapFault(reader); memoryStream.close(); } else { @@ -285,7 +281,7 @@ private void processWebException(Exception exception, HttpWebRequest req) { .getResponseStream(req); EwsXmlReader reader = new EwsXmlReader( serviceResponseStream); - soapFaultDetails = this.readSoapFault(reader); + SoapFaultDetails soapFaultDetails = this.readSoapFault(reader); serviceResponseStream.close(); if (soapFaultDetails != null) { @@ -295,10 +291,8 @@ private void processWebException(Exception exception, HttpWebRequest req) { } } else { this.service.processHttpErrorResponse(req, exception); - } } catch (Exception e) { - // do nothing e.printStackTrace(); } } @@ -387,7 +381,7 @@ private SoapFaultDetails readSoapFault(EwsXmlReader reader) { if (!reader.isStartElement() || (!reader.getLocalName().equals( XmlElementNames.SOAPEnvelopeElementName))) { - return soapFaultDetails; + return null; } // Get the namespace URI from the envelope element and use it for @@ -396,7 +390,7 @@ private SoapFaultDetails readSoapFault(EwsXmlReader reader) { XmlNamespace soapNamespace = EwsUtilities .getNamespaceFromUri(reader.getNamespaceUri()); if (soapNamespace == XmlNamespace.NotSpecified) { - return soapFaultDetails; + return null; } reader.read(); @@ -518,12 +512,12 @@ protected void writeSoapRequest(URI requestUrl, } /** - * Write extra headers. - * - *@param writer The writer - * @throws ServiceXmlSerializationException + * Write extra headers. + * + * @param writer The writer + * @throws ServiceXmlSerializationException * @throws javax.xml.stream.XMLStreamException - **/ + */ protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { // do nothing here. From c97841199fd40172999e140625dff1fbd3f52175 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:21:35 -0700 Subject: [PATCH 026/338] IntelliJ: fix warnings in AutodiscoverService --- .../webservices/data/AutodiscoverService.java | 98 ++++++++----------- 1 file changed, 42 insertions(+), 56 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 5b67010e5..c0dafff65 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -15,15 +15,12 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.EnumSet; -import java.util.List; +import java.util.*; import javax.xml.stream.XMLStreamException; /** - *Represents a binding to the Exchange Autodiscover Service. + * Represents a binding to the Exchange Autodiscover Service. */ public final class AutodiscoverService extends ExchangeServiceBase implements IAutodiscoverRedirectionUrl, IFunctionDelegate { @@ -56,10 +53,6 @@ public final class AutodiscoverService extends ExchangeServiceBase implements private static final String AutodiscoverLegacyPath = "/autodiscover/autodiscover.xml"; - /** Autodiscover legacy Url with protocol fill-in */ - private static final String AutodiscoverLegacyUrl = "%s://%s" + - AutodiscoverLegacyPath; - // Autodiscover legacy HTTPS Url /** The Constant AutodiscoverLegacyHttpsUrl. */ private static final String AutodiscoverLegacyHttpsUrl = "https://%s" + @@ -207,9 +200,9 @@ TSettings getLegacyUserSettingsAtUrl( request.executeRequest(); request.getResponseCode(); URI redirectUrl; - OutParam outParam = new OutParam(); + OutParam outParam = new OutParam(); if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = (URI) outParam.getParam(); + redirectUrl = outParam.getParam(); settings.makeRedirectionResponse(redirectUrl); return settings; } @@ -246,13 +239,14 @@ TSettings getLegacyUserSettingsAtUrl( } serviceResponseStream.close(); + try { request.close(); } catch (Exception e2) { - request = null; + // do nothing } - return settings; + return settings; } /** @@ -350,10 +344,13 @@ private URI getRedirectUrl(String domainName) throws EWSHttpException, } } try { - request.close(); + if (request != null) { + request.close(); + } } catch (Exception e2) { - request = null; + // do nothing } + this.traceMessage(TraceFlags.AutodiscoverConfiguration, "No Autodiscover redirection URL was returned."); @@ -455,8 +452,8 @@ else if (!(this.domain == null || this.domain.isEmpty())) // No Url or Domain specified, need to //figure out which endpoint to use. int currentHop = 1; - OutParam outParam = new OutParam(); - outParam.setParam(new Integer(currentHop)); + OutParam outParam = new OutParam(); + outParam.setParam(currentHop); List redirectionEmailAddresses = new ArrayList(); return this.internalGetLegacyUserSettings( cls, @@ -493,7 +490,7 @@ TSettings internalGetLegacyUserSettings( int scpUrlCount; OutParam outParamInt = new OutParam(); List urls = this.getAutodiscoverServiceUrls(domainName, outParamInt); - scpUrlCount = outParamInt.getParam().intValue(); + scpUrlCount = outParamInt.getParam(); if (urls.size() == 0) { throw new ServiceValidationException( @@ -511,7 +508,7 @@ TSettings internalGetLegacyUserSettings( // Used to save exception for later reporting. Exception delayedException = null; - TSettings settings = null; + TSettings settings; do { URI autodiscoverUrl = urls.get(currentUrlIndex); @@ -532,7 +529,7 @@ TSettings internalGetLegacyUserSettings( return settings; case RedirectUrl: if (currentHop.getParam() < AutodiscoverMaxRedirections) { - currentHop.setParam(currentHop.getParam().intValue()+1); + currentHop.setParam(currentHop.getParam() + 1); this .traceMessage( @@ -556,7 +553,7 @@ TSettings internalGetLegacyUserSettings( } case RedirectAddress: if (currentHop.getParam() < AutodiscoverMaxRedirections) { - currentHop.setParam(currentHop.getParam().intValue()+1); + currentHop.setParam(currentHop.getParam() + 1); this .traceMessage( @@ -641,7 +638,7 @@ TSettings internalGetLegacyUserSettings( "Host returned a redirection to url %s", redirectUrl.toString())); - currentHop.setParam(currentHop.getParam().intValue()+1); + currentHop.setParam(currentHop.getParam() + 1); urls.add(currentUrlIndex, redirectUrl); } else { if (response != null) { @@ -682,16 +679,15 @@ TSettings internalGetLegacyUserSettings( if ((redirectionUrl != null) && this.tryLastChanceHostRedirection(cls, emailAddress, redirectionUrl, outParam)) { - settings = outParam.getParam(); - return settings; + return outParam.getParam(); } + // If there was an earlier exception, throw it. - else if (delayedException != null) { + if (delayedException != null) { throw delayedException; - } else { - throw new AutodiscoverLocalException( - Strings.AutodiscoverCouldNotBeLocated); } + + throw new AutodiscoverLocalException(Strings.AutodiscoverCouldNotBeLocated); } } @@ -761,10 +757,8 @@ protected URI getRedirectionUrlFromDnsSrvRecord(String domainName) Class cls, String emailAddress, URI redirectionUrl, OutParam settings) throws AutodiscoverLocalException, AutodiscoverRemoteException, Exception { - List redirectionEmailAddresses = new ArrayList(); - // Bug 60274: Performing a non-SSL HTTP GET to retrieve a redirection // URL is potentially unsafe. We allow the caller // to specify delegate to be called to determine whether we are allowed @@ -785,20 +779,19 @@ protected URI getRedirectionUrlFromDnsSrvRecord(String domainName) Strings.AutodiscoverError, settings.getParam() .getError()); case RedirectAddress: - // If this email address was already tried, //we may have a loop // in SCP lookups. Disable consideration of SCP records. this.disableScpLookupIfDuplicateRedirection(settings.getParam().getRedirectTarget(), redirectionEmailAddresses); OutParam outParam = new OutParam(); - outParam.setParam(new Integer(currentHop)); + outParam.setParam(currentHop); settings.setParam( this.internalGetLegacyUserSettings(cls, emailAddress, redirectionEmailAddresses, outParam)); - currentHop = outParam.getParam().intValue(); + currentHop = outParam.getParam(); return true; case RedirectUrl: try { @@ -851,7 +844,7 @@ protected URI getRedirectionUrlFromDnsSrvRecord(String domainName) redirectionUrl, ex.getMessage())); return false; }catch (Exception ex) { - + // TODO: BUG response is always null HttpWebRequest response = null; OutParam outParam = new OutParam(); if ((response != null) @@ -1091,8 +1084,6 @@ TGetSettingsResponseCollection getSettings( requestedVersion, this.url); this.url = autodiscoverUrl; return response; - - } // If Domain is specified, determine endpoint Url and call service. else if (!(this.domain == null || this.domain.isEmpty())) { @@ -1483,7 +1474,7 @@ protected List getAutodiscoverServiceUrls(String domainName, urls = new ArrayList(); - scpHostCount.setParam(new Integer(urls.size())); + scpHostCount.setParam(urls.size()); // As a fallback, add autodiscover URLs base on the domain name. urls.add(new URI(String.format(AutodiscoverLegacyHttpsUrl, @@ -1494,7 +1485,6 @@ protected List getAutodiscoverServiceUrls(String domainName, return urls; } - /** * Gets the list of autodiscover service hosts. * @@ -1607,7 +1597,7 @@ private boolean tryGetEnabledEndpointsForHost(String host, try { request.close(); } catch (Exception e2) { - request = null; + // do nothing } } @@ -1760,7 +1750,7 @@ protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, /* * (non-Javadoc) * - * @seemicrosoft.exchange.webservices.AutodiscoverRedirectionUrlInterface# + * @see microsoft.exchange.webservices.AutodiscoverRedirectionUrlInterface# * autodiscoverRedirectionUrlValidationCallback(java.lang.String) */ public boolean autodiscoverRedirectionUrlValidationCallback( @@ -1922,9 +1912,7 @@ protected AutodiscoverService(ExchangeServiceBase service) { public GetUserSettingsResponse getUserSettings(String userSmtpAddress, UserSettingName... userSettingNames) throws Exception { List requestedSettings = new ArrayList(); - for (UserSettingName userSettingName : userSettingNames) { - requestedSettings.add(userSettingName); - } + requestedSettings.addAll(Arrays.asList(userSettingNames)); if (userSmtpAddress == null || userSmtpAddress.isEmpty()) { @@ -1974,9 +1962,7 @@ public GetUserSettingsResponseCollection getUsersSettings( List smtpAddresses = new ArrayList(); smtpAddresses.addAll((Collection) userSmtpAddresses); List settings = new ArrayList(); - for (UserSettingName userSettingName : userSettingNames) { - settings.add(userSettingName); - } + settings.addAll(Arrays.asList(userSettingNames)); return this.getUserSettings(smtpAddresses, settings); } @@ -1999,10 +1985,10 @@ public GetDomainSettingsResponse getDomainSettings(String domain, DomainSettingName... domainSettingNames) throws Exception { List domains = new ArrayList(1); domains.add(domain); + List settings = new ArrayList(); - for (DomainSettingName domainSettingName : domainSettingNames) { - settings.add(domainSettingName); - } + settings.addAll(Arrays.asList(domainSettingNames)); + return this.getDomainSettings(domains, settings, requestedVersion). getTResponseAtIndex(0); } @@ -2026,21 +2012,21 @@ public GetDomainSettingsResponseCollection getDomainSettings( DomainSettingName... domainSettingNames) throws Exception { List settings = new ArrayList(); - for (DomainSettingName domainSettingName : domainSettingNames) { - settings.add(domainSettingName); - } + settings.addAll(Arrays.asList(domainSettingNames)); + List domainslst = new ArrayList(); domainslst.addAll((Collection) domains); + return this.getDomainSettings(domainslst, settings, requestedVersion); } /** * Try to get the partner access information for the given target tenant. * - *@param targetTenantDomain The target domain or user email address. - *@param partnerAccessCredentials The partner access credentials. - *@param targetTenantAutodiscoverUrl The autodiscover url for the given tenant. - *@return True if the partner access information was retrieved, false otherwise. + * @param targetTenantDomain The target domain or user email address. + * @param partnerAccessCredentials The partner access credentials. + * @param targetTenantAutodiscoverUrl The autodiscover url for the given tenant. + * @return True if the partner access information was retrieved, false otherwise. */ /** commented as the code belongs to Partener Token credentials. */ From c4ded884f3a9b0f23929bd71c12677c33d072e62 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:30:30 -0700 Subject: [PATCH 027/338] IntelliJ: Fix warnings in Base64 --- .../java/microsoft/exchange/webservices/data/Base64.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index 939650a62..015d455e2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -66,11 +66,10 @@ public static String encode(byte[] byteArry, int startIndex, int length) { int prev = 0; // previous byte int presLength = 0; // Current length of bytes decoded int max = length + startIndex; - int x = 0; int resIndex = 0; for (int i = startIndex; i < max; i++) { - x = byteArry[i]; + int x = byteArry[i]; switch (++curState) { case 1: resArry[resIndex++] = dataArry[(x >> 2) & 0x3f]; @@ -97,13 +96,14 @@ public static String encode(byte[] byteArry, int startIndex, int length) { case 1: resArry[resIndex++] = dataArry[(prev << 4) & 0x30]; resArry[resIndex++] = (byte)'='; - resArry[resIndex++] = (byte)'='; + resArry[resIndex] = (byte)'='; break; case 2: resArry[resIndex++] = dataArry[(prev << 2) & 0x3c]; - resArry[resIndex++] = (byte)'='; + resArry[resIndex] = (byte)'='; break; } + return new String(resArry); } From 61978d7470e5c9abd19d1c2b858f2716f1fb8235 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:44:55 -0700 Subject: [PATCH 028/338] IntelliJ: Fix warnings in Base64EncoderStream --- .../webservices/data/Base64EncoderStream.java | 105 +++++++----------- 1 file changed, 41 insertions(+), 64 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index d4480d265..ce47ce5fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -44,28 +44,8 @@ private static char encode(byte uc) { * @return true, if is base64 */ private static boolean isBase64(char c) { - if (c >= 'A' && c <= 'Z') { - return true; - } - if (c >= 'a' && c <= 'z') { - return true; - } - if (c >= '0' && c <= '9') { - return true; - } - if (c == '+') { - return true; - } - - if (c == '/') { - return true; - } - - if (c == '=') { - return true; - } - - return false; + return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || + c == '+' || c == '/' || c == '='; } /** @@ -100,19 +80,17 @@ private static byte decode(char c) { * @return the string */ public static String encode(byte[] vby) { - - StringBuffer retval = new StringBuffer(); - String retValString = retval.toString(); if (vby.length == 0) { - return retValString; + return ""; } - for (int i = 0; i < vby.length; i += 3) { + StringBuilder encodedString = new StringBuilder(); - byte by1 = 0; + for (int i = 0; i < vby.length; i += 3) { + byte by1 = vby[i]; byte by2 = 0; byte by3 = 0; - by1 = vby[i]; + if (i + 1 < vby.length) { by2 = vby[i + 1]; } @@ -120,57 +98,56 @@ public static String encode(byte[] vby) { if (i + 2 < vby.length) { by3 = vby[i + 2]; } - byte by4 = 0; - byte by5 = 0; - byte by6 = 0; - byte by7 = 0; - by4 = (byte)(by1 >> 2); - by5 = (byte)(((by1 & 0x3) << 4) | (by2 >> 4)); - by6 = (byte)(((by2 & 0xf) << 2) | (by3 >> 6)); - by7 = (byte)(by3 & 0x3f); - retval.append(encode(by4)); - retval.append(encode(by5)); + byte by4 = (byte)(by1 >> 2); + byte by5 = (byte)(((by1 & 0x3) << 4) | (by2 >> 4)); + byte by6 = (byte)(((by2 & 0xf) << 2) | (by3 >> 6)); + byte by7 = (byte)(by3 & 0x3f); + + encodedString.append(encode(by4)); + encodedString.append(encode(by5)); + if (i + 1 < vby.length) { - retval.append(encode(by6)); + encodedString.append(encode(by6)); } else { - retval.append("="); + encodedString.append("="); } if (i + 2 < vby.length) { - retval.append(encode(by7)); + encodedString.append(encode(by7)); } else { - retval.append("="); + encodedString.append("="); } if (i % (76 / 4 * 3) == 0) { - retval.append("\r\n"); + encodedString.append("\r\n"); } } - retValString = retval.toString(); - return retValString; + return encodedString.toString(); } /** * Decode. * - * @param dstr - * the _str + * @param stringToDecode + * the string to decode. * @return size */ - public static byte[] decode(String dstr) { - StringBuffer str = new StringBuffer(); - for (int j = 0; j < dstr.length(); j++) { - if (isBase64(dstr.charAt(j))) { - str.append(dstr.charAt(j)); + public static byte[] decode(String stringToDecode) { + StringBuilder str = new StringBuilder(); + for (int j = 0; j < stringToDecode.length(); j++) { + if (isBase64(stringToDecode.charAt(j))) { + str.append(stringToDecode.charAt(j)); } } - Vector retval = new Vector(); + + Vector byteVector = new Vector(); if (str.length() == 0) { - return new byte[retval.size()]; + return new byte[byteVector.size()]; } + for (int i = 0; i < str.length(); i += 4) { - char c1 = 'A', c2 = 'A', c3 = 'A', c4 = 'A'; + char c1, c2 = 'A', c3 = 'A', c4 = 'A'; c1 = str.charAt(i); if (i + 1 < str.length()) { c2 = str.charAt(i + 1); @@ -184,27 +161,27 @@ public static byte[] decode(String dstr) { c4 = str.charAt(i + 3); } - byte by1 = 0, by2 = 0, by3 = 0, by4 = 0; + byte by1, by2, by3, by4; by1 = decode(c1); by2 = decode(c2); by3 = decode(c3); by4 = decode(c4); - retval.add(Byte.valueOf((byte)((byte)(by1 << 2) | (byte)(by2 >> 4)))); + byteVector.add((byte) ((byte) (by1 << 2) | (byte) (by2 >> 4))); if (c3 != '=') { - retval.add(Byte.valueOf((byte)(((by2 & 0xf) << 4) | (by3 >> 2)))); + byteVector.add((byte) (((by2 & 0xf) << 4) | (by3 >> 2))); } if (c4 != '=') { - retval.add(Byte.valueOf((byte)(((by3 & 0x3) << 6) | by4))); + byteVector.add((byte) (((by3 & 0x3) << 6) | by4)); } } - byte[] byteArry = new byte[retval.size()]; - for (int i = 0; i < retval.size(); i++) { - byteArry[i] = retval.get(i); + byte[] byteArray = new byte[byteVector.size()]; + for (int i = 0; i < byteVector.size(); i++) { + byteArray[i] = byteVector.get(i); } - return byteArry; + return byteArray; } } From 209d1e74ba298309f2b686df07d4979df140c99d Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:47:51 -0700 Subject: [PATCH 029/338] IntelliJ: Fix warnings in CallableSingleton --- .../exchange/webservices/data/CallableSingleTon.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java index 3e8657483..167c9e2be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java @@ -5,20 +5,13 @@ * Defines the CallableSingleTon.java. **************************************************************************/ package microsoft.exchange.webservices.data; -import java.io.ByteArrayOutputStream; -import java.io.OutputStream; import java.util.concurrent.*; -import java.util.*; public class CallableSingleTon { static ExecutorService es; - static ExecutorService getExecutor(){ + + static ExecutorService getExecutor(){ es = Executors.newFixedThreadPool(3); - return es; - } - - - } From 023a9599d6fb0f05622013d59b2f26538e537f4e Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:49:52 -0700 Subject: [PATCH 030/338] IntelliJ: Delete unused class ComparisonHelpers --- .../webservices/data/ComparisonHelpers.java | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java deleted file mode 100644 index 0753190a5..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonHelpers.java +++ /dev/null @@ -1,35 +0,0 @@ -/************************************************************************** - * copyright file="AttendeeCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComparisonHelpers.java. -**************************************************************************/ -package microsoft.exchange.webservices.data; - -import java.util.ArrayList; - -/** - * Represents a set of helper methods for performing string comparisons. - */ -class ComparisonHelpers { - - /** - * Case insensitive check if the collection contains the string. - * @param collection The collection of objects, only strings are checked - * @param match String to match - * @return true, if match contained in the collection - */ - protected static boolean caseInsensitiveContains(ArrayList collection, - String match) { - for(Object obj :collection) { - String str = (String)obj; - if (str != null) { - if (str.equalsIgnoreCase(match)) { - return true; - } - } - } - - return false; - } -} From 835600ea3e8a3fb40e4cb17b195c0d9e605d7aaa Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 22 Sep 2014 20:58:53 -0700 Subject: [PATCH 031/338] IntelliJ: Fix warnings in ComplexProperty --- .../webservices/data/ComplexProperty.java | 75 +++++++------------ 1 file changed, 26 insertions(+), 49 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index 475da0f1e..9289fb1ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -76,11 +76,7 @@ protected boolean canSetFieldValue(T field, T value) { } else { if (field instanceof Comparable) { Comparable c = (Comparable)field; - if(value != null){ - applyChange = c.compareTo(value) != 0; - } else { - applyChange = false; - } + applyChange = value != null && c.compareTo(value) != 0; } else { applyChange = true; } @@ -139,7 +135,6 @@ protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) * True if element was read. * */ - protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception { return false; @@ -208,39 +203,32 @@ protected void loadFromXml(EwsServiceXmlReader reader, reader.isEndElement(xmlNamespace, xmlElementName); } */ - this.internalLoadFromXml(reader, xmlNamespace, xmlElementName, false); - - + this.internalLoadFromXml(reader, xmlNamespace, xmlElementName); } - /** - * Loads from XML to update this property. - * - *@param reader The reader. - *@param xmlElementName Name of the XML element. - * @throws Exception - */ - - protected void updateFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception - { + /** + * Loads from XML to update this property. + * + * @param reader The reader. + * @param xmlElementName Name of the XML element. + * @throws Exception + */ + protected void updateFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception { this.updateFromXml(reader, this.getNamespace(), xmlElementName); - } - - /** - * Loads from XML to update itself. - * - *@param reader The reader. - *@param xmlNamespace The XML namespace. - *@param xmlElementName Name of the XML element. - */ + + /** + * Loads from XML to update itself. + * + * @param reader The reader. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + */ protected void updateFromXml( EwsServiceXmlReader reader, XmlNamespace xmlNamespace, - String xmlElementName) throws Exception - { - this.internalupdateLoadFromXml(reader, xmlNamespace, xmlElementName, - false); + String xmlElementName) throws Exception { + this.internalupdateLoadFromXml(reader, xmlNamespace, xmlElementName); } /** @@ -248,13 +236,11 @@ protected void updateFromXml( * @param reader The Reader. * @param xmlNamespace The Xml NameSpace. * @param xmlElementName The Xml ElementName - * @param readValue The read value. */ private void internalLoadFromXml( EwsServiceXmlReader reader, XmlNamespace xmlNamespace, - String xmlElementName, - boolean readValue)throws Exception + String xmlElementName) throws Exception { reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); @@ -285,8 +271,7 @@ private void internalLoadFromXml( private void internalupdateLoadFromXml( EwsServiceXmlReader reader, XmlNamespace xmlNamespace, - String xmlElementName, - boolean readValue)throws Exception + String xmlElementName) throws Exception { reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); @@ -309,8 +294,7 @@ private void internalupdateLoadFromXml( } while (!reader.isEndElement(xmlNamespace, xmlElementName)); } } - - + /** * Loads from XML. * @@ -407,7 +391,6 @@ protected void clearChangeEvents() { */ public void validate() throws ServiceValidationException, Exception { this.internalValidate(); - } /** @@ -417,16 +400,10 @@ public void validate() throws ServiceValidationException, Exception { * the service validation exception * @throws Exception */ - protected void internalValidate() - throws ServiceValidationException, Exception { + protected void internalValidate() throws ServiceValidationException, Exception { } - public Boolean func(EwsServiceXmlReader reader) - throws Exception { - if (!this.tryReadElementFromXml(reader)) - return true; - else return false; - + public Boolean func(EwsServiceXmlReader reader) throws Exception { + return !this.tryReadElementFromXml(reader); } - } From 6efd18b62b72581a7245913a2b728e7a1154d6af Mon Sep 17 00:00:00 2001 From: jimdunkerton Date: Tue, 23 Sep 2014 08:40:01 +0100 Subject: [PATCH 032/338] Fix for issue #53 : MeetingMessage should expose its properties. --- .../webservices/data/MeetingMessage.java | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index 8aebb1210..4e001897e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -6,6 +6,8 @@ **************************************************************************/ package microsoft.exchange.webservices.data; +import java.util.Date; + /** * Represents a meeting-related message. Properties available on meeting * messages are defined in the MeetingMessageSchema class. @@ -98,5 +100,107 @@ protected ServiceObjectSchema getSchema() { protected ExchangeVersion getMinimumRequiredServerVersion() { return ExchangeVersion.Exchange2007_SP1; } + + /** + * Gets the associated appointment ID. + * + * @return the associated appointment ID. + * @throws ServiceLocalException + * the service local exception + */ + public ItemId getAssociatedAppointmentId() + throws ServiceLocalException { + return (ItemId) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.AssociatedAppointmentId); + } + + /** + * Gets whether the meeting message has been processed. + * + * @return whether the meeting message has been processed. + * @throws ServiceLocalException + * the service local exception + */ + public Boolean getHasBeenProcessed() + throws ServiceLocalException { + return (Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.HasBeenProcessed); + } + + /** + * Gets the response type indicated by this meeting message. + * + * @return the response type indicated by this meeting message. + * @throws ServiceLocalException + * the service local exception + */ + public MeetingResponseType getResponseType() + throws ServiceLocalException { + return (MeetingResponseType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.ResponseType); + } + + /** + * Gets the ICalendar Uid. + * + * @return the ical uid + * @throws ServiceLocalException + * the service local exception + */ + public String getICalUid() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalUid); + } + + /** + * Gets the ICalendar RecurrenceId. + * + * @return the ical recurrence id + * @throws ServiceLocalException + * the service local exception + */ + public Date getICalRecurrenceId() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalRecurrenceId); + } + + /** + * Gets the ICalendar DateTimeStamp. + * + * @return the ical date time stamp + * @throws ServiceLocalException + * the service local exception + */ + public Date getICalDateTimeStamp() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalDateTimeStamp); + } + + /** + * Gets the IsDelegated property. + * + * @return True if delegated; false otherwise. + * @throws ServiceLocalException + * the service local exception + */ + public Boolean getIsDelegated() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.IsDelegated); + } + + /** + * Gets the IsOutOfDate property. + * + * @return True if out of date; false otherwise. + * @throws ServiceLocalException + * the service local exception + */ + public Boolean getIsOutOfDate() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.IsOutOfDate); + } } From 7fb0bb665f9ac85445a748ff3863ea8bfc7a72c4 Mon Sep 17 00:00:00 2001 From: Bob Potter Date: Sat, 20 Sep 2014 17:01:51 -0700 Subject: [PATCH 033/338] Only call handle response once. Prevents duplicate notifications when streaming events. --- .../webservices/data/HangingServiceRequestBase.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index fe76707fe..fc8bb0abf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -253,11 +253,11 @@ private void parseResponses(Object state) { while (this.isConnected()) { Object responseObject = null; - if(traceEWSResponse){ + if(traceEWSResponse) { /*try{*/ EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); responseObject = this.readResponse(ewsXmlReader); - //this.responseHandler.handleResponseObject(responseObject); + this.responseHandler.handleResponseObject(responseObject); /* }catch(Exception ex){ this.disconnect(HangingRequestDisconnectReason.Exception, ex); return; @@ -274,16 +274,11 @@ private void parseResponses(Object state) { responseCopy = new ByteArrayOutputStream(); tracingStream.setResponseCopy(responseCopy); - } - else { + } else { EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); responseObject = this.readResponse(ewsXmlReader); this.responseHandler.handleResponseObject(responseObject); } - - - this.responseHandler.handleResponseObject(responseObject); - } } From 2e2ec8bb13804c49d50472f9c2cea738bdce0948 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Fri, 26 Sep 2014 11:20:56 -0700 Subject: [PATCH 034/338] Fix #79: License confusion --- .../data/AbsoluteDateTransition.java | 11 +++++++---- .../data/AbsoluteDayOfMonthTransition.java | 11 +++++++---- .../data/AbsoluteMonthTransition.java | 11 +++++++---- .../data/AbstractAsyncCallback.java | 12 ++++++++---- .../data/AbstractFolderIdWrapper.java | 12 ++++++++---- .../data/AbstractItemIdWrapper.java | 12 ++++++++---- .../data/AcceptMeetingInvitationMessage.java | 12 ++++++++---- .../data/AccountIsLockedException.java | 12 ++++++++---- .../webservices/data/AddDelegateRequest.java | 12 ++++++++---- .../data/AffectedTaskOccurrence.java | 12 ++++++++---- .../webservices/data/AggregateType.java | 12 ++++++++---- .../exchange/webservices/data/AlternateId.java | 12 ++++++++---- .../webservices/data/AlternateIdBase.java | 12 ++++++++---- .../webservices/data/AlternateMailbox.java | 12 ++++++++---- .../data/AlternateMailboxCollection.java | 12 ++++++++---- .../data/AlternatePublicFolderId.java | 12 ++++++++---- .../data/AlternatePublicFolderItemId.java | 12 ++++++++---- .../data/ApplyConversationActionRequest.java | 12 ++++++++---- .../exchange/webservices/data/Appointment.java | 12 ++++++++---- .../data/AppointmentOccurrenceId.java | 12 ++++++++---- .../webservices/data/AppointmentSchema.java | 12 ++++++++---- .../webservices/data/AppointmentType.java | 12 ++++++++---- .../webservices/data/ArgumentException.java | 12 ++++++++---- .../data/ArgumentNullException.java | 12 ++++++++---- .../data/ArgumentOutOfRangeException.java | 12 ++++++++---- .../webservices/data/AsyncCallback.java | 12 ++++++++---- .../data/AsyncCallbackImplementation.java | 11 +++++++---- .../webservices/data/AsyncExecutor.java | 12 ++++++++---- .../webservices/data/AsyncRequestResult.java | 12 ++++++++---- .../exchange/webservices/data/Attachable.java | 11 +++++++---- .../exchange/webservices/data/Attachment.java | 12 ++++++++---- .../webservices/data/AttachmentCollection.java | 12 ++++++++---- .../data/AttachmentsPropertyDefinition.java | 12 ++++++++---- .../exchange/webservices/data/Attendee.java | 12 ++++++++---- .../webservices/data/AttendeeAvailability.java | 12 ++++++++---- .../webservices/data/AttendeeCollection.java | 12 ++++++++---- .../webservices/data/AttendeeInfo.java | 11 +++++++---- .../data/AutodiscoverDnsClient.java | 12 ++++++++---- .../data/AutodiscoverEndpoints.java | 12 ++++++++---- .../webservices/data/AutodiscoverError.java | 12 ++++++++---- .../data/AutodiscoverErrorCode.java | 12 ++++++++---- .../data/AutodiscoverLocalException.java | 12 ++++++++---- .../data/AutodiscoverRemoteException.java | 12 ++++++++---- .../webservices/data/AutodiscoverRequest.java | 12 ++++++++---- .../webservices/data/AutodiscoverResponse.java | 12 ++++++++---- .../data/AutodiscoverResponseCollection.java | 12 ++++++++---- .../data/AutodiscoverResponseException.java | 12 ++++++++---- .../data/AutodiscoverResponseType.java | 12 ++++++++---- .../webservices/data/AutodiscoverService.java | 12 ++++++++---- .../webservices/data/AvailabilityData.java | 12 ++++++++---- .../webservices/data/AvailabilityOptions.java | 11 +++++++---- .../exchange/webservices/data/Base64.java | 12 ++++++++---- .../webservices/data/Base64EncoderStream.java | 12 ++++++++---- .../webservices/data/BasePropertySet.java | 12 ++++++++---- .../exchange/webservices/data/BodyType.java | 11 +++++++---- .../data/BoolPropertyDefinition.java | 12 ++++++++---- .../webservices/data/ByteArrayArray.java | 11 +++++++---- .../data/ByteArrayOSRequestEntity.java | 12 ++++++++---- .../data/ByteArrayPropertyDefinition.java | 12 ++++++++---- .../data/CalendarActionResults.java | 12 ++++++++---- .../webservices/data/CalendarEvent.java | 12 ++++++++---- .../webservices/data/CalendarEventDetails.java | 11 +++++++---- .../webservices/data/CalendarFolder.java | 12 ++++++++---- .../data/CalendarResponseMessage.java | 12 ++++++++---- .../data/CalendarResponseMessageBase.java | 12 ++++++++---- .../data/CalendarResponseObjectSchema.java | 12 ++++++++---- .../webservices/data/CalendarView.java | 12 ++++++++---- .../webservices/data/CallableMethod.java | 12 ++++++++++++ .../webservices/data/CallableSingleTon.java | 12 ++++++++---- .../exchange/webservices/data/Callback.java | 12 ++++++++---- .../webservices/data/CancelMeetingMessage.java | 12 ++++++++---- .../data/CancelMeetingMessageSchema.java | 12 ++++++++---- .../exchange/webservices/data/Change.java | 12 ++++++++---- .../webservices/data/ChangeCollection.java | 12 ++++++++---- .../exchange/webservices/data/ChangeType.java | 12 ++++++++---- .../data/ClientCertificateCredentials.java | 12 ++++++++---- .../webservices/data/ComparisonMode.java | 12 ++++++++---- .../webservices/data/CompleteName.java | 12 ++++++++---- .../data/ComplexFunctionDelegate.java | 14 ++++++++------ .../webservices/data/ComplexProperty.java | 12 ++++++++---- .../data/ComplexPropertyCollection.java | 12 ++++++++---- .../data/ComplexPropertyDefinition.java | 12 ++++++++---- .../data/ComplexPropertyDefinitionBase.java | 14 +++++++++----- .../data/ConfigurationSettingsBase.java | 12 ++++++++---- .../exchange/webservices/data/Conflict.java | 13 ++++++++----- .../data/ConflictResolutionMode.java | 12 ++++++++---- .../webservices/data/ConflictType.java | 12 ++++++++---- .../webservices/data/ConnectingIdType.java | 12 ++++++++---- .../data/ConnectionFailureCause.java | 12 ++++++++---- .../exchange/webservices/data/Contact.java | 12 ++++++++---- .../webservices/data/ContactGroup.java | 12 ++++++++---- .../webservices/data/ContactGroupSchema.java | 12 ++++++++---- .../webservices/data/ContactSchema.java | 12 ++++++++---- .../webservices/data/ContactSource.java | 14 +++++++++----- .../webservices/data/ContactsFolder.java | 12 ++++++++---- .../data/ContainedPropertyDefinition.java | 11 +++++++---- .../webservices/data/ContainmentMode.java | 12 ++++++++---- .../webservices/data/Conversation.java | 13 ++++++++----- .../webservices/data/ConversationAction.java | 12 ++++++++---- .../data/ConversationActionType.java | 12 ++++++++---- .../data/ConversationFlagStatus.java | 12 ++++++++---- .../webservices/data/ConversationId.java | 12 ++++++++---- .../data/ConversationIndexedItemView.java | 12 ++++++++---- .../webservices/data/ConversationSchema.java | 12 ++++++++---- .../exchange/webservices/data/Convert.java | 12 ++++++++---- .../webservices/data/ConvertIdRequest.java | 12 ++++++++---- .../webservices/data/ConvertIdResponse.java | 12 ++++++++---- .../webservices/data/CopyFolderRequest.java | 12 ++++++++---- .../webservices/data/CopyItemRequest.java | 12 ++++++++---- .../data/CreateAttachmentException.java | 12 ++++++++---- .../data/CreateAttachmentRequest.java | 12 ++++++++---- .../data/CreateAttachmentResponse.java | 11 +++++++---- .../webservices/data/CreateFolderRequest.java | 12 ++++++++---- .../webservices/data/CreateFolderResponse.java | 12 ++++++++---- .../webservices/data/CreateItemRequest.java | 12 ++++++++---- .../data/CreateItemRequestBase.java | 12 ++++++++---- .../webservices/data/CreateItemResponse.java | 11 +++++++---- .../data/CreateItemResponseBase.java | 11 +++++++---- .../webservices/data/CreateRequest.java | 12 ++++++++---- .../data/CreateResponseObjectRequest.java | 12 ++++++++---- .../data/CreateResponseObjectResponse.java | 12 ++++++++---- .../webservices/data/CreateRuleOperation.java | 12 ++++++++---- .../data/CreateUserConfigurationRequest.java | 12 ++++++++---- .../webservices/data/CredentialConstants.java | 12 ++++++++---- .../webservices/data/DateTimePrecision.java | 12 ++++++++---- .../data/DateTimePropertyDefinition.java | 12 ++++++++---- .../webservices/data/DayOfTheWeek.java | 12 ++++++++---- .../data/DayOfTheWeekCollection.java | 12 ++++++++---- .../webservices/data/DayOfTheWeekIndex.java | 12 ++++++++---- .../data/DeclineMeetingInvitationMessage.java | 12 ++++++++---- .../data/DefaultExtendedPropertySet.java | 12 ++++++++---- .../data/DelegateFolderPermissionLevel.java | 12 ++++++++---- .../webservices/data/DelegateInformation.java | 12 ++++++++---- .../data/DelegateManagementRequestBase.java | 12 ++++++++---- .../data/DelegateManagementResponse.java | 12 ++++++++---- .../webservices/data/DelegatePermissions.java | 12 ++++++++---- .../webservices/data/DelegateUser.java | 12 ++++++++---- .../webservices/data/DelegateUserResponse.java | 12 ++++++++---- .../data/DeleteAttachmentException.java | 12 ++++++++---- .../data/DeleteAttachmentRequest.java | 12 ++++++++---- .../data/DeleteAttachmentResponse.java | 11 +++++++---- .../webservices/data/DeleteFolderRequest.java | 12 ++++++++---- .../webservices/data/DeleteItemRequest.java | 12 ++++++++---- .../exchange/webservices/data/DeleteMode.java | 12 ++++++++---- .../webservices/data/DeleteRequest.java | 12 ++++++++---- .../webservices/data/DeleteRuleOperation.java | 12 ++++++++---- .../data/DeleteUserConfigurationRequest.java | 12 ++++++++---- .../data/DeletedOccurrenceInfo.java | 12 ++++++++---- .../data/DeletedOccurrenceInfoCollection.java | 11 +++++++---- .../data/DictionaryEntryProperty.java | 12 ++++++++---- .../webservices/data/DictionaryProperty.java | 12 ++++++++---- .../data/DisconnectPhoneCallRequest.java | 11 +++++++---- .../exchange/webservices/data/DnsClient.java | 11 +++++++---- .../webservices/data/DnsException.java | 11 +++++++---- .../exchange/webservices/data/DnsRecord.java | 11 +++++++---- .../webservices/data/DnsRecordType.java | 12 ++++++++---- .../webservices/data/DnsSrvRecord.java | 11 +++++++---- .../webservices/data/DomainSettingError.java | 12 ++++++++---- .../webservices/data/DomainSettingName.java | 12 ++++++++---- .../data/DoublePropertyDefinition.java | 12 ++++++++---- .../webservices/data/EWSConstants.java | 12 ++++++++---- .../webservices/data/EWSHttpException.java | 12 ++++++++---- .../webservices/data/EditorBrowsable.java | 12 ++++++++---- .../webservices/data/EditorBrowsableState.java | 12 ++++++++---- .../webservices/data/EffectiveRights.java | 12 ++++++++---- .../EffectiveRightsPropertyDefinition.java | 12 ++++++++---- .../webservices/data/EmailAddress.java | 12 ++++++++---- .../data/EmailAddressCollection.java | 12 ++++++++---- .../data/EmailAddressDictionary.java | 12 ++++++++---- .../webservices/data/EmailAddressEntry.java | 12 ++++++++---- .../webservices/data/EmailAddressKey.java | 12 ++++++++---- .../webservices/data/EmailMessage.java | 12 ++++++++---- .../webservices/data/EmailMessageSchema.java | 14 +++++++++----- .../webservices/data/EmptyFolderRequest.java | 12 ++++++++---- .../data/EndDateRecurrenceRange.java | 12 ++++++++---- .../exchange/webservices/data/EventType.java | 12 ++++++++---- .../exchange/webservices/data/EwsEnum.java | 12 ++++++++---- .../webservices/data/EwsJCIFSNTLMScheme.java | 12 ++++++++---- .../data/EwsSSLProtocolSocketFactory.java | 12 ++++++++---- .../data/EwsServiceMultiResponseXmlReader.java | 12 ++++++++---- .../webservices/data/EwsServiceXmlReader.java | 11 +++++++---- .../webservices/data/EwsServiceXmlWriter.java | 12 ++++++++---- .../webservices/data/EwsTraceListener.java | 12 ++++++++---- .../webservices/data/EwsUtilities.java | 12 ++++++++---- .../webservices/data/EwsX509TrustManager.java | 12 ++++++++---- .../webservices/data/EwsXmlReader.java | 12 ++++++++---- .../webservices/data/ExchangeCredentials.java | 12 ++++++++---- .../webservices/data/ExchangeServerInfo.java | 12 ++++++++---- .../webservices/data/ExchangeService.java | 12 ++++++++---- .../webservices/data/ExchangeServiceBase.java | 12 ++++++++---- .../webservices/data/ExchangeVersion.java | 14 +++++++++----- .../data/ExecuteDiagnosticMethodRequest.java | 12 ++++++++---- .../data/ExecuteDiagnosticMethodResponse.java | 12 ++++++++---- .../webservices/data/ExpandGroupRequest.java | 14 +++++++++----- .../webservices/data/ExpandGroupResponse.java | 12 ++++++++---- .../webservices/data/ExpandGroupResults.java | 12 ++++++++---- .../webservices/data/ExtendedProperty.java | 12 ++++++++---- .../data/ExtendedPropertyCollection.java | 12 ++++++++---- .../data/ExtendedPropertyDefinition.java | 12 ++++++++---- .../webservices/data/FileAsMapping.java | 12 ++++++++---- .../webservices/data/FileAttachment.java | 12 ++++++++---- .../data/FindConversationRequest.java | 12 ++++++++---- .../data/FindConversationResponse.java | 14 +++++++++----- .../webservices/data/FindFolderRequest.java | 12 ++++++++---- .../webservices/data/FindFolderResponse.java | 12 ++++++++---- .../webservices/data/FindFoldersResults.java | 12 ++++++++---- .../webservices/data/FindItemRequest.java | 12 ++++++++---- .../webservices/data/FindItemResponse.java | 12 ++++++++---- .../webservices/data/FindItemsResults.java | 11 +++++++---- .../exchange/webservices/data/FindRequest.java | 12 ++++++++---- .../webservices/data/FlaggedForAction.java | 12 ++++++++---- .../exchange/webservices/data/Flags.java | 10 ++++++++++ .../exchange/webservices/data/Folder.java | 12 ++++++++---- .../webservices/data/FolderChange.java | 12 ++++++++---- .../exchange/webservices/data/FolderEvent.java | 12 ++++++++---- .../exchange/webservices/data/FolderId.java | 12 ++++++++---- .../webservices/data/FolderIdCollection.java | 14 +++++++++----- .../webservices/data/FolderIdWrapper.java | 14 +++++++++----- .../webservices/data/FolderIdWrapperList.java | 12 ++++++++---- .../webservices/data/FolderPermission.java | 12 ++++++++---- .../data/FolderPermissionCollection.java | 12 ++++++++---- .../data/FolderPermissionLevel.java | 12 ++++++++---- .../data/FolderPermissionReadAccess.java | 12 ++++++++---- .../webservices/data/FolderSchema.java | 12 ++++++++---- .../webservices/data/FolderTraversal.java | 12 ++++++++---- .../exchange/webservices/data/FolderView.java | 12 ++++++++---- .../webservices/data/FolderWrapper.java | 12 ++++++++---- .../webservices/data/FormatException.java | 14 +++++++++----- .../webservices/data/FreeBusyViewType.java | 12 ++++++++---- .../data/GenericItemAttachment.java | 12 ++++++++---- .../data/GenericPropertyDefinition.java | 12 ++++++++---- .../webservices/data/GetAttachmentRequest.java | 12 ++++++++---- .../data/GetAttachmentResponse.java | 12 ++++++++---- .../webservices/data/GetDelegateRequest.java | 12 ++++++++---- .../webservices/data/GetDelegateResponse.java | 12 ++++++++---- .../data/GetDomainSettingsRequest.java | 12 ++++++++---- .../data/GetDomainSettingsResponse.java | 12 ++++++++---- .../GetDomainSettingsResponseCollection.java | 12 ++++++++---- .../webservices/data/GetEventsRequest.java | 12 ++++++++---- .../webservices/data/GetEventsResponse.java | 12 ++++++++---- .../webservices/data/GetEventsResults.java | 12 ++++++++---- .../webservices/data/GetFolderRequest.java | 12 ++++++++---- .../webservices/data/GetFolderRequestBase.java | 12 ++++++++---- .../data/GetFolderRequestForLoad.java | 12 ++++++++---- .../webservices/data/GetFolderResponse.java | 12 ++++++++---- .../webservices/data/GetInboxRulesRequest.java | 12 ++++++++---- .../data/GetInboxRulesResponse.java | 12 ++++++++---- .../webservices/data/GetItemRequest.java | 12 ++++++++---- .../webservices/data/GetItemRequestBase.java | 12 ++++++++---- .../data/GetItemRequestForLoad.java | 14 +++++++++----- .../webservices/data/GetItemResponse.java | 14 +++++++++----- .../data/GetPasswordExpirationDateRequest.java | 11 +++++++---- .../GetPasswordExpirationDateResponse.java | 12 ++++++++---- .../webservices/data/GetPhoneCallRequest.java | 14 +++++++++----- .../webservices/data/GetPhoneCallResponse.java | 12 ++++++++---- .../exchange/webservices/data/GetRequest.java | 12 ++++++++---- .../webservices/data/GetRoomListsRequest.java | 12 ++++++++---- .../webservices/data/GetRoomListsResponse.java | 12 ++++++++---- .../webservices/data/GetRoomsRequest.java | 12 ++++++++---- .../webservices/data/GetRoomsResponse.java | 12 ++++++++---- .../data/GetServerTimeZonesRequest.java | 12 ++++++++---- .../data/GetServerTimeZonesResponse.java | 12 ++++++++---- .../exchange/webservices/data/GetStream.java | 11 +++++++---- .../data/GetStreamingEventsRequest.java | 12 ++++++++---- .../data/GetStreamingEventsResponse.java | 12 ++++++++---- .../data/GetStreamingEventsResults.java | 12 ++++++++---- .../data/GetUserAvailabilityRequest.java | 11 +++++++---- .../data/GetUserAvailabilityResults.java | 12 ++++++++---- .../data/GetUserConfigurationRequest.java | 12 ++++++++---- .../data/GetUserConfigurationResponse.java | 12 ++++++++---- .../data/GetUserOofSettingsRequest.java | 11 +++++++---- .../data/GetUserOofSettingsResponse.java | 11 +++++++---- .../data/GetUserSettingsRequest.java | 12 ++++++++---- .../data/GetUserSettingsResponse.java | 12 ++++++++---- .../GetUserSettingsResponseCollection.java | 12 ++++++++---- .../exchange/webservices/data/GroupMember.java | 12 ++++++++---- .../data/GroupMemberCollection.java | 12 ++++++++---- .../data/GroupMemberPropertyDefinition.java | 12 ++++++++---- .../data/GroupedFindItemsResults.java | 12 ++++++++---- .../exchange/webservices/data/Grouping.java | 11 +++++++---- .../webservices/data/HangingTraceStream.java | 14 +++++++++----- .../webservices/data/HttpClientWebRequest.java | 12 ++++++++---- .../webservices/data/HttpErrorException.java | 10 ++++++++++ .../webservices/data/HttpProxyCredentials.java | 12 ++++++++---- .../webservices/data/HttpWebRequest.java | 12 ++++++++---- .../exchange/webservices/data/IAction.java | 10 ++++++++++ .../webservices/data/IAsyncResult.java | 12 ++++++++---- .../data/IAutodiscoverRedirectionUrl.java | 12 ++++++++---- .../data/ICalendarActionProvider.java | 12 ++++++++---- .../data/IComplexPropertyChanged.java | 12 ++++++++---- .../data/IComplexPropertyChangedDelegate.java | 12 ++++++++---- .../data/ICreateComplexPropertyDelegate.java | 12 ++++++++---- ...CreateServiceObjectWithAttachmentParam.java | 12 ++++++++---- .../ICreateServiceObjectWithServiceParam.java | 12 ++++++++---- .../data/ICustomXmlSerialization.java | 12 ++++++++---- .../data/ICustomXmlUpdateSerializer.java | 12 ++++++++---- .../data/IDateTimePropertyDefinition.java | 14 +++++++++----- .../exchange/webservices/data/IDisposable.java | 12 ++++++++---- .../data/IFileAttachmentContentHandler.java | 11 +++++++---- .../exchange/webservices/data/IFunc.java | 12 ++++++++---- .../webservices/data/IFuncDelegate.java | 12 ++++++++---- .../exchange/webservices/data/IFunction.java | 12 ++++++++---- .../webservices/data/IFunctionDelegate.java | 12 ++++++++---- .../data/IGetObjectInstanceDelegate.java | 12 ++++++++---- .../data/IGetPropertyDefinitionCallback.java | 12 ++++++++---- .../exchange/webservices/data/ILazyMember.java | 12 ++++++++---- .../webservices/data/IOwnedProperty.java | 12 ++++++++---- .../exchange/webservices/data/IPredicate.java | 10 ++++++++++ .../data/IPropertyBagChangedDelegate.java | 12 ++++++++---- .../data/ISearchStringProvider.java | 12 ++++++++---- .../webservices/data/ISelfValidate.java | 12 ++++++++---- .../data/IServiceObjectChangedDelegate.java | 12 ++++++++---- .../webservices/data/ITraceListener.java | 12 ++++++++---- .../exchange/webservices/data/IdFormat.java | 12 ++++++++---- .../webservices/data/ImAddressDictionary.java | 12 ++++++++---- .../webservices/data/ImAddressEntry.java | 12 ++++++++---- .../webservices/data/ImAddressKey.java | 12 ++++++++---- .../webservices/data/ImpersonatedUserId.java | 12 ++++++++---- .../exchange/webservices/data/Importance.java | 12 ++++++++---- .../data/IndexedPropertyDefinition.java | 11 +++++++---- .../data/IntPropertyDefinition.java | 12 ++++++++---- .../data/InternetMessageHeader.java | 12 ++++++++---- .../data/InternetMessageHeaderCollection.java | 12 ++++++++---- .../data/InvalidOperationException.java | 12 ++++++++---- .../exchange/webservices/data/Item.java | 12 ++++++++---- .../webservices/data/ItemAttachment.java | 12 ++++++++---- .../exchange/webservices/data/ItemChange.java | 12 ++++++++---- .../webservices/data/ItemCollection.java | 12 ++++++++---- .../exchange/webservices/data/ItemEvent.java | 12 ++++++++---- .../exchange/webservices/data/ItemGroup.java | 12 ++++++++---- .../exchange/webservices/data/ItemId.java | 12 ++++++++---- .../webservices/data/ItemIdCollection.java | 12 ++++++++---- .../webservices/data/ItemIdWrapper.java | 12 ++++++++---- .../webservices/data/ItemIdWrapperList.java | 12 ++++++++---- .../exchange/webservices/data/ItemSchema.java | 12 ++++++++---- .../webservices/data/ItemTraversal.java | 12 ++++++++---- .../exchange/webservices/data/ItemView.java | 12 ++++++++---- .../exchange/webservices/data/ItemWrapper.java | 12 ++++++++---- .../exchange/webservices/data/LazyMember.java | 12 ++++++++---- .../data/LegacyAvailabilityTimeZone.java | 12 ++++++++---- .../data/LegacyAvailabilityTimeZoneTime.java | 12 ++++++++---- .../webservices/data/LegacyFreeBusyStatus.java | 12 ++++++++---- .../webservices/data/LogicalOperator.java | 12 ++++++++---- .../exchange/webservices/data/Mailbox.java | 12 ++++++++---- .../exchange/webservices/data/MailboxType.java | 12 ++++++++---- .../data/ManagedFolderInformation.java | 12 ++++++++---- .../webservices/data/MapiPropertyType.java | 12 ++++++++---- .../webservices/data/MapiTypeConverter.java | 12 ++++++++---- .../webservices/data/MapiTypeConverterMap.java | 12 ++++++++---- .../data/MapiTypeConverterMapEntry.java | 12 ++++++++---- .../webservices/data/MeetingAttendeeType.java | 12 ++++++++---- .../webservices/data/MeetingCancellation.java | 12 ++++++++---- .../webservices/data/MeetingMessage.java | 12 ++++++++---- .../webservices/data/MeetingMessageSchema.java | 12 ++++++++---- .../webservices/data/MeetingRequest.java | 11 +++++++---- .../webservices/data/MeetingRequestSchema.java | 12 ++++++++---- .../webservices/data/MeetingRequestType.java | 12 ++++++++---- .../data/MeetingRequestsDeliveryScope.java | 12 ++++++++---- .../webservices/data/MeetingResponse.java | 12 ++++++++---- .../webservices/data/MeetingResponseType.java | 12 ++++++++---- .../webservices/data/MeetingTimeZone.java | 12 ++++++++---- .../MeetingTimeZonePropertyDefinition.java | 12 ++++++++---- .../webservices/data/MemberStatus.java | 12 ++++++++---- .../exchange/webservices/data/MessageBody.java | 12 ++++++++---- .../webservices/data/MessageDisposition.java | 12 ++++++++---- .../exchange/webservices/data/MimeContent.java | 12 ++++++++---- .../exchange/webservices/data/MobilePhone.java | 12 ++++++++---- .../exchange/webservices/data/Month.java | 12 ++++++++---- .../data/MoveCopyFolderRequest.java | 11 +++++++---- .../data/MoveCopyFolderResponse.java | 12 ++++++++---- .../webservices/data/MoveCopyItemRequest.java | 12 ++++++++---- .../webservices/data/MoveCopyItemResponse.java | 12 ++++++++---- .../webservices/data/MoveCopyRequest.java | 12 ++++++++---- .../webservices/data/MoveFolderRequest.java | 12 ++++++++---- .../webservices/data/MoveItemRequest.java | 12 ++++++++---- .../data/MultiResponseServiceRequest.java | 11 +++++++---- .../webservices/data/NameResolution.java | 12 ++++++++---- .../data/NameResolutionCollection.java | 12 ++++++++---- .../webservices/data/NoEndRecurrenceRange.java | 12 ++++++++---- .../data/NotSupportedException.java | 10 ++++++++++ .../webservices/data/NotificationEvent.java | 12 ++++++++---- .../data/NotificationEventArgs.java | 18 +++++++++--------- .../data/NumberedRecurrenceRange.java | 12 ++++++++---- .../webservices/data/OccurrenceInfo.java | 12 ++++++++---- .../data/OccurrenceInfoCollection.java | 12 ++++++++---- .../webservices/data/OffsetBasePoint.java | 12 ++++++++---- .../webservices/data/OofExternalAudience.java | 11 +++++++---- .../exchange/webservices/data/OofReply.java | 12 ++++++++---- .../exchange/webservices/data/OofSettings.java | 12 ++++++++---- .../exchange/webservices/data/OofState.java | 12 ++++++++---- .../webservices/data/OrderByCollection.java | 12 ++++++++---- .../exchange/webservices/data/OutParam.java | 12 ++++++++---- .../webservices/data/OutlookAccount.java | 12 ++++++++---- .../data/OutlookConfigurationSettings.java | 12 ++++++++---- .../webservices/data/OutlookProtocol.java | 12 ++++++++---- .../webservices/data/OutlookProtocolType.java | 12 ++++++++---- .../exchange/webservices/data/OutlookUser.java | 12 ++++++++---- .../exchange/webservices/data/PagedView.java | 14 ++++++++------ .../exchange/webservices/data/Param.java | 12 ++++++++---- .../webservices/data/PermissionScope.java | 12 ++++++++---- .../exchange/webservices/data/PhoneCall.java | 12 ++++++++---- .../exchange/webservices/data/PhoneCallId.java | 12 ++++++++---- .../webservices/data/PhoneCallState.java | 12 ++++++++---- .../data/PhoneNumberDictionary.java | 12 ++++++++---- .../webservices/data/PhoneNumberEntry.java | 12 ++++++++---- .../webservices/data/PhoneNumberKey.java | 12 ++++++++---- .../data/PhysicalAddressDictionary.java | 12 ++++++++---- .../webservices/data/PhysicalAddressEntry.java | 12 ++++++++---- .../webservices/data/PhysicalAddressIndex.java | 12 ++++++++---- .../webservices/data/PhysicalAddressKey.java | 12 ++++++++---- .../webservices/data/PlayOnPhoneRequest.java | 15 +++++++++------ .../webservices/data/PlayOnPhoneResponse.java | 12 ++++++++---- .../exchange/webservices/data/PostItem.java | 12 ++++++++---- .../webservices/data/PostItemSchema.java | 12 ++++++++---- .../exchange/webservices/data/PostReply.java | 12 ++++++++---- .../webservices/data/PostReplySchema.java | 12 ++++++++---- .../exchange/webservices/data/PropertyBag.java | 12 ++++++++---- .../webservices/data/PropertyDefinition.java | 12 ++++++++---- .../data/PropertyDefinitionBase.java | 14 +++++++++----- .../data/PropertyDefinitionFlags.java | 13 ++++++++----- .../webservices/data/PropertyException.java | 12 ++++++++---- .../exchange/webservices/data/PropertySet.java | 11 +++++++---- .../webservices/data/ProtocolConnection.java | 14 +++++++++----- .../data/ProtocolConnectionCollection.java | 12 ++++++++---- .../webservices/data/PullSubscription.java | 12 ++++++++---- .../webservices/data/PushSubscription.java | 12 ++++++++---- .../exchange/webservices/data/Recurrence.java | 12 ++++++++---- .../data/RecurrencePropertyDefinition.java | 12 ++++++++---- .../webservices/data/RecurrenceRange.java | 14 +++++++++----- .../data/RecurringAppointmentMasterId.java | 14 +++++++++----- .../exchange/webservices/data/RefParam.java | 12 ++++++++---- .../data/RelativeDayOfMonthTransition.java | 12 ++++++++---- .../data/RemoveDelegateRequest.java | 12 ++++++++---- .../webservices/data/RemoveFromCalendar.java | 14 ++++++++------ .../data/RequiredServerVersion.java | 12 ++++++++---- .../data/ResolveNameSearchLocation.java | 12 ++++++++---- .../webservices/data/ResolveNamesRequest.java | 12 ++++++++---- .../webservices/data/ResolveNamesResponse.java | 12 ++++++++---- .../webservices/data/ResponseActions.java | 12 ++++++++---- .../webservices/data/ResponseMessage.java | 12 ++++++++---- .../data/ResponseMessageSchema.java | 12 ++++++++---- .../webservices/data/ResponseMessageType.java | 12 ++++++++---- .../webservices/data/ResponseObject.java | 12 ++++++++---- .../webservices/data/ResponseObjectSchema.java | 12 ++++++++---- .../ResponseObjectsPropertyDefinition.java | 12 ++++++++---- .../exchange/webservices/data/Rule.java | 13 ++++++++----- .../exchange/webservices/data/RuleActions.java | 12 ++++++++---- .../webservices/data/RuleCollection.java | 12 ++++++++---- .../exchange/webservices/data/RuleError.java | 12 ++++++++---- .../webservices/data/RuleErrorCode.java | 12 ++++++++---- .../webservices/data/RuleErrorCollection.java | 12 ++++++++---- .../webservices/data/RuleOperation.java | 14 ++++++++------ .../webservices/data/RuleOperationError.java | 12 ++++++++---- .../data/RuleOperationErrorCollection.java | 15 +++++++++------ .../data/RulePredicateDateRange.java | 12 ++++++++---- .../data/RulePredicateSizeRange.java | 12 ++++++++---- .../webservices/data/RulePredicates.java | 12 ++++++++---- .../webservices/data/RuleProperty.java | 12 ++++++++---- .../webservices/data/SafeXmlDocument.java | 13 ++++++++----- .../webservices/data/SafeXmlFactory.java | 12 +++++++----- .../webservices/data/SafeXmlSchema.java | 14 ++++++++------ .../exchange/webservices/data/Schema.java | 11 +++++++---- .../webservices/data/SearchFilter.java | 12 ++++++++---- .../webservices/data/SearchFolder.java | 12 ++++++++---- .../data/SearchFolderParameters.java | 13 ++++++++----- .../webservices/data/SearchFolderSchema.java | 12 ++++++++---- .../data/SearchFolderTraversal.java | 12 ++++++++---- .../data/SendCancellationsMode.java | 12 ++++++++---- .../webservices/data/SendInvitationsMode.java | 11 +++++++---- .../SendInvitationsOrCancellationsMode.java | 12 ++++++++---- .../webservices/data/SendItemRequest.java | 12 ++++++++---- .../exchange/webservices/data/Sensitivity.java | 12 ++++++++---- .../webservices/data/ServiceError.java | 12 ++++++++---- .../webservices/data/ServiceErrorHandling.java | 12 ++++++++---- .../exchange/webservices/data/ServiceId.java | 12 ++++++++---- .../data/ServiceLocalException.java | 14 +++++++++----- .../webservices/data/ServiceObject.java | 14 +++++++++----- .../data/ServiceObjectDefinition.java | 17 ++++++++--------- .../webservices/data/ServiceObjectInfo.java | 12 ++++++++---- .../data/ServiceObjectPropertyDefinition.java | 14 ++++++++------ .../data/ServiceObjectPropertyException.java | 11 +++++++---- .../webservices/data/ServiceObjectSchema.java | 13 ++++++++----- .../webservices/data/ServiceObjectType.java | 12 ++++++++---- .../data/ServiceRemoteException.java | 13 ++++++++----- .../webservices/data/ServiceRequestBase.java | 15 ++++++++------- .../data/ServiceRequestException.java | 14 +++++++++----- .../webservices/data/ServiceResponse.java | 14 ++++++++------ .../data/ServiceResponseCollection.java | 11 +++++++---- .../data/ServiceResponseException.java | 13 ++++++++----- .../webservices/data/ServiceResult.java | 12 ++++++++---- .../data/ServiceValidationException.java | 13 ++++++++----- .../data/ServiceVersionException.java | 13 ++++++++----- .../ServiceXmlDeserializationException.java | 13 ++++++++----- .../data/ServiceXmlSerializationException.java | 13 ++++++++----- .../webservices/data/SetRuleOperation.java | 12 ++++++++---- .../data/SetUserOofSettingsRequest.java | 12 ++++++++---- .../webservices/data/SimplePropertyBag.java | 13 ++++++++----- .../data/SimpleServiceRequestBase.java | 13 ++++++++----- .../webservices/data/SoapFaultDetails.java | 12 ++++++++---- .../webservices/data/SortDirection.java | 12 ++++++++---- .../webservices/data/StandardUser.java | 12 ++++++++---- .../data/StartTimeZonePropertyDefinition.java | 14 ++++++++------ .../data/StreamingSubscription.java | 12 ++++++++---- .../data/StreamingSubscriptionConnection.java | 12 ++++++++---- .../exchange/webservices/data/StringList.java | 14 +++++++++----- .../data/StringPropertyDefinition.java | 13 +++++++------ .../exchange/webservices/data/Strings.java | 14 +++++++++----- .../webservices/data/SubscribeRequest.java | 12 ++++++++---- .../webservices/data/SubscribeResponse.java | 12 ++++++++---- .../SubscribeToPullNotificationsRequest.java | 12 ++++++++---- .../SubscribeToPushNotificationsRequest.java | 12 ++++++++---- ...bscribeToStreamingNotificationsRequest.java | 12 ++++++++---- .../webservices/data/SubscriptionBase.java | 15 +++++++++------ .../data/SubscriptionErrorEventArgs.java | 13 ++++++++----- .../exchange/webservices/data/Suggestion.java | 13 ++++++++----- .../webservices/data/SuggestionQuality.java | 12 ++++++++---- .../webservices/data/SuggestionsResponse.java | 12 +++++++----- .../webservices/data/SuppressReadReceipt.java | 12 ++++++++---- .../data/SyncFolderHierarchyRequest.java | 12 ++++++++---- .../data/SyncFolderHierarchyResponse.java | 12 ++++++++---- .../data/SyncFolderItemsRequest.java | 12 ++++++++---- .../data/SyncFolderItemsResponse.java | 12 ++++++++---- .../webservices/data/SyncFolderItemsScope.java | 12 ++++++++---- .../webservices/data/SyncResponse.java | 12 ++++++++---- .../exchange/webservices/data/Task.java | 12 +++++++----- .../webservices/data/TaskDelegationState.java | 12 ++++++++---- .../TaskDelegationStatePropertyDefinition.java | 11 +++++++---- .../exchange/webservices/data/TaskMode.java | 12 ++++++++---- .../exchange/webservices/data/TaskSchema.java | 13 ++++++++----- .../exchange/webservices/data/TaskStatus.java | 12 ++++++++---- .../exchange/webservices/data/TasksFolder.java | 12 ++++++++---- .../exchange/webservices/data/Time.java | 12 ++++++++---- .../exchange/webservices/data/TimeChange.java | 12 ++++++++---- .../webservices/data/TimeChangeRecurrence.java | 13 ++++++++----- .../exchange/webservices/data/TimeSpan.java | 12 ++++++++---- .../data/TimeSpanPropertyDefinition.java | 12 ++++++++---- .../webservices/data/TimeSpanTest.java | 12 ++++++++---- .../webservices/data/TimeSuggestion.java | 13 ++++++++----- .../exchange/webservices/data/TimeWindow.java | 13 ++++++++----- .../data/TimeZoneConversionException.java | 12 ++++++++---- .../webservices/data/TimeZoneDefinition.java | 11 +++++++---- .../webservices/data/TimeZonePeriod.java | 13 ++++++++----- .../data/TimeZonePropertyDefinition.java | 14 ++++++++------ .../webservices/data/TimeZoneTransition.java | 13 ++++++++----- .../data/TimeZoneTransitionGroup.java | 13 ++++++++----- .../webservices/data/TokenCredentials.java | 12 ++++++++---- .../exchange/webservices/data/TraceFlags.java | 13 ++++++++----- .../data/TypedPropertyDefinition.java | 14 ++++++++------ .../webservices/data/UnifiedMessaging.java | 13 ++++++++----- .../exchange/webservices/data/UniqueBody.java | 13 ++++++++----- .../webservices/data/UnsubscribeRequest.java | 12 ++++++++---- .../data/UpdateDelegateRequest.java | 12 ++++++++---- .../webservices/data/UpdateFolderRequest.java | 14 ++++++++------ .../webservices/data/UpdateFolderResponse.java | 14 ++++++++------ .../data/UpdateInboxRulesException.java | 12 ++++++++---- .../data/UpdateInboxRulesRequest.java | 13 ++++++++----- .../data/UpdateInboxRulesResponse.java | 12 ++++++++---- .../webservices/data/UpdateItemRequest.java | 12 ++++++++---- .../webservices/data/UpdateItemResponse.java | 12 ++++++++---- .../data/UpdateUserConfigurationRequest.java | 12 ++++++++---- .../webservices/data/UserConfiguration.java | 13 ++++++++----- .../data/UserConfigurationDictionary.java | 12 ++++++++---- .../UserConfigurationDictionaryObjectType.java | 12 ++++++++---- .../data/UserConfigurationProperties.java | 12 ++++++++---- .../exchange/webservices/data/UserId.java | 13 ++++++++----- .../webservices/data/UserSettingError.java | 13 ++++++++----- .../webservices/data/UserSettingName.java | 12 ++++++++---- .../exchange/webservices/data/ViewBase.java | 13 ++++++++----- .../data/WSSecurityBasedCredentials.java | 14 ++++++++------ .../exchange/webservices/data/WaitHandle.java | 12 ++++++++---- .../data/WebAsyncCallStateAnchor.java | 12 ++++++++---- .../webservices/data/WebClientUrl.java | 13 ++++++++----- .../data/WebClientUrlCollection.java | 13 ++++++++----- .../webservices/data/WebCredentials.java | 13 ++++++++----- .../webservices/data/WebExceptionStatus.java | 10 ++++++++++ .../exchange/webservices/data/WebProxy.java | 14 ++++++++------ .../webservices/data/WellKnownFolderName.java | 12 ++++++++---- .../data/WindowsLiveCredentials.java | 10 ++++++++++ .../webservices/data/WorkingHours.java | 13 ++++++++----- .../webservices/data/WorkingPeriod.java | 12 +++++++----- .../webservices/data/XmlAttributeNames.java | 13 ++++++++----- .../webservices/data/XmlDtdException.java | 13 ++++++++----- .../webservices/data/XmlElementNames.java | 13 ++++++++----- .../webservices/data/XmlException.java | 10 ++++++++++ .../webservices/data/XmlNameTable.java | 13 ++++++++----- .../webservices/data/XmlNamespace.java | 13 ++++++++----- .../exchange/webservices/data/XmlNodeType.java | 12 ++++++++---- 587 files changed, 4696 insertions(+), 2429 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java index 8ff52dae6..2568adc09 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AbsoluteDateTransition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbsoluteDateTransition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java index 0c13f6db8..1c3f286cb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AbsoluteDayOfMonthTransition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbsoluteDayOfMonthTransition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java index 19bba3d17..817214c9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AbsoluteMonthTransition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbsoluteMonthTransition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index 51a0990b4..7a71e8b96 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AbstractAsyncCallback.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbstractAsyncCallback.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java index 648eb62d3..d3c78a811 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AbstractFolderIdWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbstractFolderIdWrapper.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java index 48617e503..bd24bb055 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AbstractItemIdWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AbstractItemIdWrapper.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java index f78427708..251c2e738 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AcceptMeetingInvitationMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AcceptMeetingInvitationMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index c84ee8a02..965d58a0c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AccountIsLockedException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AccountIsLockedException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java index b9fd7f02a..7bb615adc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AddDelegateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AddDelegateRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java index 500b9b0f3..c654bdf45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AffectedTaskOccurrence.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AffectedTaskOccurrence.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java index cc91736c5..25c6b9073 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AggregateType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AggregateType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java index 3de50b24d..4667f209e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternateId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternateId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java index f6016112b..63a782d42 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternateIdBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternateIdBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index 8cb7fd236..85fad0d39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternateMailbox.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternateMailbox.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index 1eac80c93..db4752bf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternateMailboxCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternateMailboxCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java index 0e09df3a2..8c3c98087 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternatePublicFolderId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternatePublicFolderId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java index 9e463e3ea..8424cfed0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AlternatePublicFolderItemId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AlternatePublicFolderItemId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java index 151a58948..4999e1cf3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ApplyConversationActionRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ApplyConversationActionRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Appointment.java b/src/main/java/microsoft/exchange/webservices/data/Appointment.java index f36165464..cabcfad3d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Appointment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Appointment.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Appointment.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Appointment.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java index 02e36d047..3df47a913 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AppointmentOccurrenceId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AppointmentOccurrenceId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java index 8f90a06d5..3f9cc7536 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AppointmentSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AppointmentSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java index 66cd12309..1986a43f5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AppointmentType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AppointmentType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 91c86bacf..21ad098c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ArgumentException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ArgumentException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index f4c86efb2..e1f3e8370 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ArgumentNullException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ArgumentNullException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index 30209cccf..eccbdcaec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ArgumentOutOfRangeException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ArgumentOutOfRangeException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index d82fe0243..d268d8837 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AsyncCallback.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AsyncCallback.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index f65b190d1..69e3f852c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AsyncCallbackImplementation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AsyncCallbackImplementation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index 202f58d01..42da296db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AsyncExecutor.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AsyncExecutor.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.ArrayBlockingQueue; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index 94a3cbc98..5195b53db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AsyncRequestResult.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AsyncRequestResult.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.ExecutionException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachable.java b/src/main/java/microsoft/exchange/webservices/data/Attachable.java index 7d2e71d58..294d876f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachable.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachable.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="Attachable.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Attachable.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index a8ca3fc00..6faf99bc4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Attachment.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Attachment.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index 40e13c36e..11f0208ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AttachmentCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AttachmentCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java index f802e7021..a861a95ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AttachmentsPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AttachmentsPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attendee.java b/src/main/java/microsoft/exchange/webservices/data/Attendee.java index d947d430c..bfba47aca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attendee.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attendee.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Attendee.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Attendee.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java index 9dc45f02e..9ea944f86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AttendeeAvailability.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AttendeeAvailability.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java index 10009197d..3daccc22d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AttendeeCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AttendeeCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java index ee74a8f15..d315fb1bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AttendeeInfo.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AttendeeInfo.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index b5554ee73..0644b2700 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverDnsClient.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverDnsClient.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index dc6acbec6..b581d28df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverEndpoints.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverEndpoints.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index 13aa5a138..5d357e553 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java index 91d990ede..cbdc14b1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverErrorCode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverErrorCode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index 19108964e..ab2838a6b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverLocalException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverLocalException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 88a748eeb..236538840 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverRemoteException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverRemoteException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index 8aec469c3..d397b5cfa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java index 319bfe8ea..1eaf71d9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index 0d29fa79f..b45875bf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverResponseCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverResponseCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index 2f05fbecd..a08e3b66d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverResponseException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverResponseException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java index f2f3e7a09..6d677ea83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverResponseType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverResponseType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index b62752cf8..29f3d36aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverService.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AutodiscoverService.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java index fa68541b5..b67397308 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AvailabilityData.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AvailabilityData.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java index 50a68e5a1..1cb3b5ef5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="AvailabilityOptions.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the AvailabilityOptions.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index 015d455e2..d5e1617da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Base64.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Base64.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index ce47ce5fa..7c4942b0a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Base64EncoderStream.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Base64EncoderStream.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Vector; diff --git a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java index f3fdf5303..813acd18b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="BasePropertySet.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the BasePropertySet.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BodyType.java b/src/main/java/microsoft/exchange/webservices/data/BodyType.java index 776206d17..ac078785b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BodyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/BodyType.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="BodyType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the BodyType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java index 75610fa83..0b3f7987c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="BoolPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the BoolPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java index 56bd7cce1..9ded0d216 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="ByteArrayArray.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ByteArrayArray.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index 277b0d1d1..bf3b2b8d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ByteArrayOSRequestEntity.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ByteArrayOSRequestEntity.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index 41966d9a7..24e1826cf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ByteArrayPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ByteArrayPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java index 1d091a0cb..58d99f1df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarActionResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarActionResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java index f57c25d46..8074abd84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarEvent.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarEvent.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java index ed91914d5..74dbd1f71 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="CalendarEventDetails.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarEventDetails.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java index fbb2e1273..5e75ee250 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarFolder.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarFolder.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java index ef7ff082c..9bc59b46f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarResponseMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarResponseMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java index b6c2d7a6e..2c413859a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarResponseMessageBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarResponseMessageBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java index 52565c3e9..44571f63d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarResponseObjectSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarResponseObjectSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java index 4faf3040b..5cfa16b22 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CalendarView.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CalendarView.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index e1fd3e72c..c0e38d2c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -1,6 +1,18 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; + import java.io.IOException; import java.util.concurrent.*; + public class CallableMethod implements Callable { HttpWebRequest request; CallableMethod(HttpWebRequest request){ diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java index 167c9e2be..69d2a0272 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CallableSingleTon.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CallableSingleTon.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index 2db2b900d..de87fdf60 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Callback.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Callback.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java index e2360b941..7d8625ec6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CancelMeetingMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CancelMeetingMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index 28d2d7dac..095b9effc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CancelMeetingMessageSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CancelMeetingMessageSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Change.java b/src/main/java/microsoft/exchange/webservices/data/Change.java index 9943ef90a..85312afbf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Change.java +++ b/src/main/java/microsoft/exchange/webservices/data/Change.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Change.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Change.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java index ead628955..ad6610a8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ChangeCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ChangeCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java index 5bd4bd863..80c3596aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ChangeType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ChangeType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java index b0374d6b2..69761f5d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ClientCertificateCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ClientCertificateCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.net.ssl.TrustManager; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java index c7bb353a0..62cdc4191 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ComparisonMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComparisonMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java index ba9a7dfa0..4a6a3c767 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java +++ b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CompleteName.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CompleteName.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java index 05afc7ac3..9c1d000d8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java @@ -1,12 +1,14 @@ /************************************************************************** - * copyright file="ComplexFunctionDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComplexFunctionDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; - +package microsoft.exchange.webservices.data; interface ComplexFunctionDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index 9289fb1ae..f6ce6841c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ComplexProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComplexProperty.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index 0d710d38e..f5dc1ae48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ComplexPropertyCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComplexPropertyCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index 7e3de9db1..b88837cdc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ComplexPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComplexPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index 4b6f041f7..063c1b688 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ComplexPropertyDefinitionBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ComplexPropertyDefinitionBase.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java index d97ef861b..7bab64850 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConfigurationSettingsBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConfigurationSettingsBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/Conflict.java b/src/main/java/microsoft/exchange/webservices/data/Conflict.java index 908afb3de..67b78f453 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conflict.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conflict.java @@ -1,8 +1,11 @@ -/************************************************************************* - * copyright file="Conflict.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Conflict.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java index aeb257eee..0ad327743 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConflictResolutionMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConflictResolutionMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java index c0ac8904f..d70c251ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConflictType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConflictType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java index 4ba982290..cd6c533a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConnectingIdType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConnectingIdType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java index 6a5258501..813ec27e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConnectionFailureCause.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConnectionFailureCause.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index 5ce350fa6..726c2462e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Contact.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Contact.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java index 6f5b22d57..beff48f06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ContactGroup.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContactGroup.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java index 43c30b174..59cfbca58 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ContactGroupSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContactGroupSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java index 1a8b2fd97..c37d04af2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ContactSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContactSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java index c355a3b4f..ec137465f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ContactSource.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContactSource.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java index ee4ab35f5..181751563 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ContactsFolder.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContactsFolder.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index 508b575ba..3e0a575ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="ContainedPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContainedPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java index 3d1fec111..511679be6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ContainmentMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ContainmentMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index c34453be6..0cae94fc4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -1,10 +1,13 @@ /************************************************************************** - - * copyright file="Conversation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Conversation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java index defc5b93c..48dde52b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationAction.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationAction.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java index 2f4e89e01..0b22d9817 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationActionType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationActionType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java index 3957dd641..ac9a5acae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationFlagStatus.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationFlagStatus.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java index f100e6e2d..0e5f2ebce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java index 9db60e362..2c51ca545 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationIndexedItemView.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationIndexedItemView class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index 55372b0ec..200675232 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConversationSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConversationSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Convert.java b/src/main/java/microsoft/exchange/webservices/data/Convert.java index 2abd78b44..1eee8611a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Convert.java +++ b/src/main/java/microsoft/exchange/webservices/data/Convert.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Convert.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Convert.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java index 6314ea1d1..8a983ff6c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConvertIdRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConvertIdRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java index 8d398ae14..7454f2b17 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ConvertIdResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ConvertIdResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java index 63bd2da1d..4db92b49b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CopyFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CopyFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java index 378c813a6..c05583b6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CopyItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CopyItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index 78760240d..c58304734 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateAttachmentException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateAttachmentException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java index cdd066133..1ce93fc97 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateAttachmentRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateAttachmentRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index ca03a3c89..67e28ae45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="CreateAttachmentResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateAttachmentResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java index 71bfb9dea..b34ec400f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java index b7ed16aa9..bc138cafb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateFolderResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateFolderResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java index cd7f41334..e7b0c0465 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java index 8565191fb..739481802 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateItemRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateItemRequestBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java index 21cb4cc59..45e007639 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="CreateItemResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateItemResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java index a27d21b26..57a1bc43b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="CreateItemResponseBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateItemResponseBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java index 6ecead4a1..af536c0ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java index 6bd4ef75a..0a09b5cee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateResponseObjectRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateResponseObjectRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java index dc9f138c9..5dd7037c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateResponseObjectResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateResponseObjectResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java index dbdb37b7a..459716457 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateRuleOperation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateRuleOperation class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java index d8e5ef57f..cccb8b02d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="CreateUserConfigurationRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CreateUserConfigurationRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java index 98b3f4691..42751ff47 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="AutodiscoverService.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the CredentialConstants.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; //These constants needs to be defined as per user configurations. diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java index 3bc9c8597..5e8b2cdec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DateTimePrecision.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DateTimePrecision.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index 5bfd9bf8e..414a0f56c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DateTimePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DateTimePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index de2574c51..4d7d02115 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DayOfTheWeek.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DayOfTheWeek.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java index 80aa24d61..02bd7c157 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DayOfTheWeekCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DayOfTheWeekCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java index 32cb36fc8..b98dc3679 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DayOfTheWeekIndex.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DayOfTheWeekIndex.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java index b0e7f59cd..fd9f669b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeclineMeetingInvitationMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeclineMeetingInvitationMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java index 5daad3630..86199d1b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DefaultExtendedPropertySet.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DefaultExtendedPropertySet.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java index 0c030fa73..d862b2c33 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateFolderPermissionLevel.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateFolderPermissionLevel.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java index fe85bb7a7..98f3dcd35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateInformation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateInformation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index 4f908a797..d14760231 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateManagementRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateManagementRequestBase class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java index 4e094eca8..93147cd11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateManagementResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateManagementResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 86532ff27..57aaa8e26 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegatePermissions.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegatePermissions.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java index 4653092ae..8c5768684 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateUser.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateUser.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java index 34b95b0cc..3e530f059 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DelegateUserResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DelegateUserResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index 16efdaa75..f66aa1a2d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteAttachmentException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteAttachmentException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java index 8cdd46c60..3a51c66af 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteAttachmentRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteAttachmentRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java index 2b7495ad4..b3439510c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DeleteAttachmentResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteAttachmentResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java index 9c8f539f6..ca15a7e1f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java index 990b64a47..f083a583b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java index 9088079fa..adae92af5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java index fe89d15d1..d2f519a6c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java index c0484cbc1..4267dd8e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteRuleOperation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteRuleOperation class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java index 5ebd3fcac..7b19eed6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeleteUserConfigurationRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeleteUserConfigurationRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java index ce2dde007..20b4ee70f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DeletedOccurrenceInfo.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeletedOccurrenceInfo.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java index 6d5a4b72c..ab195f33a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DeletedOccurrenceInfoCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DeletedOccurrenceInfoCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java index 879efdfaf..43dbfd937 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DictionaryEntryProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DictionaryEntryProperty.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java index 8dfd4c043..d6b55417b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DictionaryProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DictionaryProperty.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index 7523db69b..83f731faf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DisconnectPhoneCallRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DisconnectPhoneCallRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java index f161748a1..f80b076e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DnsClient.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DnsClient.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index 877e3722a..ce7237bc6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DnsException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DnsException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index dfd4b70f4..ac598d124 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DnsRecord.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DnsRecord.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index 2321da58a..24047c49d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DnsRecordType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DnsRecordType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index a6c786244..63759ed06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="DnsSrvRecord.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DnsSrvRecord.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index d1da1d8db..5d3b52b5d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DomainSettingError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DomainSettingError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java index 3ce5d28ce..187c50321 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DomainSettingName.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DomainSettingName.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java index f86955573..7c73544db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="DoublePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the DoublePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index 71cf2c3e3..2e5bb1d01 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EWSConstants.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EWSConstants.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index 6bf7bea09..f8b0b783e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EWSHttpException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EWSHttpException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java index 7b1753cda..99a4d48fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EditorBrowsable.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EditorBrowsable.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java index f52db70f5..1d9cd4519 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EditorBrowsableState.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EditorBrowsableState.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index 997a7144f..bbd78510d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EffectiveRights.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EffectiveRights.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index a0dfaf201..a594c526e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EffectiveRightsPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EffectiveRightsPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 3016c07d4..67234a315 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailAddress.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailAddress.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java index 3c2e8da11..e859d8b6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailAddressCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailAddressCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java index 824bc90d0..210cfbd6c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailAddressDictionary.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailAddressDictionary.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index bf9bd77bc..3a7d64d57 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailAddressEntry.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailAddressEntry.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java index 614c03ac2..70e624d42 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailAddressKey.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailAddressKey.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java index 6208c8964..3a957aa44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmailMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index f4d05c135..4bda4f70e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="EmailMessageSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmailMessageSchema.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java index 78041d6a5..954d9fe0a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EmptyFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EmptyFolderRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * diff --git a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java index 1cdf1f241..2feb99b48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EndDateRecurrenceRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EndDateRecurrenceRange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/EventType.java b/src/main/java/microsoft/exchange/webservices/data/EventType.java index 52c8c9be0..91b6491ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EventType.java +++ b/src/main/java/microsoft/exchange/webservices/data/EventType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EventType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EventType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java index add360196..aaa9b637a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsEnum.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsEnum.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java b/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java index ebf594435..964798e24 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsJCIFSNTLMScheme.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsJCIFSNTLMScheme.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index 0f44d97b1..1d928a255 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsSSLProtocolSocketFactory.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsSSLProtocolSocketFactory.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java index 63452ef61..8d03a8c7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsServiceMultiResponseXmlReader.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsServiceMultiResponseXmlReader.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.BufferedReader; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index d7b0f707b..c78943077 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="EwsServiceXmlReader.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsServiceXmlReader.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java index 903eb8759..b4f5077ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsServiceXmlWriter.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsServiceXmlWriter.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java index 29db8f1e2..85c446a3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsTraceListener.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsTraceListener.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index b2827644e..ed26cfaf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsUtilities.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsUtilities.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java index 997086230..02abbf7e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsX509TrustManager.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsX509TrustManager.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 7842ad2e2..5ef3a12fb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="EwsXmlReader.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsXmlReader.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java index d2ec39793..a49ddddb1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExchangeCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExchangeCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java index 9f0af8275..8df03e0e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExchangeServerInfo.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExchangeServerInfo.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 068f628e6..4a169afb3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExchangeService.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExchangeService.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index bc94fdab3..201e76d1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExchangeServiceBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExchangeServiceBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java index 5562894c9..d93d14ecf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ExchangeVersion.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExchangeVersion.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java index 18a77994d..225d6b30b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExecuteDiagnosticMethodRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExecuteDiagnosticMethodRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index 2549fbb19..b87243678 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExecuteDiagnosticMethodResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExecuteDiagnosticMethodResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java index 11f2c9801..093907716 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ExpandGroupRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExpandGroupRequest.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java index ea22940cf..9b92a5166 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExpandGroupResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExpandGroupResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java index 86af9eb5e..03ae53ddd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExpandGroupResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExpandGroupResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index 99d50d3a4..26b53c397 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExtendedProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExtendedProperty.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 5d15feaf7..6d1fde10e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExtendedPropertyCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExtendedPropertyCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 936df8d9b..c5b587f8a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ExtendedPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ExtendedPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java index 90bc4fc7e..9cbe76820 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FileAsMapping.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FileAsMapping.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index 03324b16e..36291781a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FileAttachment.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FileAttachment.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index 5eb700808..40094254a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindConversationRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindConversationRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index 967c605ca..2cd14f629 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="FindConversationResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindConversationResponse class. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java index 26a7eac4a..f8c8fc18b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index d5d020184..8255cba80 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindFolderResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindFolderResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java index 97a5d4b06..2c8bcf199 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindFoldersResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindFoldersResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java index be6a877b9..ee9658128 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index 523f59bf8..14beb54ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindItemResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindItemResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index f73f917df..18cac917b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="FindItemsResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindItemsResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java index 4744d4dd3..e07dc80e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FindRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FindRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java index 5f3f5ec81..0e48f9a37 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FlaggedForAction.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FlaggedForAction.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Flags.java b/src/main/java/microsoft/exchange/webservices/data/Flags.java index 2c0bf3d49..6c16126bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Flags.java +++ b/src/main/java/microsoft/exchange/webservices/data/Flags.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index e5ef5f48d..4f64304ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Folder.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Folder.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java index eec0fc52e..695b253d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderChange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderChange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java index 20e7fa66f..3f2895c4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderEvent.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderEvent.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderId.java b/src/main/java/microsoft/exchange/webservices/data/FolderId.java index 54a56ce39..e96d42675 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java index 6e5eb9297..4e1f68525 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="FolderIdCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderIdCollection.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java index 8663afd19..4c9d1540f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="FolderIdWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderIdWrapper.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java index 67b4d033f..912002a2b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderIdWrapperList.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderIdWrapperList.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java index 686fc6616..81b53ca2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderPermission.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderPermission.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java index 7a1fcc844..a9caf219d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderPermissionCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderPermissionCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java index 509537cb9..7ae5ec98c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderPermissionLevel.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderPermissionLevel.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; //TODO : Do we want to include more information about diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java index 92cc935ac..d62c545ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderPermissionReadAccess.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderPermissionReadAccess.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java index 92a576bfb..2d8c116fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java index c50e1e374..d06e09256 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderTraversal.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderTraversal.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderView.java b/src/main/java/microsoft/exchange/webservices/data/FolderView.java index 09683ee01..2fe20f394 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderView.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderView.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderView.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderView.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java index f532d98e5..0bef735b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FolderWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FolderWrapper.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index a9c113acd..4f90af932 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="FormatException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FormatException.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java index 6c1225312..e129a9f93 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java +++ b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="FreeBusyViewType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the FreeBusyViewType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java index c59b4d872..6f4310748 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GenericItemAttachment.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GenericItemAttachment.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java index aa986ef8c..9181ea07c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GenericPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GenericPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.ParseException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java index a499d77da..24ec52640 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetAttachmentRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetAttachmentRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index 20d1c14fa..56460c6fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetAttachmentResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetAttachmentResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java index e4ceafe5f..1bf19f11f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetDelegateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetDelegateRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java index 2515d8130..e97c75583 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetDelegateResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetDelegateResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java index 8ff6e530c..ac2e617fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetDomainSettingsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetDomainSettingsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index 8571c3306..5877332d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetDomainSettingsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetDomainSettingsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java index 4daf20d87..ed344643d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetDomainSettingsResponseCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetDomainSettingsResponseCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java index b6c6ec2ca..a97ad5ec5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetEventsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetEventsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java index 9d21753f5..8df24f164 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetEventsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetEventsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java index ce48d5044..9d54bff51 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetEventsResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetEventsResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java index 1e8b98030..3a6f7bc2a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java index 92fb9852b..4f2c62d21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetFolderRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetFolderRequestBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java index 677e0b0a0..196e3a19c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetFolderRequestForLoad.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetFolderRequestForLoad.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index 54575a6c7..9ca80d9a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetFolderResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetFolderResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index d3afa8ec6..a55e233c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetInboxRulesRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetInboxRulesRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java index 6f342bd88..f6d558963 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetInboxRulesResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetInboxRulesResponse class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java index 4c41e5eb3..1909fade1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java index 203640838..34609933f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetItemRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetItemRequestBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java index 1f0f7dbd3..5f5c5bcd3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="GetItemRequestForLoad.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetItemRequestForLoad.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index 3b10ff9b0..8c0ac3801 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="GetItemResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetItemResponse.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index 0bf120ef0..3178016d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="GetPasswordExpirationDateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetPasswordExpirationDateRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java index 832f02795..7d0550ea1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetPasswordExpirationDateResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsServiceMultiResponseXmlReader.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 8197c1fcc..53b6fbc1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="GetPhoneCallRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetPhoneCallRequest.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java index 413c87215..bae8a1263 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetPhoneCallResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetPhoneCallResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java index 555b87507..89232772c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 6aef721b4..46fefcdc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetRoomListsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetRoomListsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java index f0fe698eb..89cf97074 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetRoomListsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetRoomListsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index 3c0c355a2..6189ad071 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetRoomsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetRoomsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java index 4654250ee..12e5ba804 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetRoomsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetRoomsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java index e4b3b5217..6bfa5fdd7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetServerTimeZonesRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetServerTimeZonesRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java index 22864b612..7fa980667 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetServerTimeZonesResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetServerTimeZonesResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStream.java b/src/main/java/microsoft/exchange/webservices/data/GetStream.java index cacfebd8e..01860f71e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStream.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="GetStream.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetStream.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index 576cd0707..c1b149326 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetStreamingEventsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetStreamingEventsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index 3db86f570..6be07fc0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetStreamingEventsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetStreamingEventsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index 498804160..ce61d6e8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetStreamingEventsResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetStreamingEventsResults class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index 5cb9a711c..5f52598b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="GetUserAvailabilityRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserAvailabilityRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java index 482386a82..d70d06c90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserAvailabilityResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserAvailabilityResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java index 1300349a6..616d7e3bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserConfigurationRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserConfigurationRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java index d100ba462..d7bcb5afd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserConfigurationResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserConfigurationResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index c3595312b..a04d3ad6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="GetUserOofSettingsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserOofSettingsRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java index f4ead0954..45fd0a5d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="GetUserOofSettingsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserOofSettingsResponse class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index af734e752..f75b86c86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserSettingsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserSettingsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 47564edae..9943e00d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserSettingsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserSettingsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java index 3ceaf385c..e4bd261ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GetUserSettingsResponseCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GetUserSettingsResponseCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java index 91b061ec0..8e6e320ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GroupMember.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GroupMember.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java index c67932ea2..0b918037b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GroupMemberCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GroupMemberCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index 56df0d5e8..06678c834 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GroupMemberPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GroupMemberPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java index b26d04cc3..49ac0731d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="GroupedFindItemsResults.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the GroupedFindItemsResults.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Grouping.java b/src/main/java/microsoft/exchange/webservices/data/Grouping.java index 543c6a009..efb2d0314 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Grouping.java +++ b/src/main/java/microsoft/exchange/webservices/data/Grouping.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="Grouping.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Grouping.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java index 10f29170e..db36554b1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="HangingTraceStream.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the HangingTraceStream class. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index e107b5023..1a11aeca9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="HttpClientWebRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the HttpClientWebRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.BufferedInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index eb362e738..010be860e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java index 8b67d8f61..8ebd0772d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="HttpProxyCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the HttpProxyCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index b2be1c900..abd4aeb56 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="HttpWebRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the HttpWebRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAction.java b/src/main/java/microsoft/exchange/webservices/data/IAction.java index eb5698b17..195aa9329 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAction.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index b4a609db6..e94807971 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IAsyncResult.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IAsyncResult.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java index dcb54301c..581e47be5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IAutodiscoverRedirectionUrl.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IAutodiscoverRedirectionUrl.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java index 787c34fdc..137fe4720 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICalendarActionProvider.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICalendarActionProvider.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java index 523028965..6d396120b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IComplexPropertyChanged.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IComplexPropertyChanged.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java index fa0090edc..50e5274c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IComplexPropertyChangedDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IComplexPropertyChangedDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java index 0c54ab2b4..5faca9d15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICreateComplexPropertyDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICreateComplexPropertyDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java index fc19e3fd2..ca65dc932 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICreateServiceObjectWithAttachmentParam.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICreateServiceObjectWithAttachmentParam.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java index 816f545df..1d013aa28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICreateServiceObjectWithServiceParam.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICreateServiceObjectWithServiceParam.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java index 421e3a60a..845f5d168 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICustomXmlSerialization.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICustomXmlSerialization.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamWriter; diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java index e731d9a1c..162f5b8f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ICustomXmlUpdateSerializer.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ICustomXmlUpdateSerializer.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java index d539ba4fc..6346fefe5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java @@ -1,14 +1,18 @@ /************************************************************************** - * copyright file="IDateTimePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IDateTimePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * The Interface DateTimePropertyDefinitionInterface. */ - interface IDateTimePropertyDefinition { +interface IDateTimePropertyDefinition { } \ No newline at end of file diff --git a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java index 275f35347..fd5e8d979 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IDisposable.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IDisposable.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java index 7e713301e..3acc9c92b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="IFileAttachmentContentHandler.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IFileAttachmentContentHandler.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunc.java b/src/main/java/microsoft/exchange/webservices/data/IFunc.java index ea8c0f5f5..cea57af01 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunc.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunc.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IFunc.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IFunc.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java index 4851d27cd..bd4ead72a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IFuncDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IFuncDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunction.java b/src/main/java/microsoft/exchange/webservices/data/IFunction.java index 369bf301e..eb02d8358 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunction.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IFunction.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IFunction.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index 2e382eaf4..eb330ef8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IFunctionDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IFunctionDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java index 28f093e14..7f605bea9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IGetObjectInstanceDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IGetObjectInstanceDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java index 15c9b6df2..4e20b5f96 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IGetPropertyDefinitionCallback.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IGetPropertyDefinitionCallback.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index 35a436476..d764937d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ILazyMember.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ILazyMember.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java index 6e45bbc12..af934923f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IOwnedProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IOwnedProperty.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java index b2e350a8d..170e07394 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java index 7381997c2..26e7590c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IPropertyBagChangedDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IPropertyBagChangedDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java index 2d57a5bfb..96c5022a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ISearchStringProvider.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ISearchStringProvider.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java index 9ba4d36cc..861e03107 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ISelfValidate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ISelfValidate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java index 68505963d..090343fe6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IServiceObjectChangedDelegate.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IServiceObjectChangedDelegate.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java index 991acea09..88d3eefcc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ITraceListener.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ITraceListener.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java index 1168125bc..b2836a74e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java +++ b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IdFormat.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IdFormat.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java index 2d987f30a..edde1336d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ImAddressDictionary.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ImAddressDictionary.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java index 2842c9d74..9caadb587 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ImAddressEntry.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ImAddressEntry.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java index 06adeb106..7cf4cdb30 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ImAddressKey.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ImAddressKey.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java index f98632114..3bbcccf85 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ImpersonatedUserId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ImpersonatedUserId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Importance.java b/src/main/java/microsoft/exchange/webservices/data/Importance.java index 10f93f2b7..4d61c646d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Importance.java +++ b/src/main/java/microsoft/exchange/webservices/data/Importance.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Importance.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Importance.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java index 689805261..e5c8e0dcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="IndexedPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IndexedPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java index 439ac178f..c9ec2b003 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="IntPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the IntPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java index 38fdac172..3e775afe7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="InternetMessageHeader.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the InternetMessageHeader.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java index a4e1a2c0c..a314a143c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="InternetMessageHeaderCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the InternetMessageHeaderCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index e367b0e28..c31e8310a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="InvalidOperationException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the InvalidOperationException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Item.java b/src/main/java/microsoft/exchange/webservices/data/Item.java index a8a36bdb0..d259db878 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Item.java +++ b/src/main/java/microsoft/exchange/webservices/data/Item.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Item.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Item.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index bf777bc33..35a59e007 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemAttachment.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemAttachment.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java index f96aa2c6d..ded1edbcb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemChange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemChange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index da7fb88af..c558fe597 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java index 20adb526d..e5b1cae18 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemEvent.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemEvent.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java index 3e781289a..9a71d3670 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemGroup.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemGroup.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemId.java b/src/main/java/microsoft/exchange/webservices/data/ItemId.java index 131ea310a..f22c79a5b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java index 7f541fa5e..6ef591462 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemIdCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemIdCollection class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java index 8d627cad6..e97fc516a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemIdWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemIdWrapper.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java index fcb7e76ac..abf20fb2a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemIdWrapperList.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemIdWrapperList.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index 4d406983b..76f9a4e05 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java index 96c2ab357..9898a9297 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemTraversal.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemTraversal.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemView.java b/src/main/java/microsoft/exchange/webservices/data/ItemView.java index c567ce88e..3e18a5d1d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemView.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemView.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemView.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java index 100a0dc84..1045fbf32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ItemWrapper.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ItemWrapper.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java index 0990732e2..61b408db2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="LazyMember.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the LazyMember.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java index 97ff9201a..4e77da44c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="LegacyAvailabilityTimeZone.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the LegacyAvailabilityTimeZone.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java index 4d76c11cb..083e28e7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="LegacyAvailabilityTimeZoneTime.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the LegacyAvailabilityTimeZoneTime.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 1e707ad2c..5de4cfe6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="LegacyFreeBusyStatus.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the LegacyFreeBusyStatus.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java index ee77a15ea..07246a32c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java +++ b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="LogicalOperator.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the LogicalOperator.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java index fcf1c4da8..9bbd7141e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Mailbox.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Mailbox.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java index 32c31548d..8e27df5ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MailboxType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MailboxType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java index 8ccfbf5d5..776149a94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ManagedFolderInformation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ManagedFolderInformation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java index 1bfa6572b..b68080fad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MapiPropertyType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MapiPropertyType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index 6bdb09a4a..9366a1588 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MapiTypeConverter.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MapiTypeConverter.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index 6fe563944..435009571 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MapiTypeConverterMap.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MapiTypeConverterMap.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index a97e227d1..d164a70b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MapiTypeConverterMapEntry.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MapiTypeConverterMapEntry.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.reflect.Array; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java index 34a070981..2fda2ab49 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingAttendeeType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingAttendeeType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java index 41bd066b4..c1f807527 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingCancellation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingCancellation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index 4e001897e..cb893cfee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index 112ef2e69..603d78d4c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingMessageSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingMessageSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java index a2e7b974a..ba71e588f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="MeetingRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java index a9625e99c..d2adb5f3a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingRequestSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingRequestSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java index 565d9c48c..dd4ef7465 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingRequestType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingRequestType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java index e8d432f90..cbda808e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingRequestsDeliveryScope.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingRequestsDeliveryScope.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java index f02323790..f5a347716 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java index bec653a7a..54ded2ef6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingResponseType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingResponseType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java index e968d95f8..81e3f6457 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingTimeZone.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingTimeZone.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index db2562807..d0f96f6ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MeetingTimeZonePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MeetingTimeZonePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java index 226befa75..b52de8282 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MemberStatus.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MemberStatus.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index 3a0545ee7..04a183b4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MessageBody.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MessageBody.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java index 99b14dbc6..27433641b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MessageDisposition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MessageDisposition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java index f3eb00f1d..b7f12dbf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java +++ b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MimeContent.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MimeContent.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java index c0e6cedc5..c672bd02b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MobilePhone.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Defines the MobilePhone class. class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index f1ffa81b3..155db2be8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Month.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Month.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java index 895c19764..81e66cd26 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="MoveCopyFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveCopyFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index 388eeabb4..e32a784e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveCopyFolderResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveCopyFolderResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java index f55930783..24c768114 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveCopyItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveCopyItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index 209e9d13c..9001bd1b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveCopyItemResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveCopyItemResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java index 05bfee7d2..9ef589b0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveCopyRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveCopyRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java index 497e2c40e..93db66c9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java index 26cfa185d..5fbc6a74f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="MoveItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MoveItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index 379e3bb80..c3ddc984f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="MultiResponseServiceRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the MultiResponseServiceRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java index 559e6d40b..11b5b6cc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="NameResolution.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NameResolution.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java index 50250ab67..0faefd367 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="NameResolutionCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NameResolutionCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java index f20801063..da4d20396 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="NoEndRecurrenceRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NoEndRecurrenceRange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index e11643a39..2a47d5f37 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java index 3787cedf3..67471b5ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="NotificationEvent.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NotificationEvent.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java index a12af7b38..72617f954 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java @@ -1,20 +1,20 @@ /************************************************************************** - * copyright file="NotificationEventArgs.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NotificationEventArgs class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; +package microsoft.exchange.webservices.data; /** * Provides data to a StreamingSubscriptionConnection's * OnNotificationEvent event. */ -public class NotificationEventArgs { - - - +public class NotificationEventArgs { private StreamingSubscription subscription; private Iterable events; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java index e5b769fd3..7a38f1a86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="NumberedRecurrenceRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the NumberedRecurrenceRange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java index f64771696..70e60dc73 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OccurrenceInfo.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OccurrenceInfo.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java index f3d25a468..8c997a315 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OccurrenceInfoCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OccurrenceInfoCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java index adea87df4..6d5eb00d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java +++ b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OffsetBasePoint.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OffsetBasePoint.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java index f17652448..42755b848 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="OofExternalAudience.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OofExternalAudience.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofReply.java b/src/main/java/microsoft/exchange/webservices/data/OofReply.java index 1c8ac46f6..95a0045e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofReply.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OofReply.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OofReply.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java index c81e792ae..af8c796ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OofSettings.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OofSettings.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofState.java b/src/main/java/microsoft/exchange/webservices/data/OofState.java index 8506f8645..fd4918bb2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofState.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofState.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OofState.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OofState.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index 31d99d9d2..8f527145f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OrderByCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OrderByCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutParam.java b/src/main/java/microsoft/exchange/webservices/data/OutParam.java index 21483aa56..00d8b2291 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutParam.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutParam.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutParam.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index 26cfe5ffc..202dbbdfd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutlookAccount.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutlookAccount.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java index c355e73e9..5d905cb8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutlookConfigurationSettings.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutlookConfigurationSettings.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index 68ac5e6e0..7cdaa37fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutlookProtocol.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutlookProtocol.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java index 551f81297..ab4a04303 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutlookProtocolType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutlookProtocolType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index f5baf78a9..9059923a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="OutlookUser.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the OutlookUser.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/PagedView.java b/src/main/java/microsoft/exchange/webservices/data/PagedView.java index c9ed19bdf..32402e8be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PagedView.java +++ b/src/main/java/microsoft/exchange/webservices/data/PagedView.java @@ -1,17 +1,19 @@ /************************************************************************** - * copyright file="PagedView.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PagedView.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; /** * Represents a view settings that support paging in a search operation. - * - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class PagedView extends ViewBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/Param.java b/src/main/java/microsoft/exchange/webservices/data/Param.java index ed029a07c..6e95a0512 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Param.java +++ b/src/main/java/microsoft/exchange/webservices/data/Param.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Param.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Param.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java index e1cc588b9..ae3a02f92 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PermissionScope.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PermissionScope.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java index 4b89e8345..a572a97ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneCall.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneCall.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java index 9b514c2e4..fba5d73c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneCallId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneCallId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java index 945cee4eb..19948fac2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneCallState.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneCallState.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index 243f34da9..6b9a555e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneNumberDictionary.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneNumberDictionary.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java index c4586b7cd..9e3283465 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneNumberEntry.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneNumberEntry.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java index a609c487a..db7de43dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhoneNumberKey.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhoneNumberKey.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java index 5ed0171b2..6aa535c39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhysicalAddressDictionary.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhysicalAddressDictionary.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index dc4375c42..ea2abda41 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhysicalAddressEntry.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhysicalAddressEntry.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java index 92d997629..678d9533c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhysicalAddressIndex.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhysicalAddressIndex.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java index 544a3a575..067d66a32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PhysicalAddressKey.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PhysicalAddressKey.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index 3d8317c19..15bb6cc4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="PlayOnPhoneRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PlayOnPhoneRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** - *Represents a PlayOnPhone request. - * + * Represents a PlayOnPhone request. */ final class PlayOnPhoneRequest extends SimpleServiceRequestBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java index db0684ec6..4694bffe9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PlayOnPhoneResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PlayOnPhoneResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItem.java b/src/main/java/microsoft/exchange/webservices/data/PostItem.java index 518cebaf4..6ac9c0fc1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItem.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItem.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PostItem.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PostItem.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java index 1e89c56f2..37cb9857d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PostItemSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PostItemSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReply.java b/src/main/java/microsoft/exchange/webservices/data/PostReply.java index 177a1d83e..b745d477a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReply.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PostReply.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PostReply.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java index 77b9f540a..ed157182e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PostReplySchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PostReplySchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index 2dd7f66e7..024282108 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PropertyBag.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertyBag.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java index cdb5a757e..2a83d8da0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index cf1722e27..f26dd475e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="PropertyDefinitionBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertyDefinitionBase.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java index c19db6f62..6fa4b36be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java @@ -1,8 +1,11 @@ -/************************************************************************* - * copyright file="PropertyDefinitionFlags.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertyDefinitionFlags.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index 0ba597330..8713afc16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PropertyException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertyException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 83c52ce55..45f0f0b77 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="PropertySet.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PropertySet.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index 16de20d1d..99eebc0ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ProtocolConnection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ProtocolConnection.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index df07f2261..950dec52a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ProtocolConnectionCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ProtocolConnectionCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java index 2076ad4c4..0257411a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PullSubscription.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PullSubscription.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java index 0df9c1c0b..e35b4b358 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="PushSubscription.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PushSubscription.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java index 43a25b05e..cb9663d6b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Recurrence.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Recurrence.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index f5339e6b6..42104a8d8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RecurrencePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RecurrencePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java index 34ba33f22..571315ec1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="RecurrenceRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RecurrenceRange.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java index 24a29dcdd..4cf2a3ea2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="RecurringAppointmentMasterId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RecurringAppointmentMasterId.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RefParam.java b/src/main/java/microsoft/exchange/webservices/data/RefParam.java index b3e7a1e45..6a8ef91f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RefParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/RefParam.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RefParam.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RefParam.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java index 02be8f7b0..c141286dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RelativeDayOfMonthTransition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RelativeDayOfMonthTransition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java index 618fa95b0..fc4ca110e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RemoveDelegateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RemoveDelegateRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index 80efb70d7..d64f11df1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RemoveFromCalendar.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RemoveFromCalendar.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.List; @@ -11,8 +15,6 @@ /** * Represents a response object created to remove a calendar item from a meeting * cancellation. - * - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.RemoveItem, returnedByServer = false) class RemoveFromCalendar extends ServiceObject { diff --git a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java index 5efc4d4ae..f8179eaae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RequiredServerVersion.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RequiredServerVersion.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java index 208fab740..8b88bec5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResolveNameSearchLocation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResolveNameSearchLocation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index 8ff731779..22c589830 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResolveNamesRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResolveNamesRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java index 60b388b20..870fc8c22 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResolveNamesResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResolveNamesResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index 69e41618c..407dee5c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseActions.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseActions.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java index 20006c431..30519b40d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseMessage.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseMessage.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java index 0fb23101d..7e7781795 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseMessageSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseMessageSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java index 1eb245f1a..b4fbbe8d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseMessageType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseMessageType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java index 022987e93..e1be2f76c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseObject.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseObject.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index 97161aa47..79789d064 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseObjectSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseObjectSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index aa0626a0d..0030528b1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ResponseObjectsPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ResponseObjectsPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Rule.java b/src/main/java/microsoft/exchange/webservices/data/Rule.java index 1ca7712dd..b8f23f321 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Rule.java +++ b/src/main/java/microsoft/exchange/webservices/data/Rule.java @@ -1,11 +1,14 @@ /************************************************************************** - * copyright file="Rule.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Rule class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; +package microsoft.exchange.webservices.data; /** * Represents a rule that automatically handles incoming messages. diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java index 2f49d5d70..03251f1b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleActions.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleActions class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java index 725f459db..4d0a0c67c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Implements a rule collection. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleError.java b/src/main/java/microsoft/exchange/webservices/data/RuleError.java index fd8c9466a..d6266ab01 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleError.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java index 9b3f9d963..a81715888 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleErrorCode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleErrorCode enumeration. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java index a2b0c3aa0..d714de091 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleErrorCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleErrorCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents a collection of rule validation errors. diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java index b050d4f9d..9b0477bb3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java @@ -1,15 +1,17 @@ /************************************************************************** - * copyright file="RuleOperation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleOperation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** - * * Represents an operation to be performed on a rule. - * */ public abstract class RuleOperation extends ComplexProperty { protected String xmlElementName; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java index 20f1c5456..c6737af35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleOperationError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleOperationError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java index aace00f28..220ec7096 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="RuleOperationErrorCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Implements a RuleOperationErrorCollection collection. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; + /** * Represents a collection of rule operation errors. - * - * */ public final class RuleOperationErrorCollection extends ComplexPropertyCollection{ diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java index 33eddd5be..946050b59 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RulePredicateDateRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RulePredicateDateRange class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java index f8333797e..41e52377b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RulePredicateSizeRange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RulePredicateSizeRange class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 3fa6e1ad1..86c8cf847 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RulePredicates.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RulePredicates class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java index 95abb04aa..3b0047463 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="RuleProperty.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the RuleProperty enumeration. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; public enum RuleProperty diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java index f08b8d20d..79dd35089 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SafeXmlDocument.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SafeXmlDocument.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.FileInputStream; @@ -26,7 +30,6 @@ import org.xml.sax.InputSource; import org.xml.sax.SAXException; - /** * XmlDocument that does not allow DTD parsing. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java index 844716f58..204faf0a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="SafeXmlFactory.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SafeXmlFactory.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -15,7 +18,6 @@ import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamReader; - public class SafeXmlFactory { public static XMLInputFactory factory = XMLInputFactory.newInstance(); diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java index 26acfa9ce..deee1544e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SafeXmlSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SafeXmlSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.InputStream; @@ -18,9 +22,7 @@ /** * XmlSchema with protection against DTD parsing in read overloads - */ - public class SafeXmlSchema extends Schema{ @Override diff --git a/src/main/java/microsoft/exchange/webservices/data/Schema.java b/src/main/java/microsoft/exchange/webservices/data/Schema.java index bfb1d7d00..a9a0401c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Schema.java +++ b/src/main/java/microsoft/exchange/webservices/data/Schema.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="Schema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Schema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java index 8b5e20ebd..930d4c5c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SearchFilter.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SearchFilter.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java index 9a3a5c3f4..51d731c4b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SearchFolder.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SearchFolder.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java index f1e1b59de..3adf1d6d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="SearchFolderParameters.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SearchFolderParameters.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents the parameters associated with a search folder. - * */ public final class SearchFolderParameters extends ComplexProperty implements IComplexPropertyChangedDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java index 2c7cca110..0a428fc4b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SearchFolderSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SearchFolderSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java index 7369d213a..744afacf6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SearchFolderTraversal.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SearchFolderTraversal.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java index 8fe727761..e0e21c4e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SendCancellationsMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SendCancellationsMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java index bf4e13fd3..6242690a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="SendInvitationsMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SendInvitationsMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java index 23539a835..05377f857 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SendInvitationsOrCancellationsMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SendInvitationsOrCancellationsMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java index 912f449f3..75a00dd6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SendItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SendItemRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java index 8b96ad133..1baff44fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java +++ b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Sensitivity.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Sensitivity.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java index 6d8e0a781..9f33133eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java index 7b943bbcd..268ebf994 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceErrorHandling.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceErrorHandling.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java index 72b7ae950..9b287f825 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index 973300f8f..326562288 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -1,13 +1,17 @@ /************************************************************************** - * copyright file="ServiceLocalException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceLocalException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** - *Represents an error that occurs when a service operation fails locally (e.g. + * Represents an error that occurs when a service operation fails locally (e.g. * validation error). */ public class ServiceLocalException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java index 8ba3bcf74..c2f56c471 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ServiceObject.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObject.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java index 2f14502ba..6362e8b4c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java @@ -1,15 +1,14 @@ /************************************************************************** - * copyright file="ServiceObjectDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; -/** - * - * - */ +package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java index 810ba1743..7f204ce3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceObjectInfo.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectInfo.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java index e8ecf8fff..dcd52cdad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java @@ -1,15 +1,17 @@ /************************************************************************** - * copyright file="ServiceObjectPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents a property definition for a service object. - * - * */ public abstract class ServiceObjectPropertyDefinition extends PropertyDefinitionBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index 73a0db704..c0a5fe167 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="ServiceObjectPropertyException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectPropertyException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index 6a7906f8a..317248ffe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceObjectSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.reflect.Field; @@ -17,7 +21,6 @@ /** * Represents the base class for all item and folder schemas. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ServiceObjectSchema implements diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java index 14098f182..261759bff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceObjectType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceObjectType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index 4dfd78af7..26c6401dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="ServiceRemoteException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceRemoteException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error that occurs when a service operation fails remotely. - * */ public class ServiceRemoteException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index b41d6070e..0990e2b7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceRequestBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; @@ -20,11 +24,8 @@ import javax.xml.stream.XMLStreamException; import javax.xml.ws.http.HTTPException; -//import org.eclipse.ecf.core.util.AsyncResult; - /** * Represents an abstract service request. - * */ abstract class ServiceRequestBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index 33faedeca..7767ea559 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="ServiceRequestException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceRequestException.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java index 35ea6845b..48f5b4d18 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; @@ -15,8 +19,6 @@ /*** * Represents the standard response to an Exchange Web Services operation. - * - * */ public class ServiceResponse { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java index 4ec963e07..f4b40ab7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="ServiceResponseCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceResponseCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index 921fb74d1..a15527d96 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="ServiceResponseException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceResponseException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents a remote service exception that has a single response. - * */ public class ServiceResponseException extends ServiceRemoteException { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java index fabb496f0..427eabf11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="ServiceResult.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceResult.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index a940a9714..78524afe5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="ServiceValidationException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceValidationException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error that occurs when a validation check fails. - * */ public final class ServiceValidationException extends ServiceLocalException { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index 28e8c220a..17f0e905f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -1,15 +1,18 @@ /************************************************************************** - * copyright file="ServiceVersionException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceVersionException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error that occurs when a request cannot be handled due to a * service version mismatch. - * */ public final class ServiceVersionException extends ServiceLocalException { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index bcce63535..6b2ea43fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -1,15 +1,18 @@ /************************************************************************** - * copyright file="ServiceXmlDeserializationException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceXmlDeserializationException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error that occurs when the XML for a response cannot be * deserialized. - * */ public final class ServiceXmlDeserializationException extends ServiceLocalException { diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index c429c4214..28835c44b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -1,15 +1,18 @@ /************************************************************************** - * copyright file="ServiceXmlSerializationException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ServiceXmlSerializationException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error that occurs when the XML for a request cannot be * serialized. - * */ public class ServiceXmlSerializationException extends ServiceLocalException { diff --git a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java index 3b30e7299..36b76d8cb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SetRuleOperation.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SetRuleOperation.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index b23cd9bcf..64402ecf4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SetUserOofSettingsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SetUserOofSettingsRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index a960a013b..ce72ce77a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SimplePropertyBag.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SimplePropertyBag.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; @@ -12,7 +16,6 @@ import java.util.List; import java.util.Map; -//IEnumerable> /** * Represents a simple property bag. * diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index bc6598de1..4b8eb9bb4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SimpleServiceRequestBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SimpleServiceRequestBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.*; @@ -19,7 +23,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - /** * Defines the SimpleServiceRequestBase class. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index 0f281b7c5..0f39cdbe8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SoapFaultDetails.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SoapFaultDetails.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java index ed4d72ce8..2664243ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java +++ b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SortDirection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SortDirection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java index ec00ef3d5..c66a771db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="StandardUser.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StandardUser.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index 24eff687b..f985f3280 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="StartTimeZonePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StartTimeZonePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; @@ -13,8 +17,6 @@ /** * Represents a property definition for properties of type TimeZoneInfo. - * - * */ class StartTimeZonePropertyDefinition extends TimeZonePropertyDefinition { diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index f4c6bc246..921dbd0bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="StreamingSubscription.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StreamingSubscription class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index 40943e9f4..f7559df56 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="StreamingSubscriptionConnection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StreamingSubscriptionConnection class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.io.Closeable; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringList.java b/src/main/java/microsoft/exchange/webservices/data/StringList.java index 101b2c85d..fbfc0b9de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringList.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringList.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="StringList.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StringList.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index 056ac5021..fa5914d23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="StringPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the StringPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -11,8 +14,6 @@ /*** * Represents String property definition. - * - * */ class StringPropertyDefinition extends TypedPropertyDefinition { diff --git a/src/main/java/microsoft/exchange/webservices/data/Strings.java b/src/main/java/microsoft/exchange/webservices/data/Strings.java index 83caf8dc3..adc3a28e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Strings.java +++ b/src/main/java/microsoft/exchange/webservices/data/Strings.java @@ -1,9 +1,13 @@ -/************************************************************************* - * copyright file="Strings.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Strings.java. +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; public abstract class Strings { diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java index d98db0740..d4b71830f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SubscribeRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscribeRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java index 0d42d0ae2..3f7a0438e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SubscribeResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscribeResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java index 32a6caf37..0df580e84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SubscribeToPullNotificationsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscribeToPullNotificationsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java index 59fb11bb6..088338193 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SubscribeToPushNotificationsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscribeToPushNotificationsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java index 1cb26d45d..ad3427650 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SubscribeToStreamingNotificationsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscribeToStreamingNotificationsRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java index 05d9cbce9..02a94bd54 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="SubscriptionBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscriptionBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** - *Represents the base class for event subscriptions. - * + * Represents the base class for event subscriptions. */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class SubscriptionBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java index 2db3f385a..87ba74cd3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java @@ -1,11 +1,14 @@ /************************************************************************** - * copyright file="SubscriptionErrorEventArgs.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SubscriptionErrorEventArgs class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; +package microsoft.exchange.webservices.data; /** * Provides data to a StreamingSubscriptionConnection's diff --git a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java index 52fbefd01..2b3f4980d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Suggestion.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Suggestion.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.SimpleDateFormat; @@ -15,7 +19,6 @@ /** * Represents a suggestion for a specific date. - * */ public final class Suggestion extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java index 0ea8373d7..afacabf61 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SuggestionQuality.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SuggestionQuality.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java index 0b203c0de..38f0bc0d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="SuggestionsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SuggestionsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -12,7 +15,6 @@ /** * Represents the base response class to subscription creation operations. - * */ final class SuggestionsResponse extends ServiceResponse { diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index d87159cfd..741134a97 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SuppressReadReceipt.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SuppressReadReceipt.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java index 6fda211bf..9836b86b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncFolderHierarchyRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncFolderHierarchyRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /*** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java index 144b51934..c3a0005ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncFolderHierarchyResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncFolderHierarchyResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java index 100d20cee..76e91a909 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncFolderItemsRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncFolderItemsRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java index ce4b200a2..1c3843b45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncFolderItemsResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncFolderItemsResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java index b26073e48..34f62806c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncFolderItemsScope.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncFolderItemsScope.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java index 2ba9c2251..19698da52 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="SyncResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the SyncResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index 41f094ff1..363d61940 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="Task.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Task.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -12,7 +15,6 @@ /** * Represents a Task item. Properties available on tasks are defined in the * TaskSchema class. - * */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.Task) diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java index 1d8344a89..385c7c421 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TaskDelegationState.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TaskDelegationState.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java index f564d17a2..5dac34935 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="TaskDelegationStatePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TaskDelegationStatePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index b46eaab67..450b480ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TaskMode.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TaskMode.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index ba7ac1661..5b3597696 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="TaskSchema.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TaskSchema.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; /** * Represents the schema for task items. - * */ @Schema public class TaskSchema extends ItemSchema { diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java index 6d034d4fb..9db7f25f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TaskStatus.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TaskStatus.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java index 2bf69a13c..7321fa6a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TasksFolder.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TasksFolder.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index 5119db827..b7c4dbe3b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="Time.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the Time.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java index 71ee1e324..297005575 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeChange.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeChange.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.SimpleDateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java index 1190a3c8e..42fe4f042 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="TimeChangeRecurrence.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeChangeRecurrence.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; /*** * Represents a recurrence pattern for a time change in a time zone. - * */ final class TimeChangeRecurrence extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index 6c065bf8d..4ebfdae43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeSpan.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeSpan.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java index be5cd01e7..353245cd5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeSpanPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeSpanPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java index 746dbc586..83e6f757d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeSpanTest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeSpanTest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java index 7dfd1c88a..1c115963c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeSuggestion.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeSuggestion.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; @@ -12,7 +16,6 @@ /** * Represents an availability time suggestion. - * */ public final class TimeSuggestion extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java index 39380790f..6157767ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeWindow.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeWindow.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.DateFormat; @@ -14,7 +18,6 @@ /** * Represents a time period. - * */ public class TimeWindow implements ISelfValidate { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index f18f26035..8b486a3d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeZoneConversionException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZoneConversionException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index c3677c534..5d8d1dd58 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="TimeZoneDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZoneDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java index accbf0b26..7e7ee32e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="TimeZonePeriod.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZonePeriod.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents a time zone period as defined in the EWS schema. - * */ class TimeZonePeriod extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index 0be97829e..078a589e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeZonePropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZonePropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; @@ -13,8 +17,6 @@ /** * Represents a property definition for properties of type TimeZoneInfo. - * - * */ class TimeZonePropertyDefinition extends PropertyDefinition { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java index 6a83c7f2b..4d3a4caaa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="TimeZoneTransition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZoneTransition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; /** * Represents the base class for all time zone transitions. - * */ class TimeZoneTransition extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java index 13fa197cf..0ca4af431 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TimeZoneTransitionGroup.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TimeZoneTransitionGroup.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; @@ -11,7 +15,6 @@ /** * Represents a group of time zone period transitions. - * */ class TimeZoneTransitionGroup extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java index 54aa725d1..481b85b30 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TokenCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TokenCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URISyntaxException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java index 29ba63060..8cd24c514 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="TraceFlags.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TraceFlags.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Defines flags to control tracing details. - * */ public enum TraceFlags { /* diff --git a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java index 07ffbabf9..fdc1fb950 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="TypedPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the TypedPropertyDefinition.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.text.ParseException; @@ -13,8 +17,6 @@ /** * Represents typed property definition. - * - * */ abstract class TypedPropertyDefinition extends PropertyDefinition { diff --git a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java index 373f65897..4d3d0caf6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="UnifiedMessaging.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UnifiedMessaging.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents the Unified Messaging functionalities. - * */ public final class UnifiedMessaging { diff --git a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java index bb5b72842..b88db1cb8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UniqueBody.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UniqueBody.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; @@ -11,7 +15,6 @@ /** * Represents the body part of an item that is unique to the conversation the * item is part of. - * */ public final class UniqueBody extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java index 1b68d253b..1ee66337c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UnsubscribeRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UnsubscribeRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java index 1c91e1b25..d382063af 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateDelegateRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateDelegateRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java index 9a8ff7974..2b568865e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java @@ -1,17 +1,19 @@ /************************************************************************** - * copyright file="UpdateFolderRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateFolderRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; /** * Represents an UpdateFolder request. - * - * */ final class UpdateFolderRequest extends MultiResponseServiceRequest { diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java index acebe6e58..297d73977 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java @@ -1,15 +1,17 @@ /************************************************************************** - * copyright file="UpdateFolderResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateFolderResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents response to UpdateFolder request. - * - * */ final class UpdateFolderResponse extends ServiceResponse implements IGetObjectInstanceDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index 78cc1376a..6178ebfd9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateInboxRulesException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateInboxRulesException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index 5d5b44fbd..f2faaae44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -1,11 +1,14 @@ /************************************************************************** - * copyright file="UpdateInboxRulesRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateInboxRulesRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; +package microsoft.exchange.webservices.data; /** * Represents a UpdateInboxRulesRequest request. diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index 3d88777b5..15a6bf301 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateInboxRulesResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateInboxRulesResponse class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java index f5cd0e5d7..da7cc32a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateItemRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateItemRequest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index bae84ff62..bbf7c97a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateItemResponse.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateItemResponse.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java index 93f11bbed..f77580549 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UpdateUserConfigurationRequest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UpdateUserConfigurationRequest class. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index 859f2386c..e23e572c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UserConfiguration.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserConfiguration.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.EnumSet; @@ -13,7 +17,6 @@ /** * Represents an object that can be used to store user-defined configuration * settings. - * */ public class UserConfiguration { diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index df0cb9288..53ac5d9b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UserConfigurationDictionary.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserConfigurationDictionary.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.lang.reflect.Array; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java index 64e443694..c12771a72 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UserConfigurationDictionaryObjectType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserConfigurationDictionaryObjectType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index 4dde6f72d..808ae3af4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UserConfigurationProperties.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserConfigurationProperties.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserId.java b/src/main/java/microsoft/exchange/webservices/data/UserId.java index b6f9d1291..35e14d101 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserId.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="UserId.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserId.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; /** * Represents the Id of a user. - * */ public class UserId extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index f9bd0d8c5..245e1f90b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="UserSettingError.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserSettingError.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents an error from a GetUserSettings request. - * */ public final class UserSettingError { diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java index 0484c0616..249907016 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="UserSettingName.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the UserSettingName.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java index 2b93766c2..d4b83d19c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="ViewBase.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the ViewBase.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; /** * Represents the base view class for search operations. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ViewBase { diff --git a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java index 543954eda..5ec5b97e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="WSSecurityBasedCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WSSecurityBasedCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.net.URI; @@ -15,8 +19,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; -//import sun.util.calendar.CalendarDate; - /** * WSSecurityBasedCredentials is the base class for all credential classes using * WS-Security. diff --git a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java index d6d914dff..2739ab833 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java +++ b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="WaitHandle.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WaitHandle.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; public class WaitHandle { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java index 391205b65..c0c629c15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="WebAsyncCallStateAnchor.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WebAsyncCallStateAnchor.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; public class WebAsyncCallStateAnchor { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index 50a87c722..784895ecd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="WebClientUrl.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WebClientUrl.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Represents the URL of the Exchange web client. - * */ public final class WebClientUrl { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index 1f16f26d1..b9ca94a3b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -1,16 +1,19 @@ /************************************************************************** - * copyright file="WebClientUrlCollection.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WebClientUrlCollection.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; /** * Represents a user setting that is a collection of Exchange web client URLs. - * */ public final class WebClientUrlCollection { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index c2bc58ebf..b88408934 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -1,15 +1,18 @@ /************************************************************************** - * copyright file="WebCredentials.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WebCredentials.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * WebCredentials is used for password-based authentication schemes such as * basic, digest, NTLM, and Kerberos authentication. - * */ public final class WebCredentials extends ExchangeCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java index d55b5cbb7..cba43d9ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; public enum WebExceptionStatus diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index 5e763f081..2434cce16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -1,17 +1,19 @@ /************************************************************************** - * copyright file="WebProxy.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WebProxy.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * WebProxy is used for setting proxy details for proxy authentication schemes such as * basic, digest, NTLM, and Kerberos authentication. - * */ - public class WebProxy { /** proxy host. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java index 1a0919b44..34b8033a3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java +++ b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="WellKnownFolderName.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WellKnownFolderName.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java index 4e071a315..a90b3728a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; public class WindowsLiveCredentials extends WSSecurityBasedCredentials{ diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java index 69172c229..8ffc806fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="WorkingHours.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WorkingHours.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import java.util.ArrayList; @@ -12,7 +16,6 @@ /** * Represents the working hours for a specific time zone. - * */ public final class WorkingHours extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java index 6b1676075..0243422ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="WorkingPeriod.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the WorkingPeriod.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -12,7 +15,6 @@ /** * Represents a working period. - * */ final class WorkingPeriod extends ComplexProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java index 2a878bbe8..539d87f7d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="XmlAttributeNames.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlAttributeNames.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * XML attribute names. - * */ class XmlAttributeNames { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index 564f87143..79263ef7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="XmlDtdException.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlDtdException.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Exception class for banned xml parsing - * */ class XmlDtdException extends XmlException { /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java index 7e828a3d6..fcea91c83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java @@ -1,14 +1,17 @@ /************************************************************************** - * copyright file="XmlElementNames.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlElementNames.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * XML element names. - * */ class XmlElementNames { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index 2dbf51bc9..0da0760d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -1,3 +1,13 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + package microsoft.exchange.webservices.data; public class XmlException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index 5d19a9e4d..684d36fa1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -1,11 +1,14 @@ /************************************************************************** - * copyright file="XmlNameTable.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlNameTable.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ -package microsoft.exchange.webservices.data; +package microsoft.exchange.webservices.data; /** * Table of atomized String objects. diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java index b9b75a093..fde39d364 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java @@ -1,15 +1,18 @@ /************************************************************************** - * copyright file="XmlNamespace.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlNamespace.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; /** * Defines the namespaces as used by the EwsXmlReader, EwsServiceXmlReader, and * EwsServiceXmlWriter classes. - * */ enum XmlNamespace { /* diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index b050afe60..ce93435cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -1,9 +1,13 @@ /************************************************************************** - * copyright file="XmlNodeType.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the XmlNodeType.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamConstants; From 1c982021b3ab25980f41c8c18a998d64eaf5775c Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Fri, 26 Sep 2014 13:41:43 -0700 Subject: [PATCH 035/338] Add null-safe EwsUtilities.stringEquals() --- .../exchange/webservices/data/EwsUtilities.java | 11 +++++++++++ .../exchange/webservices/data/EwsXmlReader.java | 8 ++++---- .../exchange/webservices/data/EwsUtilitiesTest.java | 10 ++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index d37293d25..b042508f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -196,6 +196,17 @@ public static String getBuildVersion() { return "0.0.0.0"; } + /** + * A null-safe case sensitive comparison of two specified strings. + * + * @param first The first string, can be null. + * @param second The second string, can be null. + * @return true: equals, false: otherwise. + */ + public static boolean stringEquals(String first, String second) { + return (first == null && second == null) || (first != null && first.equals(second)); + } + /** The enum version dictionaries. */ private static LazyMember, Map>> enumVersionDictionaries = diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 7640e4bc0..4cce8320d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -710,13 +710,13 @@ public boolean isStartElement(String namespacePrefix, String localName) { * * @param xmlNamespace the xml namespace * @param localName the local name - * @return boolean true for matching start element; false otherwise. + * @return true for matching start element; false otherwise. */ public boolean isStartElement(XmlNamespace xmlNamespace, String localName) { return this.isStartElement() - && this.getLocalName().equals(localName) - && (this.getNamespacePrefix().equals(EwsUtilities.getNamespacePrefix(xmlNamespace)) || - this.getNamespaceUri().equals(EwsUtilities.getNamespaceUri(xmlNamespace))); + && EwsUtilities.stringEquals(this.getLocalName(), localName) + && (EwsUtilities.stringEquals(this.getNamespacePrefix(), EwsUtilities.getNamespacePrefix(xmlNamespace)) || + EwsUtilities.stringEquals(this.getNamespaceUri(), EwsUtilities.getNamespaceUri(xmlNamespace))); } /** diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index 5ce0f4aab..ba60a4cc9 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -18,4 +18,14 @@ public class EwsUtilitiesTest { public void testGetBuildVersion() { Assert.assertEquals("Build version must be 0s", "0.0.0.0", EwsUtilities.getBuildVersion()); } + + @Test + public void testStringEquals() { + Assert.assertTrue(EwsUtilities.stringEquals(null, null)); + Assert.assertTrue(EwsUtilities.stringEquals("x", "x")); + + Assert.assertFalse(EwsUtilities.stringEquals(null, "x")); + Assert.assertFalse(EwsUtilities.stringEquals("x", null)); + Assert.assertFalse(EwsUtilities.stringEquals("x", "X")); + } } From ff7e0363ba1fe9a29ce89cd61fd00bb460c5c1ac Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Fri, 26 Sep 2014 14:01:18 -0700 Subject: [PATCH 036/338] Fix javadoc error in MapiTypeConverterMapEntry --- .../exchange/webservices/data/MapiTypeConverterMapEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index d164a70b2..55e8af7c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -177,7 +177,7 @@ protected Object convertToValue(String stringValue) /** * Converts a string to value consistent with type (or uses the default value if the string is null or empty). - * @param String to convert to a value. + * @param stringValue to convert to a value. * @return Value. * @throws microsoft.exchange.webservices.data.FormatException * @throws ServiceXmlDeserializationException From 61127bcca6c25abfeca7414cf682e022d6369c18 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 1 Sep 2014 12:19:58 +0200 Subject: [PATCH 037/338] Clean up ServiceRequestBase related classes a bit. --- .../data/HangingServiceRequestBase.java | 4 +- .../webservices/data/ServiceRequestBase.java | 55 +++++-------- .../data/SimpleServiceRequestBase.java | 78 ++++++++----------- 3 files changed, 53 insertions(+), 84 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index 74405ff12..af81d3bc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -217,9 +217,7 @@ protected HangingServiceRequestBase(ExchangeService service, */ protected void internalExecute() throws ServiceLocalException, Exception { synchronized (this) { - OutParam outParam = new OutParam(); - this.response = this.validateAndEmitRequest(outParam); - this.request = outParam.getParam(); + this.response = this.validateAndEmitRequest(); this.internalOnConnect(); } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 0990e2b7c..f46fff7d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -702,12 +702,10 @@ protected SoapFaultDetails readSoapFault(EwsServiceXmlReader reader) { * The request. * @return The response returned by the server. */ - protected HttpWebRequest validateAndEmitRequest( - OutParam request) throws ServiceLocalException, - Exception { + protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, Exception { this.validate(); - request = this.buildEwsHttpWebRequest(); + HttpWebRequest request = this.buildEwsHttpWebRequest(); return this.getEwsHttpWebResponse(request); } @@ -715,23 +713,20 @@ protected HttpWebRequest validateAndEmitRequest( * Builds the HttpWebRequest object for current service request * with exception handling. * - * @return An IEwsHttpWebRequest instance + * @return An HttpWebRequest instance */ - protected OutParam buildEwsHttpWebRequest() - throws Exception { - OutParam outparam = new OutParam(); - try { + protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { + HttpWebRequest request = null; - outparam.setParam(this.getService().prepareHttpWebRequest()); + try { + request = this.getService().prepareHttpWebRequest(); AsyncExecutor ae = new AsyncExecutor(); // ExecutorService es = CallableSingleTon.getExecutor(); - Callable getStream = new GetStream(outparam.getParam(), - "getOutputStream"); + Callable getStream = new GetStream(request, "getOutputStream"); Future task = ae.submit(getStream, null); ae.shutdown(); - this.getService().traceHttpRequestHeaders( - TraceFlags.EwsRequestHttpHeaders, outparam.getParam()); + this.getService().traceHttpRequestHeaders(TraceFlags.EwsRequestHttpHeaders, request); boolean needSignature = this.getService().getCredentials() != null && this.getService().getCredentials().isNeedSignature(); @@ -762,15 +757,9 @@ protected OutParam buildEwsHttpWebRequest() memoryStream); } - ByteArrayOutputStream serviceRequestStream = (ByteArrayOutputStream) this - .getWebRequestStream(task); - { - EwsUtilities.copyStream(memoryStream, serviceRequestStream); - } - - } - - else { + ByteArrayOutputStream serviceRequestStream = this.getWebRequestStream(task); + EwsUtilities.copyStream(memoryStream, serviceRequestStream); + } else { ByteArrayOutputStream requestStream = this .getWebRequestStream(task); @@ -778,23 +767,19 @@ protected OutParam buildEwsHttpWebRequest() .getService(), requestStream); this.writeToXml(writer1); - } - return outparam; + return request; } catch (HTTPException e) { - if (e.getStatusCode() == WebExceptionStatus.ProtocolError.ordinal() - && e.getCause() != null) { - this.processWebException(e, outparam.getParam()); + if (e.getStatusCode() == WebExceptionStatus.ProtocolError.ordinal() && e.getCause() != null) { + this.processWebException(e, request); } // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); } catch (IOException e) { // Wrap exception. - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); } } @@ -802,12 +787,10 @@ protected OutParam buildEwsHttpWebRequest() * Gets the IEwsHttpWebRequest object from the specifiedHttpWebRequest * object with exception handling * - * @param outparam The specified HttpWebRequest + * @param request The specified HttpWebRequest * @return An HttpWebResponse instance */ - protected HttpWebRequest getEwsHttpWebResponse( - OutParam outparam) throws Exception { - HttpWebRequest request = outparam.getParam(); + protected HttpWebRequest getEwsHttpWebResponse(HttpWebRequest request) throws Exception { int code; try { diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 4b8eb9bb4..6b1bcf0cf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -43,39 +43,30 @@ protected SimpleServiceRequestBase(ExchangeService service) * @throws Exception * @throws microsoft.exchange.webservices.data.ServiceLocalException */ - protected Object internalExecute() - throws ServiceLocalException, Exception { - OutParam outParam = - new OutParam(); - HttpWebRequest response = this.validateAndEmitRequest(outParam); - - try { + protected Object internalExecute() throws ServiceLocalException, Exception { + HttpWebRequest response = this.validateAndEmitRequest(); + + try { return this.readResponse(response); - } - catch (IOException ex) { - // Wrap exception. - throw new ServiceRequestException(String. - format(Strings.ServiceRequestFailed, ex.getMessage(), ex)); - } - catch (Exception e) { - if (response != null) { - this.getService().processHttpResponseHeaders(TraceFlags. - EwsResponseHttpHeaders, response); - } - - throw new ServiceRequestException(String.format(Strings. - ServiceRequestFailed, e.getMessage()), e); - } - finally - { - try { - response.close(); + } catch (IOException ex) { + // Wrap exception. + throw new ServiceRequestException(String. + format(Strings.ServiceRequestFailed, ex.getMessage(), ex)); + } catch (Exception e) { + if (response != null) { + this.getService().processHttpResponseHeaders(TraceFlags. + EwsResponseHttpHeaders, response); + } + + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } finally { + try { + response.close(); } catch (Exception e2) { response = null; - } - } - - } + } + } + } /** * Ends executing this async request. @@ -88,19 +79,17 @@ protected Object endInternalExecute(IAsyncResult asyncResult) throws Exception { return this.readResponse(response); } - /** - * Begins executing this async request. - * - *@param callback The AsyncCallback delegate. - *@param state An object that contains state information for this request. - * @return An IAsyncResult that references the asynchronous request. - */ - protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) throws Exception - { + /** + * Begins executing this async request. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @return An IAsyncResult that references the asynchronous request. + */ + protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) throws Exception { this.validate(); - HttpWebRequest request = (HttpWebRequest) this.buildEwsHttpWebRequest() - .getParam(); + HttpWebRequest request = this.buildEwsHttpWebRequest(); WebAsyncCallStateAnchor wrappedState = new WebAsyncCallStateAnchor( this, request, callback /* user callback */, state /*user state*/); @@ -109,8 +98,7 @@ protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) Callable cl = new CallableMethod(request); Future task = es.submit(cl, callback); es.shutdown(); - AsyncRequestResult ft = new AsyncRequestResult(this, request, task, - null); + AsyncRequestResult ft = new AsyncRequestResult(this, request, task, null); // ct.setAsyncRequest(); // webAsyncResult = @@ -119,9 +107,9 @@ protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) return ft; // return new AsyncRequestResult(this, request, webAsyncResult, state /* // user state */); - } + } - /** + /** * Reads the response. * @return serviceResponse * @throws Exception From 6326bcce6cfa19ae3bc6da786ac2db4cafc79a21 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 1 Sep 2014 12:21:57 +0200 Subject: [PATCH 038/338] Remove catch block from ServiceRequestBase. This exception is never thrown. --- .../webservices/data/ServiceRequestBase.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index f46fff7d7..1200a01e2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -10,20 +10,14 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; +import javax.xml.stream.XMLStreamException; +import java.io.*; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; -import javax.xml.stream.XMLStreamException; -import javax.xml.ws.http.HTTPException; - /** * Represents an abstract service request. */ @@ -770,13 +764,6 @@ protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { } return request; - } catch (HTTPException e) { - if (e.getStatusCode() == WebExceptionStatus.ProtocolError.ordinal() && e.getCause() != null) { - this.processWebException(e, request); - } - - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); } catch (IOException e) { // Wrap exception. throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); From 1d2bdbfcf7cb23d8ef9008aceae653826f4ea2b9 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 1 Sep 2014 12:38:39 +0200 Subject: [PATCH 039/338] Fix SOAP error handling: if an error code is returned, the SOAP fault should be parsed. --- .../webservices/data/ServiceRequestBase.java | 34 ++++++++----------- .../data/SimpleServiceRequestBase.java | 7 ++-- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 1200a01e2..0228709fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -691,16 +691,21 @@ protected SoapFaultDetails readSoapFault(EwsServiceXmlReader reader) { /** * Validates request parameters, and emits the request to the server. - * - * @param request - * The request. + * * @return The response returned by the server. */ protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, Exception { this.validate(); HttpWebRequest request = this.buildEwsHttpWebRequest(); - return this.getEwsHttpWebResponse(request); + try { + return this.getEwsHttpWebResponse(request); + } catch (HttpErrorException e) { + processWebException(e, request); + + // Wrap exception if the above code block didn't throw + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } } /** @@ -778,26 +783,17 @@ protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { * @return An HttpWebResponse instance */ protected HttpWebRequest getEwsHttpWebResponse(HttpWebRequest request) throws Exception { - int code; - try { + request.executeRequest(); - code = request.executeRequest(); - - } catch (HttpErrorException ex) { - if (ex.getHttpErrorCode() == WebExceptionStatus.ProtocolError - .ordinal() - && ex.getMessage() != null) { - this.processWebException(ex, request); + if (request.getResponseCode() >= 400) { + throw new HttpErrorException( + "The remote server returned an error: (" + request.getResponseCode() + ")" + + request.getResponseText(), request.getResponseCode()); } - - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, ex.getMessage()), ex); } catch (IOException e) { // Wrap exception. - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); } return request; diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 6b1bcf0cf..2b1495a6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -44,9 +44,10 @@ protected SimpleServiceRequestBase(ExchangeService service) * @throws microsoft.exchange.webservices.data.ServiceLocalException */ protected Object internalExecute() throws ServiceLocalException, Exception { - HttpWebRequest response = this.validateAndEmitRequest(); + HttpWebRequest response = null; try { + response = this.validateAndEmitRequest(); return this.readResponse(response); } catch (IOException ex) { // Wrap exception. @@ -61,7 +62,9 @@ protected Object internalExecute() throws ServiceLocalException, Exception { throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); } finally { try { - response.close(); + if (response != null) { + response.close(); + } } catch (Exception e2) { response = null; } From acfc829c2e15c307031fced51443c3bfda3daffa Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 29 Sep 2014 10:37:17 +0200 Subject: [PATCH 040/338] ServiceRequestBase: combine 'request' declaration and initialization. --- .../exchange/webservices/data/ServiceRequestBase.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 0228709fe..b13ae7600 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -715,10 +715,8 @@ protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, * @return An HttpWebRequest instance */ protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { - HttpWebRequest request = null; - try { - request = this.getService().prepareHttpWebRequest(); + HttpWebRequest request = this.getService().prepareHttpWebRequest(); AsyncExecutor ae = new AsyncExecutor(); // ExecutorService es = CallableSingleTon.getExecutor(); From b8ec0c0f7082708fbecd0bc18771273b274a55a5 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 6 Oct 2014 15:26:53 -0700 Subject: [PATCH 041/338] Fix #83 - Incorrect loop check in ExtendedProperty Fixing a couple of locations where loops accessed array out of its bounds. Credit to @avromf --- .../microsoft/exchange/webservices/data/ExtendedProperty.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index 26b53c397..b7db9f4e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -109,7 +109,7 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) writer .writeStartElement(XmlNamespace.Types, XmlElementNames.Values); - for (int index = 0; index <= array.size(); index++) { + for (int index = 0; index < array.size(); index++) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Value, MapiTypeConverter .convertToString(this.getPropertyDefinition() @@ -174,7 +174,7 @@ private String getStringValue() { } else { StringBuilder sb = new StringBuilder(); sb.append("["); - for (int index = 0; index <= array.size(); index++) { + for (int index = 0; index < array.size(); index++) { sb.append(MapiTypeConverter.convertToString(this .getPropertyDefinition().getMapiType(), array .get(index))); From 6cdd09804e8a8a282cfe1b63c8879feb87dea7b4 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 6 Oct 2014 15:45:49 -0700 Subject: [PATCH 042/338] Fixes #84: MapiTypeConverterMapEntry.validateValueAsArray is wrong Credit to: @avromf --- .../data/MapiTypeConverterMapEntry.java | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index 55e8af7c0..3dc0a8fe8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -10,10 +10,10 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.lang.reflect.Array; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -190,32 +190,30 @@ protected Object ConvertToValueOrDefault(String stringValue) throws ServiceXmlDe /** * Validates array value. * - * @param value - * the value - * @throws microsoft.exchange.webservices.data.ArgumentException - * the argument exception + * @param value the value + * @throws microsoft.exchange.webservices.data.ArgumentException the argument exception + * @throws microsoft.exchange.webservices.data.ArgumentNullException the argument exception */ - private void validateValueAsArray(Object value) throws ArgumentException { - - Array array = null; - if(value instanceof Array) + private void validateValueAsArray(Object value) throws ArgumentException, ArgumentNullException + { + if (value == null) { - array = (Array) value; + throw new ArgumentNullException("value"); } - - if (array == null) { - throw new ArgumentException(String.format( - Strings.IncompatibleTypeForArray, value.getClass(), this - .getType())); - } else if (getDim(array) != 1) { - throw new ArgumentException(Strings.ArrayMustHaveSingleDimension); - } else if (Array.getLength(array) == 0) { - throw new ArgumentException(Strings.ArrayMustHaveAtLeastOneElement); - } else if (array.getClass().getComponentType() != this.getType()) { - throw new ArgumentException(String.format( - Strings.IncompatibleTypeForArray, value.getClass(), this - .getType())); + if (value instanceof ArrayList) + { + ArrayList arrayList = (ArrayList) value; + if (arrayList.isEmpty()) + { + throw new ArgumentException(Strings.ArrayMustHaveAtLeastOneElement); + } + + if (arrayList.get(0).getClass() != this.getType()) + { + throw new ArgumentException(String.format(Strings.IncompatibleTypeForArray, value.getClass(), + this.getType())); + } } } From e122f05e5985cb5a66531f36c2212b85f5a08aa5 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Mon, 6 Oct 2014 15:57:27 -0700 Subject: [PATCH 043/338] Fix #85: PhoneNumberDictionary.getPhoneNumber throws NullPointerException Credit to: @avromf --- .../data/PhoneNumberDictionary.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index 6b9a555e9..c7f55aec0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -41,12 +41,16 @@ protected PhoneNumberEntry createEntryInstance() { /** * Gets the phone number at the specified key. * - * @param key - * the key - * @return The phone number at the specified key. + * @param key The phone number key. + * @return The phone number at the specified key if found; otherwise null. */ public String getPhoneNumber(PhoneNumberKey key) { - return this.getEntries().get(key).getPhoneNumber(); + PhoneNumberEntry phoneNumberEntry = this.getEntries().get(key); + if (phoneNumberEntry == null) { + return null; + } + + return phoneNumberEntry.getPhoneNumber(); } /** @@ -86,15 +90,12 @@ public void setPhoneNumber(PhoneNumberKey key, String value) { * the specified key; otherwise, false. */ public boolean tryGetValue(PhoneNumberKey key, OutParam outparam) { - PhoneNumberEntry entry = null; - - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - outparam.setParam(entry.getPhoneNumber()); - return true; - } else { - outparam = null; + String phoneNumber = this.getPhoneNumber(key); + if (phoneNumber == null) { return false; } + + outparam.setParam(phoneNumber); + return true; } } From 855c30ff2eb19a72b7b08b690389851692fd8dc2 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Tue, 7 Oct 2014 21:41:12 -0700 Subject: [PATCH 044/338] Fix typo in readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5564973a9..b46d55143 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ For testing the application with https, you don't have to add any additional cod To access Exchange Web Services (EWS) by using the EWS JAVA API, all you need is an instance of the ExchangeService class, as shown in the following example. ``` ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); -ExchangeCredentials credentials = new WebCredentials("emailAddress", " password"); +ExchangeCredentials credentials = new WebCredentials("emailAddress", "password"); service.setCredentials(credentials); ``` From f69a3abcd8543633e635fb6e659eaabe37eb08c1 Mon Sep 17 00:00:00 2001 From: Petter Remen Date: Thu, 9 Oct 2014 07:24:46 +0200 Subject: [PATCH 045/338] Fixed example for setting URL manually --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b46d55143..1a22c8d95 100644 --- a/readme.md +++ b/readme.md @@ -24,7 +24,7 @@ You can set the URL of the service in one of two ways: To set the URL manually, use the following: ``` -service.Url = new Uri(""); +service.setUrl(new Uri("")); ``` To set the URL by using Autodiscover, use the following: From e1eb5ed01fe14eb7b99736ec3ec6ce938fc2f159 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Fri, 10 Oct 2014 20:30:36 +0200 Subject: [PATCH 046/338] Fix #90:[java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - replaced simple casts to instance of checks - removed unreachable code - removed handling for unsigned values because in Java, all types are signed - replaced EwsUtilities.EwsAssert(...) with Exceptions --- .../data/UserConfigurationDictionary.java | 192 +++++++----------- 1 file changed, 76 insertions(+), 116 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 53ac5d9b9..81cfac9d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -281,123 +281,83 @@ private void writeObjectToXml(EwsServiceXmlWriter writer, writer.writeEndElement(); } - /** - * Writes a dictionary Object's value to Xml. - * - * @param writer - * The writer. - * @param dictionaryObject - * The dictionary object to write. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeObjectValueToXml(EwsServiceXmlWriter writer, - Object dictionaryObject) throws XMLStreamException, - ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfigurationDictionary.WriteObjectValueToXml", - "writer is null"); - EwsUtilities.EwsAssert(dictionaryObject != null, - "UserConfigurationDictionary.WriteObjectValueToXml", - "dictionaryObject is null"); - - // This logic is based on - // Microsoft.Exchange.Services.Core.GetUserConfiguration. - // ConstructDictionaryObject(). - // - // Object values are either: - // . an array of strings - // . a single value - // - // Single values can be: - // . base64 string (from a byte array) - // . datetime, boolean, byte, short, int, long, string, ushort, unint, - // ulong - // - // First check for a string array - String[] dictionaryObjectAsStringArray = null; - byte[] dictionaryObjectAsByteArray = null; - if (dictionaryObject != null) { - dictionaryObjectAsStringArray = (String[]) dictionaryObject; - dictionaryObjectAsByteArray = (byte[]) dictionaryObject; - } - if (dictionaryObjectAsStringArray != null) { - this.writeEntryTypeToXml(writer, - UserConfigurationDictionaryObjectType.StringArray); - - for (String arrayElement : dictionaryObjectAsStringArray) { - this.writeEntryValueToXml(writer, arrayElement); - } - } else { - // if not a string array, all other object values are returned as a - // single element - UserConfigurationDictionaryObjectType dictionaryObjectType = - UserConfigurationDictionaryObjectType.String; - String valueAsString = null; - - if (dictionaryObjectAsByteArray != null) { - // Convert byte array to base64 string - dictionaryObjectType = UserConfigurationDictionaryObjectType. - ByteArray; - valueAsString = Base64EncoderStream - .encode(dictionaryObjectAsByteArray); + /** + * Writes a dictionary Object's value to Xml. + * + * @param writer + * The writer. + * @param dictionaryObject + * The dictionary object to write.
+ * Object values are either: an array of strings or a single + * value
+ * Single values can be:
+ * - base64 string (from a byte array), datetime, boolean, byte, + * int, long, string + * @throws javax.xml.stream.XMLStreamException + * the xML stream exception + * @throws ServiceXmlSerializationException + * the service xml serialization exception + */ + private void writeObjectValueToXml(final EwsServiceXmlWriter writer, + final Object dictionaryObject) throws XMLStreamException, + ServiceXmlSerializationException { + // Preconditions + if (dictionaryObject == null) { + throw new NullPointerException("DictionaryObject must not be null"); + } else if (writer == null) { + throw new NullPointerException( + "EwsServiceXmlWriter must not be null"); + } + + // Processing + UserConfigurationDictionaryObjectType dictionaryObjectType = UserConfigurationDictionaryObjectType.StringArray; + if (dictionaryObject instanceof String[]) { + this.writeEntryTypeToXml(writer, dictionaryObjectType); + + for (String arrayElement : (String[]) dictionaryObject) { + this.writeEntryValueToXml(writer, arrayElement); + } + } else { + String valueAsString = null; + if (dictionaryObject instanceof String) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.String; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Boolean) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.Boolean; + valueAsString = EwsUtilities + .boolToXSBool((Boolean) dictionaryObject); + } else if (dictionaryObject instanceof Byte) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.Byte; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Date) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.DateTime; + valueAsString = writer.getService() + .convertDateTimeToUniversalDateTimeString( + (Date) dictionaryObject); + } else if (dictionaryObject instanceof Integer) { + // removed unsigned integer because in Java, all types are + // signed, there are no unsigned versions + dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer32; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Long) { + // removed unsigned integer because in Java, all types are + // signed, there are no unsigned versions + dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer64; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Byte[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; + valueAsString = Base64EncoderStream + .encode((byte[]) dictionaryObject); + } else { + throw new IllegalArgumentException(String.format( + "Unsupported type: %s", dictionaryObject.getClass() + .toString())); + } + this.writeEntryTypeToXml(writer, dictionaryObjectType); + this.writeEntryValueToXml(writer, valueAsString); + } + } - } else { - // Handle all other types by TypeCode - if (dictionaryObject.getClass().equals(Boolean.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.Boolean; - valueAsString = EwsUtilities - .boolToXSBool((Boolean) dictionaryObject); - - } else if (dictionaryObject.getClass().equals(Byte.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.Byte; - valueAsString = dictionaryObject.toString(); - } else if (dictionaryObject.getClass().equals(Date.class)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.DateTime; - valueAsString = writer.getService() - .convertDateTimeToUniversalDateTimeString( - (Date) dictionaryObject); - } else if (dictionaryObject.getClass().equals(Integer.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.Integer32; - valueAsString = dictionaryObject.toString(); - } else if (dictionaryObject.getClass().equals(Long.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.Integer64; - valueAsString = dictionaryObject.toString(); - } else if (dictionaryObject.getClass().equals(String.class)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.String; - valueAsString = (String) dictionaryObject; - } else if (dictionaryObject.getClass().equals(Integer.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.UnsignedInteger32; - valueAsString = dictionaryObject.toString(); - } else if (dictionaryObject.getClass().equals(Long.TYPE)) { - dictionaryObjectType = - UserConfigurationDictionaryObjectType.UnsignedInteger64; - valueAsString = dictionaryObject.toString(); - } else { - EwsUtilities - .EwsAssert( - false, - "UserConfigurationDictionary." + - "WriteObjectValueToXml", - "Unsupported type: " - + dictionaryObject.getClass() - .toString()); - } - } - - this.writeEntryTypeToXml(writer, dictionaryObjectType); - this.writeEntryValueToXml(writer, valueAsString); - } - } /** * Writes a dictionary entry type to Xml. From 6cb0e7e228aa86bb6e9e553942f33bd4103f052c Mon Sep 17 00:00:00 2001 From: "A. B." Date: Fri, 10 Oct 2014 20:31:34 +0200 Subject: [PATCH 047/338] Fix #90:[java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - imports optimized --- .../webservices/data/UserConfigurationDictionary.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 81cfac9d0..20019762e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -10,18 +10,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.lang.reflect.Array; import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.Map.Entry; -import javax.xml.stream.XMLStreamException; - /** * Represents a user configuration's Dictionary property. */ From da4ce29f6424dfb6f0f46293d68a7345b8853485 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 15:10:54 +0200 Subject: [PATCH 048/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - Fixed Errormsg --- .../exchange/webservices/data/UserConfigurationDictionary.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 20019762e..8a27b92d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -753,8 +753,7 @@ private void validateObjectType(Type type) throws ServiceLocalException { isValidType = true; } if (!isValidType) { - throw new ServiceLocalException(String.format("%s,%s", - Strings.ObjectTypeNotSupported, type)); + throw new ServiceLocalException(String.format(Strings.ObjectTypeNotSupported, type)); } } From 39fc9c9b0a2b9c66a0ecd2b27f72aba9e465a0c5 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 15:19:20 +0200 Subject: [PATCH 049/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - added Junit Test as mentioned by @vboctor - the testAddSupportedElementsToDictionary() shows another issue because validation of Elements only allows Int, long, byte, boolean primitives but casting a primitive to Object also makes it a wrapper --- .../data/UserConfigurationDictionaryTest.java | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java new file mode 100644 index 000000000..d0f67f837 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -0,0 +1,144 @@ +package microsoft.exchange.webservices.data; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +import java.io.ByteArrayOutputStream; +import java.io.OutputStream; +import java.util.Date; + +/** + * Testclass for methods of UserConfigurationDictionary + * + * @author serious6 + */ +@RunWith(JUnit4.class) +public class UserConfigurationDictionaryTest { + + /** + * Mock for the UserConfigurationDictionary + */ + private UserConfigurationDictionary userConfigurationDictionary; + /** + * Mock for the ExchangeServiceBase + */ + private ExchangeServiceBase exchangeServiceMock; + + /** + * Setup Mocks and the UserConfigurationDictionary Object + * + * @throws Exception + */ + @Before + public void setup() throws Exception { + // Initialise a UserConfigurationDictionary Testobject + this.userConfigurationDictionary = new UserConfigurationDictionary(); + + // Mock up ExchangeServiceBase + this.exchangeServiceMock = new ExchangeServiceBase() { + @Override + protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) throws Exception { + throw webException; + } + }; + } + + /** + * Adding a Double Value to the Dictionary witch is not allowed + * + * @throws Exception + */ + @Test(expected = ServiceLocalException.class) + public void testAddUnsupportedElementsToDictionary() throws Exception { + this.userConfigurationDictionary.addElement("someDouble", (Double) 1.0); + } + + /** + * testAddSupportedElementsToDictionary + * + * @throws Exception + */ + @Test + public void testAddSupportedElementsToDictionary() throws Exception { + fillDictionaryWithValidEntries(); + } + + /** + * Fills the Dictionary with + * + * @throws Exception + */ + private void fillDictionaryWithValidEntries() throws Exception { + // Adding Test Values to the Object + final int testInt = 1; + final long testLong = 1l; + final String testString = "someVal"; + final String[] testStringArray = new String[]{"test1", "test2", "test3"}; + final Date testDate = new Date(); + final boolean testBoolean = true; + final byte testByte = Byte.decode("0x10"); + final byte[] testByteArray = testString.getBytes(); + + Assert.assertNotNull(this.userConfigurationDictionary); + + this.userConfigurationDictionary.addElement("someString", testString); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someString")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someString") instanceof String); + + this.userConfigurationDictionary.addElement("someLong", testLong); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someLong")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someLong")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someLong") instanceof Long); + + this.userConfigurationDictionary.addElement("someInteger", testInt); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someInteger")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someInteger")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someInteger") instanceof Integer); + + this.userConfigurationDictionary.addElement("someString[]", testStringArray); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString[]")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someString[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someString[]") instanceof String[]); + + this.userConfigurationDictionary.addElement("someDate", testDate); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someDate")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someDate")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someDate") instanceof Date); + + this.userConfigurationDictionary.addElement("someBoolean", testBoolean); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someBoolean")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someBoolean")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someBoolean") instanceof Boolean); + + this.userConfigurationDictionary.addElement("someByte", testByte); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someByte")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte") instanceof Byte); + + this.userConfigurationDictionary.addElement("someByte[]", testByteArray); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte[]")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someByte[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte[]") instanceof byte[]); + } + + /** + * Tests the Method writeElementsToXml(...) + * with all valid Elements + */ + @Test + public void testWriteElementsToXml() throws Exception { + // Mock up needed Classes + OutputStream output = new ByteArrayOutputStream(); + EwsServiceXmlWriter testWriter = new EwsServiceXmlWriter(exchangeServiceMock, output); + + // Adding Test Values to the Object + fillDictionaryWithValidEntries(); + + // Write the Elements + this.userConfigurationDictionary.writeElementsToXml(testWriter); + } +} From 034a975a2757f8aa5078ba4f870af2381c94a097 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 15:27:14 +0200 Subject: [PATCH 050/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - JavaDoc clarified @vboctor --- .../webservices/data/UserConfigurationDictionary.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 8a27b92d0..036b2d63f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -282,11 +282,10 @@ private void writeObjectToXml(EwsServiceXmlWriter writer, * The writer. * @param dictionaryObject * The dictionary object to write.
- * Object values are either: an array of strings or a single - * value
- * Single values can be:
- * - base64 string (from a byte array), datetime, boolean, byte, - * int, long, string + * Object values are either:
+ * an array of strings, an array of bytes (which will be encoded into base64)
+ * or a single value. Single values can be:
+ * - datetime, boolean, byte, int, long, string * @throws javax.xml.stream.XMLStreamException * the xML stream exception * @throws ServiceXmlSerializationException From 9109516f873e1944b7ad14e80efed084b28b337c Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 15:33:55 +0200 Subject: [PATCH 051/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - moved assignment of UserConfigurationDictionaryObjectType.StringArray in the StringArray block - assignment of dictionaryObjectType, valueAsString now where it is needed. Variables are also made final for single assignment. --- .../webservices/data/UserConfigurationDictionary.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 036b2d63f..6002c67bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -303,15 +303,16 @@ private void writeObjectValueToXml(final EwsServiceXmlWriter writer, } // Processing - UserConfigurationDictionaryObjectType dictionaryObjectType = UserConfigurationDictionaryObjectType.StringArray; + final UserConfigurationDictionaryObjectType dictionaryObjectType; if (dictionaryObject instanceof String[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.StringArray; this.writeEntryTypeToXml(writer, dictionaryObjectType); for (String arrayElement : (String[]) dictionaryObject) { this.writeEntryValueToXml(writer, arrayElement); } } else { - String valueAsString = null; + final String valueAsString; if (dictionaryObject instanceof String) { dictionaryObjectType = UserConfigurationDictionaryObjectType.String; valueAsString = String.valueOf(dictionaryObject); From 9ea8a7143545c08b79de1e6cedf8dedf8c0af447 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 16:24:03 +0200 Subject: [PATCH 052/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - fixed JUnit --- .../data/UserConfigurationDictionaryTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index d0f67f837..7f8fd35b5 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -91,37 +91,37 @@ private void fillDictionaryWithValidEntries() throws Exception { this.userConfigurationDictionary.addElement("someLong", testLong); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someLong")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someLong")); + Assert.assertEquals(testLong, this.userConfigurationDictionary.getElements("someLong")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someLong") instanceof Long); this.userConfigurationDictionary.addElement("someInteger", testInt); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someInteger")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someInteger")); + Assert.assertEquals(testInt, this.userConfigurationDictionary.getElements("someInteger")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someInteger") instanceof Integer); this.userConfigurationDictionary.addElement("someString[]", testStringArray); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString[]")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someString[]")); + Assert.assertEquals(testStringArray, this.userConfigurationDictionary.getElements("someString[]")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someString[]") instanceof String[]); this.userConfigurationDictionary.addElement("someDate", testDate); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someDate")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someDate")); + Assert.assertEquals(testDate, this.userConfigurationDictionary.getElements("someDate")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someDate") instanceof Date); this.userConfigurationDictionary.addElement("someBoolean", testBoolean); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someBoolean")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someBoolean")); + Assert.assertEquals(testBoolean, this.userConfigurationDictionary.getElements("someBoolean")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someBoolean") instanceof Boolean); this.userConfigurationDictionary.addElement("someByte", testByte); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someByte")); + Assert.assertEquals(testByte, this.userConfigurationDictionary.getElements("someByte")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte") instanceof Byte); this.userConfigurationDictionary.addElement("someByte[]", testByteArray); Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte[]")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someByte[]")); + Assert.assertEquals(testByteArray, this.userConfigurationDictionary.getElements("someByte[]")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte[]") instanceof byte[]); } From 90546bfd72c554a9ec0e4045ae518e36e4e9a558 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 16:31:05 +0200 Subject: [PATCH 053/338] Fix #94: [microsoft.exchange.webservices.data.ServiceLocalException] When adding Elements to UserConfigurationDictionary Always check for wrapper types since there is no contentual difference except of being null. which is added to the conditions. --- .../data/UserConfigurationDictionary.java | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 6002c67bc..65d4f584f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -10,6 +10,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.management.Query; import javax.xml.stream.XMLStreamException; import java.lang.reflect.Array; import java.lang.reflect.Type; @@ -338,6 +339,10 @@ private void writeObjectValueToXml(final EwsServiceXmlWriter writer, // signed, there are no unsigned versions dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer64; valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof byte[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; + valueAsString = Base64EncoderStream + .encode((byte[]) dictionaryObject); } else if (dictionaryObject instanceof Byte[]) { dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; valueAsString = Base64EncoderStream @@ -687,7 +692,7 @@ private void validateObject(Object dictionaryObject) throws Exception { this.validateArrayObject(newArray); } else{ - this.validateObjectType(dictionaryObject.getClass()); + this.validateObjectType(dictionaryObject); } @@ -736,24 +741,30 @@ private void validateArrayObject(Object[] dictionaryObjectAsArray) /** * Validates the dictionary object type. * - * @param type - * Type to validate. + * @param theObject + * Object to validate. * @throws microsoft.exchange.webservices.data.ServiceLocalException * the service local exception */ - private void validateObjectType(Type type) throws ServiceLocalException { + private void validateObjectType(Object theObject) throws ServiceLocalException { // This logic is based on // Microsoft.Exchange.Data.Storage.ConfigurationDictionary. // CheckElementSupportedType(). boolean isValidType = false; - if (type.equals(Boolean.TYPE) || type.equals(Byte.TYPE) - || type.equals(Date.class) || type.equals(Integer.TYPE) - || type.equals(Long.TYPE) || type.equals(String.class) - || type.equals(Integer.TYPE) || type.equals(Long.TYPE)) { - isValidType = true; - } + if (theObject != null){ + if (theObject instanceof String || + theObject instanceof Boolean || + theObject instanceof Byte || + theObject instanceof Long || + theObject instanceof Date || + theObject instanceof Integer) + isValidType = true; + } + if (!isValidType) { - throw new ServiceLocalException(String.format(Strings.ObjectTypeNotSupported, type)); + throw new ServiceLocalException( + String.format(Strings.ObjectTypeNotSupported, (theObject != null ? + theObject.getClass().toString() : "null"))); } } From ae7ae70c514a6b41a7248ef41e8915fe85344120 Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 16:45:57 +0200 Subject: [PATCH 054/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - null checks as independent statements. @vboctor --- .../exchange/webservices/data/UserConfigurationDictionary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 65d4f584f..e1c7810ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -298,7 +298,8 @@ private void writeObjectValueToXml(final EwsServiceXmlWriter writer, // Preconditions if (dictionaryObject == null) { throw new NullPointerException("DictionaryObject must not be null"); - } else if (writer == null) { + } + if (writer == null) { throw new NullPointerException( "EwsServiceXmlWriter must not be null"); } From 6c96af706f31091ed257c6d497835d00132954dd Mon Sep 17 00:00:00 2001 From: "A. B." Date: Sat, 11 Oct 2014 19:34:42 +0200 Subject: [PATCH 055/338] Pull request #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration - added conversion from Byte[] -> byte[] for avoiding Exceptions as mentioned by @Noblebrown - added Byte[] to the Test --- .../data/UserConfigurationDictionary.java | 14 ++++++++++---- .../data/UserConfigurationDictionaryTest.java | 9 +++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index e1c7810ab..9597c2731 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -342,12 +342,18 @@ private void writeObjectValueToXml(final EwsServiceXmlWriter writer, valueAsString = String.valueOf(dictionaryObject); } else if (dictionaryObject instanceof byte[]) { dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; - valueAsString = Base64EncoderStream - .encode((byte[]) dictionaryObject); + valueAsString = Base64EncoderStream.encode((byte[]) dictionaryObject); } else if (dictionaryObject instanceof Byte[]) { dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; - valueAsString = Base64EncoderStream - .encode((byte[]) dictionaryObject); + + // cast Byte[] to byte[] + Byte[] from = (Byte[]) dictionaryObject; + byte[] to = new byte[from.length]; + for (int currentIndex = 0; currentIndex < from.length; currentIndex++) { + to[currentIndex] = (byte) from[currentIndex]; + } + + valueAsString = Base64EncoderStream.encode(to); } else { throw new IllegalArgumentException(String.format( "Unsupported type: %s", dictionaryObject.getClass() diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index 7f8fd35b5..9162d8fa1 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -81,6 +81,10 @@ private void fillDictionaryWithValidEntries() throws Exception { final boolean testBoolean = true; final byte testByte = Byte.decode("0x10"); final byte[] testByteArray = testString.getBytes(); + final Byte[] testByteArray2 = new Byte[testByteArray.length]; + for (int currentIndex = 0; currentIndex < testByteArray.length; currentIndex++) { + testByteArray2[currentIndex] = testByteArray[currentIndex]; + } Assert.assertNotNull(this.userConfigurationDictionary); @@ -123,6 +127,11 @@ private void fillDictionaryWithValidEntries() throws Exception { Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte[]")); Assert.assertEquals(testByteArray, this.userConfigurationDictionary.getElements("someByte[]")); Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte[]") instanceof byte[]); + + this.userConfigurationDictionary.addElement("someByte2[]", testByteArray2); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte2[]")); + Assert.assertEquals(testByteArray2, this.userConfigurationDictionary.getElements("someByte2[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte2[]") instanceof Byte[]); } /** From dc055b13d02957989f12c71e03a3ef8f7aebd88c Mon Sep 17 00:00:00 2001 From: Mark Janssen Date: Mon, 13 Oct 2014 21:11:41 +0200 Subject: [PATCH 056/338] Set time zone in readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone (closes #88). --- .../exchange/webservices/data/EwsServiceXmlReader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index c78943077..ecebcd6df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -17,6 +17,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.ArrayList; import java.util.Date; import java.util.List; +import java.util.TimeZone; /** * XML reader. @@ -104,13 +105,13 @@ public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() try { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); - //formatter.setTimeZone(TimeZone.getTimeZone("UTC")); + formatter.setTimeZone(TimeZone.getTimeZone("UTC")); tempDate = formatter.parse(date); } catch (Exception e) { //e.printStackTrace(); DateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSS"); - //formatter.setTimeZone(TimeZone.getTimeZone("UTC")); + formatter.setTimeZone(TimeZone.getTimeZone("UTC")); tempDate = formatter.parse(date); } From a820ebf366fb91a8d3ee9a5fd430af79f55435c7 Mon Sep 17 00:00:00 2001 From: The Gitter Badger Date: Sun, 26 Oct 2014 02:26:24 +0000 Subject: [PATCH 057/338] Added Gitter badge --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 1a22c8d95..8e0bec2bb 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,7 @@ [![Build Status](https://travis-ci.org/OfficeDev/ews-java-api.svg)](https://travis-ci.org/OfficeDev/ews-java-api) # Getting Started with the EWS JAVA API +[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/OfficeDev/ews-java-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Using the EWS JAVA API for https From 653b4d6a99fdf34d7e9adbfc7e72c3ed6418913f Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 25 Oct 2014 19:31:04 -0700 Subject: [PATCH 058/338] Moved the readme badges next to each other --- readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 8e0bec2bb..5838fa2be 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,6 @@ -[![Build Status](https://travis-ci.org/OfficeDev/ews-java-api.svg)](https://travis-ci.org/OfficeDev/ews-java-api) +[![Build Status](https://travis-ci.org/OfficeDev/ews-java-api.svg)](https://travis-ci.org/OfficeDev/ews-java-api) [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/OfficeDev/ews-java-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Getting Started with the EWS JAVA API -[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/OfficeDev/ews-java-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Using the EWS JAVA API for https From 13edcaff95022dc042e92a0479ac18e69c873693 Mon Sep 17 00:00:00 2001 From: serious6 Date: Wed, 29 Oct 2014 15:51:24 -0700 Subject: [PATCH 059/338] Fix #34: Task.setPercentComplete() sets a String vs. Double Signed-off-by: Victor Boctor --- pom.xml | 8 + .../exchange/webservices/data/Task.java | 123 ++++++++------ .../exchange/webservices/data/BaseTest.java | 48 ++++++ .../webservices/data/EwsUtilitiesTest.java | 11 +- .../exchange/webservices/data/TaskTest.java | 154 ++++++++++++++++++ .../data/UserConfigurationDictionaryTest.java | 33 ++-- 6 files changed, 303 insertions(+), 74 deletions(-) create mode 100644 src/test/java/microsoft/exchange/webservices/data/BaseTest.java create mode 100644 src/test/java/microsoft/exchange/webservices/data/TaskTest.java diff --git a/pom.xml b/pom.xml index ee1d17dbc..4af4cb987 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,14 @@ junit junit 4.11 + test + + + + org.hamcrest + hamcrest-all + 1.3 + test diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index 363d61940..f947ef0b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -23,7 +23,7 @@ public class Task extends Item { /** * Initializes an unsaved local instance of Task.To bind to an existing * task, use Task.Bind() instead. - * + * * @param service * the service * @throws Exception @@ -35,7 +35,7 @@ public Task(ExchangeService service) throws Exception { /** * Initializes a new instance of the class. - * + * * @param parentAttachment * the parent attachment * @throws Exception @@ -48,7 +48,7 @@ protected Task(ItemAttachment parentAttachment) throws Exception { /** * Binds to an existing task and loads the specified set of properties. * Calling this method results in a call to EWS. - * + * * @param service * the service * @param id @@ -68,7 +68,7 @@ public static Task bind(ExchangeService service, ItemId id, /** * Binds to an existing task and loads its first class properties. Calling * this method results in a call to EWS. - * + * * @param service * the service * @param id @@ -85,7 +85,7 @@ public static Task bind(ExchangeService service, ItemId id) /** * Internal method to return the schema associated with this type of object. - * + * * @return The schema associated with this type of object. */ @Override @@ -95,7 +95,7 @@ protected ServiceObjectSchema getSchema() { /** * Gets the minimum required server version. - * + * * @return Earliest Exchange version in which this service object type is * supported. */ @@ -108,7 +108,7 @@ protected ExchangeVersion getMinimumRequiredServerVersion() { * Gets a value indicating whether a time zone SOAP header should be * emitted in a CreateItem or UpdateItem request so this item can be * property saved or updated. - * + * * @param isUpdateOperation * the is update operation * @return if a time zone SOAP header should be emitted; otherwise, . @@ -123,7 +123,7 @@ protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) { * occurrence isdeleted, the task represents the next occurrence. Developers * should call Load to retrieve the new property values of the task. Calling * this method results in a call to EWS. - * + * * @param deleteMode * the delete mode * @throws ServiceLocalException @@ -141,7 +141,7 @@ public void deleteCurrentOccurrence(DeleteMode deleteMode) * Applies the local changes that have been made to this task. Calling * this method results in at least one call to EWS. Mutliple calls to EWS * might be made if attachments have been added or removed. - * + * * @param conflictResolutionMode * the conflict resolution mode * @return A Task object representing the completed occurrence if the task @@ -164,7 +164,7 @@ public Task updateTask(ConflictResolutionMode conflictResolutionMode) /** * Gets the actual amount of time that is spent on the task. - * + * * @return the actual work * @throws ServiceLocalException * the service local exception @@ -176,7 +176,7 @@ public Integer getActualWork() throws ServiceLocalException { /** * Sets the checks if is read. - * + * * @param value * the new checks if is read * @throws Exception @@ -189,7 +189,7 @@ public void setActualWork(Integer value) throws Exception { /** * Gets the date and time the task was assigned. - * + * * @return the assigned time * @throws ServiceLocalException * the service local exception @@ -201,7 +201,7 @@ public Date getAssignedTime() throws ServiceLocalException { /** * Gets the billing information of the task. - * + * * @return the billing information * @throws ServiceLocalException * the service local exception @@ -213,7 +213,7 @@ public String getBillingInformation() throws ServiceLocalException { /** * Sets the billing information. - * + * * @param value * the new billing information * @throws Exception @@ -226,7 +226,7 @@ public void setBillingInformation(String value) throws Exception { /** * Gets the number of times the task has changed since it was created. - * + * * @return the change count * @throws ServiceLocalException * the service local exception @@ -238,7 +238,7 @@ public Integer getChangeCount() throws ServiceLocalException { /** * Gets a list of companies associated with the task. - * + * * @return the companies * @throws ServiceLocalException * the service local exception @@ -250,7 +250,7 @@ public StringList getCompanies() throws ServiceLocalException { /** * Sets the companies. - * + * * @param value * the new companies * @throws Exception @@ -263,7 +263,7 @@ public void setCompanies(StringList value) throws Exception { /** * Gets the date and time on which the task was completed. - * + * * @return the complete date * @throws ServiceLocalException * the service local exception @@ -275,7 +275,7 @@ public Date getCompleteDate() throws ServiceLocalException { /** * Sets the complete date. - * + * * @param value * the new complete date * @throws Exception @@ -288,7 +288,7 @@ public void setCompleteDate(Date value) throws Exception { /** * Gets a list of contacts associated with the task. - * + * * @return the contacts * @throws ServiceLocalException * the service local exception @@ -300,7 +300,7 @@ public StringList getContacts() throws ServiceLocalException { /** * Sets the contacts. - * + * * @param value * the new contacts * @throws Exception @@ -313,7 +313,7 @@ public void setContacts(StringList value) throws Exception { /** * Gets the current delegation state of the task. - * + * * @return the delegation state * @throws ServiceLocalException * the service local exception @@ -326,7 +326,7 @@ public TaskDelegationState getDelegationState() /** * Gets the name of the delegator of this task. - * + * * @return the delegator * @throws ServiceLocalException * the service local exception @@ -338,7 +338,7 @@ public String getDelegator() throws ServiceLocalException { /** * Gets a list of contacts associated with the task. - * + * * @return the due date * @throws ServiceLocalException * the service local exception @@ -350,7 +350,7 @@ public Date getDueDate() throws ServiceLocalException { /** * Sets the due date. - * + * * @param value * the new due date * @throws Exception @@ -363,7 +363,7 @@ public void setDueDate(Date value) throws Exception { /** * Gets a value indicating the mode of the task. - * + * * @return the mode * @throws ServiceLocalException * the service local exception @@ -375,7 +375,7 @@ public TaskMode getMode() throws ServiceLocalException { /** * Gets a value indicating whether the task is complete. - * + * * @return the checks if is complete * @throws ServiceLocalException * the service local exception @@ -387,7 +387,7 @@ public Boolean getIsComplete() throws ServiceLocalException { /** * Gets a value indicating whether the task is recurring. - * + * * @return the checks if is recurring * @throws ServiceLocalException * the service local exception @@ -399,7 +399,7 @@ public Boolean getIsRecurring() throws ServiceLocalException { /** * Gets a value indicating whether the task is a team task. - * + * * @return the checks if is team task * @throws ServiceLocalException * the service local exception @@ -411,7 +411,7 @@ public Boolean getIsTeamTask() throws ServiceLocalException { /** * Gets the mileage of the task. - * + * * @return the mileage * @throws ServiceLocalException * the service local exception @@ -423,7 +423,7 @@ public String getMileage() throws ServiceLocalException { /** * Sets the mileage. - * + * * @param value * the new mileage * @throws Exception @@ -436,7 +436,7 @@ public void setMileage(String value) throws Exception { /** * Gets the name of the owner of the task. - * + * * @return the owner * @throws ServiceLocalException * the service local exception @@ -447,9 +447,10 @@ public String getOwner() throws ServiceLocalException { } /** - * Gets the completeion percentage of the task. PercentComplete must - * be between 0 and 100. - * + * Gets the completion percentage of the task. + * PercentComplete must be between + * 0 and 100. + * * @return the percent complete * @throws ServiceLocalException * the service local exception @@ -459,15 +460,39 @@ public Double getPercentComplete() throws ServiceLocalException { TaskSchema.PercentComplete); } - /** - * Sets the percent complete. - * + /** + * Sets the completion percentage of the task. + * PercentComplete must be between + * 0.0 and 100.0 . + * + * @param value + * the new percent complete + * @deprecated + * use Double parameter instead + * @throws Exception + * the exception + */ + @Deprecated + public void setPercentComplete(String value) throws Exception { + setPercentComplete(Double.valueOf(value)); + } + + /** + * Sets the completion percentage of the task. + * PercentComplete must be between + * 0.0 and 100.0 . + * * @param value * the new percent complete * @throws Exception * the exception */ - public void setPercentComplete(String value) throws Exception { + public void setPercentComplete(Double value) throws Exception { + if (value == null || Double.isNaN(value) || value < 0.0 || value > 100.0){ + throw new IllegalArgumentException( + String.format(Strings.InvalidPropertyValueNotInRange, + ((value != null)? value : "null"), 0.0, 100)); + } this.getPropertyBag().setObjectFromPropertyDefinition( TaskSchema.PercentComplete, value); } @@ -476,7 +501,7 @@ public void setPercentComplete(String value) throws Exception { * Gets the recurrence pattern for this task. Available recurrence * pattern classes include Recurrence.DailyPattern, * Recurrence.MonthlyPattern and Recurrence.YearlyPattern. - * + * * @return the recurrence * @throws ServiceLocalException * the service local exception @@ -488,7 +513,7 @@ public Recurrence getRecurrence() throws ServiceLocalException { /** * Sets the recurrence. - * + * * @param value * the new recurrence * @throws Exception @@ -501,7 +526,7 @@ public void setRecurrence(Recurrence value) throws Exception { /** * Gets the date and time on which the task starts. - * + * * @return the start date * @throws ServiceLocalException * the service local exception @@ -513,7 +538,7 @@ public Date getStartDate() throws ServiceLocalException { /** * Sets the start date. - * + * * @param value * the new start date * @throws Exception @@ -526,7 +551,7 @@ public void setStartDate(Date value) throws Exception { /** * Gets the status of the task. - * + * * @return the status * @throws ServiceLocalException * the service local exception @@ -538,7 +563,7 @@ public TaskStatus getStatus() throws ServiceLocalException { /** * Sets the status. - * + * * @param value * the new status * @throws Exception @@ -553,7 +578,7 @@ public void setStatus(TaskStatus value) throws Exception { * Gets a string representing the status of the task, localized according to * the PreferredCulture property of the ExchangeService object the task is * bound to. - * + * * @return the status description * @throws ServiceLocalException * the service local exception @@ -565,7 +590,7 @@ public String getStatusDescription() throws ServiceLocalException { /** * Gets the total amount of work spent on the task. - * + * * @return the total work * @throws ServiceLocalException * the service local exception @@ -577,7 +602,7 @@ public Integer getTotalWork() throws ServiceLocalException { /** * Sets the total work. - * + * * @param value * the new total work * @throws Exception @@ -592,7 +617,7 @@ public void setTotalWork(Integer value) throws Exception { * Gets the default setting for how to treat affected task occurrences on * Delete. AffectedTaskOccurrence.AllOccurrences: All affected Task * occurrences will be deleted. - * + * * @return the default affected task occurrences */ @Override diff --git a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java new file mode 100644 index 000000000..c98edef88 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java @@ -0,0 +1,48 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ +package microsoft.exchange.webservices.data; + +import org.junit.BeforeClass; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * A base class with "Common-Services" + */ +@RunWith(JUnit4.class) +public abstract class BaseTest { + + /** + * Mock for the ExchangeServiceBase + */ + protected static ExchangeServiceBase exchangeServiceBaseMock; + + /** + * Mock for the ExchangeService + */ + protected static ExchangeService exchangeServiceMock; + + /** + * Setup Mocks + * + * @throws Exception + */ + @BeforeClass + public static final void setUpBaseClass() throws Exception { + // Mock up ExchangeServiceBase + exchangeServiceBaseMock = new ExchangeServiceBase() { + @Override + protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) throws Exception { + throw webException; + } + }; + exchangeServiceMock = new ExchangeService(); + } +} diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index ba60a4cc9..74b76729a 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -1,8 +1,11 @@ /************************************************************************** - * copyright file="EwsUtilitiesTest.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the EwsUtilitiesTest.java. + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ package microsoft.exchange.webservices.data; diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java new file mode 100644 index 000000000..628d683d8 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -0,0 +1,154 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ +package microsoft.exchange.webservices.data; + +import org.hamcrest.core.IsEqual; +import org.hamcrest.core.IsInstanceOf; +import org.hamcrest.core.IsNot; +import org.hamcrest.core.IsNull; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +import static org.junit.Assert.assertThat; + +/** + * Testclass for methods of Task + */ +@RunWith(JUnit4.class) +public class TaskTest extends BaseTest { + + /** + * Mock for the Task + */ + private Task taskMock; + + /** + * Setup Mocks + * + * @throws Exception + */ + @Before + public void setup() throws Exception { + this.taskMock = new Task(this.exchangeServiceMock); + } + + /** + * Test for reading the value before it is assigned + * + * @throws Exception + */ + @Test(expected = ServiceObjectPropertyException.class) + public void testInitialValuePercent() throws Exception { + taskMock.getPercentComplete(); + } + + /** + * Test for adding 0.0 as percentCompleted + * + * @throws Exception + */ + @Test + public void testAddZeroPercent() throws Exception { + final Double targetValue = 0.0; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } + + /** + * Test for adding 100.0 as percentCompleted + * + * @throws Exception + */ + @Test + public void testAdd100Percent() throws Exception { + final Double targetValue = 100.0; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } + + /** + * Test for adding Double.MAX_VALUE as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddMaxDoublePercent() throws Exception { + final Double targetValue = Double.MAX_VALUE; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding -0.1 as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddInvalidPercent() throws Exception { + final Double targetValue = -0.1; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding +100.1 as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddInvalidPercent2() throws Exception { + final Double targetValue = +100.1; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding Double.NaN as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddNanDoublePercent() throws Exception { + final Double targetValue = Double.NaN; // closest Value to Zero + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for checking if the value changes in case of a thrown exception + * + * @throws Exception + */ + @Test + public void testDontChangeValueOnException() throws Exception { + // set valid value + final Double targetValue = 50.5; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + + final Double invalidValue = -0.1; + try { + taskMock.setPercentComplete(invalidValue); + } catch (IllegalArgumentException ex) { + // ignored + } + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } +} diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index 9162d8fa1..1c736ddb4 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -1,3 +1,12 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ package microsoft.exchange.webservices.data; import org.junit.Assert; @@ -13,37 +22,19 @@ /** * Testclass for methods of UserConfigurationDictionary * - * @author serious6 */ @RunWith(JUnit4.class) -public class UserConfigurationDictionaryTest { +public class UserConfigurationDictionaryTest extends BaseTest { /** * Mock for the UserConfigurationDictionary */ - private UserConfigurationDictionary userConfigurationDictionary; - /** - * Mock for the ExchangeServiceBase - */ - private ExchangeServiceBase exchangeServiceMock; + protected UserConfigurationDictionary userConfigurationDictionary; - /** - * Setup Mocks and the UserConfigurationDictionary Object - * - * @throws Exception - */ @Before public void setup() throws Exception { // Initialise a UserConfigurationDictionary Testobject this.userConfigurationDictionary = new UserConfigurationDictionary(); - - // Mock up ExchangeServiceBase - this.exchangeServiceMock = new ExchangeServiceBase() { - @Override - protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) throws Exception { - throw webException; - } - }; } /** @@ -142,7 +133,7 @@ private void fillDictionaryWithValidEntries() throws Exception { public void testWriteElementsToXml() throws Exception { // Mock up needed Classes OutputStream output = new ByteArrayOutputStream(); - EwsServiceXmlWriter testWriter = new EwsServiceXmlWriter(exchangeServiceMock, output); + EwsServiceXmlWriter testWriter = new EwsServiceXmlWriter(exchangeServiceBaseMock, output); // Adding Test Values to the Object fillDictionaryWithValidEntries(); From c0d3fdf5f3950b41186e08842abf49bd375b79af Mon Sep 17 00:00:00 2001 From: Felix Mayerhuber Date: Wed, 15 Oct 2014 08:54:16 +0200 Subject: [PATCH 060/338] Add configurations to make library OSGi compatible --- pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pom.xml b/pom.xml index 4af4cb987..e80523b5c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,6 +7,7 @@ com.microsoft.office ews-java-api 1.3-SNAPSHOT + bundle Exchange Web Services Java API Exchange Web Services (EWS) Java API @@ -76,6 +77,14 @@ + + + org.apache.felix + maven-bundle-plugin + 2.4.0 + true + + From d901d7cee9fa6d994c9f2d09f04d3d64a3a777f4 Mon Sep 17 00:00:00 2001 From: Mike Noordermeer Date: Mon, 13 Oct 2014 14:57:54 +0200 Subject: [PATCH 061/338] Cleanup ServiceRequestBase.buildEwsHttpWebRequest() The old implementation seemed to be a 1:1 port of C# code, that took into account all kinds of crap that only happens in C#'s HttpWebRequest (see [1], which was also mentioned in the original code), like I/O delays on the creation of OutputStreams. The new implementation could still use some work (e.g., signing is completely unsupported, the outputstream is cast to a ByteArrayOutputStream (was already in the original code)), but at least this code is readable. [1]: http://www.wintellect.com/blogs/jeffreyr/httpwebrequest-its-request-stream-and-sending-data-in-chunks Signed-off-by: Victor Boctor --- .../exchange/webservices/data/GetStream.java | 47 ----------- .../webservices/data/ServiceRequestBase.java | 84 +++---------------- 2 files changed, 10 insertions(+), 121 deletions(-) delete mode 100644 src/main/java/microsoft/exchange/webservices/data/GetStream.java diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStream.java b/src/main/java/microsoft/exchange/webservices/data/GetStream.java deleted file mode 100644 index 01860f71e..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/GetStream.java +++ /dev/null @@ -1,47 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.OutputStream; -import java.util.concurrent.*; - -class GetStream implements Callable { - HttpWebRequest request; - String mName = ""; - - public GetStream(HttpWebRequest request, String method) { - this.request = request; - this.mName = method; - } - - public Object call() throws java.io.IOException, EWSHttpException, - HttpErrorException { - - if (this.mName.equalsIgnoreCase("getOutputStream")) - return this.getOutputStream(); - return null; - } - - public ByteArrayOutputStream getOutputStream() throws EWSHttpException { - return (ByteArrayOutputStream) request.getOutputStream(); - - } - - /* - * public ByteArrayOutputStream getOutputStream() throws Exception { return - * (ByteArrayOutputStream)request.getOutputStream(); - * - * } - */ - -} diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index b13ae7600..4952c4dec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -13,7 +13,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; import java.io.*; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; @@ -306,38 +305,6 @@ private String getRequestedServiceVersionString() { } } - /** - * Get the request stream - * - *@param request - * The request - * @throws java.util.concurrent.ExecutionException - * @throws InterruptedException - * @return The Request stream - */ - private ByteArrayOutputStream getWebRequestStream(Future request) - throws EWSHttpException, InterruptedException, ExecutionException { - // In the async case, although we can use async callback to make the - // entire worflow completely async, - // there is little perf gain with this approach because of EWS's message - // nature. - // The overall latency of BeginGetRequestStream() is same as - // GetRequestStream() in this case. - // The overhead to implement a two-step async operation includes wait - // handle synchronization, exception handling and wrapping. - // Therefore, we only leverage BeginGetResponse() and EndGetReponse() to - // provide the async functionality. - // Reference: - // http://www.wintellect.com/CS/blogs/jeffreyr/archive/2009/02/08/httpwebrequest-its-request-stream-and-sending-data-in-chunks.aspx - // return - // request.endGetRequestStream(request.beginGetRequestStream(request, - // null)); - - return (ByteArrayOutputStream) request.get(); - // return ( ByteArrayOutputStream)request.getOutputStream(); - - } - /** * Gets the response stream (may be wrapped with GZip/Deflate stream to * decompress content). @@ -716,55 +683,24 @@ protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, */ protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { try { - HttpWebRequest request = this.getService().prepareHttpWebRequest(); - AsyncExecutor ae = new AsyncExecutor(); - - // ExecutorService es = CallableSingleTon.getExecutor(); - Callable getStream = new GetStream(request, "getOutputStream"); - Future task = ae.submit(getStream, null); - ae.shutdown(); - this.getService().traceHttpRequestHeaders(TraceFlags.EwsRequestHttpHeaders, request); + HttpWebRequest request = service.prepareHttpWebRequest(); - boolean needSignature = this.getService().getCredentials() != null - && this.getService().getCredentials().isNeedSignature(); - boolean needTrace = this.getService().isTraceEnabledFor( - TraceFlags.EwsRequest); + service.traceHttpRequestHeaders(TraceFlags.EwsRequestHttpHeaders, request); - /* - * If tracing is enabled, we generate the request in-memory so that - * we can pass it along to the ITraceListener. Then we copy the - * stream to the request stream. - */ + ByteArrayOutputStream requestStream = (ByteArrayOutputStream) request.getOutputStream(); - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - - EwsServiceXmlWriter writer = new EwsServiceXmlWriter(this - .getService(), memoryStream); + EwsServiceXmlWriter writer = new EwsServiceXmlWriter(service, requestStream); + boolean needSignature = service.getCredentials() != null && service.getCredentials().isNeedSignature(); writer.setRequireWSSecurityUtilityNamespace(needSignature); - this.writeToXml(writer); - if (needSignature || needTrace) { - if (needSignature) { - this.service.getCredentials().sign(memoryStream); - } + writeToXml(writer); - if (needTrace) { - this.getService().traceXml(TraceFlags.EwsRequest, - memoryStream); - } + if (needSignature) { + service.getCredentials().sign(requestStream); + } - ByteArrayOutputStream serviceRequestStream = this.getWebRequestStream(task); - EwsUtilities.copyStream(memoryStream, serviceRequestStream); - } else { - ByteArrayOutputStream requestStream = this - .getWebRequestStream(task); - - EwsServiceXmlWriter writer1 = new EwsServiceXmlWriter(this - .getService(), requestStream); - - this.writeToXml(writer1); - } + service.traceXml(TraceFlags.EwsRequest, requestStream); return request; } catch (IOException e) { From 10c9140062dda1b50b6a2bd9f375b226216a5079 Mon Sep 17 00:00:00 2001 From: serious6 Date: Mon, 3 Nov 2014 08:40:20 -0800 Subject: [PATCH 062/338] Fix #102: Attachment's validate() is messed up - removed printed exceptions - made method abstract in Attachment - made methods in subclasses protected Signed-off-by: Victor Boctor --- .../exchange/webservices/data/Attachment.java | 4 +-- .../webservices/data/FileAttachment.java | 28 +++++++------------ .../webservices/data/ItemAttachment.java | 28 ++++--------------- 3 files changed, 17 insertions(+), 43 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index 6faf99bc4..c5c70ece6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -396,9 +396,7 @@ protected void internalLoad(BodyType bodyType, * @throws Exception * the exception */ - void validate(int attachmentIndex) throws ServiceValidationException, - Exception { - } + abstract void validate(int attachmentIndex) throws Exception; /** * Loads the attachment. Calling this method results in a call to EWS. diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index 36291781a..10cbfd4f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -55,24 +55,16 @@ protected String getXmlElementName() { return XmlElementNames.FileAttachment; } - /** - * Validates this instance. - * - * @param attachmentIndex - * the attachment index - * @throws ServiceValidationException - * the service validation exception - */ - void validate(int attachmentIndex) throws ServiceValidationException { - try { - if ((this.fileName == null || this.fileName.isEmpty()) - && (this.content == null) && (this.contentStream == null)) { - throw new ServiceValidationException(String.format( - Strings.FileAttachmentContentIsNotSet, - attachmentIndex)); - } - } catch (Exception e) { - e.printStackTrace(); + /** + * {@inheritDoc} + */ + @Override + protected void validate(int attachmentIndex) throws ServiceValidationException { + if ((this.fileName == null || this.fileName.isEmpty()) + && this.content == null && this.contentStream == null) { + throw new ServiceValidationException(String.format( + Strings.FileAttachmentContentIsNotSet, + attachmentIndex)); } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 35a59e007..72abea561 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -164,34 +164,18 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) } } - /** - * Validates this instance. - * - * @param attachmentIndex - * the attachment index - * @throws Exception - * the exception - */ + /** + * {@inheritDoc} + */ @Override protected void validate(int attachmentIndex) throws Exception { - // String s = "null"; - if (this.getName() == null || this.getName().isEmpty()) { - try { - throw new ServiceValidationException(String.format( - Strings.ItemAttachmentMustBeNamed, attachmentIndex)); - } catch (Exception e) { - e.printStackTrace(); - } + throw new ServiceValidationException(String.format( + Strings.ItemAttachmentMustBeNamed, attachmentIndex)); } // Recurse through any items attached to item attachment. - try { - this.validate(); - } catch (ServiceValidationException sve) { - sve.printStackTrace(); - - } + this.validate(); } /** From a3a4e1409f9257c3d1f6d41dbe92614b8a112f57 Mon Sep 17 00:00:00 2001 From: serious6 Date: Sun, 2 Nov 2014 10:08:48 +0100 Subject: [PATCH 063/338] Fix #29: Improper type check in ExchangeService.bindToFolder - fixed type-check as inteded in #11 - fixed Exception message Signed-off-by: Victor Boctor --- .../exchange/webservices/data/ExchangeService.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 4a169afb3..7f39252bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -374,15 +374,13 @@ protected Folder bindToFolder(FolderId folderId, PropertySet propertySet) */ protected TFolder bindToFolder(Class cls, FolderId folderId, PropertySet propertySet) throws Exception { - Folder result = this.bindToFolder(folderId, propertySet); - if (result instanceof Folder) { + if (cls.isAssignableFrom(result.getClass())) { return (TFolder) result; } else { - throw new ServiceLocalException(String.format("%s,%s,%s", - Strings.FolderTypeNotCompatible, result.getClass() - .getName(), cls.getName())); + throw new ServiceLocalException(String.format(Strings.FolderTypeNotCompatible, + result.getClass().getName(), cls.getName())); } } From ba24ae86834a97c1b45ce15adafd7714ee523fde Mon Sep 17 00:00:00 2001 From: Jim Dunkerton Date: Sun, 2 Nov 2014 20:49:43 +0000 Subject: [PATCH 064/338] Issue #109 : use equals() instead of == for String comparison. --- .../microsoft/exchange/webservices/data/EwsXmlReader.java | 4 ++-- .../webservices/data/GetStreamingEventsResponse.java | 6 +++--- .../webservices/data/GetStreamingEventsResults.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 477606b66..72a5a1aec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -115,8 +115,8 @@ private void internalReadElement(XmlNamespace xmlNamespace, this.read(nodeType); if ((!this.getLocalName().equals(localName)) || - (this.getNamespaceUri() != EwsUtilities - .getNamespaceUri(xmlNamespace))) { + (!this.getNamespaceUri().equals(EwsUtilities + .getNamespaceUri(xmlNamespace)))) { throw new ServiceXmlDeserializationException( String .format( diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index 6be07fc0b..8fe95cc6f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -60,10 +60,10 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) reader.read(); - if(reader.getLocalName() == XmlElementNames.Notifications) { + if(reader.getLocalName().equals(XmlElementNames.Notifications)) { this.results.loadFromXml(reader); } - else if(reader.getLocalName() == XmlElementNames.ConnectionStatus) { + else if(reader.getLocalName().equals(XmlElementNames.ConnectionStatus)) { String connectionStatus = reader.readElementValue(XmlNamespace. Messages,XmlElementNames.ConnectionStatus); @@ -89,7 +89,7 @@ protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, reader.read(); if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT && - reader.getLocalName() == XmlElementNames.SubscriptionId) { + reader.getLocalName().equals(XmlElementNames.SubscriptionId)) { this.getErrorSubscriptionIds().add( reader.readElementValue(XmlNamespace.Messages, XmlElementNames.SubscriptionId)); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index ce61d6e8d..a44319819 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -124,7 +124,7 @@ private void loadNotificationEventFromXml( reader.read(); - if (reader.getLocalName() == XmlElementNames.FolderId) { + if (reader.getLocalName().equals(XmlElementNames.FolderId)) { notificationEvent = new FolderEvent(eventType, timestamp); } else { From e550b5fcc6551ee6338f150c7a123ad19658a50d Mon Sep 17 00:00:00 2001 From: serious6 Date: Thu, 4 Dec 2014 16:43:11 -0800 Subject: [PATCH 065/338] Fix #4: Incorporate Java Conding Style Add IntelliJ coding style files based on Google coding style. --- .gitignore | 17 +++++-- .idea/.name | 1 + .idea/codeStyleSettings.xml | 50 +++++++++++++++++++ .idea/compiler.xml | 30 +++++++++++ .idea/copyright/profiles_settings.xml | 3 ++ .idea/encodings.xml | 7 +++ ...Maven__commons_codec_commons_codec_1_2.xml | 13 +++++ ...mons_httpclient_commons_httpclient_3_1.xml | 13 +++++ ...n__commons_logging_commons_logging_1_2.xml | 13 +++++ .idea/libraries/Maven__jcifs_jcifs_1_3_17.xml | 13 +++++ .idea/libraries/Maven__junit_junit_4_11.xml | 13 +++++ .../Maven__org_hamcrest_hamcrest_all_1_3.xml | 13 +++++ .../Maven__org_hamcrest_hamcrest_core_1_3.xml | 13 +++++ .idea/misc.xml | 17 +++++++ .idea/modules.xml | 9 ++++ .idea/scopes/scope_settings.xml | 5 ++ .idea/vcs.xml | 7 +++ CONTRIBUTING.md | 15 ++++++ ews-java-api.iml | 22 ++++++++ 19 files changed, 270 insertions(+), 4 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/codeStyleSettings.xml create mode 100644 .idea/compiler.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/libraries/Maven__commons_codec_commons_codec_1_2.xml create mode 100644 .idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml create mode 100644 .idea/libraries/Maven__commons_logging_commons_logging_1_2.xml create mode 100644 .idea/libraries/Maven__jcifs_jcifs_1_3_17.xml create mode 100644 .idea/libraries/Maven__junit_junit_4_11.xml create mode 100644 .idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml create mode 100644 .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 ews-java-api.iml diff --git a/.gitignore b/.gitignore index 8eb5ff0b2..f49213b91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ *.class -# Package Files # +# Package Files *.jar *.war *.ear @@ -11,6 +11,15 @@ .classpath .project -# IDEA project files -*.iml -.idea \ No newline at end of file +# IntelliJ +# User-specific stuff: +.idea/workspace.xml +.idea/tasks.xml +.idea/dictionaries +*.iws +# Sensitive or high-churn files: +.idea/dataSources.ids +.idea/dataSources.xml +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml \ No newline at end of file diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 000000000..8e283d75b --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +ews-java-api \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml new file mode 100644 index 000000000..fbf4d0404 --- /dev/null +++ b/.idea/codeStyleSettings.xml @@ -0,0 +1,50 @@ + + + + + + + diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 000000000..3036bfe59 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,30 @@ + + + + + + diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 000000000..e7bedf337 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 000000000..74c0d0a52 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_2.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_2.xml new file mode 100644 index 000000000..fbcb9929f --- /dev/null +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml new file mode 100644 index 000000000..66e653715 --- /dev/null +++ b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml new file mode 100644 index 000000000..eab40b329 --- /dev/null +++ b/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jcifs_jcifs_1_3_17.xml b/.idea/libraries/Maven__jcifs_jcifs_1_3_17.xml new file mode 100644 index 000000000..0eb6bca48 --- /dev/null +++ b/.idea/libraries/Maven__jcifs_jcifs_1_3_17.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_11.xml b/.idea/libraries/Maven__junit_junit_4_11.xml new file mode 100644 index 000000000..f33320d8e --- /dev/null +++ b/.idea/libraries/Maven__junit_junit_4_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml new file mode 100644 index 000000000..56193163f --- /dev/null +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 000000000..f58bbc112 --- /dev/null +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..ccf88d1b8 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..e9b29f758 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 000000000..922003b84 --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..275077f82 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c3b12aacf..d6bc079ca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,5 @@ ## Contributing to Exchange Web Services Java API +*ews-java-api* is released under the [MIT License](license.txt) and contributors are welcome. There are several ways to contribute to the project: @@ -15,6 +16,17 @@ Before submitting a feature or substantial code contribution please discuss it w * [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza * [Don't "Push" Your Pull Requests](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik. +### Coding Conventions +The project is using the _google-styleguide for Java_. Documentation of this style can be found here: [Google Java Style](https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html) + +#### Using IntelliJ +`Settings` -> `Code Style` -> `Scheme` -> _Choose_ `Project` +#### Using Eclipse +* Open *google-styleguide for Java* by clicking on: [google-styleguide](https://google-styleguide.googlecode.com/svn-history/r122/trunk/eclipse-java-google-style.xml) +* Download the file with: “Right click and save as” +* Import the new formatter: + `Window` -> `Preferences` -> `Java` -> `Code Style` -> `Formatter` -> _Choose_ `Import` and `select` the _eclipse-java-google-style.xml_ + ### Pull Requests If you don't know what a pull request is read the "[Using pull requests](https://help.github.com/articles/using-pull-requests)" article. @@ -25,6 +37,9 @@ Some guidelines for pull requests: * Base on master branch - once accepted, can be ported to stable branches. * Should cleanly merge with target branch. +### Sign the Contributor License Agreement (CLA) +Before your pull request can be accepted and merged to the main repository you need to sign the [Contributor License Agreement (CLA)](https://cla.azure.com). + ### Commit Messages 1. Separate subject from body with a blank line 2. Limit the subject line to 50 characters diff --git a/ews-java-api.iml b/ews-java-api.iml new file mode 100644 index 000000000..2ef45bc71 --- /dev/null +++ b/ews-java-api.iml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + From 13df1e892465493730c089b3146813f255a213c1 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Thu, 4 Dec 2014 16:58:28 -0800 Subject: [PATCH 066/338] Fix #134: Add travis-notification via gitter --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index dff5f3a5d..9ad07365d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,9 @@ language: java + +notifications: + webhooks: + urls: + - https://webhooks.gitter.im/e/04643d955d03eb39e24e + on_success: change # options: [always|never|change] default: always + on_failure: always # options: [always|never|change] default: always + on_start: false # default: false From ba7dee4af70bab7515a375f25fd0b3650f44c3ae Mon Sep 17 00:00:00 2001 From: avromf Date: Thu, 4 Dec 2014 23:03:06 -0800 Subject: [PATCH 067/338] Fix #12: Fix attachments additional props handling --- .../webservices/data/ExchangeService.java | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 7f39252bc..05aa37fac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -21,7 +21,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.List; import java.util.Locale; import java.util.TimeZone; -import java.util.concurrent.FutureTask; import org.w3c.dom.Document; import org.w3c.dom.Node; @@ -1539,29 +1538,29 @@ protected void deleteItem(ItemId itemId, DeleteMode deleteMode, * @throws Exception * the exception */ - private ServiceResponseCollection internalGetAttachments( - Iterable attachments, BodyType bodyType, - Iterable additionalProperties, - ServiceErrorHandling errorHandling) throws Exception { - GetAttachmentRequest request = new GetAttachmentRequest(this, - errorHandling); - - Iterator it = attachments.iterator(); - while (it.hasNext()) { - ((ArrayList) request.getAttachments()).add(it.next()); - - } - request.setBodyType(bodyType); + private ServiceResponseCollection internalGetAttachments( + Iterable attachments, BodyType bodyType, + Iterable additionalProperties, ServiceErrorHandling errorHandling) + throws Exception { + GetAttachmentRequest request = new GetAttachmentRequest(this, errorHandling); - List propsArray = new ArrayList(); - propsArray.add(additionalProperties); + Iterator it = attachments.iterator(); + while (it.hasNext()) { + ((ArrayList) request.getAttachments()).add(it.next()); - if (additionalProperties != null) { - request.getAdditionalProperties().addAll(propsArray); - } + } + request.setBodyType(bodyType); + + if (additionalProperties != null) { + List propsArray = new ArrayList(); + for (PropertyDefinitionBase propertyDefinitionBase : additionalProperties) { + propsArray.add(propertyDefinitionBase); + } + request.getAdditionalProperties().addAll(propsArray); + } - return request.execute(); - } + return request.execute(); + } /** * Gets attachments. From 7f5d3872896644c4a51d97fc851f43d33323de40 Mon Sep 17 00:00:00 2001 From: casimirenslip Date: Thu, 4 Dec 2014 23:35:38 -0800 Subject: [PATCH 068/338] Fix #42: NTLM Auth by by upgrading HttpClient Upgrade HttpClient from 3.1 to 4.3.5 Add explicit depedendency on HttpCore 4.3.3 --- ...aven__commons_codec_commons_codec_1_6.xml} | 8 +- ...mons_httpclient_commons_httpclient_3_1.xml | 13 - ...apache_httpcomponents_httpclient_4_3_5.xml | 13 + ...g_apache_httpcomponents_httpcore_4_3_3.xml | 13 + ews-java-api.iml | 5 +- pom.xml | 12 +- .../data/ByteArrayOSRequestEntity.java | 16 +- .../data/ClientCertificateCredentials.java | 62 ---- .../webservices/data/EwsJCIFSNTLMScheme.java | 242 ------------- .../data/EwsSSLProtocolSocketFactory.java | 152 ++------- .../webservices/data/ExchangeServiceBase.java | 176 ++++------ .../data/HttpClientWebRequest.java | 320 ++++++++++-------- .../webservices/data/HttpWebRequest.java | 17 +- .../data/SimpleServiceRequestBase.java | 15 +- 14 files changed, 329 insertions(+), 735 deletions(-) rename .idea/libraries/{Maven__commons_codec_commons_codec_1_2.xml => Maven__commons_codec_commons_codec_1_6.xml} (64%) delete mode 100644 .idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml create mode 100644 .idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_3_5.xml create mode 100644 .idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_3_3.xml delete mode 100644 src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java delete mode 100644 src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_2.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_6.xml similarity index 64% rename from .idea/libraries/Maven__commons_codec_commons_codec_1_2.xml rename to .idea/libraries/Maven__commons_codec_commons_codec_1_6.xml index fbcb9929f..e8a6a9f91 100644 --- a/.idea/libraries/Maven__commons_codec_commons_codec_1_2.xml +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_6.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml deleted file mode 100644 index 66e653715..000000000 --- a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_3_5.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_3_5.xml new file mode 100644 index 000000000..5601459cf --- /dev/null +++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_3_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_3_3.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_3_3.xml new file mode 100644 index 000000000..a821fc2fd --- /dev/null +++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_3_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/ews-java-api.iml b/ews-java-api.iml index 2ef45bc71..f0862db2e 100644 --- a/ews-java-api.iml +++ b/ews-java-api.iml @@ -10,9 +10,10 @@ - - + + + diff --git a/pom.xml b/pom.xml index e80523b5c..91191ad43 100644 --- a/pom.xml +++ b/pom.xml @@ -38,9 +38,15 @@ - commons-httpclient - commons-httpclient - 3.1 + org.apache.httpcomponents + httpclient + 4.3.5 + + + + org.apache.httpcomponents + httpcore + 4.3.3 diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index bf3b2b8d2..e2ecd092d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -14,9 +14,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.IOException; import java.io.OutputStream; -import org.apache.commons.httpclient.methods.RequestEntity; +import org.apache.http.Header; +import org.apache.http.entity.BasicHttpEntity; +import org.apache.http.message.BasicHeader; -class ByteArrayOSRequestEntity implements RequestEntity{ +class ByteArrayOSRequestEntity extends BasicHttpEntity { private ByteArrayOutputStream os = null; @@ -34,8 +36,8 @@ public long getContentLength() { } @Override - public String getContentType() { - return "text/xml; charset=utf-8"; + public Header getContentType() { + return new BasicHeader("Content-Type", "text/xml; charset=utf-8"); } @Override @@ -44,8 +46,12 @@ public boolean isRepeatable() { } @Override - public void writeRequest(OutputStream out) throws IOException { + public void writeTo(OutputStream out) throws IOException { os.writeTo(out); } + @Override + public boolean isStreaming() { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java deleted file mode 100644 index 69761f5d2..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/ClientCertificateCredentials.java +++ /dev/null @@ -1,62 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -import javax.net.ssl.TrustManager; - -/** - * ClientCertificateCredentials wraps an instance of X509CertificateCollection used for client certification-based authentication. - */ -public class ClientCertificateCredentials extends ExchangeCredentials { - - /** - * Collection of client certificates. - */ - private TrustManager clientCertificates; - - /** - * Initializes a new instance of the ClientCertificateCredentials class. - * @param clientCertificates The clientCertificates - * @throws Exception - */ - public ClientCertificateCredentials(TrustManager clientCertificates) throws Exception - { - EwsUtilities.validateParam(clientCertificates, "clientCertificates"); - - this.clientCertificates = clientCertificates; - } - - /** - * This method is called to apply credentials to a service request before the request is made. - * @param request The request. - */ - @Override - protected void prepareWebRequest(HttpWebRequest request) - { - // TODO need to check - //request.ClientCertificates = this.clientCertificates; - try { - request.setClientCertificates(this.clientCertificates); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Gets the client certificates collection. - * @return clientCertificates - */ - public TrustManager getClientCertificates() - { - return this.clientCertificates; - } - -} diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java b/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java deleted file mode 100644 index 964798e24..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/EwsJCIFSNTLMScheme.java +++ /dev/null @@ -1,242 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -import java.io.IOException; - -import org.apache.commons.httpclient.Credentials; -import org.apache.commons.httpclient.HttpMethod; -import org.apache.commons.httpclient.NTCredentials; -import org.apache.commons.httpclient.auth.AuthChallengeParser; -import org.apache.commons.httpclient.auth.AuthScheme; -import org.apache.commons.httpclient.auth.AuthenticationException; -import org.apache.commons.httpclient.auth.InvalidCredentialsException; -import org.apache.commons.httpclient.auth.MalformedChallengeException; - - -/** - * This is a reimplementation of HTTPClient 3.x's - * org.apache.commons.httpclient.auth.NTLMScheme.
- * It will basically use JCIFS (v1.3.15) in order to provide added support for - * NTLMv2 (instead of trying to create its own Type, 2 and 3 messages).
- * This class has to be registered manually with HTTPClient before setting - * NTCredentials: AuthPolicy.registerAuthScheme(AuthPolicy.NTLM, - * JCIFS_NTLMScheme.class);
- * Will not work with HttpClient 4.x which requires AuthEngine to be overriden instead of AuthScheme. - * - */ - -public class EwsJCIFSNTLMScheme implements AuthScheme { - - /** NTLM challenge string. */ - private String ntlmchallenge = null; - - private static final int UNINITIATED = 0; - - private static final int INITIATED = 1; - - private static final int TYPE1_MSG_GENERATED = 2; - - private static final int TYPE2_MSG_RECEIVED = 3; - - private static final int TYPE3_MSG_GENERATED = 4; - - private static final int FAILED = Integer.MAX_VALUE; - - /** Authentication process state */ - private int state; - - public EwsJCIFSNTLMScheme() throws AuthenticationException { - // Check if JCIFS is present. If not present, do not proceed. - try { - Class.forName("jcifs.ntlmssp.NtlmMessage",false,this.getClass().getClassLoader()); - } catch (ClassNotFoundException e) { - throw new AuthenticationException("Unable to proceed as JCIFS library is not found."); - } - } - - public String authenticate(Credentials credentials, HttpMethod method) - throws AuthenticationException { - - if (this.state == UNINITIATED) { - throw new IllegalStateException( - "NTLM authentication process has not been initiated"); - } - - NTCredentials ntcredentials = null; - try { - ntcredentials = (NTCredentials) credentials; - } catch (ClassCastException e) { - throw new InvalidCredentialsException( - "Credentials cannot be used for NTLM authentication: " - + credentials.getClass().getName()); - } - - NTLM ntlm = new NTLM(); - ntlm.setCredentialCharset(method.getParams().getCredentialCharset()); - String response = null; - if (this.state == INITIATED || this.state == FAILED) { - response = ntlm.generateType1Msg(ntcredentials.getHost(), - ntcredentials.getDomain()); - this.state = TYPE1_MSG_GENERATED; - } else { - response = ntlm.generateType3Msg(ntcredentials.getUserName(), - ntcredentials.getPassword(), ntcredentials.getHost(), - ntcredentials.getDomain(), this.ntlmchallenge); - this.state = TYPE3_MSG_GENERATED; - } - - return "NTLM " + response; - } - - public String authenticate(Credentials credentials, String method, - String uri) throws AuthenticationException { - throw new RuntimeException( - "Not implemented as it is deprecated anyway in Httpclient 3.x"); - } - - public String getID() { - throw new RuntimeException( - "Not implemented as it is deprecated anyway in Httpclient 3.x"); - } - - /** - * Returns the authentication parameter with the given name, if available. - * - *

- * There are no valid parameters for NTLM authentication so this method - * always returns null. - *

- * - * @param name - * The name of the parameter to be returned - * - * @return the parameter with the given name - */ - public String getParameter(String name) { - if (name == null) { - throw new IllegalArgumentException("Parameter name may not be null"); - } - return null; - } - - /** - * The concept of an authentication realm is not supported by the NTLM - * authentication scheme. Always returns null. - * - * @return null - */ - public String getRealm() { - return null; - } - - /** - * Returns textual designation of the NTLM authentication scheme. - * - * @return ntlm - */ - public String getSchemeName() { - return "ntlm"; - } - - /** - * Tests if the NTLM authentication process has been completed. - * - * @return true if Basic authorization has been processed, - * false otherwise. - * - * @since 3.0 - */ - public boolean isComplete() { - return this.state == TYPE3_MSG_GENERATED || this.state == FAILED; - } - - /** - * Returns true. NTLM authentication scheme is connection based. - * - * @return true. - * - * @since 3.0 - */ - public boolean isConnectionBased() { - return true; - } - - /** - * Processes the NTLM challenge. - * - * @param challenge - * the challenge string - * - * @throws MalformedChallengeException - * is thrown if the authentication challenge is malformed - * - * @since 3.0 - */ - public void processChallenge(final String challenge) - throws MalformedChallengeException { - String s = AuthChallengeParser.extractScheme(challenge); - if (!s.equalsIgnoreCase(getSchemeName())) { - throw new MalformedChallengeException("Invalid NTLM challenge: " - + challenge); - } - int i = challenge.indexOf(' '); - if (i != -1) { - s = challenge.substring(i, challenge.length()); - this.ntlmchallenge = s.trim(); - this.state = TYPE2_MSG_RECEIVED; - } else { - this.ntlmchallenge = ""; - if (this.state == UNINITIATED) { - this.state = INITIATED; - } else { - this.state = FAILED; - } - } - } - - private class NTLM { - /** Character encoding */ - public static final String DEFAULT_CHARSET = "ASCII"; - - /** - * The character was used by 3.x's NTLM to encode the username and - * password. Apparently, this is not needed in when passing username, - * password from NTCredentials to the JCIFS library - */ - private String credentialCharset = DEFAULT_CHARSET; - - void setCredentialCharset(String credentialCharset) { - this.credentialCharset = credentialCharset; - } - - private String generateType1Msg(String host, String domain) { - jcifs.ntlmssp.Type1Message t1m = new jcifs.ntlmssp.Type1Message(jcifs.ntlmssp.Type1Message.getDefaultFlags(), - domain, host); - return jcifs.util.Base64.encode(t1m.toByteArray()); - } - - private String generateType3Msg(String username, String password, String host, - String domain, String challenge) { - jcifs.ntlmssp.Type2Message t2m; - try { - t2m = new jcifs.ntlmssp.Type2Message(jcifs.util.Base64.decode(challenge)); - } catch (IOException e) { - throw new RuntimeException("Invalid Type2 message", e); - } - - jcifs.ntlmssp.Type3Message t3m = new jcifs.ntlmssp.Type3Message(t2m, password, domain, - username, host, 0); - return jcifs.util.Base64.encode(t3m.toByteArray()); - } - } -} - diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index 1d928a255..818ed6cc0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -10,23 +10,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.IOException; -import java.net.InetAddress; -import java.net.InetSocketAddress; -import java.net.Socket; -import java.net.SocketAddress; -import java.net.UnknownHostException; +import java.security.KeyManagementException; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; -import javax.net.SocketFactory; import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLException; import javax.net.ssl.TrustManager; -import org.apache.commons.httpclient.ConnectTimeoutException; -import org.apache.commons.httpclient.HttpClientError; -import org.apache.commons.httpclient.params.HttpConnectionParams; -import org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; +import org.apache.http.conn.ssl.SSLConnectionSocketFactory; +import org.apache.http.conn.ssl.SSLContexts; /** *

@@ -73,133 +66,36 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of *

*/ -class EwsSSLProtocolSocketFactory implements SecureProtocolSocketFactory { - - private static final Log log = LogFactory.getLog(EwsSSLProtocolSocketFactory.class); +class EwsSSLProtocolSocketFactory extends SSLConnectionSocketFactory { /** The SSL Context. */ private SSLContext sslcontext = null; - - /** The X509 TrustManager. */ - static TrustManager trustManager = null; /** * Constructor for EasySSLProtocolSocketFactory. + * @throws SSLException */ - public EwsSSLProtocolSocketFactory() { - super(); - } - - private static SSLContext createEasySSLContext() { - try { - SSLContext context = SSLContext.getInstance("SSL"); - context.init( - null, - new TrustManager[] {new EwsX509TrustManager(null, trustManager)}, - null); - return context; - } catch (Exception e) { - log.error(e.getMessage(), e); - throw new HttpClientError(e.toString()); - } - } - - private SSLContext getSSLContext() { - if (this.sslcontext == null) { - this.sslcontext = createEasySSLContext(); - } - return this.sslcontext; - } - - /** - * @see SecureProtocolSocketFactory#createSocket(String,int,java.net.InetAddress,int) - */ - public Socket createSocket( - String host, - int port, - InetAddress clientHost, - int clientPort) - throws IOException, UnknownHostException { - - return getSSLContext().getSocketFactory().createSocket( - host, - port, - clientHost, - clientPort - ); + public EwsSSLProtocolSocketFactory(SSLContext context) { + super(context, SSLConnectionSocketFactory.STRICT_HOSTNAME_VERIFIER); + this.sslcontext = context; } - /** - * Attempts to get a new socket connection to the given host within the given time limit. - *

- * To circumvent the limitations of older JREs that do not support connect timeout a - * controller thread is executed. The controller thread attempts to create a new socket - * within the given limit of time. If socket constructor does not return until the - * timeout expires, the controller terminates and throws an {@link ConnectTimeoutException} - *

- * - * @param host the host name/IP - * @param port the port on the host - * @param localAddress the local host name/IP to bind the socket to - * @param localPort the port on the local machine - * @param params {@link HttpConnectionParams Http connection parameters} - * - * @return Socket a new socket - * - * @throws java.io.IOException if an I/O error occurs while creating the socket - * @throws java.net.UnknownHostException if the IP address of the host cannot be - * determined - */ - public Socket createSocket( - final String host, - final int port, - final InetAddress localAddress, - final int localPort, - final HttpConnectionParams params - ) throws IOException, UnknownHostException, ConnectTimeoutException { - if (params == null) { - throw new IllegalArgumentException("Parameters may not be null"); - } - int timeout = params.getConnectionTimeout(); - SocketFactory socketfactory = getSSLContext().getSocketFactory(); - if (timeout == 0) { - return socketfactory.createSocket(host, port, localAddress, localPort); - } else { - Socket socket = socketfactory.createSocket(); - SocketAddress localaddr = new InetSocketAddress(localAddress, localPort); - SocketAddress remoteaddr = new InetSocketAddress(host, port); - socket.bind(localaddr); - socket.connect(remoteaddr, timeout); - return socket; - } + + + public SSLContext getContext() { + return this.sslcontext; } + - /** - * @see SecureProtocolSocketFactory#createSocket(String,int) - */ - public Socket createSocket(String host, int port) - throws IOException, UnknownHostException { - return getSSLContext().getSocketFactory().createSocket( - host, - port - ); - } - /** - * @see SecureProtocolSocketFactory#createSocket(java.net.Socket,String,int,boolean) - */ - public Socket createSocket( - Socket socket, - String host, - int port, - boolean autoClose) - throws IOException, UnknownHostException { - return getSSLContext().getSocketFactory().createSocket( - socket, - host, - port, - autoClose - ); + public static EwsSSLProtocolSocketFactory build( TrustManager trustManager ) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException { + SSLContext sslContext = SSLContexts.createDefault(); + sslContext.init( + null, + new TrustManager[] {new EwsX509TrustManager(null, trustManager)}, + null + ); + return new EwsSSLProtocolSocketFactory(sslContext); } public boolean equals(Object obj) { diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 201e76d1e..e990c9368 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -15,39 +15,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.IOException; import java.net.CookieHandler; import java.net.CookieManager; -import java.net.CookiePolicy; -import java.net.CookieStore; -import java.net.HttpCookie; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; -import java.net.URL; -import java.net.URLConnection; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Collection; import java.util.Date; -import java.util.Dictionary; import java.util.EnumSet; import java.util.HashMap; -import java.util.Iterator; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Random; import java.util.TimeZone; -import java.util.Vector; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; -import org.apache.commons.httpclient.Cookie; -import org.apache.commons.httpclient.HttpConnectionManager; -import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; +import org.apache.http.client.CookieStore; +import org.apache.http.config.Registry; +import org.apache.http.config.RegistryBuilder; +import org.apache.http.conn.HttpClientConnectionManager; +import org.apache.http.conn.socket.ConnectionSocketFactory; +import org.apache.http.conn.socket.PlainConnectionSocketFactory; +import org.apache.http.cookie.Cookie; +import org.apache.http.impl.client.BasicCookieStore; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; /** * Represents an abstract binding to an Exchange Service. @@ -106,11 +101,11 @@ public abstract class ExchangeServiceBase { private WebProxy webProxy; - private HttpConnectionManager simpleHttpConnectionManager = new MultiThreadedHttpConnectionManager(); + private HttpClientConnectionManager httpConnectionManager; HttpClientWebRequest request = null; - private Cookie[] cookies = null; + private CookieStore cookieStore; // protected static HttpStatusCode AccountIsLocked = (HttpStatusCode)456; @@ -118,30 +113,14 @@ public abstract class ExchangeServiceBase { * Static members */ - protected HttpConnectionManager getSimpleHttpConnectionManager() { - return simpleHttpConnectionManager; + protected HttpClientConnectionManager getSimpleHttpConnectionManager() { + return httpConnectionManager; } /** Default UserAgent. */ - private static String defaultUserAgent = "ExchangeServicesClient/" + + private static String defaultUserAgent = "ExchangeServicesClient/" + EwsUtilities.getBuildVersion(); - protected ExchangeServiceBase(ExchangeServiceBase service, - ExchangeVersion requestedServerVersion) { - this(requestedServerVersion); - this.useDefaultCredentials = service.getUseDefaultCredentials(); - this.credentials = service.getCredentials(); - this.traceEnabled = service.isTraceEnabled(); - this.traceListener = service.getTraceListener(); - this.traceFlags = service.getTraceFlags(); - this.timeout = service.getTimeout(); - this.preAuthenticate = service.isPreAuthenticate(); - this.userAgent = service.getUserAgent(); - this.acceptGzipEncoding = service.getAcceptGzipEncoding(); - this.timeZone = service.getTimeZone(); - this.httpHeaders = service.getHttpHeaders(); - } - /** * @return TimeZone */ @@ -149,10 +128,44 @@ private TimeZone getTimeZone() { return this.timeZone; } - /* - protected ExchangeServiceBase(ExchangeServiceBase service) { + /** + * Initializes a new instance. + * + * @param requestedServerVersion + * The requested server version. + */ + protected ExchangeServiceBase() { + //real init -- ONLY WAY TO BUILD AN OBJECT => each constructor must call this() to build properly the httpConnectionManager + this.timeZone = TimeZone.getDefault(); + this.setUseDefaultCredentials(true); + + try { + EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(null); + Registry registry = RegistryBuilder.create() + .register("http", new PlainConnectionSocketFactory()) + .register("https", factory) + .build(); + this.httpConnectionManager = new PoolingHttpClientConnectionManager(registry); + } + catch (Exception err) { + err.printStackTrace(); + } + } - this(service.getRequestedServerVersion()); + protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { + // Removed because TimeZone class in Java doesn't maintaining the + //history of time change rules for a given time zone + //this(requestedServerVersion, TimeZone.getDefault()); + this(); + this.requestedServerVersion = requestedServerVersion; + } + + protected ExchangeServiceBase(ExchangeServiceBase service) { + this(service, service.getRequestedServerVersion()); + } + + protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) { + this(requestedServerVersion); this.useDefaultCredentials = service.getUseDefaultCredentials(); this.credentials = service.getCredentials(); this.traceEnabled = service.isTraceEnabled(); @@ -162,32 +175,14 @@ protected ExchangeServiceBase(ExchangeServiceBase service) { this.preAuthenticate = service.isPreAuthenticate(); this.userAgent = service.getUserAgent(); this.acceptGzipEncoding = service.getAcceptGzipEncoding(); - }*/ - - /** - * Initializes a new instance from existing one. - * - * @param service - * The other service. - * @see microsoft.exchange.webservices.data.ExchangeServiceBase - */ - protected ExchangeServiceBase(ExchangeServiceBase service) { - this(service, service.getRequestedServerVersion()); - } - - protected ExchangeServiceBase() { - this(TimeZone.getDefault()); - } - - protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, - TimeZone timeZone) { - this(timeZone); - this.requestedServerVersion = requestedServerVersion; + this.timeZone = service.getTimeZone(); + this.httpHeaders = service.getHttpHeaders(); } - - protected ExchangeServiceBase(TimeZone timeZone){ - this.timeZone = timeZone; - this.setUseDefaultCredentials(true); + + + protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZone timezone) { + this(requestedServerVersion); + this.timeZone = timezone; } // Event handlers @@ -240,7 +235,7 @@ protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, throw new ServiceLocalException(strErr); } - request = new HttpClientWebRequest(this.simpleHttpConnectionManager); + request = new HttpClientWebRequest(this.httpConnectionManager); try { request.setUrl(url.toURL()); } catch (MalformedURLException e) { @@ -274,16 +269,17 @@ protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, throw new ServiceLocalException(Strings.CredentialsRequired); } - if(this.cookies != null && this.cookies.length > 0){ - request.setUserCookie(this.cookies); + if (cookieStore != null) { + request.setUserCookie(cookieStore.getCookies()); } + // Make sure that credentials have been authenticated if required serviceCredentials.preAuthenticate(); // Apply credentials to the request serviceCredentials.prepareWebRequest(request); - } + try { request.prepareConnection(); } catch (Exception e) { @@ -315,7 +311,7 @@ protected void internalProcessHttpErrorResponse( "InternalProcessHttpErrorResponse does not handle 500 ISE errors," + " the caller is supposed to handle this."); - this.processHttpResponseHeaders( responseHeadersTraceFlag, + this.processHttpResponseHeaders( responseHeadersTraceFlag, httpWebResponse); // E14:321785 -- Deal with new HTTP @@ -472,7 +468,7 @@ private void traceHttpResponseHeaders(TraceFlags traceType, protected Date convertUniversalDateTimeStringToDate(String dateString) { String localTimeRegex = "^(.*)([+-]{1}\\d\\d:\\d\\d)$"; Pattern localTimePattern = Pattern.compile(localTimeRegex); - String timeRegex = "[0-9]{2,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{2}:[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,7}"; + String timeRegex = "[0-9]{2,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{2}:[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,7}"; Pattern timePattern = Pattern.compile(timeRegex); String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; String utcPattern1 = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"; @@ -613,22 +609,6 @@ protected void setCustomUserAgent(String userAgent) { this.userAgent = userAgent; } - // Constructors - - /** - * Initializes a new instance. - * - * @param requestedServerVersion - * The requested server version. - */ - protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { - // Removed because TimeZone class in Java doesn't maintaining the - //history of time change rules for a given time zone - //this(requestedServerVersion, TimeZone.getDefault()); - this.requestedServerVersion = requestedServerVersion; - } - - // Abstract methods @@ -675,19 +655,6 @@ protected void validate() throws ServiceLocalException { handler.put(url.toURI(), headers); } }*/ - - /** - * Sets the cookie container. - * - * @param rcookies the cookies. - * @throws microsoft.exchange.webservices.data.EWSHttpException - */ - public void setCookie(Cookie[] rcookies) throws EWSHttpException { - - if (rcookies != null && rcookies.length > 0) - this.cookies = rcookies.clone(); - - } /* * Gets the cookie. @@ -719,10 +686,6 @@ public String getCookie(URL url) throws IOException, URISyntaxException { return cookieValue; }*/ - public Cookie[] getCookies() { - return this.cookies; - } - /** * Gets a value indicating whether tracing is enabled. * @@ -1050,7 +1013,14 @@ private void saveHttpResponseHeaders(Map headers) { // Save the cookies for subsequent requests if (this.request.getCookies() != null) { - this.cookies = this.request.getCookies().clone(); + if (cookieStore == null) { + cookieStore = new BasicCookieStore(); + } + + cookieStore.clear(); + for (Cookie c : this.request.getCookies()) { + cookieStore.addCookie(c); + } } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 1a11aeca9..9cde489e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -15,32 +15,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.security.KeyManagementException; -import java.security.NoSuchAlgorithmException; -import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.concurrent.Executor; import java.util.concurrent.ExecutorService; -import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy; import javax.net.ssl.TrustManager; -import org.apache.commons.httpclient.Cookie; -import org.apache.commons.httpclient.Header; -import org.apache.commons.httpclient.HttpClient; -import org.apache.commons.httpclient.HttpConnectionManager; -import org.apache.commons.httpclient.HttpException; -import org.apache.commons.httpclient.HttpMethodBase; -import org.apache.commons.httpclient.NTCredentials; -import org.apache.commons.httpclient.auth.AuthPolicy; -import org.apache.commons.httpclient.auth.AuthScope; -import org.apache.commons.httpclient.methods.EntityEnclosingMethod; -import org.apache.commons.httpclient.methods.GetMethod; -import org.apache.commons.httpclient.methods.PostMethod; -import org.apache.commons.httpclient.protocol.Protocol; +import org.apache.http.Header; +import org.apache.http.HttpHost; +import org.apache.http.HttpResponse; +import org.apache.http.auth.AuthScope; +import org.apache.http.auth.NTCredentials; +import org.apache.http.client.CookieStore; +import org.apache.http.client.CredentialsProvider; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.config.SocketConfig; +import org.apache.http.conn.HttpClientConnectionManager; +import org.apache.http.cookie.Cookie; +import org.apache.http.impl.client.BasicCookieStore; +import org.apache.http.impl.client.BasicCredentialsProvider; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.impl.conn.DefaultSchemePortResolver; /** @@ -50,23 +49,24 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of class HttpClientWebRequest extends HttpWebRequest { /** The Http Client. */ - private HttpClient client = null; + private CloseableHttpClient client = null; + private CookieStore cookieStore = null; /** The Http Method. */ - private HttpMethodBase httpMethod = null; + private HttpPost httpPostReq = null; + private HttpResponse response = null; /** The TrustManager. */ private TrustManager trustManger = null; - private HttpConnectionManager simpleHttpConnMng = null; + private HttpClientConnectionManager httpClientConnMng = null; - Cookie[] cookies = null; /** * Instantiates a new http native web request. */ - public HttpClientWebRequest(HttpConnectionManager simpleHttpConnMng) { - this.simpleHttpConnMng = simpleHttpConnMng; + public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { + this.httpClientConnMng = simpleHttpConnMng; } /** @@ -76,11 +76,11 @@ public HttpClientWebRequest(HttpConnectionManager simpleHttpConnMng) { public void close() { ExecutorService es = CallableSingleTon.getExecutor(); es.shutdown(); - if (null != httpMethod) { - httpMethod.releaseConnection(); + if (null != httpPostReq) { + httpPostReq.releaseConnection(); //postMethod.abort(); } - httpMethod = null; + httpPostReq = null; } /** @@ -91,60 +91,68 @@ public void close() { */ @Override public void prepareConnection() throws EWSHttpException { - if(trustManger != null) { - EwsSSLProtocolSocketFactory.trustManager = trustManger; - } - - Protocol.registerProtocol("https", - new Protocol("https", new EwsSSLProtocolSocketFactory(), 443)); - AuthPolicy.registerAuthScheme(AuthPolicy.NTLM, EwsJCIFSNTLMScheme.class); - client = new HttpClient(this.simpleHttpConnMng); - List authPrefs = new ArrayList(); - authPrefs.add(AuthPolicy.NTLM); - authPrefs.add(AuthPolicy.BASIC); - authPrefs.add(AuthPolicy.DIGEST); - client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs); - - if(getProxy() != null) { - client.getHostConfiguration().setProxy(getProxy().getHost(),getProxy().getPort()); - if (HttpProxyCredentials.isProxySet()) { - AuthScope authScope = new AuthScope(getProxy().getHost(), getProxy().getPort()); - client.getState().setProxyCredentials(authScope, new NTCredentials(HttpProxyCredentials.getUserName(), - HttpProxyCredentials.getPassword(), - "",HttpProxyCredentials.getDomain())); - //new AuthScope(AuthScope.ANY_HOST, 80, AuthScope.ANY_REALM) + try { + HttpClientBuilder builder = HttpClients.custom(); + builder.setConnectionManager(this.httpClientConnMng); + + //create the cookie store + if (cookieStore == null) { + cookieStore = new BasicCookieStore(); } - } - if(getUserName() != null) { - client.getState().setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(), "", getDomain())); - client.getParams().setAuthenticationPreemptive(true); - } - - client.getHttpConnectionManager().getParams().setSoTimeout(getTimeout()); - client.getHttpConnectionManager().getParams().setConnectionTimeout(getTimeout()); - httpMethod = new PostMethod(getUrl().toString()); - httpMethod.setRequestHeader("Content-type", getContentType()); - httpMethod.setDoAuthentication(true); - httpMethod.setRequestHeader("User-Agent", getUserAgent()); - httpMethod.setRequestHeader("Accept", getAccept()); - httpMethod.setRequestHeader("Keep-Alive", "300"); - httpMethod.setRequestHeader("Connection", "Keep-Alive"); - - if(this.cookies !=null && this.cookies.length > 0){ - client.getState().addCookies(this.cookies); - } - //httpMethod.setFollowRedirects(isAllowAutoRedirect()); + builder.setDefaultCookieStore(cookieStore); + + if(getProxy() != null) { + HttpHost proxy = new HttpHost(getProxy().getHost(), getProxy().getPort()); + builder.setProxy(proxy); - if (isAcceptGzipEncoding()) { - httpMethod.setRequestHeader("Accept-Encoding", "gzip,deflate"); - } + if (HttpProxyCredentials.isProxySet()) { + NTCredentials cred = new NTCredentials(HttpProxyCredentials.getUserName(), HttpProxyCredentials.getPassword(), "", HttpProxyCredentials.getDomain()); + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider.setCredentials(new AuthScope(proxy), cred); + builder.setDefaultCredentialsProvider(credsProvider); + } + } + if(getUserName() != null) { + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider.setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(),"",getDomain())); + builder.setDefaultCredentialsProvider(credsProvider); + } + + //fix socket config + SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); + builder.setDefaultSocketConfig(sc); + + RequestConfig.Builder rcBuilder = RequestConfig.custom(); + rcBuilder.setAuthenticationEnabled(true); + rcBuilder.setConnectionRequestTimeout(getTimeout()); + rcBuilder.setConnectTimeout(getTimeout()); + rcBuilder.setRedirectsEnabled(isAllowAutoRedirect()); + rcBuilder.setSocketTimeout(getTimeout()); + builder.setDefaultRequestConfig(rcBuilder.build()); - if (getHeaders().size() > 0){ - for (Map.Entry httpHeader : getHeaders().entrySet()) { - httpMethod.setRequestHeader((String)httpHeader.getKey(), - (String)httpHeader.getValue()); + httpPostReq = new HttpPost(getUrl().toString()); + httpPostReq.addHeader("Content-type", getContentType()); + //httpPostReq.setDoAuthentication(true); + httpPostReq.addHeader("User-Agent", getUserAgent()); + httpPostReq.addHeader("Accept", getAccept()); + httpPostReq.addHeader("Keep-Alive", "300"); + httpPostReq.addHeader("Connection", "Keep-Alive"); + + if (isAcceptGzipEncoding()) { + httpPostReq.addHeader("Accept-Encoding", "gzip,deflate"); + } + + if (getHeaders().size() > 0){ + for (Map.Entry httpHeader : getHeaders().entrySet()) { + httpPostReq.addHeader(httpHeader.getKey(), httpHeader.getValue()); + } } + //create the client + client = builder.build(); + } + catch (Exception er) { + er.printStackTrace(); } } @@ -156,48 +164,72 @@ public void prepareConnection() throws EWSHttpException { */ public void prepareAsyncConnection() throws EWSHttpException { try { - if(trustManger != null) { - EwsSSLProtocolSocketFactory.trustManager = trustManger; + //ssl config + HttpClientBuilder builder = HttpClients.custom(); + builder.setConnectionManager(this.httpClientConnMng); + builder.setSchemePortResolver(new DefaultSchemePortResolver()); + + EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(trustManger); + builder.setSSLSocketFactory(factory); + builder.setSslcontext(factory.getContext()); + + //create the cookie store + if (cookieStore==null) { + cookieStore = new BasicCookieStore(); } + builder.setDefaultCookieStore(cookieStore); - Protocol.registerProtocol("https", - new Protocol("https", new EwsSSLProtocolSocketFactory(), 443)); - AuthPolicy.registerAuthScheme(AuthPolicy.NTLM, EwsJCIFSNTLMScheme.class); - client = new HttpClient(this.simpleHttpConnMng); - List authPrefs = new ArrayList(); - authPrefs.add(AuthPolicy.NTLM); - authPrefs.add(AuthPolicy.BASIC); - authPrefs.add(AuthPolicy.DIGEST); - client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs); - - client.getState().setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(),"",getDomain())); - client.getHttpConnectionManager().getParams().setSoTimeout(getTimeout()); - client.getHttpConnectionManager().getParams().setConnectionTimeout(20000); - httpMethod = new GetMethod(getUrl().toString()); - httpMethod.setFollowRedirects(isAllowAutoRedirect()); + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider.setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(),"",getDomain())); + builder.setDefaultCredentialsProvider(credsProvider); - int status = client.executeMethod(httpMethod); - } catch (IOException e) { + //fix socket config + SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); + builder.setDefaultSocketConfig(sc); + + RequestConfig.Builder rcBuilder = RequestConfig.custom(); + rcBuilder.setConnectionRequestTimeout(getTimeout()); + rcBuilder.setConnectTimeout(getTimeout()); + rcBuilder.setSocketTimeout(getTimeout()); + builder.setDefaultRequestConfig(rcBuilder.build()); + + //HttpClientParams.setRedirecting(client.getParams(), isAllowAutoRedirect()); by default it follows redirects + //create the client and execute requests + client = builder.build(); + httpPostReq = new HttpPost(getUrl().toString()); + response = client.execute(httpPostReq); + } + catch (IOException e) { client = null; - httpMethod = null; - throw new EWSHttpException("Unable to open connection to " - + this.getUrl()); + httpPostReq = null; + throw new EWSHttpException("Unable to open connection to "+ this.getUrl()); + } catch (Exception e) { + client = null; + httpPostReq = null; + e.printStackTrace(); + throw new EWSHttpException("SSL problem "+ this.getUrl()); } } /** * Method for getting the cookie values. */ - public Cookie[] getCookies() { - return this.client.getState().getCookies(); + public List getCookies() { + return this.cookieStore.getCookies(); } /** * Method for setting the cookie values. */ - public void setUserCookie(Cookie[] rcookies) { - if (rcookies != null && rcookies.length > 0) - this.cookies = rcookies.clone(); + public void setUserCookie(List rcookies) { + if (rcookies != null && rcookies.size() > 0) { + if (this.cookieStore==null) { + this.cookieStore = new BasicCookieStore(); + } + for (Cookie c : rcookies) { + this.cookieStore.addCookie(c); + } + } } @@ -214,11 +246,10 @@ public void setUserCookie(Cookie[] rcookies) { */ @Override public InputStream getInputStream() throws EWSHttpException, IOException { - throwIfConnIsNull(); + throwIfResponseIsNull(); BufferedInputStream bufferedInputStream = null; try { - bufferedInputStream = new - BufferedInputStream(httpMethod.getResponseBodyAsStream()); + bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); } catch (IOException e) { throw new EWSHttpException("Connection Error " + e); } @@ -234,11 +265,10 @@ public InputStream getInputStream() throws EWSHttpException, IOException { */ @Override public InputStream getErrorStream() throws EWSHttpException { - throwIfConnIsNull(); + throwIfResponseIsNull(); BufferedInputStream bufferedInputStream = null; try { - bufferedInputStream = new BufferedInputStream( - httpMethod.getResponseBodyAsStream()); + bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); } catch (Exception e) { throw new EWSHttpException("Connection Error " + e); } @@ -255,10 +285,10 @@ public InputStream getErrorStream() throws EWSHttpException { @Override public OutputStream getOutputStream() throws EWSHttpException { OutputStream os = null; - throwIfConnIsNull(); + throwIfRequestIsNull(); os = new ByteArrayOutputStream(); - - ((EntityEnclosingMethod) httpMethod).setRequestEntity(new ByteArrayOSRequestEntity(os)); + + httpPostReq.setEntity(new ByteArrayOSRequestEntity(os)); return os; } @@ -272,10 +302,10 @@ public OutputStream getOutputStream() throws EWSHttpException { @Override public Map getResponseHeaders() throws EWSHttpException { - throwIfConnIsNull(); + throwIfResponseIsNull(); Map map = new HashMap(); - Header[] hM = httpMethod.getResponseHeaders(); + Header[] hM = response.getAllHeaders(); for (Header header : hM) { // RFC2109: Servers may return multiple Set-Cookie headers // Need to append the cookies before they are added to the map @@ -305,8 +335,8 @@ public Map getResponseHeaders() @Override public String getResponseHeaderField(String headerName) throws EWSHttpException { - throwIfConnIsNull(); - Header hM = httpMethod.getResponseHeader(headerName); + throwIfResponseIsNull(); + Header hM = response.getFirstHeader(headerName); return hM != null ? hM.getValue() : null; } @@ -319,8 +349,8 @@ public String getResponseHeaderField(String headerName) */ @Override public String getContentEncoding() throws EWSHttpException { - throwIfConnIsNull(); - return httpMethod.getResponseHeader("content-encoding") != null ? httpMethod.getResponseHeader("content-encoding").getValue() : null; + throwIfResponseIsNull(); + return response.getFirstHeader("content-encoding") != null ? response.getFirstHeader("content-encoding").getValue() : null; } /** @@ -332,8 +362,8 @@ public String getContentEncoding() throws EWSHttpException { */ @Override public String getResponseContentType() throws EWSHttpException { - throwIfConnIsNull(); - return httpMethod.getResponseHeader("Content-type") != null ? httpMethod.getResponseHeader("Content-type").getValue() : null; + throwIfResponseIsNull(); + return response.getFirstHeader("Content-type") != null ? response.getFirstHeader("Content-type").getValue() : null; } /** @@ -341,16 +371,14 @@ public String getResponseContentType() throws EWSHttpException { * * @throws microsoft.exchange.webservices.data.EWSHttpException * the eWS http exception - * @throws HttpException - * the http exception * @throws java.io.IOException * the IO Exception */ @Override - public int executeRequest() throws EWSHttpException, HttpException, IOException { - throwIfConnIsNull(); - - return client.executeMethod(httpMethod); + public int executeRequest() throws EWSHttpException, IOException { + throwIfRequestIsNull(); + response = client.execute(httpPostReq); + return response.getStatusLine().getStatusCode(); // ?? don't know what is wanted in return } /** @@ -362,8 +390,8 @@ public int executeRequest() throws EWSHttpException, HttpException, IOException */ @Override public int getResponseCode() throws EWSHttpException { - throwIfConnIsNull(); - return httpMethod.getStatusCode(); + throwIfResponseIsNull(); + return response.getStatusLine().getStatusCode(); } /** @@ -374,18 +402,23 @@ public int getResponseCode() throws EWSHttpException { * the eWS http exception */ public String getResponseText() throws EWSHttpException { - throwIfConnIsNull(); - return httpMethod.getStatusText(); + throwIfResponseIsNull(); + return response.getStatusLine().getReasonPhrase(); } /** * Throw if conn is null. * - * @throws microsoft.exchange.webservices.data.EWSHttpException + * @throws EWSHttpException * the eWS http exception */ - private void throwIfConnIsNull() throws EWSHttpException { - if (null == httpMethod) { + private void throwIfRequestIsNull() throws EWSHttpException { + if (null == httpPostReq) { + throw new EWSHttpException("Connection not established"); + } + } + private void throwIfResponseIsNull() throws EWSHttpException { + if (null == response) { throw new EWSHttpException("Connection not established"); } } @@ -397,27 +430,14 @@ private void throwIfConnIsNull() throws EWSHttpException { * @throws microsoft.exchange.webservices.data.EWSHttpException * the eWS http exception */ - public Map getRequestProperty() throws EWSHttpException - { - throwIfConnIsNull(); + public Map getRequestProperty() throws EWSHttpException { + throwIfRequestIsNull(); Map map = new HashMap(); - Header[] hM = httpMethod.getRequestHeaders(); + Header[] hM = httpPostReq.getAllHeaders(); for (Header header : hM) { map.put(header.getName(),header.getValue()); } return map; } - - /** - * Sets the Client Certificates. - * - * @param certs - * the Trust Manager - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - public void setClientCertificates(TrustManager certs) throws EWSHttpException { - trustManger = certs; - } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index abd4aeb56..1481545b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -16,13 +16,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.URL; -import java.security.KeyManagementException; -import java.security.NoSuchAlgorithmException; import java.util.Map; -import javax.net.ssl.TrustManager; - -import org.apache.commons.httpclient.HttpException; +import org.apache.http.HttpException; /** * The Class HttpWebRequest. @@ -538,17 +534,6 @@ public abstract String getResponseHeaderField(String headerName) public abstract Map getRequestProperty() throws EWSHttpException; - /** - * Sets the Client Certificates. - * - * @param trustManager - * the X509TrustManager - * @throws EWSHttpException - * the eWS http exception - */ - public abstract void setClientCertificates(TrustManager trustManager) - throws EWSHttpException; - /** * Executes Request by sending request xml data to server. * diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 2b1495a6d..47251182c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -10,16 +10,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.*; -import java.util.Date; +import java.io.BufferedReader; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; -import java.util.concurrent.FutureTask; +import javax.xml.ws.http.HTTPException; -import org.apache.commons.httpclient.HttpClientError; -import org.apache.commons.httpclient.HttpException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -165,7 +166,7 @@ private Object readResponse(HttpWebRequest response) throws Exception { serviceResponse = this.readResponse(ewsXmlReader); } - } catch (HttpException e) { + } catch (HTTPException e) { if (e.getMessage() != null) { this.getService().processHttpResponseHeaders( TraceFlags.EwsResponseHttpHeaders, response); From 9dace0d648ed85aab780b13742e7ebb76b3ee9df Mon Sep 17 00:00:00 2001 From: Eric Fowler Date: Thu, 4 Dec 2014 23:46:13 -0800 Subject: [PATCH 069/338] Readme for dealing with Autodiscover redirection contains some example code in implementing the RedirectionCallback which came from looking at: http://msdn.microsoft.com/en-us/library/office/dd635285%28v=exchg.80%29.aspx --- readme.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/readme.md b/readme.md index 5838fa2be..18d85b549 100644 --- a/readme.md +++ b/readme.md @@ -40,6 +40,30 @@ We recommend that you use the Autodiscover service, for the following reasons: You can safely cache the URL that is returned by the Autodiscover service and reuse it. Autodiscover should be called periodically, or when EWS connectivity to a given URL is lost. Note that you should either set the URL manually or call AutodiscoverUrl, but you should not do both. +## Responding to Autodiscover Redirecting + +If the domain that the user inputs as their email address contains a CNAME that redirects the user this Exception is thrown: + +> microsoft.exchange.webservices.data.AutodiscoverLocalException: Autodiscover blocked a +potentially insecure redirection to **URL**. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload.< + +When this happens, instead of failing, the user can be prompted to accept the redirection or +not. That functionality needs to be implemented inside the autodiscoverRedirectionUrlValidationCallback method. In the example below, it only checks to see that the redirection url starts with "https://". To accomplish this +```Java +static class RedirectionUrlCallback implements IAutodiscoverRedirectionUrl { + public boolean autodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) { + return redirectionUrl.toLowerCase().startsWith("https://"); + } + } +``` + +Now +``` +service.autodiscoverUrl("", new RedirectionUrlCallback()); +``` +can be called to deal with the redirection in a safe manner. + ## Items The EWS JAVA API defines a class hierarchy of items. Each class in the hierarchy maps to a given item type in Exchange. For example, the `EmailMessage` class represents email messages and the `Appointment` class represents calendar events and meetings. From 45e3fe6301e5824a1186e9e279200df5d57d73fe Mon Sep 17 00:00:00 2001 From: serious6 Date: Thu, 4 Dec 2014 23:50:42 -0800 Subject: [PATCH 070/338] Fix #30: Convert.ToBase64String() invalid encoding removed Convert.java because (I think it is dangerous and should not be used) used org.apache.commons.codec.binary.Base64 instead added test --- .../exchange/webservices/data/Convert.java | 136 ---------------- .../data/GetUserSettingsRequest.java | 8 +- .../data/GetUserSettingsRequestTest.java | 152 ++++++++++++++++++ 3 files changed, 157 insertions(+), 139 deletions(-) delete mode 100644 src/main/java/microsoft/exchange/webservices/data/Convert.java create mode 100644 src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java diff --git a/src/main/java/microsoft/exchange/webservices/data/Convert.java b/src/main/java/microsoft/exchange/webservices/data/Convert.java deleted file mode 100644 index 1eee8611a..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/Convert.java +++ /dev/null @@ -1,136 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -/** - * The Class Convert. - */ - class Convert { - - /** - * Change type. - * - * @param value - * the value - * @param cls - * the cls - * @return the object - * @throws ClassCastException - * the class cast exception - */ - public static Object changeType(Object value, Class cls) - throws ClassCastException { - - if (!(cls.isPrimitive() || cls.equals(String.class))) { - throw new ClassCastException("String"); - } - - if (value.getClass().equals(Integer.class)) { - Integer i = (Integer)value; - - if (cls.equals(int.class)) { - return i; - } else if (cls.equals(float.class)) { - return i.floatValue(); - } else if (cls.equals(long.class)) { - return i.longValue(); - } else if (cls.equals(double.class)) { - return i.doubleValue(); - } else if (cls.equals(short.class)) { - return i.shortValue(); - } else if (cls.equals(String.class)) { - return i.toString(); - } - - } else if (value.getClass().equals(Short.class)) { - Short i = (Short)value; - - if (cls.equals(int.class)) { - return i.intValue(); - } else if (cls.equals(float.class)) { - - return i.floatValue(); - } else if (cls.equals(long.class)) { - - return i.longValue(); - } else if (cls.equals(double.class)) { - - return i.doubleValue(); - } else if (cls.equals(short.class)) { - - return i; - } else if (cls.equals(String.class)) { - return i.toString(); - } - } else if (value.getClass().equals(Float.class)) { - Float i = (Float)value; - - if (cls.equals(int.class)) { - return i.intValue(); - } else if (cls.equals(float.class)) { - - return i; - } else if (cls.equals(long.class)) { - - return i.longValue(); - } else if (cls.equals(double.class)) { - - return i.doubleValue(); - } else if (cls.equals(short.class)) { - - return i.shortValue(); - } else if (cls.equals(String.class)) { - return i.toString(); - } - } else if (value.getClass().equals(Double.class)) { - Double i = (Double)value; - - if (cls.equals(int.class)) { - return i.intValue(); - } else if (cls.equals(float.class)) { - - return i.floatValue(); - } else if (cls.equals(long.class)) { - - return i.longValue(); - } else if (cls.equals(double.class)) { - - return i; - } else if (cls.equals(short.class)) { - - return i.shortValue(); - } else if (cls.equals(String.class)) { - return i.toString(); - } - } else { - throw new ClassCastException(); - } - - return value; - } - - /** - * The main method. - * - * @param arg - * the arguments - * @throws ClassCastException - * the class cast exception - */ - public static void main(String[] arg) throws ClassCastException { - System.out.println("value =" + Convert.changeType(10, double.class)); - } - - public static Object ToBase64String(byte[] sessionKey) { - // TODO Auto-generated method stub - return sessionKey.toString(); - } -} diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index f75b86c86..baebb25cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -10,6 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import org.apache.commons.codec.binary.*; + import java.net.URI; import java.util.List; @@ -208,9 +210,9 @@ protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) thro if (this.expectPartnerToken) { writer .writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.BinarySecret, Convert - .ToBase64String(ExchangeServiceBase - .getSessionKey())); + XmlElementNames.BinarySecret, + new String(org.apache.commons.codec.binary.Base64. + encodeBase64(ExchangeServiceBase.getSessionKey()))); } } diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java new file mode 100644 index 000000000..ad5887700 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -0,0 +1,152 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + +package microsoft.exchange.webservices.data; + + +import org.apache.commons.codec.binary.*; +import org.hamcrest.core.IsEqual; +import org.hamcrest.core.IsNot; +import org.hamcrest.core.IsNull; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import javax.xml.stream.XMLStreamException; +import java.io.ByteArrayOutputStream; +import java.net.URI; +import java.util.*; + +/** + * Testclass for methods of GetUserSettingsRequest + */ +@RunWith(Parameterized.class) +public class GetUserSettingsRequestTest extends BaseTest { + + /** + * The ExchangeVersion which is under test + */ + private final ExchangeVersion exchangeVersion; + + /** + * The AutodiscoverService which is under test + */ + private final AutodiscoverService autodiscoverService; + + /** + * A mocked URI via HTTPS + */ + private final URI uriMockHttps = URI.create("https://localhost"); + + /** + * A mocked URI via HTTP + */ + private final URI uriMockHttp = URI.create("http://localhost"); + + /** + * Returns the Parameters which where handled to the constructor + * @return the available Services + * @throws ArgumentException + */ + @Parameterized.Parameters + public static List getAutodiscoverServices() throws ArgumentException { + return new ArrayList() { + { + for (ExchangeVersion exchangeVersion : ExchangeVersion.values()) { + add(new Object[]{exchangeVersion, new AutodiscoverService(exchangeVersion)}); + } + } + }; + } + + /** + * Construct the Testobject with given Parameters + * @param exchangeVersion + * @param autodiscoverService + */ + public GetUserSettingsRequestTest(final ExchangeVersion exchangeVersion, final AutodiscoverService autodiscoverService) { + this.exchangeVersion = exchangeVersion; + this.autodiscoverService = autodiscoverService; + } + + /** + * setup + * + */ + @Before + public void setup() { + Assert.assertThat(this.exchangeVersion, IsNull.notNullValue()); + Assert.assertThat(this.autodiscoverService, IsNull.notNullValue()); + Assert.assertThat(uriMockHttp, IsNull.notNullValue()); + Assert.assertThat(uriMockHttps, IsNull.notNullValue()); + } + + /** + * Nothing should be writen to the Outputstream if expectPartnerToken is not set + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test + public void testWriteExtraCustomSoapHeadersToXmlWithoutPartnertoken() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + // HTTPS + GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttps); + + // Test without expected Partnertoken + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // nothing should be writen to the outputstream + Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); + + // HTTP + getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttp); + + // Test without expected Partnertoken + byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // nothing should be writen to the outputstream + Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); + } + + /** + * Test if content is added correctly if expectPartnerToken is set + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test + public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttps, Boolean.TRUE); + + // Test without expected Partnertoken + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // data should be added the same way as mentioned + Assert.assertThat(byteArrayOutputStream.toByteArray(), IsNot.not(new ByteArrayOutputStream().toByteArray())); + + //TODO Test if the output is really correct + } + + /** + * Initialising a GetUserSettingsRequest with Http should lead to an ServiceValidationException + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test(expected = ServiceValidationException.class) + public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken2() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttp, Boolean.TRUE); + } +} From 93e6c930b66667f3048aa7dbd3d97ca34ac7238c Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Thu, 4 Dec 2014 23:59:25 -0800 Subject: [PATCH 071/338] Fix #4: Reformat code based on coding conventions - Optimize imports - Reformat code based on coding conventions. --- .../data/AbsoluteDateTransition.java | 199 +- .../data/AbsoluteDayOfMonthTransition.java | 162 +- .../data/AbsoluteMonthTransition.java | 201 +- .../data/AbstractAsyncCallback.java | 54 +- .../data/AbstractFolderIdWrapper.java | 64 +- .../data/AbstractItemIdWrapper.java | 44 +- .../data/AcceptMeetingInvitationMessage.java | 125 +- .../data/AccountIsLockedException.java | 68 +- .../webservices/data/AddDelegateRequest.java | 279 +- .../data/AffectedTaskOccurrence.java | 16 +- .../webservices/data/AggregateType.java | 16 +- .../webservices/data/AlternateId.java | 354 +- .../webservices/data/AlternateIdBase.java | 191 +- .../webservices/data/AlternateMailbox.java | 267 +- .../data/AlternateMailboxCollection.java | 81 +- .../data/AlternatePublicFolderId.java | 153 +- .../data/AlternatePublicFolderItemId.java | 160 +- .../data/ApplyConversationActionRequest.java | 233 +- .../webservices/data/Appointment.java | 2554 +++--- .../data/AppointmentOccurrenceId.java | 125 +- .../webservices/data/AppointmentSchema.java | 1486 ++-- .../webservices/data/AppointmentType.java | 32 +- .../webservices/data/ArgumentException.java | 83 +- .../data/ArgumentNullException.java | 80 +- .../data/ArgumentOutOfRangeException.java | 57 +- .../webservices/data/AsyncCallback.java | 33 +- .../data/AsyncCallbackImplementation.java | 10 +- .../webservices/data/AsyncExecutor.java | 37 +- .../webservices/data/AsyncRequestResult.java | 306 +- .../exchange/webservices/data/Attachable.java | 3 +- .../exchange/webservices/data/Attachment.java | 774 +- .../data/AttachmentCollection.java | 868 +- .../data/AttachmentsPropertyDefinition.java | 90 +- .../exchange/webservices/data/Attendee.java | 223 +- .../data/AttendeeAvailability.java | 267 +- .../webservices/data/AttendeeCollection.java | 233 +- .../webservices/data/AttendeeInfo.java | 293 +- .../data/AutodiscoverDnsClient.java | 322 +- .../data/AutodiscoverEndpoints.java | 77 +- .../webservices/data/AutodiscoverError.java | 219 +- .../data/AutodiscoverErrorCode.java | 112 +- .../data/AutodiscoverLocalException.java | 51 +- .../data/AutodiscoverRemoteException.java | 90 +- .../webservices/data/AutodiscoverRequest.java | 1454 ++-- .../data/AutodiscoverResponse.java | 167 +- .../data/AutodiscoverResponseCollection.java | 229 +- .../data/AutodiscoverResponseException.java | 48 +- .../data/AutodiscoverResponseType.java | 32 +- .../webservices/data/AutodiscoverService.java | 3990 +++++---- .../webservices/data/AvailabilityData.java | 24 +- .../webservices/data/AvailabilityOptions.java | 737 +- .../exchange/webservices/data/Base64.java | 268 +- .../webservices/data/Base64EncoderStream.java | 341 +- .../webservices/data/BasePropertySet.java | 63 +- .../exchange/webservices/data/BodyType.java | 17 +- .../data/BoolPropertyDefinition.java | 121 +- .../webservices/data/ByteArrayArray.java | 74 +- .../data/ByteArrayOSRequestEntity.java | 76 +- .../data/ByteArrayPropertyDefinition.java | 110 +- .../data/CalendarActionResults.java | 165 +- .../webservices/data/CalendarEvent.java | 169 +- .../data/CalendarEventDetails.java | 307 +- .../webservices/data/CalendarFolder.java | 220 +- .../data/CalendarResponseMessage.java | 367 +- .../data/CalendarResponseMessageBase.java | 231 +- .../data/CalendarResponseObjectSchema.java | 54 +- .../webservices/data/CalendarView.java | 446 +- .../webservices/data/CallableMethod.java | 57 +- .../webservices/data/CallableSingleTon.java | 14 +- .../exchange/webservices/data/Callback.java | 2 +- .../data/CancelMeetingMessage.java | 109 +- .../data/CancelMeetingMessageSchema.java | 60 +- .../exchange/webservices/data/Change.java | 150 +- .../webservices/data/ChangeCollection.java | 209 +- .../exchange/webservices/data/ChangeType.java | 32 +- .../webservices/data/ComparisonMode.java | 60 +- .../webservices/data/CompleteName.java | 434 +- .../data/ComplexFunctionDelegate.java | 4 +- .../webservices/data/ComplexProperty.java | 698 +- .../data/ComplexPropertyCollection.java | 915 +- .../data/ComplexPropertyDefinition.java | 273 +- .../data/ComplexPropertyDefinitionBase.java | 293 +- .../data/ConfigurationSettingsBase.java | 212 +- .../exchange/webservices/data/Conflict.java | 272 +- .../data/ConflictResolutionMode.java | 26 +- .../webservices/data/ConflictType.java | 36 +- .../webservices/data/ConnectingIdType.java | 25 +- .../data/ConnectionFailureCause.java | 48 +- .../exchange/webservices/data/Contact.java | 1961 ++--- .../webservices/data/ContactGroup.java | 269 +- .../webservices/data/ContactGroupSchema.java | 169 +- .../webservices/data/ContactSchema.java | 2345 ++--- .../webservices/data/ContactSource.java | 16 +- .../webservices/data/ContactsFolder.java | 180 +- .../data/ContainedPropertyDefinition.java | 147 +- .../webservices/data/ContainmentMode.java | 44 +- .../webservices/data/Conversation.java | 1668 ++-- .../webservices/data/ConversationAction.java | 692 +- .../data/ConversationActionType.java | 72 +- .../data/ConversationFlagStatus.java | 26 +- .../webservices/data/ConversationId.java | 136 +- .../data/ConversationIndexedItemView.java | 236 +- .../webservices/data/ConversationSchema.java | 1157 +-- .../webservices/data/ConvertIdRequest.java | 302 +- .../webservices/data/ConvertIdResponse.java | 125 +- .../webservices/data/CopyFolderRequest.java | 127 +- .../webservices/data/CopyItemRequest.java | 122 +- .../data/CreateAttachmentException.java | 88 +- .../data/CreateAttachmentRequest.java | 363 +- .../data/CreateAttachmentResponse.java | 86 +- .../webservices/data/CreateFolderRequest.java | 250 +- .../data/CreateFolderResponse.java | 146 +- .../webservices/data/CreateItemRequest.java | 110 +- .../data/CreateItemRequestBase.java | 337 +- .../webservices/data/CreateItemResponse.java | 71 +- .../data/CreateItemResponseBase.java | 128 +- .../webservices/data/CreateRequest.java | 265 +- .../data/CreateResponseObjectRequest.java | 74 +- .../data/CreateResponseObjectResponse.java | 62 +- .../webservices/data/CreateRuleOperation.java | 149 +- .../data/CreateUserConfigurationRequest.java | 230 +- .../webservices/data/CredentialConstants.java | 38 +- .../webservices/data/DateTimePrecision.java | 16 +- .../data/DateTimePropertyDefinition.java | 212 +- .../webservices/data/DayOfTheWeek.java | 141 +- .../data/DayOfTheWeekCollection.java | 370 +- .../webservices/data/DayOfTheWeekIndex.java | 50 +- .../data/DeclineMeetingInvitationMessage.java | 48 +- .../data/DefaultExtendedPropertySet.java | 72 +- .../data/DelegateFolderPermissionLevel.java | 40 +- .../webservices/data/DelegateInformation.java | 76 +- .../data/DelegateManagementRequestBase.java | 184 +- .../data/DelegateManagementResponse.java | 146 +- .../webservices/data/DelegatePermissions.java | 698 +- .../webservices/data/DelegateUser.java | 407 +- .../data/DelegateUserResponse.java | 92 +- .../data/DeleteAttachmentException.java | 88 +- .../data/DeleteAttachmentRequest.java | 277 +- .../data/DeleteAttachmentResponse.java | 93 +- .../webservices/data/DeleteFolderRequest.java | 219 +- .../webservices/data/DeleteItemRequest.java | 373 +- .../exchange/webservices/data/DeleteMode.java | 26 +- .../webservices/data/DeleteRequest.java | 110 +- .../webservices/data/DeleteRuleOperation.java | 117 +- .../data/DeleteUserConfigurationRequest.java | 304 +- .../data/DeletedOccurrenceInfo.java | 89 +- .../data/DeletedOccurrenceInfoCollection.java | 66 +- .../data/DictionaryEntryProperty.java | 203 +- .../webservices/data/DictionaryProperty.java | 700 +- .../data/DisconnectPhoneCallRequest.java | 198 +- .../exchange/webservices/data/DnsClient.java | 108 +- .../webservices/data/DnsException.java | 23 +- .../exchange/webservices/data/DnsRecord.java | 64 +- .../webservices/data/DnsRecordType.java | 107 +- .../webservices/data/DnsSrvRecord.java | 144 +- .../webservices/data/DomainSettingError.java | 127 +- .../webservices/data/DomainSettingName.java | 20 +- .../data/DoublePropertyDefinition.java | 34 +- .../webservices/data/EWSConstants.java | 38 +- .../webservices/data/EWSHttpException.java | 80 +- .../webservices/data/EditorBrowsable.java | 19 +- .../data/EditorBrowsableState.java | 38 +- .../webservices/data/EffectiveRights.java | 93 +- .../EffectiveRightsPropertyDefinition.java | 216 +- .../webservices/data/EmailAddress.java | 725 +- .../data/EmailAddressCollection.java | 324 +- .../data/EmailAddressDictionary.java | 147 +- .../webservices/data/EmailAddressEntry.java | 290 +- .../webservices/data/EmailAddressKey.java | 24 +- .../webservices/data/EmailMessage.java | 1175 ++- .../webservices/data/EmailMessageSchema.java | 716 +- .../webservices/data/EmptyFolderRequest.java | 313 +- .../data/EndDateRecurrenceRange.java | 222 +- .../exchange/webservices/data/EventType.java | 100 +- .../exchange/webservices/data/EwsEnum.java | 15 +- .../data/EwsSSLProtocolSocketFactory.java | 93 +- .../EwsServiceMultiResponseXmlReader.java | 141 +- .../webservices/data/EwsServiceXmlReader.java | 400 +- .../webservices/data/EwsServiceXmlWriter.java | 1115 ++- .../webservices/data/EwsTraceListener.java | 25 +- .../webservices/data/EwsUtilities.java | 3200 ++++--- .../webservices/data/EwsX509TrustManager.java | 101 +- .../webservices/data/EwsXmlReader.java | 2201 +++-- .../webservices/data/ExchangeCredentials.java | 270 +- .../webservices/data/ExchangeServerInfo.java | 318 +- .../webservices/data/ExchangeService.java | 7614 ++++++++-------- .../webservices/data/ExchangeServiceBase.java | 1892 ++-- .../webservices/data/ExchangeVersion.java | 36 +- .../data/ExecuteDiagnosticMethodRequest.java | 262 +- .../data/ExecuteDiagnosticMethodResponse.java | 239 +- .../webservices/data/ExpandGroupRequest.java | 229 +- .../webservices/data/ExpandGroupResponse.java | 62 +- .../webservices/data/ExpandGroupResults.java | 180 +- .../webservices/data/ExtendedProperty.java | 414 +- .../data/ExtendedPropertyCollection.java | 469 +- .../data/ExtendedPropertyDefinition.java | 862 +- .../webservices/data/FileAsMapping.java | 216 +- .../webservices/data/FileAttachment.java | 589 +- .../data/FindConversationRequest.java | 318 +- .../data/FindConversationResponse.java | 104 +- .../webservices/data/FindFolderRequest.java | 125 +- .../webservices/data/FindFolderResponse.java | 165 +- .../webservices/data/FindFoldersResults.java | 205 +- .../webservices/data/FindItemRequest.java | 173 +- .../webservices/data/FindItemResponse.java | 351 +- .../webservices/data/FindItemsResults.java | 215 +- .../webservices/data/FindRequest.java | 406 +- .../webservices/data/FlaggedForAction.java | 90 +- .../exchange/webservices/data/Flags.java | 5 +- .../exchange/webservices/data/Folder.java | 1537 ++-- .../webservices/data/FolderChange.java | 75 +- .../webservices/data/FolderEvent.java | 209 +- .../exchange/webservices/data/FolderId.java | 484 +- .../webservices/data/FolderIdCollection.java | 209 +- .../webservices/data/FolderIdWrapper.java | 73 +- .../webservices/data/FolderIdWrapperList.java | 245 +- .../webservices/data/FolderPermission.java | 1676 ++-- .../data/FolderPermissionCollection.java | 403 +- .../data/FolderPermissionLevel.java | 100 +- .../data/FolderPermissionReadAccess.java | 36 +- .../webservices/data/FolderSchema.java | 385 +- .../webservices/data/FolderTraversal.java | 24 +- .../exchange/webservices/data/FolderView.java | 174 +- .../webservices/data/FolderWrapper.java | 75 +- .../webservices/data/FormatException.java | 80 +- .../webservices/data/FreeBusyViewType.java | 104 +- .../data/GenericItemAttachment.java | 57 +- .../data/GenericPropertyDefinition.java | 157 +- .../data/GetAttachmentRequest.java | 393 +- .../data/GetAttachmentResponse.java | 94 +- .../webservices/data/GetDelegateRequest.java | 256 +- .../webservices/data/GetDelegateResponse.java | 93 +- .../data/GetDomainSettingsRequest.java | 497 +- .../data/GetDomainSettingsResponse.java | 429 +- .../GetDomainSettingsResponseCollection.java | 66 +- .../webservices/data/GetEventsRequest.java | 303 +- .../webservices/data/GetEventsResponse.java | 60 +- .../webservices/data/GetEventsResults.java | 447 +- .../webservices/data/GetFolderRequest.java | 59 +- .../data/GetFolderRequestBase.java | 202 +- .../data/GetFolderRequestForLoad.java | 57 +- .../webservices/data/GetFolderResponse.java | 161 +- .../data/GetInboxRulesRequest.java | 198 +- .../data/GetInboxRulesResponse.java | 77 +- .../webservices/data/GetItemRequest.java | 52 +- .../webservices/data/GetItemRequestBase.java | 201 +- .../data/GetItemRequestForLoad.java | 54 +- .../webservices/data/GetItemResponse.java | 168 +- .../GetPasswordExpirationDateRequest.java | 151 +- .../GetPasswordExpirationDateResponse.java | 56 +- .../webservices/data/GetPhoneCallRequest.java | 196 +- .../data/GetPhoneCallResponse.java | 90 +- .../exchange/webservices/data/GetRequest.java | 138 +- .../webservices/data/GetRoomListsRequest.java | 149 +- .../data/GetRoomListsResponse.java | 100 +- .../webservices/data/GetRoomsRequest.java | 195 +- .../webservices/data/GetRoomsResponse.java | 100 +- .../data/GetServerTimeZonesRequest.java | 280 +- .../data/GetServerTimeZonesResponse.java | 116 +- .../data/GetStreamingEventsRequest.java | 224 +- .../data/GetStreamingEventsResponse.java | 209 +- .../data/GetStreamingEventsResults.java | 250 +- .../data/GetUserAvailabilityRequest.java | 566 +- .../data/GetUserAvailabilityResults.java | 130 +- .../data/GetUserConfigurationRequest.java | 442 +- .../data/GetUserConfigurationResponse.java | 94 +- .../data/GetUserOofSettingsRequest.java | 279 +- .../data/GetUserOofSettingsResponse.java | 51 +- .../data/GetUserSettingsRequest.java | 629 +- .../data/GetUserSettingsResponse.java | 471 +- .../GetUserSettingsResponseCollection.java | 66 +- .../webservices/data/GroupMember.java | 664 +- .../data/GroupMemberCollection.java | 922 +- .../data/GroupMemberPropertyDefinition.java | 164 +- .../data/GroupedFindItemsResults.java | 220 +- .../exchange/webservices/data/Grouping.java | 348 +- .../data/HangingServiceRequestBase.java | 798 +- .../webservices/data/HangingTraceStream.java | 224 +- .../data/HttpClientWebRequest.java | 808 +- .../webservices/data/HttpErrorException.java | 12 +- .../data/HttpProxyCredentials.java | 155 +- .../webservices/data/HttpWebRequest.java | 1091 ++- .../exchange/webservices/data/IAction.java | 19 +- .../webservices/data/IAsyncResult.java | 12 +- .../data/IAutodiscoverRedirectionUrl.java | 21 +- .../data/ICalendarActionProvider.java | 101 +- .../data/IComplexPropertyChanged.java | 14 +- .../data/IComplexPropertyChangedDelegate.java | 13 +- .../data/ICreateComplexPropertyDelegate.java | 19 +- ...reateServiceObjectWithAttachmentParam.java | 23 +- .../ICreateServiceObjectWithServiceParam.java | 20 +- .../data/ICustomXmlSerialization.java | 15 +- .../data/ICustomXmlUpdateSerializer.java | 79 +- .../webservices/data/IDisposable.java | 8 +- .../data/IFileAttachmentContentHandler.java | 18 +- .../exchange/webservices/data/IFunc.java | 25 +- .../webservices/data/IFuncDelegate.java | 22 +- .../exchange/webservices/data/IFunction.java | 23 +- .../webservices/data/IFunctionDelegate.java | 59 +- .../data/IGetObjectInstanceDelegate.java | 28 +- .../data/IGetPropertyDefinitionCallback.java | 17 +- .../webservices/data/ILazyMember.java | 19 +- .../webservices/data/IOwnedProperty.java | 26 +- .../exchange/webservices/data/IPredicate.java | 33 +- .../data/IPropertyBagChangedDelegate.java | 22 +- .../data/ISearchStringProvider.java | 15 +- .../webservices/data/ISelfValidate.java | 16 +- .../data/IServiceObjectChangedDelegate.java | 13 +- .../webservices/data/ITraceListener.java | 16 +- .../exchange/webservices/data/IdFormat.java | 58 +- .../webservices/data/ImAddressDictionary.java | 142 +- .../webservices/data/ImAddressEntry.java | 126 +- .../webservices/data/ImAddressKey.java | 24 +- .../webservices/data/ImpersonatedUserId.java | 191 +- .../exchange/webservices/data/Importance.java | 24 +- .../data/IndexedPropertyDefinition.java | 225 +- .../data/IntPropertyDefinition.java | 90 +- .../data/InternetMessageHeader.java | 219 +- .../data/InternetMessageHeaderCollection.java | 97 +- .../data/InvalidOperationException.java | 27 +- .../exchange/webservices/data/Item.java | 2388 +++-- .../webservices/data/ItemAttachment.java | 454 +- .../exchange/webservices/data/ItemChange.java | 114 +- .../webservices/data/ItemCollection.java | 183 +- .../exchange/webservices/data/ItemEvent.java | 165 +- .../exchange/webservices/data/ItemGroup.java | 103 +- .../exchange/webservices/data/ItemId.java | 73 +- .../webservices/data/ItemIdCollection.java | 52 +- .../webservices/data/ItemIdWrapper.java | 53 +- .../webservices/data/ItemIdWrapperList.java | 223 +- .../exchange/webservices/data/ItemSchema.java | 1309 +-- .../webservices/data/ItemTraversal.java | 26 +- .../exchange/webservices/data/ItemView.java | 304 +- .../webservices/data/ItemWrapper.java | 74 +- .../exchange/webservices/data/LazyMember.java | 78 +- .../data/LegacyAvailabilityTimeZone.java | 185 +- .../data/LegacyAvailabilityTimeZoneTime.java | 465 +- .../data/LegacyFreeBusyStatus.java | 85 +- .../webservices/data/LogicalOperator.java | 16 +- .../exchange/webservices/data/Mailbox.java | 458 +- .../webservices/data/MailboxType.java | 78 +- .../data/ManagedFolderInformation.java | 399 +- .../webservices/data/MapiPropertyType.java | 268 +- .../webservices/data/MapiTypeConverter.java | 842 +- .../data/MapiTypeConverterMap.java | 4 +- .../data/MapiTypeConverterMapEntry.java | 594 +- .../webservices/data/MeetingAttendeeType.java | 48 +- .../webservices/data/MeetingCancellation.java | 168 +- .../webservices/data/MeetingMessage.java | 351 +- .../data/MeetingMessageSchema.java | 272 +- .../webservices/data/MeetingRequest.java | 1419 ++- .../data/MeetingRequestSchema.java | 663 +- .../webservices/data/MeetingRequestType.java | 70 +- .../data/MeetingRequestsDeliveryScope.java | 36 +- .../webservices/data/MeetingResponse.java | 132 +- .../webservices/data/MeetingResponseType.java | 58 +- .../webservices/data/MeetingTimeZone.java | 438 +- .../MeetingTimeZonePropertyDefinition.java | 117 +- .../webservices/data/MemberStatus.java | 24 +- .../webservices/data/MessageBody.java | 342 +- .../webservices/data/MessageDisposition.java | 20 +- .../webservices/data/MimeContent.java | 297 +- .../webservices/data/MobilePhone.java | 101 +- .../exchange/webservices/data/Month.java | 147 +- .../data/MoveCopyFolderRequest.java | 132 +- .../data/MoveCopyFolderResponse.java | 142 +- .../webservices/data/MoveCopyItemRequest.java | 138 +- .../data/MoveCopyItemResponse.java | 148 +- .../webservices/data/MoveCopyRequest.java | 155 +- .../webservices/data/MoveFolderRequest.java | 126 +- .../webservices/data/MoveItemRequest.java | 124 +- .../data/MultiResponseServiceRequest.java | 338 +- .../webservices/data/NameResolution.java | 123 +- .../data/NameResolutionCollection.java | 221 +- .../data/NoEndRecurrenceRange.java | 76 +- .../data/NotSupportedException.java | 33 +- .../webservices/data/NotificationEvent.java | 257 +- .../data/NotificationEventArgs.java | 89 +- .../data/NumberedRecurrenceRange.java | 219 +- .../webservices/data/OccurrenceInfo.java | 181 +- .../data/OccurrenceInfoCollection.java | 66 +- .../webservices/data/OffsetBasePoint.java | 16 +- .../webservices/data/OofExternalAudience.java | 26 +- .../exchange/webservices/data/OofReply.java | 316 +- .../webservices/data/OofSettings.java | 511 +- .../exchange/webservices/data/OofState.java | 24 +- .../webservices/data/OrderByCollection.java | 375 +- .../exchange/webservices/data/OutParam.java | 15 +- .../webservices/data/OutlookAccount.java | 312 +- .../data/OutlookConfigurationSettings.java | 423 +- .../webservices/data/OutlookProtocol.java | 1476 ++-- .../webservices/data/OutlookProtocolType.java | 32 +- .../webservices/data/OutlookUser.java | 217 +- .../exchange/webservices/data/PagedView.java | 389 +- .../exchange/webservices/data/Param.java | 46 +- ...ermissionCollectionPropertyDefinition.java | 80 +- .../webservices/data/PermissionScope.java | 24 +- .../exchange/webservices/data/PhoneCall.java | 324 +- .../webservices/data/PhoneCallId.java | 135 +- .../webservices/data/PhoneCallState.java | 64 +- .../data/PhoneNumberDictionary.java | 145 +- .../webservices/data/PhoneNumberEntry.java | 127 +- .../webservices/data/PhoneNumberKey.java | 188 +- .../data/PhysicalAddressDictionary.java | 104 +- .../data/PhysicalAddressEntry.java | 732 +- .../data/PhysicalAddressIndex.java | 32 +- .../webservices/data/PhysicalAddressKey.java | 24 +- .../webservices/data/PlayOnPhoneRequest.java | 266 +- .../webservices/data/PlayOnPhoneResponse.java | 87 +- .../exchange/webservices/data/PostItem.java | 600 +- .../webservices/data/PostItemSchema.java | 182 +- .../exchange/webservices/data/PostReply.java | 437 +- .../webservices/data/PostReplySchema.java | 39 +- .../webservices/data/PropertyBag.java | 1701 ++-- .../webservices/data/PropertyDefinition.java | 444 +- .../data/PropertyDefinitionBase.java | 194 +- .../data/PropertyDefinitionFlags.java | 84 +- .../webservices/data/PropertyException.java | 103 +- .../webservices/data/PropertySet.java | 1133 ++- .../webservices/data/ProtocolConnection.java | 249 +- .../data/ProtocolConnectionCollection.java | 108 +- .../webservices/data/PullSubscription.java | 198 +- .../webservices/data/PushSubscription.java | 21 +- .../exchange/webservices/data/Recurrence.java | 3023 ++++--- .../data/RecurrencePropertyDefinition.java | 287 +- .../webservices/data/RecurrenceRange.java | 299 +- .../data/RecurringAppointmentMasterId.java | 68 +- .../exchange/webservices/data/RefParam.java | 22 +- .../data/RelativeDayOfMonthTransition.java | 202 +- .../data/RemoveDelegateRequest.java | 178 +- .../webservices/data/RemoveFromCalendar.java | 161 +- .../data/RequiredServerVersion.java | 17 +- .../data/ResolveNameSearchLocation.java | 36 +- .../webservices/data/ResolveNamesRequest.java | 575 +- .../data/ResolveNamesResponse.java | 98 +- .../webservices/data/ResponseActions.java | 139 +- .../webservices/data/ResponseMessage.java | 375 +- .../data/ResponseMessageSchema.java | 40 +- .../webservices/data/ResponseMessageType.java | 26 +- .../webservices/data/ResponseObject.java | 343 +- .../data/ResponseObjectSchema.java | 90 +- .../ResponseObjectsPropertyDefinition.java | 239 +- .../exchange/webservices/data/Rule.java | 546 +- .../webservices/data/RuleActions.java | 984 +-- .../webservices/data/RuleCollection.java | 172 +- .../exchange/webservices/data/RuleError.java | 148 +- .../webservices/data/RuleErrorCode.java | 253 +- .../webservices/data/RuleErrorCollection.java | 82 +- .../webservices/data/RuleOperation.java | 35 +- .../webservices/data/RuleOperationError.java | 176 +- .../data/RuleOperationErrorCollection.java | 83 +- .../data/RulePredicateDateRange.java | 186 +- .../data/RulePredicateSizeRange.java | 207 +- .../webservices/data/RulePredicates.java | 2103 +++-- .../webservices/data/RuleProperty.java | 1099 ++- .../webservices/data/SafeXmlDocument.java | 371 +- .../webservices/data/SafeXmlFactory.java | 63 +- .../webservices/data/SafeXmlSchema.java | 86 +- .../exchange/webservices/data/Schema.java | 3 +- .../webservices/data/SearchFilter.java | 3090 ++++--- .../webservices/data/SearchFolder.java | 244 +- .../data/SearchFolderParameters.java | 387 +- .../webservices/data/SearchFolderSchema.java | 86 +- .../data/SearchFolderTraversal.java | 16 +- .../data/SendCancellationsMode.java | 26 +- .../webservices/data/SendInvitationsMode.java | 26 +- .../SendInvitationsOrCancellationsMode.java | 56 +- .../webservices/data/SendItemRequest.java | 376 +- .../webservices/data/Sensitivity.java | 32 +- .../webservices/data/ServiceError.java | 4136 ++++----- .../data/ServiceErrorHandling.java | 16 +- .../exchange/webservices/data/ServiceId.java | 400 +- .../data/ServiceLocalException.java | 49 +- .../webservices/data/ServiceObject.java | 1221 ++- .../data/ServiceObjectDefinition.java | 29 +- .../webservices/data/ServiceObjectInfo.java | 738 +- .../data/ServiceObjectPropertyDefinition.java | 117 +- .../data/ServiceObjectPropertyException.java | 104 +- .../webservices/data/ServiceObjectSchema.java | 725 +- .../webservices/data/ServiceObjectType.java | 26 +- .../data/ServiceRemoteException.java | 49 +- .../webservices/data/ServiceRequestBase.java | 1414 ++- .../data/ServiceRequestException.java | 49 +- .../webservices/data/ServiceResponse.java | 647 +- .../data/ServiceResponseCollection.java | 164 +- .../data/ServiceResponseException.java | 139 +- .../webservices/data/ServiceResult.java | 24 +- .../data/ServiceValidationException.java | 51 +- .../data/ServiceVersionException.java | 49 +- .../ServiceXmlDeserializationException.java | 53 +- .../ServiceXmlSerializationException.java | 51 +- .../webservices/data/SetRuleOperation.java | 155 +- .../data/SetUserOofSettingsRequest.java | 295 +- .../webservices/data/SimplePropertyBag.java | 426 +- .../data/SimpleServiceRequestBase.java | 339 +- .../webservices/data/SoapFaultDetails.java | 770 +- .../webservices/data/SortDirection.java | 16 +- .../webservices/data/StandardUser.java | 18 +- .../data/StartTimeZonePropertyDefinition.java | 185 +- .../data/StreamingSubscription.java | 86 +- .../data/StreamingSubscriptionConnection.java | 1110 ++- .../exchange/webservices/data/StringList.java | 578 +- .../data/StringPropertyDefinition.java | 87 +- .../exchange/webservices/data/Strings.java | 422 +- .../webservices/data/SubscribeRequest.java | 430 +- .../webservices/data/SubscribeResponse.java | 99 +- .../SubscribeToPullNotificationsRequest.java | 184 +- .../SubscribeToPushNotificationsRequest.java | 258 +- ...scribeToStreamingNotificationsRequest.java | 128 +- .../webservices/data/SubscriptionBase.java | 254 +- .../data/SubscriptionErrorEventArgs.java | 98 +- .../exchange/webservices/data/Suggestion.java | 195 +- .../webservices/data/SuggestionQuality.java | 32 +- .../webservices/data/SuggestionsResponse.java | 78 +- .../webservices/data/SuppressReadReceipt.java | 151 +- .../data/SyncFolderHierarchyRequest.java | 375 +- .../data/SyncFolderHierarchyResponse.java | 77 +- .../data/SyncFolderItemsRequest.java | 552 +- .../data/SyncFolderItemsResponse.java | 77 +- .../data/SyncFolderItemsScope.java | 16 +- .../webservices/data/SyncResponse.java | 308 +- .../exchange/webservices/data/Task.java | 1139 ++- .../webservices/data/TaskDelegationState.java | 48 +- ...TaskDelegationStatePropertyDefinition.java | 198 +- .../exchange/webservices/data/TaskMode.java | 87 +- .../exchange/webservices/data/TaskSchema.java | 773 +- .../exchange/webservices/data/TaskStatus.java | 48 +- .../webservices/data/TasksFolder.java | 178 +- .../exchange/webservices/data/Time.java | 323 +- .../exchange/webservices/data/TimeChange.java | 451 +- .../data/TimeChangeRecurrence.java | 311 +- .../exchange/webservices/data/TimeSpan.java | 915 +- .../data/TimeSpanPropertyDefinition.java | 78 +- .../webservices/data/TimeSpanTest.java | 50 +- .../webservices/data/TimeSuggestion.java | 282 +- .../exchange/webservices/data/TimeWindow.java | 329 +- .../data/TimeZoneConversionException.java | 51 +- .../webservices/data/TimeZoneDefinition.java | 779 +- .../webservices/data/TimeZonePeriod.java | 307 +- .../data/TimeZonePropertyDefinition.java | 142 +- .../webservices/data/TimeZoneTransition.java | 407 +- .../data/TimeZoneTransitionGroup.java | 785 +- .../webservices/data/TokenCredentials.java | 50 +- .../exchange/webservices/data/TraceFlags.java | 68 +- .../data/TypedPropertyDefinition.java | 270 +- .../webservices/data/UnifiedMessaging.java | 122 +- .../exchange/webservices/data/UniqueBody.java | 197 +- .../webservices/data/UnsubscribeRequest.java | 255 +- .../data/UpdateDelegateRequest.java | 267 +- .../webservices/data/UpdateFolderRequest.java | 272 +- .../data/UpdateFolderResponse.java | 134 +- .../data/UpdateInboxRulesException.java | 109 +- .../data/UpdateInboxRulesRequest.java | 367 +- .../data/UpdateInboxRulesResponse.java | 83 +- .../webservices/data/UpdateItemRequest.java | 548 +- .../webservices/data/UpdateItemResponse.java | 291 +- .../data/UpdateUserConfigurationRequest.java | 232 +- .../webservices/data/UserConfiguration.java | 1332 ++- .../data/UserConfigurationDictionary.java | 1457 ++-- ...UserConfigurationDictionaryObjectType.java | 80 +- .../data/UserConfigurationProperties.java | 99 +- .../exchange/webservices/data/UserId.java | 429 +- .../webservices/data/UserSettingError.java | 200 +- .../webservices/data/UserSettingName.java | 542 +- .../exchange/webservices/data/ViewBase.java | 319 +- .../data/WSSecurityBasedCredentials.java | 493 +- .../data/WebAsyncCallStateAnchor.java | 96 +- .../webservices/data/WebClientUrl.java | 185 +- .../data/WebClientUrlCollection.java | 80 +- .../webservices/data/WebCredentials.java | 216 +- .../webservices/data/WebExceptionStatus.java | 193 +- .../exchange/webservices/data/WebProxy.java | 122 +- .../webservices/data/WellKnownFolderName.java | 272 +- .../data/WindowsLiveCredentials.java | 2 +- .../webservices/data/WorkingHours.java | 262 +- .../webservices/data/WorkingPeriod.java | 132 +- .../webservices/data/XmlAttributeNames.java | 570 +- .../webservices/data/XmlDtdException.java | 15 +- .../webservices/data/XmlElementNames.java | 7700 ++++++++++------- .../webservices/data/XmlException.java | 53 +- .../webservices/data/XmlNameTable.java | 125 +- .../webservices/data/XmlNamespace.java | 180 +- .../webservices/data/XmlNodeType.java | 381 +- src/site/site.xml | 4 +- .../exchange/webservices/data/BaseTest.java | 49 +- .../webservices/data/EwsUtilitiesTest.java | 26 +- .../data/GetUserSettingsRequestTest.java | 254 +- .../exchange/webservices/data/TaskTest.java | 246 +- .../data/UserConfigurationDictionaryTest.java | 227 +- 589 files changed, 91668 insertions(+), 91951 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java index 2568adc09..f7b557d7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java @@ -10,118 +10,109 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; -import javax.xml.stream.XMLStreamException; - /** * Represents a time zone period transition that occurs on a fixed (absolute) * date. */ class AbsoluteDateTransition extends TimeZoneTransition { - /** The date time. */ - private Date dateTime; - - /** - * Gets the XML element name associated with the transition. - * - * @return The XML element name associated with the transition. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AbsoluteDateTransition; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws java.text.ParseException - * the parse exception - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws ParseException, Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - if (reader.getLocalName().equals(XmlElementNames.DateTime)) { - SimpleDateFormat sdfin = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - this.dateTime = sdfin.parse(reader.readElementValue()); - - result = true; - } - } - - return result; - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - super.writeElementsToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DateTime, - this.dateTime); - } - - /** - * Initializes a new instance of the AbsoluteDateTransition class. - * - * @param timeZoneDefinition - * , The time zone definition the transition will belong to. - */ - protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition) { - super(timeZoneDefinition); - } - - /** - * Initializes a new instance of the AbsoluteDateTransition class. - * - * @param timeZoneDefinition - * The time zone definition the transition will belong to. - * @param targetGroup - * the target group - */ - protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition, - TimeZoneTransitionGroup targetGroup) { - super(timeZoneDefinition, targetGroup); - } - - /** - * Gets the absolute date and time when the transition occurs. - * - * @return the date time - */ - protected Date getDateTime() { - return dateTime; - } - - /** - * Sets the date time. - * - * @param dateTime - * the new date time - */ - protected void setDateTime(Date dateTime) { - this.dateTime = dateTime; - } + /** + * The date time. + */ + private Date dateTime; + + /** + * Gets the XML element name associated with the transition. + * + * @return The XML element name associated with the transition. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AbsoluteDateTransition; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws java.text.ParseException the parse exception + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws ParseException, Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + if (reader.getLocalName().equals(XmlElementNames.DateTime)) { + SimpleDateFormat sdfin = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + this.dateTime = sdfin.parse(reader.readElementValue()); + + result = true; + } + } + + return result; + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + super.writeElementsToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DateTime, + this.dateTime); + } + + /** + * Initializes a new instance of the AbsoluteDateTransition class. + * + * @param timeZoneDefinition , The time zone definition the transition will belong to. + */ + protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition) { + super(timeZoneDefinition); + } + + /** + * Initializes a new instance of the AbsoluteDateTransition class. + * + * @param timeZoneDefinition The time zone definition the transition will belong to. + * @param targetGroup the target group + */ + protected AbsoluteDateTransition(TimeZoneDefinition timeZoneDefinition, + TimeZoneTransitionGroup targetGroup) { + super(timeZoneDefinition, targetGroup); + } + + /** + * Gets the absolute date and time when the transition occurs. + * + * @return the date time + */ + protected Date getDateTime() { + return dateTime; + } + + /** + * Sets the date time. + * + * @param dateTime the new date time + */ + protected void setDateTime(Date dateTime) { + this.dateTime = dateTime; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java index 1c3f286cb..1c30adaed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java @@ -18,98 +18,92 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class AbsoluteDayOfMonthTransition extends AbsoluteMonthTransition { - /** The day of month. */ - private int dayOfMonth; + /** + * The day of month. + */ + private int dayOfMonth; - /** - * Gets the XML element name associated with the transition. - * - * @return The XML element name associated with the transition. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RecurringDateTransition; - } + /** + * Gets the XML element name associated with the transition. + * + * @return The XML element name associated with the transition. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RecurringDateTransition; + } - /** - * Tries to read element from XML. - * - * @param reader - * returns True if element was read. - * @return true - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.Day)) { - this.dayOfMonth = reader.readElementValue(Integer.class); + /** + * Tries to read element from XML. + * + * @param reader returns True if element was read. + * @return true + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.Day)) { + this.dayOfMonth = reader.readElementValue(Integer.class); - EwsUtilities.EwsAssert(this.dayOfMonth > 0 - && this.dayOfMonth <= 31, - "AbsoluteDayOfMonthTransition.TryReadElementFromXml", - "dayOfMonth is not in the valid 1 - 31 range."); + EwsUtilities.EwsAssert(this.dayOfMonth > 0 + && this.dayOfMonth <= 31, + "AbsoluteDayOfMonthTransition.TryReadElementFromXml", + "dayOfMonth is not in the valid 1 - 31 range."); - return true; - } else { - return false; - } - } - } + return true; + } else { + return false; + } + } + } - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - super.writeElementsToXml(writer); + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + super.writeElementsToXml(writer); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Day, - this.dayOfMonth); - } + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Day, + this.dayOfMonth); + } - /** - * Initializes a new instance of the AbsoluteDayOfMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - */ - protected AbsoluteDayOfMonthTransition(TimeZoneDefinition timeZoneDefinition) { - super(timeZoneDefinition); - } + /** + * Initializes a new instance of the AbsoluteDayOfMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + */ + protected AbsoluteDayOfMonthTransition(TimeZoneDefinition timeZoneDefinition) { + super(timeZoneDefinition); + } - /** - * Initializes a new instance of the AbsoluteDayOfMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - * @param targetPeriod - * the target period - */ + /** + * Initializes a new instance of the AbsoluteDayOfMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + * @param targetPeriod the target period + */ - protected AbsoluteDayOfMonthTransition( - TimeZoneDefinition timeZoneDefinition, TimeZonePeriod targetPeriod) { - super(timeZoneDefinition, targetPeriod); - } + protected AbsoluteDayOfMonthTransition( + TimeZoneDefinition timeZoneDefinition, TimeZonePeriod targetPeriod) { + super(timeZoneDefinition, targetPeriod); + } - /** - * Gets the day of then month when this transition occurs. - * - * @return the day of month - */ - protected int getDayOfMonth() { - return this.dayOfMonth; - } + /** + * Gets the day of then month when this transition occurs. + * + * @return the day of month + */ + protected int getDayOfMonth() { + return this.dayOfMonth; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java index 817214c9f..051b86aff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java @@ -14,111 +14,106 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for all recurring time zone period transitions. - * */ abstract class AbsoluteMonthTransition extends TimeZoneTransition { - /** The time offset. */ - private TimeSpan timeOffset; - - /** The month. */ - private int month; - - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.TimeOffset)) { - this.timeOffset = EwsUtilities.getXSDurationToTimeSpan(reader - .readElementValue()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Month)) { - this.month = reader.readElementValue(Integer.class); - - EwsUtilities.EwsAssert(this.month > 0 && this.month <= 12, - "AbsoluteMonthTransition.TryReadElementFromXml", - "month is not in the valid 1 - 12 range."); - - return true; - } else { - return false; - } - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - super.writeElementsToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.TimeOffset, EwsUtilities - .getTimeSpanToXSDuration(this.timeOffset)); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, - this.month); - } - - /** - * Initializes a new instance of the AbsoluteMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - */ - protected AbsoluteMonthTransition(TimeZoneDefinition timeZoneDefinition) { - super(timeZoneDefinition); - } - - /** - * Initializes a new instance of the AbsoluteMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - * @param targetPeriod - * the target period - */ - protected AbsoluteMonthTransition(TimeZoneDefinition timeZoneDefinition, - TimeZonePeriod targetPeriod) { - super(timeZoneDefinition, targetPeriod); - } - - /** - * Gets the time offset from midnight when the transition occurs. - * - * @return the time offset - */ - protected TimeSpan getTimeOffset() { - return this.timeOffset; - } - - /** - * Gets the month when the transition occurs. - * - * @return the month - */ - protected int getMonth() { - return this.month; - } + /** + * The time offset. + */ + private TimeSpan timeOffset; + + /** + * The month. + */ + private int month; + + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.TimeOffset)) { + this.timeOffset = EwsUtilities.getXSDurationToTimeSpan(reader + .readElementValue()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Month)) { + this.month = reader.readElementValue(Integer.class); + + EwsUtilities.EwsAssert(this.month > 0 && this.month <= 12, + "AbsoluteMonthTransition.TryReadElementFromXml", + "month is not in the valid 1 - 12 range."); + + return true; + } else { + return false; + } + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + super.writeElementsToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.TimeOffset, EwsUtilities + .getTimeSpanToXSDuration(this.timeOffset)); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, + this.month); + } + + /** + * Initializes a new instance of the AbsoluteMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + */ + protected AbsoluteMonthTransition(TimeZoneDefinition timeZoneDefinition) { + super(timeZoneDefinition); + } + + /** + * Initializes a new instance of the AbsoluteMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + * @param targetPeriod the target period + */ + protected AbsoluteMonthTransition(TimeZoneDefinition timeZoneDefinition, + TimeZonePeriod targetPeriod) { + super(timeZoneDefinition, targetPeriod); + } + + /** + * Gets the time offset from midnight when the transition occurs. + * + * @return the time offset + */ + protected TimeSpan getTimeOffset() { + return this.timeOffset; + } + + /** + * Gets the month when the transition occurs. + * + * @return the month + */ + protected int getMonth() { + return this.month; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index 7a71e8b96..249dc996b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -13,31 +13,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; abstract class AbstractAsyncCallback implements Runnable, Callback { - Future task; - static boolean callbackProcessed = false; - - AbstractAsyncCallback() { - } - - AbstractAsyncCallback(Future t) { - this.task = t; - } - - public void run() { - while (!callbackProcessed) { - - if (task.isDone()) { - processMe(task); - callbackProcessed = true; - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - break; - } - - } - } + Future task; + static boolean callbackProcessed = false; + + AbstractAsyncCallback() { + } + + AbstractAsyncCallback(Future t) { + this.task = t; + } + + public void run() { + while (!callbackProcessed) { + + if (task.isDone()) { + processMe(task); + callbackProcessed = true; + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + break; + } + + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java index d3c78a811..0f0c70adb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java @@ -15,41 +15,37 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ abstract class AbstractFolderIdWrapper { - /** - * Obtains the Folder object associated with the wrapper. - * - * @return The Folder object associated with the wrapper. - */ - public Folder getFolder() { - return null; - } + /** + * Obtains the Folder object associated with the wrapper. + * + * @return The Folder object associated with the wrapper. + */ + public Folder getFolder() { + return null; + } - /** - * Initializes a new instance of AbstractFolderIdWrapper. - */ - protected AbstractFolderIdWrapper() { - } + /** + * Initializes a new instance of AbstractFolderIdWrapper. + */ + protected AbstractFolderIdWrapper() { + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected abstract void writeToXml(EwsServiceXmlWriter writer) - throws Exception; + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected abstract void writeToXml(EwsServiceXmlWriter writer) + throws Exception; - /** - * Validates folderId against specified version. - * - * @param version - * the version - * @throws ServiceVersionException - * the service version exception - */ - protected void validate(ExchangeVersion version) - throws ServiceVersionException { - } + /** + * Validates folderId against specified version. + * + * @param version the version + * @throws ServiceVersionException the service version exception + */ + protected void validate(ExchangeVersion version) + throws ServiceVersionException { + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java index bd24bb055..7120a41c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java @@ -15,29 +15,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ abstract class AbstractItemIdWrapper { - /** - * Initializes a new instance of the class. - */ - protected AbstractItemIdWrapper() { - } + /** + * Initializes a new instance of the class. + */ + protected AbstractItemIdWrapper() { + } - /** - * Obtains the ItemBase object associated with the wrapper. - * - * @return The ItemBase object associated with the wrapper - */ - public Item getItem() { - return null; - } + /** + * Obtains the ItemBase object associated with the wrapper. + * + * @return The ItemBase object associated with the wrapper + */ + public Item getItem() { + return null; + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected abstract void writeToXml(EwsServiceXmlWriter writer) - throws Exception; + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected abstract void writeToXml(EwsServiceXmlWriter writer) + throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java index 251c2e738..cb24fccb4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java @@ -12,75 +12,72 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a meeting acceptance message. - * - * */ public final class AcceptMeetingInvitationMessage extends - CalendarResponseMessage { + CalendarResponseMessage { - /** The tentative. */ - private boolean tentative; + /** + * The tentative. + */ + private boolean tentative; - /** - * Initializes a new instance of the AcceptMeetingInvitationMessage class. - * - * @param referenceItem - * the reference item - * @param tentative - * the tentative - * @throws Exception - * the exception - */ - protected AcceptMeetingInvitationMessage(Item referenceItem, - boolean tentative) throws Exception { - super(referenceItem); - this.tentative = tentative; - } + /** + * Initializes a new instance of the AcceptMeetingInvitationMessage class. + * + * @param referenceItem the reference item + * @param tentative the tentative + * @throws Exception the exception + */ + protected AcceptMeetingInvitationMessage(Item referenceItem, + boolean tentative) throws Exception { + super(referenceItem); + this.tentative = tentative; + } - /** - * This methods lets subclasses of ServiceObject override the default - * mechanism by which the XML element name associated with their type is - * retrieved. - * - * @return The XML element name associated with this type. If this method - * returns null or empty, the XML element name associated with this - * type is determined by the EwsObjectDefinition attribute that - * decorates the type, if present. - * - * Item and folder classes that can be returned by EWS MUST rely on - * the EwsObjectDefinition attribute for XML element name - * determination. - */ - @Override - protected String getXmlElementName() { - // getXmlElementOverride is pvt and getXmlElementName returns - // getXmlElementOverride - if (this.tentative) { - return XmlElementNames.TentativelyAcceptItem; - } else { - return XmlElementNames.AcceptItem; - } - } + /** + * This methods lets subclasses of ServiceObject override the default + * mechanism by which the XML element name associated with their type is + * retrieved. + * + * @return The XML element name associated with this type. If this method + * returns null or empty, the XML element name associated with this + * type is determined by the EwsObjectDefinition attribute that + * decorates the type, if present. + *

+ * Item and folder classes that can be returned by EWS MUST rely on + * the EwsObjectDefinition attribute for XML element name + * determination. + */ + @Override + protected String getXmlElementName() { + // getXmlElementOverride is pvt and getXmlElementName returns + // getXmlElementOverride + if (this.tentative) { + return XmlElementNames.TentativelyAcceptItem; + } else { + return XmlElementNames.AcceptItem; + } + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the tentative. - * - * @return Gets a value indicating whether the associated meeting is - * tentatively accepted. - */ - public boolean getTentative() { - return this.tentative; - } + /** + * Gets the tentative. + * + * @return Gets a value indicating whether the associated meeting is + * tentatively accepted. + */ + public boolean getTentative() { + return this.tentative; + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index 965d58a0c..f66ec0b5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -13,41 +13,41 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.net.URI; /** - * Represents an error that occurs when the account that is + * Represents an error that occurs when the account that is * being accessed is locked and requires user interaction to be unlocked. */ public class AccountIsLockedException extends ServiceRemoteException { - - private URI accountUnlockUrl; - - - /** - * Initializes a new instance of the AccountIsLockedException class. - * - * @param message Error message text. - * @param accountUnlockUrl URL for client to visit to unlock account. - */ - public AccountIsLockedException(String message, URI accountUnlockUrl, - Exception innerException) { - - super(message, innerException); - this.setAccountUnlockUrl(accountUnlockUrl); - } - - /** - * Gets the URL of a web page where the user - * can navigate to unlock his or her account. - */ - public URI getAccountUnlockUrl() { - return accountUnlockUrl; - } - - - /** - * Sets the URL of a web page where the - * user can navigate to unlock his or her account. - */ - private void setAccountUnlockUrl(URI value) { - this.accountUnlockUrl = value; - } + + private URI accountUnlockUrl; + + + /** + * Initializes a new instance of the AccountIsLockedException class. + * + * @param message Error message text. + * @param accountUnlockUrl URL for client to visit to unlock account. + */ + public AccountIsLockedException(String message, URI accountUnlockUrl, + Exception innerException) { + + super(message, innerException); + this.setAccountUnlockUrl(accountUnlockUrl); + } + + /** + * Gets the URL of a web page where the user + * can navigate to unlock his or her account. + */ + public URI getAccountUnlockUrl() { + return accountUnlockUrl; + } + + + /** + * Sets the URL of a web page where the + * user can navigate to unlock his or her account. + */ + private void setAccountUnlockUrl(URI value) { + this.accountUnlockUrl = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java index 7bb615adc..f1bd1d455 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java @@ -17,145 +17,144 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an AddDelegate request. */ class AddDelegateRequest extends - DelegateManagementRequestBase { - - /** The delegate users. */ - private List delegateUsers = new ArrayList(); - - /** The meeting requests delivery scope. */ - private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected AddDelegateRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Initializes a new instance of the class. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection( - this.getDelegateUsers().iterator(), "DelegateUsers"); - for(DelegateUser delegateUser : this.getDelegateUsers()) { - delegateUser.validateUpdateDelegate(); - } - - if (this.meetingRequestsDeliveryScope!=null) { - EwsUtilities.validateEnumVersionValue(this. - getMeetingRequestsDeliveryScope(), - this.getService().getRequestedServerVersion()); - } - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.DelegateUsers); - - for (DelegateUser delegateUser : this.getDelegateUsers()) { - delegateUser.writeToXml(writer, XmlElementNames.DelegateUser); - } - - writer.writeEndElement(); // DelegateUsers - - if (this.getMeetingRequestsDeliveryScope() != null) { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.DeliverMeetingRequests, this - .getMeetingRequestsDeliveryScope()); - } - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AddDelegate; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.AddDelegateResponse; - } - - /** - * Creates the response. - * - * @return Service response. - */ - @Override - protected DelegateManagementResponse createResponse() { - return new DelegateManagementResponse(true, this.delegateUsers); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the meeting requests delivery scope. The meeting - * requests delivery scope. - * - * @return the meeting requests delivery scope - */ - public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { - return this.meetingRequestsDeliveryScope; - } - - /** - * Sets the meeting requests delivery scope. - * - * @param meetingRequestsDeliveryScope - * the new meeting requests delivery scope - */ - public void setMeetingRequestsDeliveryScope( - MeetingRequestsDeliveryScope meetingRequestsDeliveryScope) { - this.meetingRequestsDeliveryScope = meetingRequestsDeliveryScope; - } - - /** - * Gets the delegate users. The delegate users. - * - * @return the delegate users - */ - public List getDelegateUsers() { - return this.delegateUsers; - } + DelegateManagementRequestBase { + + /** + * The delegate users. + */ + private List delegateUsers = new ArrayList(); + + /** + * The meeting requests delivery scope. + */ + private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected AddDelegateRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Initializes a new instance of the class. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection( + this.getDelegateUsers().iterator(), "DelegateUsers"); + for (DelegateUser delegateUser : this.getDelegateUsers()) { + delegateUser.validateUpdateDelegate(); + } + + if (this.meetingRequestsDeliveryScope != null) { + EwsUtilities.validateEnumVersionValue(this. + getMeetingRequestsDeliveryScope(), + this.getService().getRequestedServerVersion()); + } + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.DelegateUsers); + + for (DelegateUser delegateUser : this.getDelegateUsers()) { + delegateUser.writeToXml(writer, XmlElementNames.DelegateUser); + } + + writer.writeEndElement(); // DelegateUsers + + if (this.getMeetingRequestsDeliveryScope() != null) { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.DeliverMeetingRequests, this + .getMeetingRequestsDeliveryScope()); + } + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AddDelegate; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.AddDelegateResponse; + } + + /** + * Creates the response. + * + * @return Service response. + */ + @Override + protected DelegateManagementResponse createResponse() { + return new DelegateManagementResponse(true, this.delegateUsers); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the meeting requests delivery scope. The meeting + * requests delivery scope. + * + * @return the meeting requests delivery scope + */ + public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { + return this.meetingRequestsDeliveryScope; + } + + /** + * Sets the meeting requests delivery scope. + * + * @param meetingRequestsDeliveryScope the new meeting requests delivery scope + */ + public void setMeetingRequestsDeliveryScope( + MeetingRequestsDeliveryScope meetingRequestsDeliveryScope) { + this.meetingRequestsDeliveryScope = meetingRequestsDeliveryScope; + } + + /** + * Gets the delegate users. The delegate users. + * + * @return the delegate users + */ + public List getDelegateUsers() { + return this.delegateUsers; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java index c654bdf45..657ac3210 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java @@ -15,11 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum AffectedTaskOccurrence { - // All occurrences of the recurring task will be deleted. - /** The All occurrences. */ - AllOccurrences, + // All occurrences of the recurring task will be deleted. + /** + * The All occurrences. + */ + AllOccurrences, - // Only the current occurrence of the recurring task will be deleted. - /** The Specified occurrence only. */ - SpecifiedOccurrenceOnly + // Only the current occurrence of the recurring task will be deleted. + /** + * The Specified occurrence only. + */ + SpecifiedOccurrenceOnly } diff --git a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java index 25c6b9073..5866cb9b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java @@ -15,11 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum AggregateType { - // The maximum value is calculated. - /** The Minimum. */ - Minimum, + // The maximum value is calculated. + /** + * The Minimum. + */ + Minimum, - // The minimum value is calculated. - /** The Maximum. */ - Maximum + // The minimum value is calculated. + /** + * The Maximum. + */ + Maximum } diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java index 4667f209e..9d7234cec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java @@ -15,191 +15,179 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AlternateId extends AlternateIdBase { - /** - * Name of schema type used for AlternateId. - */ - protected final static String SchemaTypeName = "AlternateIdType"; - - /** - * Id. - */ - private String id; - - /** - * SMTP address of the mailbox that the id belongs to. - */ - private String mailbox; - - /** - * Type (primary or archive) mailbox to which the Id belongs - */ - private boolean isArchive; - - /** - * Initializes a new instance of the class. - */ - public AlternateId() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param format - * the format - * @param id - * the id - * @param mailbox - * the mailbox - */ - public AlternateId(IdFormat format, String id, String mailbox) { - super(format); - this.setUniqueId(id); - this.setMailbox(mailbox); - } - - /** - * Initializes a new instance of the AlternateId class. - * @param format The format the Id is expressed in. - * @param id The Id. - * @param mailbox The SMTP address of the mailbox that the Id belongs to. - * @param isArchive Primary (false) or archive (true) mailbox. - */ - public AlternateId( - IdFormat format, - String id, - String mailbox, - boolean isArchive) { - super(format); - this.setUniqueId(id); - this.setMailbox(mailbox); - this.setIsArchive(isArchive); - } - /** - * Gets the Id. - * - * @return the unique id - */ - public String getUniqueId() { - return this.id; - } - - /** - * Sets the unique id. - * - * @param id - * the new unique id - */ - public void setUniqueId(String id) { - this.id = id; - } - - /** - * Gets the mailbox to which the Id belongs. - * - * @return the mailbox - */ - public String getMailbox() { - return this.mailbox; - } - - /** - * Sets the mailbox. - * - * @param mailbox - * the new mailbox - */ - public void setMailbox(String mailbox) { - this.mailbox = mailbox; - } - - /** - * Gets the type (primary or archive) mailbox to which the Id belongs. - */ - public boolean getIsArchive() { - return this.isArchive; - } - - /** - * Sets the type (primary or archive) mailbox to which the Id belongs. - * - * @param isArchive - * the new isArchive - */ - public void setIsArchive(boolean isArchive) { - this.isArchive = isArchive; - } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AlternateId; - } - - /** - * Gets the name of the XML element. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.Id, this.getUniqueId()); - writer.writeAttributeValue(XmlAttributeNames.Mailbox, - this.getMailbox()); - //.getMailbox() == null || this.getMailbox().isEmpty()) ? "" - //: this.getMailbox()); - if(this.getIsArchive()) - { - writer.writeAttributeValue(XmlAttributeNames.IsArchive, true); - } - - } - - /** - * Gets the name of the XML element. - * - * @param reader - * the reader - * @throws Exception// - * the exception - */ - @Override - protected void loadAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - super.loadAttributesFromXml(reader); - - this.setUniqueId(reader.readAttributeValue(XmlAttributeNames.Id)); - this.setMailbox(reader.readAttributeValue(XmlAttributeNames.Mailbox)); - String isArchive = reader.readAttributeValue( - XmlAttributeNames.IsArchive); - - if(!(isArchive==null || isArchive.isEmpty())) - { - this.isArchive = reader.readAttributeValue(Boolean.class, - XmlAttributeNames.IsArchive); - } - else - { - this.isArchive = false; - } + /** + * Name of schema type used for AlternateId. + */ + protected final static String SchemaTypeName = "AlternateIdType"; + + /** + * Id. + */ + private String id; + + /** + * SMTP address of the mailbox that the id belongs to. + */ + private String mailbox; + + /** + * Type (primary or archive) mailbox to which the Id belongs + */ + private boolean isArchive; + + /** + * Initializes a new instance of the class. + */ + public AlternateId() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param format the format + * @param id the id + * @param mailbox the mailbox + */ + public AlternateId(IdFormat format, String id, String mailbox) { + super(format); + this.setUniqueId(id); + this.setMailbox(mailbox); + } + + /** + * Initializes a new instance of the AlternateId class. + * + * @param format The format the Id is expressed in. + * @param id The Id. + * @param mailbox The SMTP address of the mailbox that the Id belongs to. + * @param isArchive Primary (false) or archive (true) mailbox. + */ + public AlternateId( + IdFormat format, + String id, + String mailbox, + boolean isArchive) { + super(format); + this.setUniqueId(id); + this.setMailbox(mailbox); + this.setIsArchive(isArchive); + } + + /** + * Gets the Id. + * + * @return the unique id + */ + public String getUniqueId() { + return this.id; + } + + /** + * Sets the unique id. + * + * @param id the new unique id + */ + public void setUniqueId(String id) { + this.id = id; + } + + /** + * Gets the mailbox to which the Id belongs. + * + * @return the mailbox + */ + public String getMailbox() { + return this.mailbox; + } + + /** + * Sets the mailbox. + * + * @param mailbox the new mailbox + */ + public void setMailbox(String mailbox) { + this.mailbox = mailbox; + } + + /** + * Gets the type (primary or archive) mailbox to which the Id belongs. + */ + public boolean getIsArchive() { + return this.isArchive; + } + + /** + * Sets the type (primary or archive) mailbox to which the Id belongs. + * + * @param isArchive the new isArchive + */ + public void setIsArchive(boolean isArchive) { + this.isArchive = isArchive; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AlternateId; + } + + /** + * Gets the name of the XML element. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.Id, this.getUniqueId()); + writer.writeAttributeValue(XmlAttributeNames.Mailbox, + this.getMailbox()); + //.getMailbox() == null || this.getMailbox().isEmpty()) ? "" + //: this.getMailbox()); + if (this.getIsArchive()) { + writer.writeAttributeValue(XmlAttributeNames.IsArchive, true); } - /** - * Validate this instance. - */ - @Override - protected void internalValidate() throws Exception - { - EwsUtilities.validateParam(this.getMailbox(), "mailbox"); + } + + /** + * Gets the name of the XML element. + * + * @param reader the reader + * @throws Exception// the exception + */ + @Override + protected void loadAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + super.loadAttributesFromXml(reader); + + this.setUniqueId(reader.readAttributeValue(XmlAttributeNames.Id)); + this.setMailbox(reader.readAttributeValue(XmlAttributeNames.Mailbox)); + String isArchive = reader.readAttributeValue( + XmlAttributeNames.IsArchive); + + if (!(isArchive == null || isArchive.isEmpty())) { + this.isArchive = reader.readAttributeValue(Boolean.class, + XmlAttributeNames.IsArchive); + } else { + this.isArchive = false; } - } + } + + /** + * Validate this instance. + */ + @Override + protected void internalValidate() throws Exception { + EwsUtilities.validateParam(this.getMailbox(), "mailbox"); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java index 63a782d42..0c791fe10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java @@ -15,116 +15,107 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for Id expressed in a specific format. */ -public abstract class AlternateIdBase implements ISelfValidate{ +public abstract class AlternateIdBase implements ISelfValidate { - /** - * Id format. - */ - private IdFormat format; + /** + * Id format. + */ + private IdFormat format; - /** - * Initializes a new instance of the class. - */ - protected AlternateIdBase() { - } + /** + * Initializes a new instance of the class. + */ + protected AlternateIdBase() { + } - /** - * Initializes a new instance of the class. - * - * @param format - * the format - */ - protected AlternateIdBase(IdFormat format) { - super(); - this.format = format; - } + /** + * Initializes a new instance of the class. + * + * @param format the format + */ + protected AlternateIdBase(IdFormat format) { + super(); + this.format = format; + } - /** - * Gets the format in which the Id in expressed. - * - * @return the format - */ - public IdFormat getFormat() { - return this.format; - } + /** + * Gets the format in which the Id in expressed. + * + * @return the format + */ + public IdFormat getFormat() { + return this.format; + } - /** - * Sets the format. - * - * @param format - * the new format - */ - public void setFormat(IdFormat format) { - this.format = format; - } + /** + * Sets the format. + * + * @param format the new format + */ + public void setFormat(IdFormat format) { + this.format = format; + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - protected abstract String getXmlElementName(); + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + protected abstract String getXmlElementName(); - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Format, this.getFormat()); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Format, this.getFormat()); + } - /** - * Loads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.setFormat(reader.readAttributeValue(IdFormat.class, - XmlAttributeNames.Format)); - } + /** + * Loads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.setFormat(reader.readAttributeValue(IdFormat.class, + XmlAttributeNames.Format)); + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); - this.writeAttributesToXml(writer); - writer.writeEndElement(); // this.GetXmlElementName() - } + /** + * Writes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); + this.writeAttributesToXml(writer); + writer.writeEndElement(); // this.GetXmlElementName() + } - /** - * Validate this instance. - * @throws Exception - */ - protected void internalValidate() throws Exception - { - // nothing to do. - } + /** + * Validate this instance. + * + * @throws Exception + */ + protected void internalValidate() throws Exception { + // nothing to do. + } - /** - * Validates this instance. - * @throws Exception - */ - public void validate() throws Exception - { - this.internalValidate(); - } + /** + * Validates this instance. + * + * @throws Exception + */ + public void validate() throws Exception { + this.internalValidate(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index 85fad0d39..e5ad59895 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -12,141 +12,142 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines the AlternateMailbox class. - * */ public final class AlternateMailbox { - /** The type. */ - private String type; - - /** The display name. */ - private String displayName; - - /** The legacy dn. */ - private String legacyDN; - - /** The server. */ - private String server; - - /** - * Initializes a new instance of the AlternateMailbox class. - */ - private AlternateMailbox() { - } - - /** - * PLoads AlternateMailbox instance from XML. - * - * @param reader - * the reader - * @return AlternateMailbox - * @throws Exception - * the exception - */ - protected static AlternateMailbox loadFromXml(EwsXmlReader reader) - throws Exception { - AlternateMailbox altMailbox = new AlternateMailbox(); - - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName() - .equalsIgnoreCase(XmlElementNames.Type)) { - altMailbox.setType(reader.readElementValue(String.class)); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.DisplayName)) { - altMailbox.setDisplayName(reader - .readElementValue(String.class)); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.LegacyDN)) { - altMailbox.setLegacyDN(reader - .readElementValue(String.class)); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Server)) { - altMailbox.setServer(reader.readElementValue(String.class)); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.AlternateMailbox)); - - return altMailbox; - } - - /** - * Gets the alternate mailbox type. - * - * @return the type - */ - public String getType() { - return type; - } - - /** - * Sets the type. - * - * @param type - * the new type - */ - protected void setType(String type) { - this.type = type; - } - - /** - * Gets the alternate mailbox display name. - * - * @return the display name - */ - public String getDisplayName() { - return displayName; - } - - /** - * Sets the display name. - * - * @param displayName - * the new display name - */ - protected void setDisplayName(String displayName) { - this.displayName = displayName; - } - - /** - * Gets the alternate mailbox legacy DN. - * - * @return the legacy dn - */ - public String getLegacyDN() { - return legacyDN; - } - - /** - * Sets the legacy dn. - * - * @param legacyDN - * the new legacy dn - */ - protected void setLegacyDN(String legacyDN) { - this.legacyDN = legacyDN; - } - - /** - * Gets the alernate mailbox server. - * - * @return the server - */ - public String getServer() { - return server; - } - - /** - * Sets the server. - * - * @param server - * the new server - */ - protected void setServer(String server) { - this.server = server; - } + /** + * The type. + */ + private String type; + + /** + * The display name. + */ + private String displayName; + + /** + * The legacy dn. + */ + private String legacyDN; + + /** + * The server. + */ + private String server; + + /** + * Initializes a new instance of the AlternateMailbox class. + */ + private AlternateMailbox() { + } + + /** + * PLoads AlternateMailbox instance from XML. + * + * @param reader the reader + * @return AlternateMailbox + * @throws Exception the exception + */ + protected static AlternateMailbox loadFromXml(EwsXmlReader reader) + throws Exception { + AlternateMailbox altMailbox = new AlternateMailbox(); + + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName() + .equalsIgnoreCase(XmlElementNames.Type)) { + altMailbox.setType(reader.readElementValue(String.class)); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.DisplayName)) { + altMailbox.setDisplayName(reader + .readElementValue(String.class)); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.LegacyDN)) { + altMailbox.setLegacyDN(reader + .readElementValue(String.class)); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Server)) { + altMailbox.setServer(reader.readElementValue(String.class)); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.AlternateMailbox)); + + return altMailbox; + } + + /** + * Gets the alternate mailbox type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Sets the type. + * + * @param type the new type + */ + protected void setType(String type) { + this.type = type; + } + + /** + * Gets the alternate mailbox display name. + * + * @return the display name + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the display name. + * + * @param displayName the new display name + */ + protected void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + * Gets the alternate mailbox legacy DN. + * + * @return the legacy dn + */ + public String getLegacyDN() { + return legacyDN; + } + + /** + * Sets the legacy dn. + * + * @param legacyDN the new legacy dn + */ + protected void setLegacyDN(String legacyDN) { + this.legacyDN = legacyDN; + } + + /** + * Gets the alernate mailbox server. + * + * @return the server + */ + public String getServer() { + return server; + } + + /** + * Sets the server. + * + * @param server the new server + */ + protected void setServer(String server) { + this.server = server; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index db4752bf8..b4174bb90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -15,55 +15,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a user setting that is a collection of alternate mailboxes. - * */ -public final class AlternateMailboxCollection { +public final class AlternateMailboxCollection { - private ArrayList entries; + private ArrayList entries; - /** - * Initializes a new instance of the class - */ - protected AlternateMailboxCollection() { - this.setEntries(new ArrayList()); - } + /** + * Initializes a new instance of the class + */ + protected AlternateMailboxCollection() { + this.setEntries(new ArrayList()); + } - /** - * Loads instance of AlternateMailboxCollection from XML. - * - * @param reader - * the reader - * @return AlternateMailboxCollection - * @throws Exception - * the exception - */ - protected static AlternateMailboxCollection loadFromXml(EwsXmlReader reader) - throws Exception { - AlternateMailboxCollection instance = new AlternateMailboxCollection(); + /** + * Loads instance of AlternateMailboxCollection from XML. + * + * @param reader the reader + * @return AlternateMailboxCollection + * @throws Exception the exception + */ + protected static AlternateMailboxCollection loadFromXml(EwsXmlReader reader) + throws Exception { + AlternateMailboxCollection instance = new AlternateMailboxCollection(); - do { - reader.read(); + do { + reader.read(); - if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.AlternateMailbox))) { - instance.getEntries().add( - AlternateMailbox.loadFromXml(reader)); - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.AlternateMailbox)); + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.AlternateMailbox))) { + instance.getEntries().add( + AlternateMailbox.loadFromXml(reader)); + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.AlternateMailbox)); - return instance; - } + return instance; + } - /** - * Gets the collection of alternate mailboxes. - */ - public List getEntries() { - return this.entries; - } + /** + * Gets the collection of alternate mailboxes. + */ + public List getEntries() { + return this.entries; + } - private void setEntries(ArrayList value) { - this.entries = value; - } + private void setEntries(ArrayList value) { + this.entries = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java index 8c3c98087..a761ab8ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java @@ -15,93 +15,86 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AlternatePublicFolderId extends AlternateIdBase { - /** - * Name of schema type used for AlternatePublicFolderId element. - */ - protected final static String SchemaTypeName = - "AlternatePublicFolderIdType"; - - private String folderId; + /** + * Name of schema type used for AlternatePublicFolderId element. + */ + protected final static String SchemaTypeName = + "AlternatePublicFolderIdType"; - /** - * Initializes a new instance of AlternatePublicFolderId. - */ - public AlternatePublicFolderId() { - super(); - } + private String folderId; - /** - * Initializes a new instance of AlternatePublicFolderId. - * - * @param format - * the format - * @param folderId - * the folder id - */ - public AlternatePublicFolderId(IdFormat format, String folderId) { - super(format); - this.setFolderId(folderId); - } + /** + * Initializes a new instance of AlternatePublicFolderId. + */ + public AlternatePublicFolderId() { + super(); + } - /** - * The Id of the public folder. - * - * @return the folder id - */ - public String getFolderId() { - return this.folderId; + /** + * Initializes a new instance of AlternatePublicFolderId. + * + * @param format the format + * @param folderId the folder id + */ + public AlternatePublicFolderId(IdFormat format, String folderId) { + super(format); + this.setFolderId(folderId); + } - } + /** + * The Id of the public folder. + * + * @return the folder id + */ + public String getFolderId() { + return this.folderId; - /** - * Sets the folder id. - * - * @param folderId - * the new folder id - */ - public void setFolderId(String folderId) { - this.folderId = folderId; - } + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AlternatePublicFolderId; - } + /** + * Sets the folder id. + * + * @param folderId the new folder id + */ + public void setFolderId(String folderId) { + this.folderId = folderId; + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.FolderId, this - .getFolderId()); - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AlternatePublicFolderId; + } - /** - * Loads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void loadAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - super.loadAttributesFromXml(reader); - this.setFolderId(reader.readAttributeValue(XmlAttributeNames.FolderId)); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.FolderId, this + .getFolderId()); + } + + /** + * Loads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void loadAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + super.loadAttributesFromXml(reader); + this.setFolderId(reader.readAttributeValue(XmlAttributeNames.FolderId)); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java index 8424cfed0..6136c2fb2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java @@ -15,97 +15,89 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AlternatePublicFolderItemId extends AlternatePublicFolderId { - /** - * Schema type associated with AlternatePublicFolderItemId. - */ - protected final static String SchemaTypeName = - "AlternatePublicFolderItemIdType"; + /** + * Schema type associated with AlternatePublicFolderItemId. + */ + protected final static String SchemaTypeName = + "AlternatePublicFolderItemIdType"; - /** - * Item id. - */ - private String itemId; + /** + * Item id. + */ + private String itemId; - /** - * Initializes a new instance of the class. - */ - public AlternatePublicFolderItemId() { - super(); - } + /** + * Initializes a new instance of the class. + */ + public AlternatePublicFolderItemId() { + super(); + } - /** - * Initializes a new instance of the class. - * - * @param format - * the format - * @param folderId - * the folder id - * @param itemId - * the item id - */ - public AlternatePublicFolderItemId(IdFormat format, String folderId, - String itemId) { - super(format, folderId); - this.itemId = itemId; - } + /** + * Initializes a new instance of the class. + * + * @param format the format + * @param folderId the folder id + * @param itemId the item id + */ + public AlternatePublicFolderItemId(IdFormat format, String folderId, + String itemId) { + super(format, folderId); + this.itemId = itemId; + } - /** - * Gets The Id of the public folder item. - * - * @return the item id - */ - public String getItemId() { - return this.itemId; - } + /** + * Gets The Id of the public folder item. + * + * @return the item id + */ + public String getItemId() { + return this.itemId; + } - /** - * Sets the item id. - * - * @param itemId - * the new item id - */ - public void setItemId(String itemId) { - this.itemId = itemId; - } + /** + * Sets the item id. + * + * @param itemId the new item id + */ + public void setItemId(String itemId) { + this.itemId = itemId; + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AlternatePublicFolderItemId; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AlternatePublicFolderItemId; + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.ItemId, this.getItemId()); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.ItemId, this.getItemId()); + } - /** - * Loads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void loadAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - super.loadAttributesFromXml(reader); - this.itemId = reader.readAttributeValue(XmlAttributeNames.ItemId); - } + /** + * Loads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void loadAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + super.loadAttributesFromXml(reader); + this.itemId = reader.readAttributeValue(XmlAttributeNames.ItemId); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java index 4999e1cf3..a64936281 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java @@ -16,118 +16,125 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a request to a Apply Conversation Action operation */ -final class ApplyConversationActionRequest extends -MultiResponseServiceRequest { - - private List conversationActions = - new ArrayList(); - - public List getConversationActions() { - return this.conversationActions; - } - - /** - * Initializes a new instance of the ApplyConversationActionRequest class - * @param service The service. - * @param errorHandlingMode Indicates how errors should be handled. - * @throws Exception - */ - protected ApplyConversationActionRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) throws Exception { - super(service, errorHandlingMode); - } - - /** - * Creates the service response. - * @param service The service. - * @param responseIndex Index of the response. - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the expected response message count. - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.conversationActions.size(); - } - - /** - * Validate request. - * @throws Exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this. - conversationActions.iterator(), - "conversationActions"); - for (int iAction = 0; iAction < this.getConversationActions().size(); iAction++) - { - this.getConversationActions().get(iAction).validate(); - } - } - - - /** - * Writes XML elements. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement( - XmlNamespace.Messages, - XmlElementNames.ConversationActions); - for (int iAction = 0; iAction < this.getConversationActions().size(); iAction++) - { - this.getConversationActions().get(iAction). - writeElementsToXml(writer); - } - writer.writeEndElement(); - } - - /** - * Gets the name of the XML element. - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ApplyConversationAction; - } - - /** - * Gets the name of the response XML element. - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.ApplyConversationActionResponse; - } - - /** - * Gets the name of the response message XML element. - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.ApplyConversationActionResponseMessage; - } - - /** - * Gets the request version. - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } +final class ApplyConversationActionRequest extends + MultiResponseServiceRequest { + + private List conversationActions = + new ArrayList(); + + public List getConversationActions() { + return this.conversationActions; + } + + /** + * Initializes a new instance of the ApplyConversationActionRequest class + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected ApplyConversationActionRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) throws Exception { + super(service, errorHandlingMode); + } + + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.conversationActions.size(); + } + + /** + * Validate request. + * + * @throws Exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this. + conversationActions.iterator(), + "conversationActions"); + for (int iAction = 0; iAction < this.getConversationActions().size(); iAction++) { + this.getConversationActions().get(iAction).validate(); + } + } + + + /** + * Writes XML elements. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement( + XmlNamespace.Messages, + XmlElementNames.ConversationActions); + for (int iAction = 0; iAction < this.getConversationActions().size(); iAction++) { + this.getConversationActions().get(iAction). + writeElementsToXml(writer); + } + writer.writeEndElement(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ApplyConversationAction; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.ApplyConversationActionResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.ApplyConversationActionResponseMessage; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Appointment.java b/src/main/java/microsoft/exchange/webservices/data/Appointment.java index cabcfad3d..a2c7f25b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Appointment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Appointment.java @@ -16,1359 +16,1217 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an appointment or a meeting. Properties available on appointments * are defined in the AppointmentSchema class. - * */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.CalendarItem) public class Appointment extends Item implements ICalendarActionProvider { - /** - * Initializes an unsaved local instance of Appointment". To bind to an - * existing appointment, use Appointment.Bind() instead. - * - * @param service - * The ExchangeService instance to which this appointmtnt is - * bound. - * @throws Exception - * the exception - */ - public Appointment(ExchangeService service) throws Exception { - super(service); - } - - /** - * Initializes a new instance of Appointment. - * - * @param parentAttachment - * the parent attachment - * @param isNew - * If true, attachment is new. - * @throws Exception - * the exception - */ - protected Appointment(ItemAttachment parentAttachment, boolean isNew) - throws Exception { - // If we're running against Exchange 2007, we need to explicitly preset - // the StartTimeZone property since Exchange 2007 will otherwise scope - // start and end to UTC. - super(parentAttachment); - } - - /** - * Binds to an existing appointment and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(Appointment.class, id, propertySet); - } - - /** - * Binds to an existing appointment and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bind(ExchangeService service, ItemId id) - throws Exception { - return Appointment.bind(service, id, PropertySet.FirstClassProperties); - } - - /** - * Binds to an existing appointment and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param recurringMasterId - * the recurring master id - * @param occurenceIndex - * the occurence index - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bindToOccurrence(ExchangeService service, - ItemId recurringMasterId, int occurenceIndex) throws Exception { - return Appointment.bindToOccurrence(service, recurringMasterId, - occurenceIndex, PropertySet.FirstClassProperties); - } - - /** - * Binds to an existing appointment and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param recurringMasterId - * the recurring master id - * @param occurenceIndex - * the occurence index - * @param propertySet - * the property set - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bindToOccurrence(ExchangeService service, - ItemId recurringMasterId, int occurenceIndex, - PropertySet propertySet) throws Exception { - AppointmentOccurrenceId occurenceId = new AppointmentOccurrenceId( - recurringMasterId.getUniqueId(), occurenceIndex); - return Appointment.bind(service, occurenceId, propertySet); - } - - /** - * Binds to the master appointment of a recurring series and loads its first - * class properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param occurrenceId - * the occurrence id - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bindToRecurringMaster(ExchangeService service, - ItemId occurrenceId) throws Exception { - return Appointment.bindToRecurringMaster(service, occurrenceId, - PropertySet.FirstClassProperties); - } - - /** - * Binds to the master appointment of a recurring series and loads its first - * class properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param occurrenceId - * the occurrence id - * @param propertySet - * the property set - * @return An Appointment instance representing the appointment - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static Appointment bindToRecurringMaster(ExchangeService service, - ItemId occurrenceId, PropertySet propertySet) throws Exception { - RecurringAppointmentMasterId recurringMasterId = - new RecurringAppointmentMasterId( - occurrenceId.getUniqueId()); - return Appointment.bind(service, recurringMasterId, propertySet); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object - */ - @Override - protected ServiceObjectSchema getSchema() { - return AppointmentSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Determines whether properties defined with - * ScopedDateTimePropertyDefinition require custom time zone scoping. - * - * @return if this item type requires custom scoping for scoped date/time - * properties; otherwise, . - */ - @Override - protected boolean getIsCustomDateTimeScopingRequired() { - return true; - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - // PS # 250452: Make sure that if we're - //on the Exchange2007_SP1 schema version, - // if any of the following - // properties are set or updated: - // o Start - // o End - // o IsAllDayEvent - // o Recurrence - // ... then, we must send the MeetingTimeZone element - // (which is generated from StartTimeZone for - // Exchange2007_SP1 requests (see - //StartTimeZonePropertyDefinition.cs). - // If the StartTimeZone isn't - // in the property bag, then throw, because clients must - // supply the proper time zone - either by - // loading it from a currently-existing appointment, - //or by setting it directly. - // Otherwise, to dirty - // the StartTimeZone property, we just set it to its current value. - if ((this.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) && - !(this.getService().getExchange2007CompatibilityMode())) { - if (this.getPropertyBag().isPropertyUpdated(AppointmentSchema.Start) || - this.getPropertyBag().isPropertyUpdated(AppointmentSchema.End) || - this.getPropertyBag().isPropertyUpdated(AppointmentSchema.IsAllDayEvent) || - this.getPropertyBag().isPropertyUpdated(AppointmentSchema.Recurrence)) - { - // If the property isn't in the property bag, throw.... - if (!this.getPropertyBag().contains(AppointmentSchema.StartTimeZone)) - { - throw new ServiceLocalException(Strings. - StartTimeZoneRequired); - //getStartTimeZoneRequired()); - } - - // Otherwise, set the time zone to its current value to - // force it to be sent with the request. - this.setStartTimeZone(this.getStartTimeZone()); - } + /** + * Initializes an unsaved local instance of Appointment". To bind to an + * existing appointment, use Appointment.Bind() instead. + * + * @param service The ExchangeService instance to which this appointmtnt is + * bound. + * @throws Exception the exception + */ + public Appointment(ExchangeService service) throws Exception { + super(service); + } + + /** + * Initializes a new instance of Appointment. + * + * @param parentAttachment the parent attachment + * @param isNew If true, attachment is new. + * @throws Exception the exception + */ + protected Appointment(ItemAttachment parentAttachment, boolean isNew) + throws Exception { + // If we're running against Exchange 2007, we need to explicitly preset + // the StartTimeZone property since Exchange 2007 will otherwise scope + // start and end to UTC. + super(parentAttachment); + } + + /** + * Binds to an existing appointment and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(Appointment.class, id, propertySet); + } + + /** + * Binds to an existing appointment and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bind(ExchangeService service, ItemId id) + throws Exception { + return Appointment.bind(service, id, PropertySet.FirstClassProperties); + } + + /** + * Binds to an existing appointment and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param recurringMasterId the recurring master id + * @param occurenceIndex the occurence index + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bindToOccurrence(ExchangeService service, + ItemId recurringMasterId, int occurenceIndex) throws Exception { + return Appointment.bindToOccurrence(service, recurringMasterId, + occurenceIndex, PropertySet.FirstClassProperties); + } + + /** + * Binds to an existing appointment and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param recurringMasterId the recurring master id + * @param occurenceIndex the occurence index + * @param propertySet the property set + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bindToOccurrence(ExchangeService service, + ItemId recurringMasterId, int occurenceIndex, + PropertySet propertySet) throws Exception { + AppointmentOccurrenceId occurenceId = new AppointmentOccurrenceId( + recurringMasterId.getUniqueId(), occurenceIndex); + return Appointment.bind(service, occurenceId, propertySet); + } + + /** + * Binds to the master appointment of a recurring series and loads its first + * class properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param occurrenceId the occurrence id + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bindToRecurringMaster(ExchangeService service, + ItemId occurrenceId) throws Exception { + return Appointment.bindToRecurringMaster(service, occurrenceId, + PropertySet.FirstClassProperties); + } + + /** + * Binds to the master appointment of a recurring series and loads its first + * class properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param occurrenceId the occurrence id + * @param propertySet the property set + * @return An Appointment instance representing the appointment + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static Appointment bindToRecurringMaster(ExchangeService service, + ItemId occurrenceId, PropertySet propertySet) throws Exception { + RecurringAppointmentMasterId recurringMasterId = + new RecurringAppointmentMasterId( + occurrenceId.getUniqueId()); + return Appointment.bind(service, recurringMasterId, propertySet); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object + */ + @Override + protected ServiceObjectSchema getSchema() { + return AppointmentSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Determines whether properties defined with + * ScopedDateTimePropertyDefinition require custom time zone scoping. + * + * @return if this item type requires custom scoping for scoped date/time + * properties; otherwise, . + */ + @Override + protected boolean getIsCustomDateTimeScopingRequired() { + return true; + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + // PS # 250452: Make sure that if we're + //on the Exchange2007_SP1 schema version, + // if any of the following + // properties are set or updated: + // o Start + // o End + // o IsAllDayEvent + // o Recurrence + // ... then, we must send the MeetingTimeZone element + // (which is generated from StartTimeZone for + // Exchange2007_SP1 requests (see + //StartTimeZonePropertyDefinition.cs). + // If the StartTimeZone isn't + // in the property bag, then throw, because clients must + // supply the proper time zone - either by + // loading it from a currently-existing appointment, + //or by setting it directly. + // Otherwise, to dirty + // the StartTimeZone property, we just set it to its current value. + if ((this.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) && + !(this.getService().getExchange2007CompatibilityMode())) { + if (this.getPropertyBag().isPropertyUpdated(AppointmentSchema.Start) || + this.getPropertyBag().isPropertyUpdated(AppointmentSchema.End) || + this.getPropertyBag().isPropertyUpdated(AppointmentSchema.IsAllDayEvent) || + this.getPropertyBag().isPropertyUpdated(AppointmentSchema.Recurrence)) { + // If the property isn't in the property bag, throw.... + if (!this.getPropertyBag().contains(AppointmentSchema.StartTimeZone)) { + throw new ServiceLocalException(Strings. + StartTimeZoneRequired); + //getStartTimeZoneRequired()); } - } - /** - * Creates a reply response to the organizer and/or attendees of the - * meeting. - * - * @param replyAll - * the reply all - * @return A ResponseMessage representing the reply response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createReply(boolean replyAll) throws Exception { - this.throwIfThisIsNew(); - - return new ResponseMessage(this, - replyAll ? ResponseMessageType.ReplyAll : - ResponseMessageType.Reply); - } - - /** - * Replies to the organizer and/or the attendees of the meeting. Calling - * this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param replyAll - * the reply all - * @throws Exception - * the exception - */ - public void reply(MessageBody bodyPrefix, boolean replyAll) - throws Exception { - ResponseMessage responseMessage = this.createReply(replyAll); - - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.sendAndSaveCopy(); - } - - /** - * Creates a forward message from this appointment. - * - * @return A ResponseMessage representing the forward response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createForward() throws Exception { - this.throwIfThisIsNew(); - return new ResponseMessage(this, ResponseMessageType.Forward); - } - - /** - * Forwards the appointment. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) - throws Exception { - if (null != toRecipients) { - ArrayList list = new ArrayList(); - for (EmailAddress email : toRecipients) { - list.add(email); - } - - this.forward(bodyPrefix, list); - } - } - - /** - * Forwards the appointment. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, - Iterable toRecipients) throws Exception { - ResponseMessage responseMessage = this.createForward(); - - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.getToRecipients() - .addEmailRange(toRecipients.iterator()); - - responseMessage.sendAndSaveCopy(); - } - - /** - * Saves this appointment in the specified folder. Calling this method - * results in at least one call to EWS. Mutliple calls to EWS might be made - * if attachments have been added. - * - * @param destinationFolderName - * the destination folder name - * @param sendInvitationsMode - * the send invitations mode - * @throws Exception - * the exception - */ - public void save(WellKnownFolderName destinationFolderName, - SendInvitationsMode sendInvitationsMode) throws Exception { - this.internalCreate(new FolderId(destinationFolderName), null, - sendInvitationsMode); - } - - /** - * Saves this appointment in the specified folder. Calling this method - * results in at least one call to EWS. Mutliple calls to EWS might be made - * if attachments have been added. - * - * @param destinationFolderId - * the destination folder id - * @param sendInvitationsMode - * the send invitations mode - * @throws Exception - * the exception - */ - public void save(FolderId destinationFolderId, - SendInvitationsMode sendInvitationsMode) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - - this.internalCreate(destinationFolderId, null, sendInvitationsMode); - } - - /** - * Saves this appointment in the Calendar folder. Calling this method - * results in at least one call to EWS. Mutliple calls to EWS might be made - * if attachments have been added. - * - * @param sendInvitationsMode - * the send invitations mode - * @throws Exception - * the exception - */ - public void save(SendInvitationsMode sendInvitationsMode) throws Exception { - this.internalCreate(null, null, sendInvitationsMode); - } - - /** - * Applies the local changes that have been made to this appointment. - * Calling this method results in at least one call to EWS. Mutliple calls - * to EWS might be made if attachments have been added or removed. - * - * @param conflictResolutionMode - * the conflict resolution mode - * @param sendInvitationsOrCancellationsMode - * the send invitations or cancellations mode - * @throws Exception - * the exception - */ - public void update( - ConflictResolutionMode conflictResolutionMode, - SendInvitationsOrCancellationsMode - sendInvitationsOrCancellationsMode) - throws Exception { - this.internalUpdate(null, conflictResolutionMode, null, - sendInvitationsOrCancellationsMode); - } - - /** - * Deletes this appointment. Calling this method results in a call to EWS. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @throws Exception - * the exception - */ - public void delete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode) throws Exception { - this.internalDelete(deleteMode, sendCancellationsMode, null); - } - - /** - * Creates a local meeting acceptance message that can be customized and - * sent. - * - * @param tentative - * the tentative - * @return An AcceptMeetingInvitationMessage representing the meeting - * acceptance message. - * @throws Exception - * the exception - */ - public AcceptMeetingInvitationMessage createAcceptMessage(boolean tentative) - throws Exception { - return new AcceptMeetingInvitationMessage(this, tentative); - } - - /** - * Creates a local meeting acceptance message that can be customized and - * sent. - * - * @return A CancelMeetingMessage representing the meeting cancellation - * message. - * @throws Exception - * the exception - */ - public CancelMeetingMessage createCancelMeetingMessage() throws Exception { - return new CancelMeetingMessage(this); - } - - /** - * Creates a local meeting declination message that can be customized and - * sent. - * - * @return A DeclineMeetingInvitation representing the meeting declination - * message. - * @throws Exception - * the exception - */ - public DeclineMeetingInvitationMessage createDeclineMessage() - throws Exception { - return new DeclineMeetingInvitationMessage(this); - } - - /** - * Accepts the meeting. Calling this method results in a call to EWS. - * - * @param sendResponse - * the send response - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults accept(boolean sendResponse) throws Exception { - return this.internalAccept(false, sendResponse); - } - - /** - * Tentatively accepts the meeting. Calling this method results in a call to - * EWS. - * - * @param sendResponse - * the send response - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults acceptTentatively(boolean sendResponse) - throws Exception { - return this.internalAccept(true, sendResponse); - } - - /** - * Accepts the meeting. - * - * @param tentative - * the tentative - * @param sendResponse - * the send response - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - protected CalendarActionResults internalAccept(boolean tentative, - boolean sendResponse) throws Exception { - AcceptMeetingInvitationMessage accept = this - .createAcceptMessage(tentative); - - if (sendResponse) { - return accept.calendarSendAndSaveCopy(); - } else { - return accept.calendarSave(); - } - } - - /** - * Cancels the meeting and sends cancellation messages to all attendees. - * Calling this method results in a call to EWS. - * - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults cancelMeeting() throws Exception { - return this.createCancelMeetingMessage().calendarSendAndSaveCopy(); - } - - /** - * Cancels the meeting and sends cancellation messages to all attendees. - * Calling this method results in a call to EWS. - * - * @param cancellationMessageText - * the cancellation message text - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults cancelMeeting(String cancellationMessageText) - throws Exception { - CancelMeetingMessage cancelMsg = this.createCancelMeetingMessage(); - cancelMsg.setBody(new MessageBody(cancellationMessageText)); - return cancelMsg.calendarSendAndSaveCopy(); - } - - /** - * Declines the meeting invitation. Calling this method results in a call to - * EWS. - * - * @param sendResponse - * the send response - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults decline(boolean - sendResponse) throws Exception { - DeclineMeetingInvitationMessage decline = this.createDeclineMessage(); - - if (sendResponse) { - return decline.calendarSendAndSaveCopy(); - } else { - return decline.calendarSave(); - } - } - - /** - * Gets the default setting for sending cancellations on Delete. - * - * @return If Delete() is called on Appointment, we want to send - * cancellations and save a copy. - */ - @Override - protected SendCancellationsMode getDefaultSendCancellationsMode() { - return SendCancellationsMode.SendToAllAndSaveCopy; - } - - /** - * Gets the default settings for sending invitations on Save. - * - * @return the default send invitations mode - */ - @Override - protected SendInvitationsMode getDefaultSendInvitationsMode() { - return SendInvitationsMode.SendToAllAndSaveCopy; - } - - /** - * Gets the default settings for sending invitations on Save. - * - * @return the default send invitations or cancellations mode - */ - @Override - protected SendInvitationsOrCancellationsMode - getDefaultSendInvitationsOrCancellationsMode() { - return SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy; - } - - // Properties - - /** - * Gets the start time of the appointment. - * - * @return the start - * @throws ServiceLocalException - * the service local exception - */ - public Date getStart() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.Start); - } - - /** - * Sets the start. - * - * @param value - * the new start - * @throws Exception - * the exception - */ - public void setStart(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.Start, value); - } - - /** - * Gets or sets the end time of the appointment. - * - * @return the end - * @throws ServiceLocalException - * the service local exception - */ - public Date getEnd() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.End); - } - - /** - * Sets the end. - * - * @param value - * the new end - * @throws Exception - * the exception - */ - public void setEnd(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.End, value); - } - - /** - * Gets the original start time of this appointment. - * - * @return the original start - * @throws ServiceLocalException - * the service local exception - */ - public Date getOriginalStart() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.OriginalStart); - } - - /** - * Gets a value indicating whether this appointment is an all day - * event. - * - * @return the checks if is all day event - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsAllDayEvent() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsAllDayEvent); - } - - /** - * Sets the checks if is all day event. - * - * @param value - * the new checks if is all day event - * @throws Exception - * the exception - */ - public void setIsAllDayEvent(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.IsAllDayEvent, value); - } - - /** - * Gets a value indicating the free/busy status of the owner of this - * appointment. - * - * @return the legacy free busy status - * @throws ServiceLocalException - * the service local exception - */ - public LegacyFreeBusyStatus getLegacyFreeBusyStatus() - throws ServiceLocalException { - return (LegacyFreeBusyStatus) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.LegacyFreeBusyStatus); - } - - /** - * Sets the legacy free busy status. - * - * @param value - * the new legacy free busy status - * @throws Exception - * the exception - */ - public void setLegacyFreeBusyStatus(LegacyFreeBusyStatus value) - throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.LegacyFreeBusyStatus, value); - } - - /** - * Gets the location of this appointment. - * - * @return the location - * @throws ServiceLocalException - * the service local exception - */ - public String getLocation() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.Location); - } - - /** - * Sets the location. - * - * @param value - * the new location - * @throws Exception - * the exception - */ - public void setLocation(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.Location, value); - } - - /** - * Gets a text indicating when this appointment occurs. The text returned by - * When is localized using the Exchange Server culture or using the culture - * specified in the PreferredCulture property of the ExchangeService object - * this appointment is bound to. - * - * @return the when - * @throws ServiceLocalException - * the service local exception - */ - public String getWhen() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.When); - } - - /** - * Gets a value indicating whether the appointment is a meeting. - * - * @return the checks if is meeting - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsMeeting() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsMeeting); - } - - /** - * Gets a value indicating whether the appointment has been cancelled. - * - * @return the checks if is cancelled - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsCancelled() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsCancelled); - } - - /** - * Gets a value indicating whether the appointment is recurring. - * - * @return the checks if is recurring - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsRecurring() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsRecurring); - } - - /** - * Gets a value indicating whether the meeting request has already been - * sent. - * - * @return the meeting request was sent - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getMeetingRequestWasSent() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.MeetingRequestWasSent); - } - - /** - * Gets a value indicating whether responses are requested when - * invitations are sent for this meeting. - * - * @return the checks if is response requested - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsResponseRequested() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsResponseRequested); - } - - /** - * Sets the checks if is response requested. - * - * @param value - * the new checks if is response requested - * @throws Exception - * the exception - */ - public void setIsResponseRequested(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.IsResponseRequested, value); - } - - /** - * Gets a value indicating the type of this appointment. - * - * @return the appointment type - * @throws ServiceLocalException - * the service local exception - */ - public AppointmentType getAppointmentType() throws ServiceLocalException { - return (AppointmentType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentType); - } - - /** - * Gets a value indicating what was the last response of the user that - * loaded this meeting. - * - * @return the my response type - * @throws ServiceLocalException - * the service local exception - */ - public MeetingResponseType getMyResponseType() - throws ServiceLocalException { - return (MeetingResponseType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.MyResponseType); - } - - /** - * Gets the organizer of this meeting. The Organizer property is read-only - * and is only relevant for attendees. The organizer of a meeting is - * automatically set to the user that created the meeting. - * - * @return the organizer - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getOrganizer() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Organizer); - } - - /** - * Gets a list of required attendees for this meeting. - * - * @return the required attendees - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getRequiredAttendees( ) - throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.RequiredAttendees); - } - - /** - * Gets a list of optional attendeed for this meeting. - * - * @return the optional attendees - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getOptionalAttendees() - throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.OptionalAttendees); - } - - /** - * Gets a list of resources for this meeting. - * - * @return the resources - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getResources() throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Resources); - } - - /** - * Gets the number of calendar entries that conflict with this appointment - * in the authenticated user's calendar. - * - * @return the conflicting meeting count - * @throws ServiceLocalException - * the service local exception - */ - public Integer getConflictingMeetingCount() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.ConflictingMeetingCount); - } - - /** - * Gets the number of calendar entries that are adjacent to this appointment - * in the authenticated user's calendar. - * - * @return the adjacent meeting count - * @throws ServiceLocalException - * the service local exception - */ - public Integer getAdjacentMeetingCount() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AdjacentMeetingCount); - } - - /** - * Gets a list of meetings that conflict with this appointment in the - * authenticated user's calendar. - * - * @return the conflicting meetings - * @throws ServiceLocalException - * the service local exception - */ - public ItemCollection getConflictingMeetings() - throws ServiceLocalException { - return (ItemCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ConflictingMeetings); - } - - /** - * Gets a list of meetings that conflict with this appointment in the - * authenticated user's calendar. - * - * @return the adjacent meetings - * @throws ServiceLocalException - * the service local exception - */ - public ItemCollection getAdjacentMeetings() - throws ServiceLocalException { - return (ItemCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AdjacentMeetings); - } - - /** - * Gets the duration of this appointment. - * - * @return the duration - * @throws ServiceLocalException - * the service local exception - */ - public TimeSpan getDuration() throws ServiceLocalException { - return (TimeSpan) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.Duration); - } - - /** - * Gets the name of the time zone this appointment is defined in. - * - * @return the time zone - * @throws ServiceLocalException - * the service local exception - */ - public String getTimeZone() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.TimeZone); - } - - /** - * Gets the time when the attendee replied to the meeting request. - * - * @return the appointment reply time - * @throws ServiceLocalException - * the service local exception - */ - public Date getAppointmentReplyTime() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentReplyTime); - } - - /** - * Gets the sequence number of this appointment. - * - * @return the appointment sequence number - * @throws ServiceLocalException - * the service local exception - */ - public Integer getAppointmentSequenceNumber() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentSequenceNumber); - } - - /** - * Gets the state of this appointment. - * - * @return the appointment state - * @throws ServiceLocalException - * the service local exception - */ - public Integer getAppointmentState() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentState); - } - - /** - * Gets the recurrence pattern for this appointment. Available - * recurrence pattern classes include Recurrence.DailyPattern, - * Recurrence.MonthlyPattern and Recurrence.YearlyPattern. - * - * @return the recurrence - * @throws ServiceLocalException - * the service local exception - */ - public Recurrence getRecurrence() throws ServiceLocalException { - return (Recurrence) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Recurrence); - } - - /** - * Sets the recurrence. - * - * @param value - * the new recurrence - * @throws Exception - * the exception - */ - public void setRecurrence(Recurrence value) throws Exception { - if (value != null) { - if (value.isRegenerationPattern()) { - throw new ServiceLocalException( - Strings.RegenerationPatternsOnlyValidForTasks); - } - } - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.Recurrence, value); - } - - /** - * Gets an OccurrenceInfo identifying the first occurrence of this meeting. - * - * @return the first occurrence - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException { - return (OccurrenceInfo) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.FirstOccurrence); - } - - /** - * Gets an OccurrenceInfo identifying the first occurrence of this meeting. - * - * @return the last occurrence - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfo getLastOccurrence() throws ServiceLocalException { - return (OccurrenceInfo) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.LastOccurrence); - } - - /** - * Gets a list of modified occurrences for this meeting. - * - * @return the modified occurrences - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfoCollection getModifiedOccurrences() - throws ServiceLocalException { - return (OccurrenceInfoCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ModifiedOccurrences); - } - - /** - * Gets a list of deleted occurrences for this meeting. - * - * @return the deleted occurrences - * @throws ServiceLocalException - * the service local exception - */ - public DeletedOccurrenceInfoCollection getDeletedOccurrences() - throws ServiceLocalException { - return (DeletedOccurrenceInfoCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.DeletedOccurrences); - } - - /** - * Gets the start time zone. - * - * @return the start time zone - * @throws ServiceLocalException - * the service local exception - */ - public TimeZoneDefinition getStartTimeZone() throws ServiceLocalException { - return (TimeZoneDefinition) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.StartTimeZone); - } - - /** - * Sets the start time zone. - * - * @param value - * the new start time zone - * @throws Exception - * the exception - */ - public void setStartTimeZone(TimeZoneDefinition value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.StartTimeZone, value); - - } - - /** - * Gets the start time zone. - * - * @return the start time zone - * @throws ServiceLocalException - * the service local exception - */ - public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException { - return (TimeZoneDefinition) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone); - } - - /** - * Sets the start time zone. - * - * @param value - * the new end time zone - * @throws Exception - * the exception - */ - public void setEndTimeZone(TimeZoneDefinition value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.EndTimeZone, value); - - } - - /** - * Gets the type of conferencing that will be used during the - * meeting. - * - * @return the conference type - * @throws ServiceLocalException - * the service local exception - */ - public Integer getConferenceType() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.ConferenceType); - } - - /** - * Sets the conference type. - * - * @param value - * the new conference type - * @throws Exception - * the exception - */ - public void setConferenceType(Integer value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.ConferenceType, value); - } - - /** - * Gets a value indicating whether new time proposals are allowed - * for attendees of this meeting. - * - * @return the allow new time proposal - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getAllowNewTimeProposal() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AllowNewTimeProposal); - } - - /** - * Sets the allow new time proposal. - * - * @param value - * the new allow new time proposal - * @throws Exception - * the exception - */ - public void setAllowNewTimeProposal(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.AllowNewTimeProposal, value); - } - - /** - * Gets a value indicating whether this is an online meeting. - * - * @return the checks if is online meeting - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsOnlineMeeting() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsOnlineMeeting); - } - - /** - * Sets the checks if is online meeting. - * - * @param value - * the new checks if is online meeting - * @throws Exception - * the exception - */ - public void setIsOnlineMeeting(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.IsOnlineMeeting, value); - } - - /** - * Gets the URL of the meeting workspace. A meeting workspace is a - * shared Web site for planning meetings and tracking results. - * - * @return the meeting workspace url - * @throws ServiceLocalException - * the service local exception - */ - public String getMeetingWorkspaceUrl() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.MeetingWorkspaceUrl); - } - - /** - * Sets the meeting workspace url. - * - * @param value - * the new meeting workspace url - * @throws Exception - * the exception - */ - public void setMeetingWorkspaceUrl(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.MeetingWorkspaceUrl, value); - } - - /** - * Gets the URL of the Microsoft NetShow online meeting. - * - * @return the net show url - * @throws ServiceLocalException - * the service local exception - */ - public String getNetShowUrl() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.NetShowUrl); - } - - /** - * Sets the net show url. - * - * @param value - * the new net show url - * @throws Exception - * the exception - */ - public void setNetShowUrl(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.NetShowUrl, value); - } - - /** - * Gets the ICalendar Uid. - * - * @return the i cal uid - * @throws ServiceLocalException - * the service local exception - */ - public String getICalUid() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.ICalUid); - } - - /** - * Sets the ICalendar Uid. - * - * @param value the i cal uid - * @throws Exception - *///this.PropertyBag[AppointmentSchema.ICalUid] = value; - public void setICalUid(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - AppointmentSchema.ICalUid, value); - } - - /** - * Gets the ICalendar RecurrenceId. - * - * @return the i cal recurrence id - * @throws ServiceLocalException - * the service local exception - */ - public Date getICalRecurrenceId() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.ICalRecurrenceId); - } - - /** - * Gets the ICalendar DateTimeStamp. - * - * @return the i cal date time stamp - * @throws ServiceLocalException - * the service local exception - */ - public Date getICalDateTimeStamp() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.ICalDateTimeStamp); - } + // Otherwise, set the time zone to its current value to + // force it to be sent with the request. + this.setStartTimeZone(this.getStartTimeZone()); + } + } + } + + /** + * Creates a reply response to the organizer and/or attendees of the + * meeting. + * + * @param replyAll the reply all + * @return A ResponseMessage representing the reply response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createReply(boolean replyAll) throws Exception { + this.throwIfThisIsNew(); + + return new ResponseMessage(this, + replyAll ? ResponseMessageType.ReplyAll : + ResponseMessageType.Reply); + } + + /** + * Replies to the organizer and/or the attendees of the meeting. Calling + * this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param replyAll the reply all + * @throws Exception the exception + */ + public void reply(MessageBody bodyPrefix, boolean replyAll) + throws Exception { + ResponseMessage responseMessage = this.createReply(replyAll); + + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.sendAndSaveCopy(); + } + + /** + * Creates a forward message from this appointment. + * + * @return A ResponseMessage representing the forward response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createForward() throws Exception { + this.throwIfThisIsNew(); + return new ResponseMessage(this, ResponseMessageType.Forward); + } + + /** + * Forwards the appointment. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) + throws Exception { + if (null != toRecipients) { + ArrayList list = new ArrayList(); + for (EmailAddress email : toRecipients) { + list.add(email); + } + + this.forward(bodyPrefix, list); + } + } + + /** + * Forwards the appointment. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, + Iterable toRecipients) throws Exception { + ResponseMessage responseMessage = this.createForward(); + + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.getToRecipients() + .addEmailRange(toRecipients.iterator()); + + responseMessage.sendAndSaveCopy(); + } + + /** + * Saves this appointment in the specified folder. Calling this method + * results in at least one call to EWS. Mutliple calls to EWS might be made + * if attachments have been added. + * + * @param destinationFolderName the destination folder name + * @param sendInvitationsMode the send invitations mode + * @throws Exception the exception + */ + public void save(WellKnownFolderName destinationFolderName, + SendInvitationsMode sendInvitationsMode) throws Exception { + this.internalCreate(new FolderId(destinationFolderName), null, + sendInvitationsMode); + } + + /** + * Saves this appointment in the specified folder. Calling this method + * results in at least one call to EWS. Mutliple calls to EWS might be made + * if attachments have been added. + * + * @param destinationFolderId the destination folder id + * @param sendInvitationsMode the send invitations mode + * @throws Exception the exception + */ + public void save(FolderId destinationFolderId, + SendInvitationsMode sendInvitationsMode) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + + this.internalCreate(destinationFolderId, null, sendInvitationsMode); + } + + /** + * Saves this appointment in the Calendar folder. Calling this method + * results in at least one call to EWS. Mutliple calls to EWS might be made + * if attachments have been added. + * + * @param sendInvitationsMode the send invitations mode + * @throws Exception the exception + */ + public void save(SendInvitationsMode sendInvitationsMode) throws Exception { + this.internalCreate(null, null, sendInvitationsMode); + } + + /** + * Applies the local changes that have been made to this appointment. + * Calling this method results in at least one call to EWS. Mutliple calls + * to EWS might be made if attachments have been added or removed. + * + * @param conflictResolutionMode the conflict resolution mode + * @param sendInvitationsOrCancellationsMode the send invitations or cancellations mode + * @throws Exception the exception + */ + public void update( + ConflictResolutionMode conflictResolutionMode, + SendInvitationsOrCancellationsMode + sendInvitationsOrCancellationsMode) + throws Exception { + this.internalUpdate(null, conflictResolutionMode, null, + sendInvitationsOrCancellationsMode); + } + + /** + * Deletes this appointment. Calling this method results in a call to EWS. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @throws Exception the exception + */ + public void delete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode) throws Exception { + this.internalDelete(deleteMode, sendCancellationsMode, null); + } + + /** + * Creates a local meeting acceptance message that can be customized and + * sent. + * + * @param tentative the tentative + * @return An AcceptMeetingInvitationMessage representing the meeting + * acceptance message. + * @throws Exception the exception + */ + public AcceptMeetingInvitationMessage createAcceptMessage(boolean tentative) + throws Exception { + return new AcceptMeetingInvitationMessage(this, tentative); + } + + /** + * Creates a local meeting acceptance message that can be customized and + * sent. + * + * @return A CancelMeetingMessage representing the meeting cancellation + * message. + * @throws Exception the exception + */ + public CancelMeetingMessage createCancelMeetingMessage() throws Exception { + return new CancelMeetingMessage(this); + } + + /** + * Creates a local meeting declination message that can be customized and + * sent. + * + * @return A DeclineMeetingInvitation representing the meeting declination + * message. + * @throws Exception the exception + */ + public DeclineMeetingInvitationMessage createDeclineMessage() + throws Exception { + return new DeclineMeetingInvitationMessage(this); + } + + /** + * Accepts the meeting. Calling this method results in a call to EWS. + * + * @param sendResponse the send response + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults accept(boolean sendResponse) throws Exception { + return this.internalAccept(false, sendResponse); + } + + /** + * Tentatively accepts the meeting. Calling this method results in a call to + * EWS. + * + * @param sendResponse the send response + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults acceptTentatively(boolean sendResponse) + throws Exception { + return this.internalAccept(true, sendResponse); + } + + /** + * Accepts the meeting. + * + * @param tentative the tentative + * @param sendResponse the send response + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + protected CalendarActionResults internalAccept(boolean tentative, + boolean sendResponse) throws Exception { + AcceptMeetingInvitationMessage accept = this + .createAcceptMessage(tentative); + + if (sendResponse) { + return accept.calendarSendAndSaveCopy(); + } else { + return accept.calendarSave(); + } + } + + /** + * Cancels the meeting and sends cancellation messages to all attendees. + * Calling this method results in a call to EWS. + * + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults cancelMeeting() throws Exception { + return this.createCancelMeetingMessage().calendarSendAndSaveCopy(); + } + + /** + * Cancels the meeting and sends cancellation messages to all attendees. + * Calling this method results in a call to EWS. + * + * @param cancellationMessageText the cancellation message text + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults cancelMeeting(String cancellationMessageText) + throws Exception { + CancelMeetingMessage cancelMsg = this.createCancelMeetingMessage(); + cancelMsg.setBody(new MessageBody(cancellationMessageText)); + return cancelMsg.calendarSendAndSaveCopy(); + } + + /** + * Declines the meeting invitation. Calling this method results in a call to + * EWS. + * + * @param sendResponse the send response + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults decline(boolean + sendResponse) throws Exception { + DeclineMeetingInvitationMessage decline = this.createDeclineMessage(); + + if (sendResponse) { + return decline.calendarSendAndSaveCopy(); + } else { + return decline.calendarSave(); + } + } + + /** + * Gets the default setting for sending cancellations on Delete. + * + * @return If Delete() is called on Appointment, we want to send + * cancellations and save a copy. + */ + @Override + protected SendCancellationsMode getDefaultSendCancellationsMode() { + return SendCancellationsMode.SendToAllAndSaveCopy; + } + + /** + * Gets the default settings for sending invitations on Save. + * + * @return the default send invitations mode + */ + @Override + protected SendInvitationsMode getDefaultSendInvitationsMode() { + return SendInvitationsMode.SendToAllAndSaveCopy; + } + + /** + * Gets the default settings for sending invitations on Save. + * + * @return the default send invitations or cancellations mode + */ + @Override + protected SendInvitationsOrCancellationsMode + getDefaultSendInvitationsOrCancellationsMode() { + return SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy; + } + + // Properties + + /** + * Gets the start time of the appointment. + * + * @return the start + * @throws ServiceLocalException the service local exception + */ + public Date getStart() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.Start); + } + + /** + * Sets the start. + * + * @param value the new start + * @throws Exception the exception + */ + public void setStart(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.Start, value); + } + + /** + * Gets or sets the end time of the appointment. + * + * @return the end + * @throws ServiceLocalException the service local exception + */ + public Date getEnd() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.End); + } + + /** + * Sets the end. + * + * @param value the new end + * @throws Exception the exception + */ + public void setEnd(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.End, value); + } + + /** + * Gets the original start time of this appointment. + * + * @return the original start + * @throws ServiceLocalException the service local exception + */ + public Date getOriginalStart() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.OriginalStart); + } + + /** + * Gets a value indicating whether this appointment is an all day + * event. + * + * @return the checks if is all day event + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsAllDayEvent() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsAllDayEvent); + } + + /** + * Sets the checks if is all day event. + * + * @param value the new checks if is all day event + * @throws Exception the exception + */ + public void setIsAllDayEvent(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.IsAllDayEvent, value); + } + + /** + * Gets a value indicating the free/busy status of the owner of this + * appointment. + * + * @return the legacy free busy status + * @throws ServiceLocalException the service local exception + */ + public LegacyFreeBusyStatus getLegacyFreeBusyStatus() + throws ServiceLocalException { + return (LegacyFreeBusyStatus) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.LegacyFreeBusyStatus); + } + + /** + * Sets the legacy free busy status. + * + * @param value the new legacy free busy status + * @throws Exception the exception + */ + public void setLegacyFreeBusyStatus(LegacyFreeBusyStatus value) + throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.LegacyFreeBusyStatus, value); + } + + /** + * Gets the location of this appointment. + * + * @return the location + * @throws ServiceLocalException the service local exception + */ + public String getLocation() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.Location); + } + + /** + * Sets the location. + * + * @param value the new location + * @throws Exception the exception + */ + public void setLocation(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.Location, value); + } + + /** + * Gets a text indicating when this appointment occurs. The text returned by + * When is localized using the Exchange Server culture or using the culture + * specified in the PreferredCulture property of the ExchangeService object + * this appointment is bound to. + * + * @return the when + * @throws ServiceLocalException the service local exception + */ + public String getWhen() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.When); + } + + /** + * Gets a value indicating whether the appointment is a meeting. + * + * @return the checks if is meeting + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsMeeting() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsMeeting); + } + + /** + * Gets a value indicating whether the appointment has been cancelled. + * + * @return the checks if is cancelled + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsCancelled() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsCancelled); + } + + /** + * Gets a value indicating whether the appointment is recurring. + * + * @return the checks if is recurring + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsRecurring() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsRecurring); + } + + /** + * Gets a value indicating whether the meeting request has already been + * sent. + * + * @return the meeting request was sent + * @throws ServiceLocalException the service local exception + */ + public Boolean getMeetingRequestWasSent() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.MeetingRequestWasSent); + } + + /** + * Gets a value indicating whether responses are requested when + * invitations are sent for this meeting. + * + * @return the checks if is response requested + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsResponseRequested() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsResponseRequested); + } + + /** + * Sets the checks if is response requested. + * + * @param value the new checks if is response requested + * @throws Exception the exception + */ + public void setIsResponseRequested(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.IsResponseRequested, value); + } + + /** + * Gets a value indicating the type of this appointment. + * + * @return the appointment type + * @throws ServiceLocalException the service local exception + */ + public AppointmentType getAppointmentType() throws ServiceLocalException { + return (AppointmentType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentType); + } + + /** + * Gets a value indicating what was the last response of the user that + * loaded this meeting. + * + * @return the my response type + * @throws ServiceLocalException the service local exception + */ + public MeetingResponseType getMyResponseType() + throws ServiceLocalException { + return (MeetingResponseType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.MyResponseType); + } + + /** + * Gets the organizer of this meeting. The Organizer property is read-only + * and is only relevant for attendees. The organizer of a meeting is + * automatically set to the user that created the meeting. + * + * @return the organizer + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getOrganizer() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Organizer); + } + + /** + * Gets a list of required attendees for this meeting. + * + * @return the required attendees + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getRequiredAttendees() + throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.RequiredAttendees); + } + + /** + * Gets a list of optional attendeed for this meeting. + * + * @return the optional attendees + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getOptionalAttendees() + throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.OptionalAttendees); + } + + /** + * Gets a list of resources for this meeting. + * + * @return the resources + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getResources() throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Resources); + } + + /** + * Gets the number of calendar entries that conflict with this appointment + * in the authenticated user's calendar. + * + * @return the conflicting meeting count + * @throws ServiceLocalException the service local exception + */ + public Integer getConflictingMeetingCount() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.ConflictingMeetingCount); + } + + /** + * Gets the number of calendar entries that are adjacent to this appointment + * in the authenticated user's calendar. + * + * @return the adjacent meeting count + * @throws ServiceLocalException the service local exception + */ + public Integer getAdjacentMeetingCount() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AdjacentMeetingCount); + } + + /** + * Gets a list of meetings that conflict with this appointment in the + * authenticated user's calendar. + * + * @return the conflicting meetings + * @throws ServiceLocalException the service local exception + */ + public ItemCollection getConflictingMeetings() + throws ServiceLocalException { + return (ItemCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ConflictingMeetings); + } + + /** + * Gets a list of meetings that conflict with this appointment in the + * authenticated user's calendar. + * + * @return the adjacent meetings + * @throws ServiceLocalException the service local exception + */ + public ItemCollection getAdjacentMeetings() + throws ServiceLocalException { + return (ItemCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AdjacentMeetings); + } + + /** + * Gets the duration of this appointment. + * + * @return the duration + * @throws ServiceLocalException the service local exception + */ + public TimeSpan getDuration() throws ServiceLocalException { + return (TimeSpan) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.Duration); + } + + /** + * Gets the name of the time zone this appointment is defined in. + * + * @return the time zone + * @throws ServiceLocalException the service local exception + */ + public String getTimeZone() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.TimeZone); + } + + /** + * Gets the time when the attendee replied to the meeting request. + * + * @return the appointment reply time + * @throws ServiceLocalException the service local exception + */ + public Date getAppointmentReplyTime() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentReplyTime); + } + + /** + * Gets the sequence number of this appointment. + * + * @return the appointment sequence number + * @throws ServiceLocalException the service local exception + */ + public Integer getAppointmentSequenceNumber() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentSequenceNumber); + } + + /** + * Gets the state of this appointment. + * + * @return the appointment state + * @throws ServiceLocalException the service local exception + */ + public Integer getAppointmentState() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentState); + } + + /** + * Gets the recurrence pattern for this appointment. Available + * recurrence pattern classes include Recurrence.DailyPattern, + * Recurrence.MonthlyPattern and Recurrence.YearlyPattern. + * + * @return the recurrence + * @throws ServiceLocalException the service local exception + */ + public Recurrence getRecurrence() throws ServiceLocalException { + return (Recurrence) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Recurrence); + } + + /** + * Sets the recurrence. + * + * @param value the new recurrence + * @throws Exception the exception + */ + public void setRecurrence(Recurrence value) throws Exception { + if (value != null) { + if (value.isRegenerationPattern()) { + throw new ServiceLocalException( + Strings.RegenerationPatternsOnlyValidForTasks); + } + } + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.Recurrence, value); + } + + /** + * Gets an OccurrenceInfo identifying the first occurrence of this meeting. + * + * @return the first occurrence + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException { + return (OccurrenceInfo) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.FirstOccurrence); + } + + /** + * Gets an OccurrenceInfo identifying the first occurrence of this meeting. + * + * @return the last occurrence + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfo getLastOccurrence() throws ServiceLocalException { + return (OccurrenceInfo) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.LastOccurrence); + } + + /** + * Gets a list of modified occurrences for this meeting. + * + * @return the modified occurrences + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfoCollection getModifiedOccurrences() + throws ServiceLocalException { + return (OccurrenceInfoCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ModifiedOccurrences); + } + + /** + * Gets a list of deleted occurrences for this meeting. + * + * @return the deleted occurrences + * @throws ServiceLocalException the service local exception + */ + public DeletedOccurrenceInfoCollection getDeletedOccurrences() + throws ServiceLocalException { + return (DeletedOccurrenceInfoCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.DeletedOccurrences); + } + + /** + * Gets the start time zone. + * + * @return the start time zone + * @throws ServiceLocalException the service local exception + */ + public TimeZoneDefinition getStartTimeZone() throws ServiceLocalException { + return (TimeZoneDefinition) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.StartTimeZone); + } + + /** + * Sets the start time zone. + * + * @param value the new start time zone + * @throws Exception the exception + */ + public void setStartTimeZone(TimeZoneDefinition value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.StartTimeZone, value); + + } + + /** + * Gets the start time zone. + * + * @return the start time zone + * @throws ServiceLocalException the service local exception + */ + public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException { + return (TimeZoneDefinition) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone); + } + + /** + * Sets the start time zone. + * + * @param value the new end time zone + * @throws Exception the exception + */ + public void setEndTimeZone(TimeZoneDefinition value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.EndTimeZone, value); + + } + + /** + * Gets the type of conferencing that will be used during the + * meeting. + * + * @return the conference type + * @throws ServiceLocalException the service local exception + */ + public Integer getConferenceType() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.ConferenceType); + } + + /** + * Sets the conference type. + * + * @param value the new conference type + * @throws Exception the exception + */ + public void setConferenceType(Integer value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.ConferenceType, value); + } + + /** + * Gets a value indicating whether new time proposals are allowed + * for attendees of this meeting. + * + * @return the allow new time proposal + * @throws ServiceLocalException the service local exception + */ + public Boolean getAllowNewTimeProposal() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AllowNewTimeProposal); + } + + /** + * Sets the allow new time proposal. + * + * @param value the new allow new time proposal + * @throws Exception the exception + */ + public void setAllowNewTimeProposal(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.AllowNewTimeProposal, value); + } + + /** + * Gets a value indicating whether this is an online meeting. + * + * @return the checks if is online meeting + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsOnlineMeeting() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsOnlineMeeting); + } + + /** + * Sets the checks if is online meeting. + * + * @param value the new checks if is online meeting + * @throws Exception the exception + */ + public void setIsOnlineMeeting(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.IsOnlineMeeting, value); + } + + /** + * Gets the URL of the meeting workspace. A meeting workspace is a + * shared Web site for planning meetings and tracking results. + * + * @return the meeting workspace url + * @throws ServiceLocalException the service local exception + */ + public String getMeetingWorkspaceUrl() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.MeetingWorkspaceUrl); + } + + /** + * Sets the meeting workspace url. + * + * @param value the new meeting workspace url + * @throws Exception the exception + */ + public void setMeetingWorkspaceUrl(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.MeetingWorkspaceUrl, value); + } + + /** + * Gets the URL of the Microsoft NetShow online meeting. + * + * @return the net show url + * @throws ServiceLocalException the service local exception + */ + public String getNetShowUrl() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.NetShowUrl); + } + + /** + * Sets the net show url. + * + * @param value the new net show url + * @throws Exception the exception + */ + public void setNetShowUrl(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.NetShowUrl, value); + } + + /** + * Gets the ICalendar Uid. + * + * @return the i cal uid + * @throws ServiceLocalException the service local exception + */ + public String getICalUid() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.ICalUid); + } + + /** + * Sets the ICalendar Uid. + * + * @param value the i cal uid + * @throws Exception + *///this.PropertyBag[AppointmentSchema.ICalUid] = value; + public void setICalUid(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + AppointmentSchema.ICalUid, value); + } + + /** + * Gets the ICalendar RecurrenceId. + * + * @return the i cal recurrence id + * @throws ServiceLocalException the service local exception + */ + public Date getICalRecurrenceId() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.ICalRecurrenceId); + } + + /** + * Gets the ICalendar DateTimeStamp. + * + * @return the i cal date time stamp + * @throws ServiceLocalException the service local exception + */ + public Date getICalDateTimeStamp() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.ICalDateTimeStamp); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java index 3df47a913..0b66dd484 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java @@ -12,79 +12,72 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the Id of an occurrence of a recurring appointment. - * */ public final class AppointmentOccurrenceId extends ItemId { - /** - * Index of the occurrence. - */ - private int occurrenceIndex; + /** + * Index of the occurrence. + */ + private int occurrenceIndex; - /** - * Initializes a new instance. - * - * @param recurringMasterUniqueId - * the recurring master unique id - * @param occurrenceIndex - * the occurrence index - * @throws Exception - * the exception - */ - public AppointmentOccurrenceId(String recurringMasterUniqueId, - int occurrenceIndex) throws Exception { - super(recurringMasterUniqueId); - this.occurrenceIndex = occurrenceIndex; - } + /** + * Initializes a new instance. + * + * @param recurringMasterUniqueId the recurring master unique id + * @param occurrenceIndex the occurrence index + * @throws Exception the exception + */ + public AppointmentOccurrenceId(String recurringMasterUniqueId, + int occurrenceIndex) throws Exception { + super(recurringMasterUniqueId); + this.occurrenceIndex = occurrenceIndex; + } - /** - * Gets the index of the occurrence. Note that the occurrence index - * starts at one not zero. - * - * @return the occurrence index - */ - public int getOccurrenceIndex() { - return occurrenceIndex; - } + /** + * Gets the index of the occurrence. Note that the occurrence index + * starts at one not zero. + * + * @return the occurrence index + */ + public int getOccurrenceIndex() { + return occurrenceIndex; + } - /** - * Sets the occurrence index. - * - * @param occurrenceIndex - * the new occurrence index - */ - public void setOccurrenceIndex(int occurrenceIndex) { - if (occurrenceIndex < 1) { - throw new IllegalArgumentException( - Strings.OccurrenceIndexMustBeGreaterThanZero); - } - this.occurrenceIndex = occurrenceIndex; - } + /** + * Sets the occurrence index. + * + * @param occurrenceIndex the new occurrence index + */ + public void setOccurrenceIndex(int occurrenceIndex) { + if (occurrenceIndex < 1) { + throw new IllegalArgumentException( + Strings.OccurrenceIndexMustBeGreaterThanZero); + } + this.occurrenceIndex = occurrenceIndex; + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.OccurrenceItemId; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.OccurrenceItemId; + } - /** - * Gets the name of the XML element. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.RecurringMasterId, this - .getUniqueId()); - writer.writeAttributeValue(XmlAttributeNames.InstanceIndex, this - .getOccurrenceIndex()); - } + /** + * Gets the name of the XML element. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.RecurringMasterId, this + .getUniqueId()); + writer.writeAttributeValue(XmlAttributeNames.InstanceIndex, this + .getOccurrenceIndex()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java index 3f9cc7536..19c2b037d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java @@ -18,661 +18,835 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Schema public class AppointmentSchema extends ItemSchema { - /** - * Field URIs for Appointment. - */ - private static interface FieldUris { - - /** The Start. */ - String Start = "calendar:Start"; - - /** The End. */ - String End = "calendar:End"; - - /** The Original start. */ - String OriginalStart = "calendar:OriginalStart"; - - /** The Is all day event. */ - String IsAllDayEvent = "calendar:IsAllDayEvent"; - - /** The Legacy free busy status. */ - String LegacyFreeBusyStatus = "calendar:LegacyFreeBusyStatus"; - - /** The Location. */ - String Location = "calendar:Location"; - - /** The When. */ - String When = "calendar:When"; - - /** The Is meeting. */ - String IsMeeting = "calendar:IsMeeting"; - - /** The Is cancelled. */ - String IsCancelled = "calendar:IsCancelled"; - - /** The Is recurring. */ - String IsRecurring = "calendar:IsRecurring"; - - /** The Meeting request was sent. */ - String MeetingRequestWasSent = "calendar:MeetingRequestWasSent"; - - /** The Is response requested. */ - String IsResponseRequested = "calendar:IsResponseRequested"; - - /** The Calendar item type. */ - String CalendarItemType = "calendar:CalendarItemType"; - - /** The My response type. */ - String MyResponseType = "calendar:MyResponseType"; - - /** The Organizer. */ - String Organizer = "calendar:Organizer"; - - /** The Required attendees. */ - String RequiredAttendees = "calendar:RequiredAttendees"; - - /** The Optional attendees. */ - String OptionalAttendees = "calendar:OptionalAttendees"; - - /** The Resources. */ - String Resources = "calendar:Resources"; - - /** The Conflicting meeting count. */ - String ConflictingMeetingCount = "calendar:ConflictingMeetingCount"; - - /** The Adjacent meeting count. */ - String AdjacentMeetingCount = "calendar:AdjacentMeetingCount"; - - /** The Conflicting meetings. */ - String ConflictingMeetings = "calendar:ConflictingMeetings"; - - /** The Adjacent meetings. */ - String AdjacentMeetings = "calendar:AdjacentMeetings"; - - /** The Duration. */ - String Duration = "calendar:Duration"; - - /** The Time zone. */ - String TimeZone = "calendar:TimeZone"; - - /** The Appointment reply time. */ - String AppointmentReplyTime = "calendar:AppointmentReplyTime"; - - /** The Appointment sequence number. */ - String AppointmentSequenceNumber = "calendar:AppointmentSequenceNumber"; - - /** The Appointment state. */ - String AppointmentState = "calendar:AppointmentState"; - - /** The Recurrence. */ - String Recurrence = "calendar:Recurrence"; - - /** The First occurrence. */ - String FirstOccurrence = "calendar:FirstOccurrence"; - - /** The Last occurrence. */ - String LastOccurrence = "calendar:LastOccurrence"; - - /** The Modified occurrences. */ - String ModifiedOccurrences = "calendar:ModifiedOccurrences"; - - /** The Deleted occurrences. */ - String DeletedOccurrences = "calendar:DeletedOccurrences"; - - /** The Meeting time zone. */ - String MeetingTimeZone = "calendar:MeetingTimeZone"; - - /** The Start time zone. */ - String StartTimeZone = "calendar:StartTimeZone"; - - /** The End time zone. */ - String EndTimeZone = "calendar:EndTimeZone"; - - /** The Conference type. */ - String ConferenceType = "calendar:ConferenceType"; - - /** The Allow new time proposal. */ - String AllowNewTimeProposal = "calendar:AllowNewTimeProposal"; - - /** The Is online meeting. */ - String IsOnlineMeeting = "calendar:IsOnlineMeeting"; - - /** The Meeting workspace url. */ - String MeetingWorkspaceUrl = "calendar:MeetingWorkspaceUrl"; - - /** The Net show url. */ - String NetShowUrl = "calendar:NetShowUrl"; - - /** The Uid. */ - String Uid = "calendar:UID"; - - /** The Recurrence id. */ - String RecurrenceId = "calendar:RecurrenceId"; - - /** The Date time stamp. */ - String DateTimeStamp = "calendar:DateTimeStamp"; - } - - // Defines the StartTimeZone property. - /** The Constant StartTimeZone. */ - public static final PropertyDefinition StartTimeZone = - new StartTimeZonePropertyDefinition( - XmlElementNames.StartTimeZone, FieldUris.StartTimeZone, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the EndTimeZone property. - /** The Constant EndTimeZone. */ - public static final PropertyDefinition EndTimeZone = - new TimeZonePropertyDefinition( - XmlElementNames.EndTimeZone, FieldUris.EndTimeZone, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010); - - // Defines the Start property. - /** The Constant Start. */ - public static final PropertyDefinition Start = - new DateTimePropertyDefinition( - XmlElementNames.Start, FieldUris.Start, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the End property. - /** The Constant End. */ - public static final PropertyDefinition End = new DateTimePropertyDefinition( - XmlElementNames.End, FieldUris.End, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the OriginalStart property. - /** The Constant OriginalStart. */ - public static final PropertyDefinition OriginalStart = - new DateTimePropertyDefinition( - XmlElementNames.OriginalStart, FieldUris.OriginalStart, - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsAllDayEvent property. - /** The Constant IsAllDayEvent. */ - public static final PropertyDefinition IsAllDayEvent = - new BoolPropertyDefinition( - XmlElementNames.IsAllDayEvent, FieldUris.IsAllDayEvent, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the LegacyFreeBusyStatus property. - /** The Constant LegacyFreeBusyStatus. */ - public static final PropertyDefinition LegacyFreeBusyStatus = - new GenericPropertyDefinition( - LegacyFreeBusyStatus.class, - XmlElementNames.LegacyFreeBusyStatus, - FieldUris.LegacyFreeBusyStatus, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the Location property. - /** The Constant Location. */ - public static final PropertyDefinition Location = - new StringPropertyDefinition( - XmlElementNames.Location, FieldUris.Location, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the When property. - /** The Constant When. */ - public static final PropertyDefinition When = new StringPropertyDefinition( - XmlElementNames.When, FieldUris.When, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsMeeting property. - /** The Constant IsMeeting. */ - public static final PropertyDefinition IsMeeting = - new BoolPropertyDefinition( - XmlElementNames.IsMeeting, FieldUris.IsMeeting, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsCancelled property. - /** The Constant IsCancelled. */ - public static final PropertyDefinition IsCancelled = - new BoolPropertyDefinition( - XmlElementNames.IsCancelled, FieldUris.IsCancelled, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsRecurring property. - /** The Constant IsRecurring. */ - public static final PropertyDefinition IsRecurring = - new BoolPropertyDefinition( - XmlElementNames.IsRecurring, FieldUris.IsRecurring, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the MeetingRequestWasSent property. - /** The Constant MeetingRequestWasSent. */ - public static final PropertyDefinition MeetingRequestWasSent = - new BoolPropertyDefinition( - XmlElementNames.MeetingRequestWasSent, - FieldUris.MeetingRequestWasSent, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsResponseRequested property. - /** The Constant IsResponseRequested. */ - public static final PropertyDefinition IsResponseRequested = - new BoolPropertyDefinition( - XmlElementNames.IsResponseRequested, FieldUris.IsResponseRequested, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the AppointmentType property. - /** The Constant AppointmentType. */ - public static final PropertyDefinition AppointmentType = - new GenericPropertyDefinition( - AppointmentType.class, - XmlElementNames.CalendarItemType, FieldUris.CalendarItemType, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the MyResponseType property. - /** The Constant MyResponseType. */ - public static final PropertyDefinition MyResponseType = - new GenericPropertyDefinition( - MeetingResponseType.class, - XmlElementNames.MyResponseType, FieldUris.MyResponseType, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the Organizer property. - /** The Constant Organizer. */ - public static final PropertyDefinition Organizer = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.Organizer, FieldUris.Organizer, - XmlElementNames.Mailbox, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - // Defines the RequiredAttendees property. - - /** The Constant RequiredAttendees. */ - public static final PropertyDefinition RequiredAttendees = - new ComplexPropertyDefinition( - AttendeeCollection.class, - XmlElementNames.RequiredAttendees, FieldUris.RequiredAttendees, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public AttendeeCollection createComplexProperty() { - return new AttendeeCollection(); - } - }); - - // Defines the OptionalAttendees property. - /** The Constant OptionalAttendees. */ - public static final PropertyDefinition OptionalAttendees = - new ComplexPropertyDefinition( - AttendeeCollection.class, - XmlElementNames.OptionalAttendees, FieldUris.OptionalAttendees, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public AttendeeCollection createComplexProperty() { - return new AttendeeCollection(); - } - }); - - // Defines the Resources property. - - /** The Constant Resources. */ - public static final PropertyDefinition Resources = - new ComplexPropertyDefinition( - AttendeeCollection.class, - XmlElementNames.Resources, FieldUris.Resources, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public AttendeeCollection createComplexProperty() { - return new AttendeeCollection(); - } - }); - - // Defines the ConflictingMeetingCount property. - /** The Constant ConflictingMeetingCount. */ - public static final PropertyDefinition ConflictingMeetingCount = - new IntPropertyDefinition( - XmlElementNames.ConflictingMeetingCount, - FieldUris.ConflictingMeetingCount, - ExchangeVersion.Exchange2007_SP1); - - // Defines the AdjacentMeetingCount property. - /** The Constant AdjacentMeetingCount. */ - public static final PropertyDefinition AdjacentMeetingCount = - new IntPropertyDefinition( - XmlElementNames.AdjacentMeetingCount, - FieldUris.AdjacentMeetingCount, ExchangeVersion.Exchange2007_SP1); - - // Defines the ConflictingMeetings property. - /** The Constant ConflictingMeetings. */ - public static final PropertyDefinition ConflictingMeetings = - new ComplexPropertyDefinition>( - XmlElementNames.ConflictingMeetings, - FieldUris.ConflictingMeetings, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - >() { - public ItemCollection createComplexProperty() { - return new ItemCollection(); - } - }); - - // Defines the AdjacentMeetings property. - /** The Constant AdjacentMeetings. */ - public static final PropertyDefinition AdjacentMeetings = - new ComplexPropertyDefinition>( - XmlElementNames.AdjacentMeetings, - FieldUris.AdjacentMeetings, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - >() { - public ItemCollection createComplexProperty() { - return new ItemCollection(); - } - }); - - // Defines the Duration property. - /** The Constant Duration. */ - public static final PropertyDefinition Duration = - new TimeSpanPropertyDefinition( - XmlElementNames.Duration, FieldUris.Duration, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the TimeZone property. - /** The Constant TimeZone. */ - public static final PropertyDefinition TimeZone = - new StringPropertyDefinition( - XmlElementNames.TimeZone, FieldUris.TimeZone, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the AppointmentReplyTime property. - /** The Constant AppointmentReplyTime. */ - public static final PropertyDefinition AppointmentReplyTime = - new DateTimePropertyDefinition( - XmlElementNames.AppointmentReplyTime, - FieldUris.AppointmentReplyTime, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the AppointmentSequenceNumber property. - /** The Constant AppointmentSequenceNumber. */ - public static final PropertyDefinition AppointmentSequenceNumber = - new IntPropertyDefinition( - XmlElementNames.AppointmentSequenceNumber, - FieldUris.AppointmentSequenceNumber, - ExchangeVersion.Exchange2007_SP1); - - // Defines the AppointmentState property. - /** The Constant AppointmentState. */ - public static final PropertyDefinition AppointmentState = - new IntPropertyDefinition( - XmlElementNames.AppointmentState, FieldUris.AppointmentState, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the Recurrence property. - /** The Constant Recurrence. */ - public static final PropertyDefinition Recurrence = - new RecurrencePropertyDefinition( - XmlElementNames.Recurrence, FieldUris.Recurrence, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1); - - // Defines the FirstOccurrence property. - /** The Constant FirstOccurrence. */ - public static final PropertyDefinition FirstOccurrence = - new ComplexPropertyDefinition( - OccurrenceInfo.class, - XmlElementNames.FirstOccurrence, FieldUris.FirstOccurrence, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public OccurrenceInfo createComplexProperty() { - return new OccurrenceInfo(); - } - }); - - // Defines the LastOccurrence property. - /** The Constant LastOccurrence. */ - public static final PropertyDefinition LastOccurrence = - new ComplexPropertyDefinition( - OccurrenceInfo.class, - XmlElementNames.LastOccurrence, FieldUris.LastOccurrence, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public OccurrenceInfo createComplexProperty() { - return new OccurrenceInfo(); - } - }); - - // Defines the ModifiedOccurrences property. - /** The Constant ModifiedOccurrences. */ - public static final PropertyDefinition ModifiedOccurrences = - new ComplexPropertyDefinition( - OccurrenceInfoCollection.class, - XmlElementNames.ModifiedOccurrences, - FieldUris.ModifiedOccurrences, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - public OccurrenceInfoCollection createComplexProperty() { - return new OccurrenceInfoCollection(); - } - }); - - // Defines the DeletedOccurrences property. - /** The Constant DeletedOccurrences. */ - public static final PropertyDefinition DeletedOccurrences = - new ComplexPropertyDefinition( - DeletedOccurrenceInfoCollection.class, - XmlElementNames.DeletedOccurrences, - FieldUris.DeletedOccurrences, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - public DeletedOccurrenceInfoCollection createComplexProperty() { - return new DeletedOccurrenceInfoCollection(); - } - }); - - // Defines the MeetingTimeZone property. - /** The Constant MeetingTimeZone. */ - protected static final PropertyDefinition MeetingTimeZone = - new MeetingTimeZonePropertyDefinition( - XmlElementNames.MeetingTimeZone, FieldUris.MeetingTimeZone, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1); - - // Defines the ConferenceType property. - /** The Constant ConferenceType. */ - public static final PropertyDefinition ConferenceType = - new IntPropertyDefinition( - XmlElementNames.ConferenceType, FieldUris.ConferenceType, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the AllowNewTimeProposal property. - /** The Constant AllowNewTimeProposal. */ - public static final PropertyDefinition AllowNewTimeProposal = - new BoolPropertyDefinition( - XmlElementNames.AllowNewTimeProposal, - FieldUris.AllowNewTimeProposal, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the IsOnlineMeeting property. - /** The Constant IsOnlineMeeting. */ - public static final PropertyDefinition IsOnlineMeeting = - new BoolPropertyDefinition( - XmlElementNames.IsOnlineMeeting, FieldUris.IsOnlineMeeting, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the MeetingWorkspaceUrl property. - /** The Constant MeetingWorkspaceUrl. */ - public static final PropertyDefinition MeetingWorkspaceUrl = - new StringPropertyDefinition( - XmlElementNames.MeetingWorkspaceUrl, FieldUris.MeetingWorkspaceUrl, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the NetShowUrl property. - /** The Constant NetShowUrl. */ - public static final PropertyDefinition NetShowUrl = - new StringPropertyDefinition( - XmlElementNames.NetShowUrl, FieldUris.NetShowUrl, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the iCalendar Uid property. - /** The Constant ICalUid. */ - public static final PropertyDefinition ICalUid = - new StringPropertyDefinition( - XmlElementNames.Uid, FieldUris.Uid, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - // Defines the iCalendar RecurrenceId property. - /** The Constant ICalRecurrenceId. */ - public static final PropertyDefinition ICalRecurrenceId = - new DateTimePropertyDefinition( - XmlElementNames.RecurrenceId, FieldUris.RecurrenceId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); - // Defines the iCalendar DateTimeStamp property. - /** The Constant ICalDateTimeStamp. */ - public static final PropertyDefinition ICalDateTimeStamp = - new DateTimePropertyDefinition( - XmlElementNames.DateTimeStamp, FieldUris.DateTimeStamp, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - // Instance of schema. - // This must be after the declaration of property definitions. - /** The Constant Instance. */ - protected static final AppointmentSchema Instance = new AppointmentSchema(); - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(Start); - this.registerProperty(End); - this.registerProperty(OriginalStart); - this.registerProperty(IsAllDayEvent); - this.registerProperty(LegacyFreeBusyStatus); - this.registerProperty(Location); - this.registerProperty(When); - this.registerProperty(IsMeeting); - this.registerProperty(IsCancelled); - this.registerProperty(IsRecurring); - this.registerProperty(MeetingRequestWasSent); - this.registerProperty(IsResponseRequested); - this.registerProperty(AppointmentType); - this.registerProperty(MyResponseType); - this.registerProperty(Organizer); - this.registerProperty(RequiredAttendees); - this.registerProperty(OptionalAttendees); - this.registerProperty(Resources); - this.registerProperty(ConflictingMeetingCount); - this.registerProperty(AdjacentMeetingCount); - this.registerProperty(ConflictingMeetings); - this.registerProperty(AdjacentMeetings); - this.registerProperty(Duration); - this.registerProperty(TimeZone); - this.registerProperty(AppointmentReplyTime); - this.registerProperty(AppointmentSequenceNumber); - this.registerProperty(AppointmentState); - this.registerProperty(Recurrence); - this.registerProperty(FirstOccurrence); - this.registerProperty(LastOccurrence); - this.registerProperty(ModifiedOccurrences); - this.registerProperty(DeletedOccurrences); - this.registerInternalProperty(MeetingTimeZone); - this.registerProperty(StartTimeZone); - this.registerProperty(EndTimeZone); - this.registerProperty(ConferenceType); - this.registerProperty(AllowNewTimeProposal); - this.registerProperty(IsOnlineMeeting); - this.registerProperty(MeetingWorkspaceUrl); - this.registerProperty(NetShowUrl); - this.registerProperty(ICalUid); - this.registerProperty(ICalRecurrenceId); - this.registerProperty(ICalDateTimeStamp); - } - - /** - * Instantiates a new appointment schema. - */ - AppointmentSchema() { - super(); - } + /** + * Field URIs for Appointment. + */ + private static interface FieldUris { + + /** + * The Start. + */ + String Start = "calendar:Start"; + + /** + * The End. + */ + String End = "calendar:End"; + + /** + * The Original start. + */ + String OriginalStart = "calendar:OriginalStart"; + + /** + * The Is all day event. + */ + String IsAllDayEvent = "calendar:IsAllDayEvent"; + + /** + * The Legacy free busy status. + */ + String LegacyFreeBusyStatus = "calendar:LegacyFreeBusyStatus"; + + /** + * The Location. + */ + String Location = "calendar:Location"; + + /** + * The When. + */ + String When = "calendar:When"; + + /** + * The Is meeting. + */ + String IsMeeting = "calendar:IsMeeting"; + + /** + * The Is cancelled. + */ + String IsCancelled = "calendar:IsCancelled"; + + /** + * The Is recurring. + */ + String IsRecurring = "calendar:IsRecurring"; + + /** + * The Meeting request was sent. + */ + String MeetingRequestWasSent = "calendar:MeetingRequestWasSent"; + + /** + * The Is response requested. + */ + String IsResponseRequested = "calendar:IsResponseRequested"; + + /** + * The Calendar item type. + */ + String CalendarItemType = "calendar:CalendarItemType"; + + /** + * The My response type. + */ + String MyResponseType = "calendar:MyResponseType"; + + /** + * The Organizer. + */ + String Organizer = "calendar:Organizer"; + + /** + * The Required attendees. + */ + String RequiredAttendees = "calendar:RequiredAttendees"; + + /** + * The Optional attendees. + */ + String OptionalAttendees = "calendar:OptionalAttendees"; + + /** + * The Resources. + */ + String Resources = "calendar:Resources"; + + /** + * The Conflicting meeting count. + */ + String ConflictingMeetingCount = "calendar:ConflictingMeetingCount"; + + /** + * The Adjacent meeting count. + */ + String AdjacentMeetingCount = "calendar:AdjacentMeetingCount"; + + /** + * The Conflicting meetings. + */ + String ConflictingMeetings = "calendar:ConflictingMeetings"; + + /** + * The Adjacent meetings. + */ + String AdjacentMeetings = "calendar:AdjacentMeetings"; + + /** + * The Duration. + */ + String Duration = "calendar:Duration"; + + /** + * The Time zone. + */ + String TimeZone = "calendar:TimeZone"; + + /** + * The Appointment reply time. + */ + String AppointmentReplyTime = "calendar:AppointmentReplyTime"; + + /** + * The Appointment sequence number. + */ + String AppointmentSequenceNumber = "calendar:AppointmentSequenceNumber"; + + /** + * The Appointment state. + */ + String AppointmentState = "calendar:AppointmentState"; + + /** + * The Recurrence. + */ + String Recurrence = "calendar:Recurrence"; + + /** + * The First occurrence. + */ + String FirstOccurrence = "calendar:FirstOccurrence"; + + /** + * The Last occurrence. + */ + String LastOccurrence = "calendar:LastOccurrence"; + + /** + * The Modified occurrences. + */ + String ModifiedOccurrences = "calendar:ModifiedOccurrences"; + + /** + * The Deleted occurrences. + */ + String DeletedOccurrences = "calendar:DeletedOccurrences"; + + /** + * The Meeting time zone. + */ + String MeetingTimeZone = "calendar:MeetingTimeZone"; + + /** + * The Start time zone. + */ + String StartTimeZone = "calendar:StartTimeZone"; + + /** + * The End time zone. + */ + String EndTimeZone = "calendar:EndTimeZone"; + + /** + * The Conference type. + */ + String ConferenceType = "calendar:ConferenceType"; + + /** + * The Allow new time proposal. + */ + String AllowNewTimeProposal = "calendar:AllowNewTimeProposal"; + + /** + * The Is online meeting. + */ + String IsOnlineMeeting = "calendar:IsOnlineMeeting"; + + /** + * The Meeting workspace url. + */ + String MeetingWorkspaceUrl = "calendar:MeetingWorkspaceUrl"; + + /** + * The Net show url. + */ + String NetShowUrl = "calendar:NetShowUrl"; + + /** + * The Uid. + */ + String Uid = "calendar:UID"; + + /** + * The Recurrence id. + */ + String RecurrenceId = "calendar:RecurrenceId"; + + /** + * The Date time stamp. + */ + String DateTimeStamp = "calendar:DateTimeStamp"; + } + + // Defines the StartTimeZone property. + /** + * The Constant StartTimeZone. + */ + public static final PropertyDefinition StartTimeZone = + new StartTimeZonePropertyDefinition( + XmlElementNames.StartTimeZone, FieldUris.StartTimeZone, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the EndTimeZone property. + /** + * The Constant EndTimeZone. + */ + public static final PropertyDefinition EndTimeZone = + new TimeZonePropertyDefinition( + XmlElementNames.EndTimeZone, FieldUris.EndTimeZone, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010); + + // Defines the Start property. + /** + * The Constant Start. + */ + public static final PropertyDefinition Start = + new DateTimePropertyDefinition( + XmlElementNames.Start, FieldUris.Start, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the End property. + /** + * The Constant End. + */ + public static final PropertyDefinition End = new DateTimePropertyDefinition( + XmlElementNames.End, FieldUris.End, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the OriginalStart property. + /** + * The Constant OriginalStart. + */ + public static final PropertyDefinition OriginalStart = + new DateTimePropertyDefinition( + XmlElementNames.OriginalStart, FieldUris.OriginalStart, + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsAllDayEvent property. + /** + * The Constant IsAllDayEvent. + */ + public static final PropertyDefinition IsAllDayEvent = + new BoolPropertyDefinition( + XmlElementNames.IsAllDayEvent, FieldUris.IsAllDayEvent, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the LegacyFreeBusyStatus property. + /** + * The Constant LegacyFreeBusyStatus. + */ + public static final PropertyDefinition LegacyFreeBusyStatus = + new GenericPropertyDefinition( + LegacyFreeBusyStatus.class, + XmlElementNames.LegacyFreeBusyStatus, + FieldUris.LegacyFreeBusyStatus, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the Location property. + /** + * The Constant Location. + */ + public static final PropertyDefinition Location = + new StringPropertyDefinition( + XmlElementNames.Location, FieldUris.Location, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the When property. + /** + * The Constant When. + */ + public static final PropertyDefinition When = new StringPropertyDefinition( + XmlElementNames.When, FieldUris.When, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsMeeting property. + /** + * The Constant IsMeeting. + */ + public static final PropertyDefinition IsMeeting = + new BoolPropertyDefinition( + XmlElementNames.IsMeeting, FieldUris.IsMeeting, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsCancelled property. + /** + * The Constant IsCancelled. + */ + public static final PropertyDefinition IsCancelled = + new BoolPropertyDefinition( + XmlElementNames.IsCancelled, FieldUris.IsCancelled, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsRecurring property. + /** + * The Constant IsRecurring. + */ + public static final PropertyDefinition IsRecurring = + new BoolPropertyDefinition( + XmlElementNames.IsRecurring, FieldUris.IsRecurring, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the MeetingRequestWasSent property. + /** + * The Constant MeetingRequestWasSent. + */ + public static final PropertyDefinition MeetingRequestWasSent = + new BoolPropertyDefinition( + XmlElementNames.MeetingRequestWasSent, + FieldUris.MeetingRequestWasSent, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsResponseRequested property. + /** + * The Constant IsResponseRequested. + */ + public static final PropertyDefinition IsResponseRequested = + new BoolPropertyDefinition( + XmlElementNames.IsResponseRequested, FieldUris.IsResponseRequested, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the AppointmentType property. + /** + * The Constant AppointmentType. + */ + public static final PropertyDefinition AppointmentType = + new GenericPropertyDefinition( + AppointmentType.class, + XmlElementNames.CalendarItemType, FieldUris.CalendarItemType, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the MyResponseType property. + /** + * The Constant MyResponseType. + */ + public static final PropertyDefinition MyResponseType = + new GenericPropertyDefinition( + MeetingResponseType.class, + XmlElementNames.MyResponseType, FieldUris.MyResponseType, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the Organizer property. + /** + * The Constant Organizer. + */ + public static final PropertyDefinition Organizer = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.Organizer, FieldUris.Organizer, + XmlElementNames.Mailbox, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + // Defines the RequiredAttendees property. + + /** + * The Constant RequiredAttendees. + */ + public static final PropertyDefinition RequiredAttendees = + new ComplexPropertyDefinition( + AttendeeCollection.class, + XmlElementNames.RequiredAttendees, FieldUris.RequiredAttendees, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public AttendeeCollection createComplexProperty() { + return new AttendeeCollection(); + } + }); + + // Defines the OptionalAttendees property. + /** + * The Constant OptionalAttendees. + */ + public static final PropertyDefinition OptionalAttendees = + new ComplexPropertyDefinition( + AttendeeCollection.class, + XmlElementNames.OptionalAttendees, FieldUris.OptionalAttendees, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public AttendeeCollection createComplexProperty() { + return new AttendeeCollection(); + } + }); + + // Defines the Resources property. + + /** + * The Constant Resources. + */ + public static final PropertyDefinition Resources = + new ComplexPropertyDefinition( + AttendeeCollection.class, + XmlElementNames.Resources, FieldUris.Resources, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public AttendeeCollection createComplexProperty() { + return new AttendeeCollection(); + } + }); + + // Defines the ConflictingMeetingCount property. + /** + * The Constant ConflictingMeetingCount. + */ + public static final PropertyDefinition ConflictingMeetingCount = + new IntPropertyDefinition( + XmlElementNames.ConflictingMeetingCount, + FieldUris.ConflictingMeetingCount, + ExchangeVersion.Exchange2007_SP1); + + // Defines the AdjacentMeetingCount property. + /** + * The Constant AdjacentMeetingCount. + */ + public static final PropertyDefinition AdjacentMeetingCount = + new IntPropertyDefinition( + XmlElementNames.AdjacentMeetingCount, + FieldUris.AdjacentMeetingCount, ExchangeVersion.Exchange2007_SP1); + + // Defines the ConflictingMeetings property. + /** + * The Constant ConflictingMeetings. + */ + public static final PropertyDefinition ConflictingMeetings = + new ComplexPropertyDefinition>( + XmlElementNames.ConflictingMeetings, + FieldUris.ConflictingMeetings, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + >() { + public ItemCollection createComplexProperty() { + return new ItemCollection(); + } + }); + + // Defines the AdjacentMeetings property. + /** + * The Constant AdjacentMeetings. + */ + public static final PropertyDefinition AdjacentMeetings = + new ComplexPropertyDefinition>( + XmlElementNames.AdjacentMeetings, + FieldUris.AdjacentMeetings, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + >() { + public ItemCollection createComplexProperty() { + return new ItemCollection(); + } + }); + + // Defines the Duration property. + /** + * The Constant Duration. + */ + public static final PropertyDefinition Duration = + new TimeSpanPropertyDefinition( + XmlElementNames.Duration, FieldUris.Duration, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the TimeZone property. + /** + * The Constant TimeZone. + */ + public static final PropertyDefinition TimeZone = + new StringPropertyDefinition( + XmlElementNames.TimeZone, FieldUris.TimeZone, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the AppointmentReplyTime property. + /** + * The Constant AppointmentReplyTime. + */ + public static final PropertyDefinition AppointmentReplyTime = + new DateTimePropertyDefinition( + XmlElementNames.AppointmentReplyTime, + FieldUris.AppointmentReplyTime, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the AppointmentSequenceNumber property. + /** + * The Constant AppointmentSequenceNumber. + */ + public static final PropertyDefinition AppointmentSequenceNumber = + new IntPropertyDefinition( + XmlElementNames.AppointmentSequenceNumber, + FieldUris.AppointmentSequenceNumber, + ExchangeVersion.Exchange2007_SP1); + + // Defines the AppointmentState property. + /** + * The Constant AppointmentState. + */ + public static final PropertyDefinition AppointmentState = + new IntPropertyDefinition( + XmlElementNames.AppointmentState, FieldUris.AppointmentState, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the Recurrence property. + /** + * The Constant Recurrence. + */ + public static final PropertyDefinition Recurrence = + new RecurrencePropertyDefinition( + XmlElementNames.Recurrence, FieldUris.Recurrence, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1); + + // Defines the FirstOccurrence property. + /** + * The Constant FirstOccurrence. + */ + public static final PropertyDefinition FirstOccurrence = + new ComplexPropertyDefinition( + OccurrenceInfo.class, + XmlElementNames.FirstOccurrence, FieldUris.FirstOccurrence, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public OccurrenceInfo createComplexProperty() { + return new OccurrenceInfo(); + } + }); + + // Defines the LastOccurrence property. + /** + * The Constant LastOccurrence. + */ + public static final PropertyDefinition LastOccurrence = + new ComplexPropertyDefinition( + OccurrenceInfo.class, + XmlElementNames.LastOccurrence, FieldUris.LastOccurrence, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public OccurrenceInfo createComplexProperty() { + return new OccurrenceInfo(); + } + }); + + // Defines the ModifiedOccurrences property. + /** + * The Constant ModifiedOccurrences. + */ + public static final PropertyDefinition ModifiedOccurrences = + new ComplexPropertyDefinition( + OccurrenceInfoCollection.class, + XmlElementNames.ModifiedOccurrences, + FieldUris.ModifiedOccurrences, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + public OccurrenceInfoCollection createComplexProperty() { + return new OccurrenceInfoCollection(); + } + }); + + // Defines the DeletedOccurrences property. + /** + * The Constant DeletedOccurrences. + */ + public static final PropertyDefinition DeletedOccurrences = + new ComplexPropertyDefinition( + DeletedOccurrenceInfoCollection.class, + XmlElementNames.DeletedOccurrences, + FieldUris.DeletedOccurrences, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + public DeletedOccurrenceInfoCollection createComplexProperty() { + return new DeletedOccurrenceInfoCollection(); + } + }); + + // Defines the MeetingTimeZone property. + /** + * The Constant MeetingTimeZone. + */ + protected static final PropertyDefinition MeetingTimeZone = + new MeetingTimeZonePropertyDefinition( + XmlElementNames.MeetingTimeZone, FieldUris.MeetingTimeZone, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1); + + // Defines the ConferenceType property. + /** + * The Constant ConferenceType. + */ + public static final PropertyDefinition ConferenceType = + new IntPropertyDefinition( + XmlElementNames.ConferenceType, FieldUris.ConferenceType, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the AllowNewTimeProposal property. + /** + * The Constant AllowNewTimeProposal. + */ + public static final PropertyDefinition AllowNewTimeProposal = + new BoolPropertyDefinition( + XmlElementNames.AllowNewTimeProposal, + FieldUris.AllowNewTimeProposal, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the IsOnlineMeeting property. + /** + * The Constant IsOnlineMeeting. + */ + public static final PropertyDefinition IsOnlineMeeting = + new BoolPropertyDefinition( + XmlElementNames.IsOnlineMeeting, FieldUris.IsOnlineMeeting, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the MeetingWorkspaceUrl property. + /** + * The Constant MeetingWorkspaceUrl. + */ + public static final PropertyDefinition MeetingWorkspaceUrl = + new StringPropertyDefinition( + XmlElementNames.MeetingWorkspaceUrl, FieldUris.MeetingWorkspaceUrl, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the NetShowUrl property. + /** + * The Constant NetShowUrl. + */ + public static final PropertyDefinition NetShowUrl = + new StringPropertyDefinition( + XmlElementNames.NetShowUrl, FieldUris.NetShowUrl, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the iCalendar Uid property. + /** + * The Constant ICalUid. + */ + public static final PropertyDefinition ICalUid = + new StringPropertyDefinition( + XmlElementNames.Uid, FieldUris.Uid, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + // Defines the iCalendar RecurrenceId property. + /** + * The Constant ICalRecurrenceId. + */ + public static final PropertyDefinition ICalRecurrenceId = + new DateTimePropertyDefinition( + XmlElementNames.RecurrenceId, FieldUris.RecurrenceId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); + // Defines the iCalendar DateTimeStamp property. + /** + * The Constant ICalDateTimeStamp. + */ + public static final PropertyDefinition ICalDateTimeStamp = + new DateTimePropertyDefinition( + XmlElementNames.DateTimeStamp, FieldUris.DateTimeStamp, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + // Instance of schema. + // This must be after the declaration of property definitions. + /** + * The Constant Instance. + */ + protected static final AppointmentSchema Instance = new AppointmentSchema(); + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(Start); + this.registerProperty(End); + this.registerProperty(OriginalStart); + this.registerProperty(IsAllDayEvent); + this.registerProperty(LegacyFreeBusyStatus); + this.registerProperty(Location); + this.registerProperty(When); + this.registerProperty(IsMeeting); + this.registerProperty(IsCancelled); + this.registerProperty(IsRecurring); + this.registerProperty(MeetingRequestWasSent); + this.registerProperty(IsResponseRequested); + this.registerProperty(AppointmentType); + this.registerProperty(MyResponseType); + this.registerProperty(Organizer); + this.registerProperty(RequiredAttendees); + this.registerProperty(OptionalAttendees); + this.registerProperty(Resources); + this.registerProperty(ConflictingMeetingCount); + this.registerProperty(AdjacentMeetingCount); + this.registerProperty(ConflictingMeetings); + this.registerProperty(AdjacentMeetings); + this.registerProperty(Duration); + this.registerProperty(TimeZone); + this.registerProperty(AppointmentReplyTime); + this.registerProperty(AppointmentSequenceNumber); + this.registerProperty(AppointmentState); + this.registerProperty(Recurrence); + this.registerProperty(FirstOccurrence); + this.registerProperty(LastOccurrence); + this.registerProperty(ModifiedOccurrences); + this.registerProperty(DeletedOccurrences); + this.registerInternalProperty(MeetingTimeZone); + this.registerProperty(StartTimeZone); + this.registerProperty(EndTimeZone); + this.registerProperty(ConferenceType); + this.registerProperty(AllowNewTimeProposal); + this.registerProperty(IsOnlineMeeting); + this.registerProperty(MeetingWorkspaceUrl); + this.registerProperty(NetShowUrl); + this.registerProperty(ICalUid); + this.registerProperty(ICalRecurrenceId); + this.registerProperty(ICalDateTimeStamp); + } + + /** + * Instantiates a new appointment schema. + */ + AppointmentSchema() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java index 1986a43f5..ab968eeb5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java @@ -14,19 +14,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the type of an appointment. */ public enum AppointmentType { - // The appointment is non-recurring. - /** The Single. */ - Single, + // The appointment is non-recurring. + /** + * The Single. + */ + Single, - // The appointment is an occurrence of a recurring appointment. - /** The Occurrence. */ - Occurrence, + // The appointment is an occurrence of a recurring appointment. + /** + * The Occurrence. + */ + Occurrence, - // The appointment is an exception of a recurring appointment. - /** The Exception. */ - Exception, + // The appointment is an exception of a recurring appointment. + /** + * The Exception. + */ + Exception, - // The appointment is the recurring master of a series. - /** The Recurring master. */ - RecurringMaster + // The appointment is the recurring master of a series. + /** + * The Recurring master. + */ + RecurringMaster } diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 21ad098c9..9d3cb51b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -15,51 +15,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentException extends Exception { - /** - * Instantiates a new argument exception. - */ - public ArgumentException() { - super(); - - } + /** + * Instantiates a new argument exception. + */ + public ArgumentException() { + super(); - /** - * Instantiates a new argument exception. - * - * @param arg0 - * the arg0 - */ - public ArgumentException(final String arg0) { - super(arg0); - - } + } - /** - * ServiceXmlDeserializationException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ArgumentException(String message, Exception innerException) { - super(message, innerException); - } - - /** - * Initializes a new instance of the System. - * ArgumentException class with a specified - * error message and the name of the - * parameter that causes this exception. - * - * @param message - * The error message that explains the reason for the exception. - * @param paramName - * The name of the parameter that caused the current exception. - */ - public ArgumentException(String message, String paramName) { - super(message+" Parameter that caused " + - "the current exception :"+paramName); - } + /** + * Instantiates a new argument exception. + * + * @param arg0 the arg0 + */ + public ArgumentException(final String arg0) { + super(arg0); + + } + + /** + * ServiceXmlDeserializationException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public ArgumentException(String message, Exception innerException) { + super(message, innerException); + } + + /** + * Initializes a new instance of the System. + * ArgumentException class with a specified + * error message and the name of the + * parameter that causes this exception. + * + * @param message The error message that explains the reason for the exception. + * @param paramName The name of the parameter that caused the current exception. + */ + public ArgumentException(String message, String paramName) { + super(message + " Parameter that caused " + + "the current exception :" + paramName); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index e1f3e8370..dc879e3e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -15,46 +15,42 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentNullException extends Exception { - /** - * Instantiates a new argument null exception. - */ - public ArgumentNullException() { - super(); - - } - - /** - * Instantiates a new argument null exception. - * - * @param arg0 - * the arg0 - * @param arg1 - * the arg1 - */ - public ArgumentNullException(final String arg0, final Throwable arg1) { - super(arg0, arg1); - - } - - /** - * Instantiates a new argument null exception. - * - * @param arg0 - * the arg0 - */ - public ArgumentNullException(final String arg0) { - super(arg0); - - } - - /** - * Instantiates a new argument null exception. - * - * @param arg0 - * the arg0 - */ - public ArgumentNullException(final Throwable arg0) { - super(arg0); - - } + /** + * Instantiates a new argument null exception. + */ + public ArgumentNullException() { + super(); + + } + + /** + * Instantiates a new argument null exception. + * + * @param arg0 the arg0 + * @param arg1 the arg1 + */ + public ArgumentNullException(final String arg0, final Throwable arg1) { + super(arg0, arg1); + + } + + /** + * Instantiates a new argument null exception. + * + * @param arg0 the arg0 + */ + public ArgumentNullException(final String arg0) { + super(arg0); + + } + + /** + * Instantiates a new argument null exception. + * + * @param arg0 the arg0 + */ + public ArgumentNullException(final Throwable arg0) { + super(arg0); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index eccbdcaec..9ff06a32a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -15,34 +15,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentOutOfRangeException extends Exception { - /** - * Instantiates a new argument out of range exception. - */ - public ArgumentOutOfRangeException() { - super(); - - } - - /** - * Instantiates a new argument out of range exception. - * - * @param arg0 - * the arg0 - */ - public ArgumentOutOfRangeException(final String arg0) { - super(arg0); - - } - - /** - * Instantiates a new argument out of range exception. - * - * @param arg0 - * the arg0 - * @param arg1 - * the arg1 - */ - public ArgumentOutOfRangeException(final String arg0, final String arg1) { - - } + /** + * Instantiates a new argument out of range exception. + */ + public ArgumentOutOfRangeException() { + super(); + + } + + /** + * Instantiates a new argument out of range exception. + * + * @param arg0 the arg0 + */ + public ArgumentOutOfRangeException(final String arg0) { + super(arg0); + + } + + /** + * Instantiates a new argument out of range exception. + * + * @param arg0 the arg0 + * @param arg1 the arg1 + */ + public ArgumentOutOfRangeException(final String arg0, final String arg1) { + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index d268d8837..7a867de05 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -12,22 +12,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; - abstract class AsyncCallback extends AbstractAsyncCallback { - - AsyncCallback(){ - - } - - void setTask(Future task){ - - this.task = task; - } - Future getTask(){ - return this.task; - } - - - - +abstract class AsyncCallback extends AbstractAsyncCallback { + + AsyncCallback() { + + } + + void setTask(Future task) { + + this.task = task; + } + + Future getTask() { + return this.task; + } + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index 69e3f852c..238f2171d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -14,10 +14,10 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public class AsyncCallbackImplementation extends AsyncCallback { - @Override - public Object processMe(Future task) { - System.out.println("In Async Callback" + task.isDone()); - return null; - } + @Override + public Object processMe(Future task) { + System.out.println("In Async Callback" + task.isDone()); + return null; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index 42da296db..7a76b1e19 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -10,28 +10,25 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.Callable; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Future; -import java.util.concurrent.RunnableFuture; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; +import java.util.concurrent.*; class AsyncExecutor extends ThreadPoolExecutor implements ExecutorService { - final static ArrayBlockingQueue queue = new ArrayBlockingQueue(1); + final static ArrayBlockingQueue queue = new ArrayBlockingQueue(1); - AsyncExecutor(){ - super(1,5,10,TimeUnit.SECONDS, queue); - } + AsyncExecutor() { + super(1, 5, 10, TimeUnit.SECONDS, queue); + } - public Future submit(Callable task,AsyncCallback callback) { - if (task == null) throw new NullPointerException(); - RunnableFuture ftask = newTaskFor(task); - execute(ftask); - if(callback != null) - callback.setTask(ftask); - new Thread(callback).start(); - return ftask; - } + public Future submit(Callable task, AsyncCallback callback) { + if (task == null) { + throw new NullPointerException(); + } + RunnableFuture ftask = newTaskFor(task); + execute(ftask); + if (callback != null) { + callback.setTask(ftask); + } + new Thread(callback).start(); + return ftask; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index 5195b53db..7c196e284 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -10,161 +10,155 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.Future; -import java.util.concurrent.FutureTask; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; - -public class AsyncRequestResult implements IAsyncResult{ - - ServiceRequestBase serviceRequest; - HttpWebRequest webRequest; - AsyncCallback wasasyncCallback; - IAsyncResult webAsyncResult; - Object asyncState; - Future task; - - AsyncRequestResult(Future task){ - this.task =task; - } - - - public AsyncRequestResult(ServiceRequestBase serviceRequest, - HttpWebRequest webRequest, Future task, - Object asyncState) throws Exception { - EwsUtilities.validateParam(serviceRequest, "serviceRequest"); - EwsUtilities.validateParam(webRequest, "webRequest"); - EwsUtilities.validateParam(task,"task"); - this.serviceRequest = serviceRequest; - this.webRequest = webRequest; - this.asyncState = asyncState; - this.task = task; - - } - public void setServiceRequestBase(ServiceRequestBase serviceRequest) { - this.serviceRequest = serviceRequest; - } - - private ServiceRequestBase getServiceRequest() { - return this.serviceRequest; - } - - public void setHttpWebRequest(HttpWebRequest webRequest) { - this.webRequest = webRequest; - } - - public HttpWebRequest getHttpWebRequest() { - return this.webRequest; - } - - public FutureTask getTask(){ - return (FutureTask)this.task; - } - public static T extractServiceRequest( - ExchangeService exchangeService, Future asyncResult) throws Exception { - EwsUtilities.validateParam(asyncResult, "asyncResult"); - AsyncRequestResult asyncRequestResult = (AsyncRequestResult)asyncResult; - if (asyncRequestResult == null) { - /** - * String.InvalidAsyncResult is copied from the error message - * HttpWebRequest.EndGetResponse() Just use this simple string for - * all kinds of invalid IAsyncResult parameters. - */ - throw new ArgumentException(Strings.InvalidAsyncResult, - "asyncResult"); - } - // Validate the serivce request. - if (asyncRequestResult.serviceRequest == null) { - throw new ArgumentException(Strings.InvalidAsyncResult, - "asyncResult"); - } - // Validate the service object - if (!asyncRequestResult.serviceRequest.getService().equals( - exchangeService)) { - throw new ArgumentException(Strings.InvalidAsyncResult, - "asyncResult"); - } - T serviceRequest =(T) asyncRequestResult.getServiceRequest(); - // Validate the request type - if (serviceRequest == null) { - throw new ArgumentException(Strings.InvalidAsyncResult, - "asyncResult"); - } - return serviceRequest; - - } - - - @Override - public boolean cancel(boolean arg0) { - // TODO Auto-generated method stub - return false; - } - - - - - - @Override - public Object get(long timeout, TimeUnit unit) - throws InterruptedException, ExecutionException, - TimeoutException { - // TODO Auto-generated method stub - return null; - } - - - @Override - public boolean isCancelled() { - // TODO Auto-generated method stub - return false; - } - - - @Override - public boolean isDone() { - // TODO Auto-generated method stub - return false; - } - - - @Override - public Object getAsyncState() { - // TODO Auto-generated method stub - return null; - } - - - @Override - public WaitHandle getAsyncWaitHanle() { - // TODO Auto-generated method stub - return null; - } - - - @Override - public boolean getCompleteSynchronously() { - // TODO Auto-generated method stub - return false; - } - - - @Override - public boolean getIsCompleted() { - // TODO Auto-generated method stub - return false; - } - - - @Override - public Object get() throws InterruptedException, ExecutionException { - // TODO Auto-generated method stub - return this.task.get(); - } - - - - +import java.util.concurrent.*; + +public class AsyncRequestResult implements IAsyncResult { + + ServiceRequestBase serviceRequest; + HttpWebRequest webRequest; + AsyncCallback wasasyncCallback; + IAsyncResult webAsyncResult; + Object asyncState; + Future task; + + AsyncRequestResult(Future task) { + this.task = task; + } + + + public AsyncRequestResult(ServiceRequestBase serviceRequest, + HttpWebRequest webRequest, Future task, + Object asyncState) throws Exception { + EwsUtilities.validateParam(serviceRequest, "serviceRequest"); + EwsUtilities.validateParam(webRequest, "webRequest"); + EwsUtilities.validateParam(task, "task"); + this.serviceRequest = serviceRequest; + this.webRequest = webRequest; + this.asyncState = asyncState; + this.task = task; + + } + + public void setServiceRequestBase(ServiceRequestBase serviceRequest) { + this.serviceRequest = serviceRequest; + } + + private ServiceRequestBase getServiceRequest() { + return this.serviceRequest; + } + + public void setHttpWebRequest(HttpWebRequest webRequest) { + this.webRequest = webRequest; + } + + public HttpWebRequest getHttpWebRequest() { + return this.webRequest; + } + + public FutureTask getTask() { + return (FutureTask) this.task; + } + + public static T extractServiceRequest( + ExchangeService exchangeService, Future asyncResult) throws Exception { + EwsUtilities.validateParam(asyncResult, "asyncResult"); + AsyncRequestResult asyncRequestResult = (AsyncRequestResult) asyncResult; + if (asyncRequestResult == null) { + /** + * String.InvalidAsyncResult is copied from the error message + * HttpWebRequest.EndGetResponse() Just use this simple string for + * all kinds of invalid IAsyncResult parameters. + */ + throw new ArgumentException(Strings.InvalidAsyncResult, + "asyncResult"); + } + // Validate the serivce request. + if (asyncRequestResult.serviceRequest == null) { + throw new ArgumentException(Strings.InvalidAsyncResult, + "asyncResult"); + } + // Validate the service object + if (!asyncRequestResult.serviceRequest.getService().equals( + exchangeService)) { + throw new ArgumentException(Strings.InvalidAsyncResult, + "asyncResult"); + } + T serviceRequest = (T) asyncRequestResult.getServiceRequest(); + // Validate the request type + if (serviceRequest == null) { + throw new ArgumentException(Strings.InvalidAsyncResult, + "asyncResult"); + } + return serviceRequest; + + } + + + @Override + public boolean cancel(boolean arg0) { + // TODO Auto-generated method stub + return false; + } + + + + @Override + public Object get(long timeout, TimeUnit unit) + throws InterruptedException, ExecutionException, + TimeoutException { + // TODO Auto-generated method stub + return null; + } + + + @Override + public boolean isCancelled() { + // TODO Auto-generated method stub + return false; + } + + + @Override + public boolean isDone() { + // TODO Auto-generated method stub + return false; + } + + + @Override + public Object getAsyncState() { + // TODO Auto-generated method stub + return null; + } + + + @Override + public WaitHandle getAsyncWaitHanle() { + // TODO Auto-generated method stub + return null; + } + + + @Override + public boolean getCompleteSynchronously() { + // TODO Auto-generated method stub + return false; + } + + + @Override + public boolean getIsCompleted() { + // TODO Auto-generated method stub + return false; + } + + + @Override + public Object get() throws InterruptedException, ExecutionException { + // TODO Auto-generated method stub + return this.task.get(); + } + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachable.java b/src/main/java/microsoft/exchange/webservices/data/Attachable.java index 294d876f9..1541877ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachable.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachable.java @@ -19,7 +19,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Interface Attachable. */ @Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@interface Attachable { +@Retention(RetentionPolicy.RUNTIME) @interface Attachable { } diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index c5c70ece6..54d49b9f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -14,398 +14,392 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an attachment to an item. - * - * */ public abstract class Attachment extends ComplexProperty { - /** The owner. */ - private Item owner; - - /** The id. */ - private String id; - - /** The name. */ - private String name; - - /** The content type. */ - private String contentType; - - /** The content id. */ - private String contentId; - - /** The content location. */ - private String contentLocation; - - /** The size. */ - private int size; - - /** The last modified time. */ - private Date lastModifiedTime; - - /** The is inline. */ - private boolean isInline; - - /** - * Initializes a new instance. - * - * @param owner - * The owner. - */ - protected Attachment(Item owner) { - this.owner = owner; - } - - /** - * Throws exception if this is not a new service object. - */ - protected void throwIfThisIsNotNew() { - if (!this.isNew()) { - throw new UnsupportedOperationException( - Strings.AttachmentCannotBeUpdated); - } - } - - /** - * Sets value of field. - * - * We override the base implementation. Attachments cannot be modified so - * any attempts the change a property on an existing attachment is an error. - * - * @param - * the generic type - * @param field - * The field - * @param value - * The value. - * @return true, if successful - */ - protected boolean canSetFieldValue(T field, T value) { - this.throwIfThisIsNotNew(); - return super.canSetFieldValue(field, value); - } - - /** - * Gets the Id of the attachment. - * - * @return the id - */ - public String getId() { - return this.id; - } - - /** - * Gets the name of the attachment. - * - * @return the name - */ - public String getName() { - return this.name; - } - - /** - * Sets the name. - * - * @param value - * the new name - */ - public void setName(String value) { - if (this.canSetFieldValue(this.name, value)) { - this.name = value; - this.changed(); - } - } - - /** - * Gets the content type of the attachment. - * - * @return the content type - */ - public String getContentType() { - return this.contentType; - } - - /** - * Sets the content type. - * - * @param value - * the new content type - */ - public void setContentType(String value) { - if (this.canSetFieldValue(this.contentType, value)) { - this.contentType = value; - this.changed(); - } - } - - /** - * Gets the content Id of the attachment. ContentId can be used as a - * custom way to identify an attachment in order to reference it from within - * the body of the item the attachment belongs to. - * - * @return the content id - */ - public String getContentId() { - return this.contentId; - } - - /** - * Sets the content id. - * - * @param value - * the new content id - */ - public void setContentId(String value) { - if (this.canSetFieldValue(this.contentId, value)) { - this.contentId = value; - this.changed(); - } - } - - /** - * Gets the content location of the attachment. ContentLocation can - * be used to associate an attachment with a Url defining its location on - * the Web. - * - * @return the content location - */ - public String getContentLocation() { - return this.contentLocation; - } - - /** - * Sets the content location. - * - * @param value - * the new content location - */ - public void setContentLocation(String value) { - if (this.canSetFieldValue(this.contentLocation, value)) { - this.contentLocation = value; - this.changed(); - } - } - - /** - * Gets the size of the attachment. - * - * @return the size - * @throws ServiceVersionException - * throws ServiceVersionException - */ - public int getSize() throws ServiceVersionException { - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "Size"); - return this.size; - } - - /** - * Gets the date and time when this attachment was last modified. - * - * @return the last modified time - * @throws ServiceVersionException the service version exception - */ - public Date getLastModifiedTime() throws ServiceVersionException { - - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "LastModifiedTime"); - - return this.lastModifiedTime; - - } - - /** - * Gets a value indicating whether this is an inline attachment. - * Inline attachments are not visible to end users. - * - * @return the checks if is inline - * @throws ServiceVersionException the service version exception - */ - public boolean getIsInline() throws ServiceVersionException { - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "IsInline"); - return this.isInline; - - } - - /** - * Sets the checks if is inline. - * - * @param value - * the new checks if is inline - * @throws ServiceVersionException - * the service version exception - */ - public void setIsInline(boolean value) throws ServiceVersionException { - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "IsInline"); - if (this.canSetFieldValue(this.isInline, value)) { - this.isInline = value; - this.changed(); - } - } - - /** - * True if the attachment has not yet been saved, false otherwise. - * - * @return true, if is new - */ - protected boolean isNew() { - return (this.getId() == null || this.getId().isEmpty()); - } - - /** - * Gets the owner of the attachment. - * - * @return the owner - */ - protected Item getOwner() { - return this.owner; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - abstract String getXmlElementName(); - - /** - * Tries to read element from XML. - * - * @param reader - * The reader. - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - - try { - if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.AttachmentId)) { - try { - this.id = reader.readAttributeValue(XmlAttributeNames.Id); - } catch (Exception e) { - e.printStackTrace(); - return false; - } - if (this.getOwner() != null) { - String rootItemChangeKey = reader - .readAttributeValue(XmlAttributeNames. - RootItemChangeKey); - if (null != rootItemChangeKey && - !rootItemChangeKey.isEmpty()) { - this.getOwner().getRootItemId().setChangeKey( - rootItemChangeKey); - } - } - reader.readEndElementIfNecessary(XmlNamespace.Types, - XmlElementNames.AttachmentId); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Name)) { - this.name = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ContentType)) { - this.contentType = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ContentId)) { - this.contentId = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ContentLocation)) { - this.contentLocation = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Size)) { - this.size = reader.readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.LastModifiedTime)) { - this.lastModifiedTime = reader.readElementValueAsDateTime(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsInline)) { - this.isInline = reader.readElementValue(Boolean.class); - return true; - } else { - return false; - } - } catch (Exception e) { - e.printStackTrace(); - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Name, this - .getName()); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ContentType, this.getContentType()); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.ContentId, - this.getContentId()); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ContentLocation, this.getContentLocation()); - if (writer.getService().getRequestedServerVersion().ordinal() > - ExchangeVersion.Exchange2007_SP1 - .ordinal()) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.IsInline, this.getIsInline()); - } - } - - /** - * Load the attachment. - * - * @param bodyType - * Type of the body. - * @param additionalProperties - * The additional properties. - * @throws Exception - * the exception - */ - protected void internalLoad(BodyType bodyType, - Iterable additionalProperties) - throws Exception { - this.getOwner().getService().getAttachment(this, bodyType, - additionalProperties); - } - - /** - * Validates this instance. - * - * @param attachmentIndex - * Index of this attachment. - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - abstract void validate(int attachmentIndex) throws Exception; - - /** - * Loads the attachment. Calling this method results in a call to EWS. - * - * @throws Exception - * the exception - */ - public void load() throws Exception { - this.internalLoad(null, null); - } + /** + * The owner. + */ + private Item owner; + + /** + * The id. + */ + private String id; + + /** + * The name. + */ + private String name; + + /** + * The content type. + */ + private String contentType; + + /** + * The content id. + */ + private String contentId; + + /** + * The content location. + */ + private String contentLocation; + + /** + * The size. + */ + private int size; + + /** + * The last modified time. + */ + private Date lastModifiedTime; + + /** + * The is inline. + */ + private boolean isInline; + + /** + * Initializes a new instance. + * + * @param owner The owner. + */ + protected Attachment(Item owner) { + this.owner = owner; + } + + /** + * Throws exception if this is not a new service object. + */ + protected void throwIfThisIsNotNew() { + if (!this.isNew()) { + throw new UnsupportedOperationException( + Strings.AttachmentCannotBeUpdated); + } + } + + /** + * Sets value of field. + *

+ * We override the base implementation. Attachments cannot be modified so + * any attempts the change a property on an existing attachment is an error. + * + * @param the generic type + * @param field The field + * @param value The value. + * @return true, if successful + */ + protected boolean canSetFieldValue(T field, T value) { + this.throwIfThisIsNotNew(); + return super.canSetFieldValue(field, value); + } + + /** + * Gets the Id of the attachment. + * + * @return the id + */ + public String getId() { + return this.id; + } + + /** + * Gets the name of the attachment. + * + * @return the name + */ + public String getName() { + return this.name; + } + + /** + * Sets the name. + * + * @param value the new name + */ + public void setName(String value) { + if (this.canSetFieldValue(this.name, value)) { + this.name = value; + this.changed(); + } + } + + /** + * Gets the content type of the attachment. + * + * @return the content type + */ + public String getContentType() { + return this.contentType; + } + + /** + * Sets the content type. + * + * @param value the new content type + */ + public void setContentType(String value) { + if (this.canSetFieldValue(this.contentType, value)) { + this.contentType = value; + this.changed(); + } + } + + /** + * Gets the content Id of the attachment. ContentId can be used as a + * custom way to identify an attachment in order to reference it from within + * the body of the item the attachment belongs to. + * + * @return the content id + */ + public String getContentId() { + return this.contentId; + } + + /** + * Sets the content id. + * + * @param value the new content id + */ + public void setContentId(String value) { + if (this.canSetFieldValue(this.contentId, value)) { + this.contentId = value; + this.changed(); + } + } + + /** + * Gets the content location of the attachment. ContentLocation can + * be used to associate an attachment with a Url defining its location on + * the Web. + * + * @return the content location + */ + public String getContentLocation() { + return this.contentLocation; + } + + /** + * Sets the content location. + * + * @param value the new content location + */ + public void setContentLocation(String value) { + if (this.canSetFieldValue(this.contentLocation, value)) { + this.contentLocation = value; + this.changed(); + } + } + + /** + * Gets the size of the attachment. + * + * @return the size + * @throws ServiceVersionException throws ServiceVersionException + */ + public int getSize() throws ServiceVersionException { + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "Size"); + return this.size; + } + + /** + * Gets the date and time when this attachment was last modified. + * + * @return the last modified time + * @throws ServiceVersionException the service version exception + */ + public Date getLastModifiedTime() throws ServiceVersionException { + + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "LastModifiedTime"); + + return this.lastModifiedTime; + + } + + /** + * Gets a value indicating whether this is an inline attachment. + * Inline attachments are not visible to end users. + * + * @return the checks if is inline + * @throws ServiceVersionException the service version exception + */ + public boolean getIsInline() throws ServiceVersionException { + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "IsInline"); + return this.isInline; + + } + + /** + * Sets the checks if is inline. + * + * @param value the new checks if is inline + * @throws ServiceVersionException the service version exception + */ + public void setIsInline(boolean value) throws ServiceVersionException { + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "IsInline"); + if (this.canSetFieldValue(this.isInline, value)) { + this.isInline = value; + this.changed(); + } + } + + /** + * True if the attachment has not yet been saved, false otherwise. + * + * @return true, if is new + */ + protected boolean isNew() { + return (this.getId() == null || this.getId().isEmpty()); + } + + /** + * Gets the owner of the attachment. + * + * @return the owner + */ + protected Item getOwner() { + return this.owner; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + abstract String getXmlElementName(); + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + + try { + if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.AttachmentId)) { + try { + this.id = reader.readAttributeValue(XmlAttributeNames.Id); + } catch (Exception e) { + e.printStackTrace(); + return false; + } + if (this.getOwner() != null) { + String rootItemChangeKey = reader + .readAttributeValue(XmlAttributeNames. + RootItemChangeKey); + if (null != rootItemChangeKey && + !rootItemChangeKey.isEmpty()) { + this.getOwner().getRootItemId().setChangeKey( + rootItemChangeKey); + } + } + reader.readEndElementIfNecessary(XmlNamespace.Types, + XmlElementNames.AttachmentId); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Name)) { + this.name = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ContentType)) { + this.contentType = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ContentId)) { + this.contentId = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ContentLocation)) { + this.contentLocation = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Size)) { + this.size = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.LastModifiedTime)) { + this.lastModifiedTime = reader.readElementValueAsDateTime(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsInline)) { + this.isInline = reader.readElementValue(Boolean.class); + return true; + } else { + return false; + } + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Name, this + .getName()); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ContentType, this.getContentType()); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.ContentId, + this.getContentId()); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ContentLocation, this.getContentLocation()); + if (writer.getService().getRequestedServerVersion().ordinal() > + ExchangeVersion.Exchange2007_SP1 + .ordinal()) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.IsInline, this.getIsInline()); + } + } + + /** + * Load the attachment. + * + * @param bodyType Type of the body. + * @param additionalProperties The additional properties. + * @throws Exception the exception + */ + protected void internalLoad(BodyType bodyType, + Iterable additionalProperties) + throws Exception { + this.getOwner().getService().getAttachment(this, bodyType, + additionalProperties); + } + + /** + * Validates this instance. + * + * @param attachmentIndex Index of this attachment. + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + abstract void validate(int attachmentIndex) throws Exception; + + /** + * Loads the attachment. Calling this method results in a call to EWS. + * + * @throws Exception the exception + */ + public void load() throws Exception { + this.internalLoad(null, null); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index 11f0208ff..a9d2b7009 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -17,461 +17,439 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Enumeration; /** - * * Represents an item's attachment collection. */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class AttachmentCollection extends - ComplexPropertyCollection implements IOwnedProperty { - - // The item owner that owns this attachment collection - /** The owner. */ - private Item owner; - - /** - * Initializes a new instance of AttachmentCollection. - */ - protected AttachmentCollection() { - super(); - } - - /** - * The owner of this attachment collection. - * - * @return the owner - */ - public ServiceObject getOwner() { - return this.owner; - } - - /** - * The owner of this attachment collection. - * - * @param value - * accepts ServiceObject - */ - public void setOwner(ServiceObject value) { - Item item = (Item)value; - EwsUtilities.EwsAssert(item != null, - "AttachmentCollection.IOwnedProperty.set_Owner", - "value is not a descendant of ItemBase"); - - this.owner = item; - } - - /** - * Adds a file attachment to the collection. - * - * @param fileName - * the file name - * @return A FileAttachment instance. - */ - public FileAttachment addFileAttachment(String fileName) { - return this.addFileAttachment(new File(fileName).getName(), fileName); - } - - /** - * Adds a file attachment to the collection. - * - * @param name - * accepts String display name of the new attachment. - * @param fileName - * accepts String name of the file representing the content of - * the attachment. - * @return A FileAttachment instance. - */ - public FileAttachment addFileAttachment(String name, String fileName) { - FileAttachment fileAttachment = new FileAttachment(this.owner); - fileAttachment.setName(name); - fileAttachment.setFileName(fileName); - - this.internalAdd(fileAttachment); - - return fileAttachment; - } - - /** - * Adds a file attachment to the collection. - * - * @param name - * accepts String display name of the new attachment. - * @param contentStream - * accepts InputStream stream from which to read the content of - * the attachment. - * @return A FileAttachment instance. - */ - public FileAttachment addFileAttachment(String name, - InputStream contentStream) { - FileAttachment fileAttachment = new FileAttachment(this.owner); - fileAttachment.setName(name); - fileAttachment.setContentStream(contentStream); - - this.internalAdd(fileAttachment); - - return fileAttachment; - } - - /** - * Adds a file attachment to the collection. - * - * @param name - * the name - * @param content - * accepts byte byte arrays representing the content of the - * attachment. - * @return FileAttachment - */ - public FileAttachment addFileAttachment(String name, byte[] content) { - FileAttachment fileAttachment = new FileAttachment(this.owner); - fileAttachment.setName(name); - fileAttachment.setContent(content); - - this.internalAdd(fileAttachment); - - return fileAttachment; - } - - /** - * Adds an item attachment to the collection. - * - * @param - * the generic type - * @param cls - * the cls - * @return An ItemAttachment instance. - * @throws Exception - * the exception - */ - public GenericItemAttachment addItemAttachment( - Class cls) throws Exception { - if (cls.getDeclaredFields().length == 0) { - throw new InvalidOperationException(String.format( - "Items of type %s are not supported as attachments.", cls - .getName())); - } - - GenericItemAttachment itemAttachment = - new GenericItemAttachment( - this.owner); - itemAttachment.setTItem((TItem)EwsUtilities.createItemFromItemClass( - itemAttachment, cls, true)); - - this.internalAdd(itemAttachment); - - return itemAttachment; - } - - /** - * Removes all attachments from this collection. - */ - public void clear() { - this.internalClear(); - } - - /** - * Removes the attachment at the specified index. - * - * @param index - * Index of the attachment to remove. - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("parameter \'index\' : " + - Strings.IndexIsOutOfRange); - } - - this.internalRemoveAt(index); - } - - /** - * Removes the specified attachment. - * - * @param attachment - * The attachment to remove. - * @return True if the attachment was successfully removed from the - * collection, false otherwise. - * @throws Exception - * the exception - */ - public boolean remove(Attachment attachment) throws Exception { - EwsUtilities.validateParam(attachment, "attachment"); - - return this.internalRemove(attachment); - } - - /** - * Instantiate the appropriate attachment type depending on the current XML - * element name. - * - * @param xmlElementName - * The XML element name from which to determine the type of - * attachment to create. - * @return An Attachment instance. - */ - @Override - protected Attachment createComplexProperty(String xmlElementName) { - if (xmlElementName.equals(XmlElementNames.FileAttachment)) { - return new FileAttachment(this.owner); - } else if (xmlElementName.equals(XmlElementNames.ItemAttachment)) { - return new ItemAttachment(this.owner); - } else { - return null; - } - } - - /** - * Determines the name of the XML element associated with the - * complexProperty parameter. - * - * @param complexProperty - * The attachment object for which to determine the XML element - * name with. - * @return The XML element name associated with the complexProperty - * parameter. - */ - @Override - protected String getCollectionItemXmlElementName(Attachment - complexProperty) { - if (complexProperty instanceof FileAttachment) { - return XmlElementNames.FileAttachment; - } else { - return XmlElementNames.ItemAttachment; - } - } - - /** - * Saves this collection by creating new attachment and deleting removed - * ones. - * - * @throws Exception - * the exception - */ - protected void save() throws Exception { - ArrayList attachments = - new ArrayList(); - - for (Attachment attachment : this.getRemovedItems()) { - if (!attachment.isNew()) { - attachments.add(attachment); - } - } - - // If any, delete them by calling the DeleteAttachment web method. - if (attachments.size() > 0) { - this.internalDeleteAttachments(attachments); - } - - attachments.clear(); - - // Retrieve a list of attachments that have to be created. - for (Attachment attachment : this) { - if (attachment.isNew()) { - attachments.add(attachment); - } - } - - // If there are any, create them by calling the CreateAttachment web - // method. - if (attachments.size() > 0) { - if (this.owner.isAttachment()) { - this.internalCreateAttachments(this.owner.getParentAttachment() - .getId(), attachments); - } else { - this.internalCreateAttachments( - this.owner.getId().getUniqueId(), attachments); - } - } - - - // Process all of the item attachments in this collection. - for (Attachment attachment : this) { - ItemAttachment itemAttachment = (ItemAttachment) - ((attachment instanceof - ItemAttachment) ? attachment : - null); - if (itemAttachment != null) { - // Bug E14:80864: Make sure item was created/loaded before - // trying to create/delete sub-attachments - if (itemAttachment.getItem() != null) { - // Create/delete any sub-attachments - itemAttachment.getItem().getAttachments().save(); - - // Clear the item's change log - itemAttachment.getItem().clearChangeLog(); - } - } - } - - super.clearChangeLog(); - } - - /** - * Determines whether there are any unsaved attachment collection changes. - * @return True if attachment adds or deletes haven't been processed yet. - * @throws ServiceLocalException - */ - protected boolean hasUnprocessedChanges() throws ServiceLocalException { - // Any new attachments? - for(Attachment attachment : this) { - if (attachment.isNew()) { - return true; - } + ComplexPropertyCollection implements IOwnedProperty { + + // The item owner that owns this attachment collection + /** + * The owner. + */ + private Item owner; + + /** + * Initializes a new instance of AttachmentCollection. + */ + protected AttachmentCollection() { + super(); + } + + /** + * The owner of this attachment collection. + * + * @return the owner + */ + public ServiceObject getOwner() { + return this.owner; + } + + /** + * The owner of this attachment collection. + * + * @param value accepts ServiceObject + */ + public void setOwner(ServiceObject value) { + Item item = (Item) value; + EwsUtilities.EwsAssert(item != null, + "AttachmentCollection.IOwnedProperty.set_Owner", + "value is not a descendant of ItemBase"); + + this.owner = item; + } + + /** + * Adds a file attachment to the collection. + * + * @param fileName the file name + * @return A FileAttachment instance. + */ + public FileAttachment addFileAttachment(String fileName) { + return this.addFileAttachment(new File(fileName).getName(), fileName); + } + + /** + * Adds a file attachment to the collection. + * + * @param name accepts String display name of the new attachment. + * @param fileName accepts String name of the file representing the content of + * the attachment. + * @return A FileAttachment instance. + */ + public FileAttachment addFileAttachment(String name, String fileName) { + FileAttachment fileAttachment = new FileAttachment(this.owner); + fileAttachment.setName(name); + fileAttachment.setFileName(fileName); + + this.internalAdd(fileAttachment); + + return fileAttachment; + } + + /** + * Adds a file attachment to the collection. + * + * @param name accepts String display name of the new attachment. + * @param contentStream accepts InputStream stream from which to read the content of + * the attachment. + * @return A FileAttachment instance. + */ + public FileAttachment addFileAttachment(String name, + InputStream contentStream) { + FileAttachment fileAttachment = new FileAttachment(this.owner); + fileAttachment.setName(name); + fileAttachment.setContentStream(contentStream); + + this.internalAdd(fileAttachment); + + return fileAttachment; + } + + /** + * Adds a file attachment to the collection. + * + * @param name the name + * @param content accepts byte byte arrays representing the content of the + * attachment. + * @return FileAttachment + */ + public FileAttachment addFileAttachment(String name, byte[] content) { + FileAttachment fileAttachment = new FileAttachment(this.owner); + fileAttachment.setName(name); + fileAttachment.setContent(content); + + this.internalAdd(fileAttachment); + + return fileAttachment; + } + + /** + * Adds an item attachment to the collection. + * + * @param the generic type + * @param cls the cls + * @return An ItemAttachment instance. + * @throws Exception the exception + */ + public GenericItemAttachment addItemAttachment( + Class cls) throws Exception { + if (cls.getDeclaredFields().length == 0) { + throw new InvalidOperationException(String.format( + "Items of type %s are not supported as attachments.", cls + .getName())); + } + + GenericItemAttachment itemAttachment = + new GenericItemAttachment( + this.owner); + itemAttachment.setTItem((TItem) EwsUtilities.createItemFromItemClass( + itemAttachment, cls, true)); + + this.internalAdd(itemAttachment); + + return itemAttachment; + } + + /** + * Removes all attachments from this collection. + */ + public void clear() { + this.internalClear(); + } + + /** + * Removes the attachment at the specified index. + * + * @param index Index of the attachment to remove. + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("parameter \'index\' : " + + Strings.IndexIsOutOfRange); + } + + this.internalRemoveAt(index); + } + + /** + * Removes the specified attachment. + * + * @param attachment The attachment to remove. + * @return True if the attachment was successfully removed from the + * collection, false otherwise. + * @throws Exception the exception + */ + public boolean remove(Attachment attachment) throws Exception { + EwsUtilities.validateParam(attachment, "attachment"); + + return this.internalRemove(attachment); + } + + /** + * Instantiate the appropriate attachment type depending on the current XML + * element name. + * + * @param xmlElementName The XML element name from which to determine the type of + * attachment to create. + * @return An Attachment instance. + */ + @Override + protected Attachment createComplexProperty(String xmlElementName) { + if (xmlElementName.equals(XmlElementNames.FileAttachment)) { + return new FileAttachment(this.owner); + } else if (xmlElementName.equals(XmlElementNames.ItemAttachment)) { + return new ItemAttachment(this.owner); + } else { + return null; + } + } + + /** + * Determines the name of the XML element associated with the + * complexProperty parameter. + * + * @param complexProperty The attachment object for which to determine the XML element + * name with. + * @return The XML element name associated with the complexProperty + * parameter. + */ + @Override + protected String getCollectionItemXmlElementName(Attachment + complexProperty) { + if (complexProperty instanceof FileAttachment) { + return XmlElementNames.FileAttachment; + } else { + return XmlElementNames.ItemAttachment; + } + } + + /** + * Saves this collection by creating new attachment and deleting removed + * ones. + * + * @throws Exception the exception + */ + protected void save() throws Exception { + ArrayList attachments = + new ArrayList(); + + for (Attachment attachment : this.getRemovedItems()) { + if (!attachment.isNew()) { + attachments.add(attachment); + } + } + + // If any, delete them by calling the DeleteAttachment web method. + if (attachments.size() > 0) { + this.internalDeleteAttachments(attachments); + } + + attachments.clear(); + + // Retrieve a list of attachments that have to be created. + for (Attachment attachment : this) { + if (attachment.isNew()) { + attachments.add(attachment); + } + } + + // If there are any, create them by calling the CreateAttachment web + // method. + if (attachments.size() > 0) { + if (this.owner.isAttachment()) { + this.internalCreateAttachments(this.owner.getParentAttachment() + .getId(), attachments); + } else { + this.internalCreateAttachments( + this.owner.getId().getUniqueId(), attachments); + } + } + + + // Process all of the item attachments in this collection. + for (Attachment attachment : this) { + ItemAttachment itemAttachment = (ItemAttachment) + ((attachment instanceof + ItemAttachment) ? attachment : + null); + if (itemAttachment != null) { + // Bug E14:80864: Make sure item was created/loaded before + // trying to create/delete sub-attachments + if (itemAttachment.getItem() != null) { + // Create/delete any sub-attachments + itemAttachment.getItem().getAttachments().save(); + + // Clear the item's change log + itemAttachment.getItem().clearChangeLog(); } + } + } - // Any pending deletions? - for(Attachment attachment : this.getRemovedItems()) { - if (!attachment.isNew()) { - return true; - } + super.clearChangeLog(); + } + + /** + * Determines whether there are any unsaved attachment collection changes. + * + * @return True if attachment adds or deletes haven't been processed yet. + * @throws ServiceLocalException + */ + protected boolean hasUnprocessedChanges() throws ServiceLocalException { + // Any new attachments? + for (Attachment attachment : this) { + if (attachment.isNew()) { + return true; + } + } + + // Any pending deletions? + for (Attachment attachment : this.getRemovedItems()) { + if (!attachment.isNew()) { + return true; + } + } + + + Collection itemAttachments = + new ArrayList(); + for (Object event : this.getItems()) { + if (event instanceof ItemAttachment) { + itemAttachments.add((ItemAttachment) event); + } + } + + // Recurse: process item attachments to check + // for new or deleted sub-attachments. + for (ItemAttachment itemAttachment : itemAttachments) { + if (itemAttachment.getItem() != null) { + if (itemAttachment.getItem().getAttachments().hasUnprocessedChanges()) { + return true; } - - - Collection itemAttachments = - new ArrayList(); - for (Object event : this.getItems()) { - if (event instanceof ItemAttachment) { - itemAttachments.add((ItemAttachment)event); - } - } - - // Recurse: process item attachments to check - // for new or deleted sub-attachments. - for(ItemAttachment itemAttachment : itemAttachments) { - if (itemAttachment.getItem() != null) { - if (itemAttachment.getItem().getAttachments().hasUnprocessedChanges()) - { - return true; - } + } + } + + return false; + } + + /** + * Disables the change log clearing mechanism. Attachment collections are + * saved separately from the items they belong to. + */ + @Override + protected void clearChangeLog() { + // Do nothing + } + + /** + * Validates this instance. + * + * @throws Exception the exception + */ + public void validate() throws Exception { + // Validate all added attachments + boolean contactPhotoFound = false; + for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems() + .size(); attachmentIndex++) { + Attachment attachment = this.getAddedItems().get(attachmentIndex); + if (attachment.isNew()) { + + // At the server side, only the last attachment with + // IsContactPhoto is kept, all other IsContactPhoto + // attachments are removed. CreateAttachment will generate + // AttachmentId for each of such attachments (although + // only the last one is valid). + // + // With E14 SP2 CreateItemWithAttachment, such request will only + // return 1 AttachmentId; but the client + // expects to see all, so let us prevent such "invalid" request + // in the first place. + // + // The IsNew check is to still let CreateAttachmentRequest allow + // multiple IsContactPhoto attachments. + // + if (this.owner.isNew() + && this.owner.getService().getRequestedServerVersion() + .ordinal() >= ExchangeVersion.Exchange2010_SP2 + .ordinal()) { + FileAttachment fileAttachment = (FileAttachment) attachment; + + if (fileAttachment.isContactPhoto()) { + if (contactPhotoFound) { + throw new ServiceValidationException( + Strings.MultipleContactPhotosInAttachment); } + + contactPhotoFound = true; + } } - return false; + attachment.validate(attachmentIndex); + } + } + } + + + /** + * Calls the DeleteAttachment web method to delete a list of attachments. + * + * @param attachments the attachments + * @throws Exception the exception + */ + private void internalDeleteAttachments(Iterable attachments) + throws Exception { + ServiceResponseCollection responses = + this.owner + .getService().deleteAttachments(attachments); + Enumeration enumerator = responses + .getEnumerator(); + while (enumerator.hasMoreElements()) { + DeleteAttachmentResponse response = enumerator.nextElement(); + // We remove all attachments that were successfully deleted from the + // change log. We should never + // receive a warning from EWS, so we ignore them. + if (response.getResult() != ServiceResult.Error) { + this.removeFromChangeLog(response.getAttachment()); + } + } + + // TODO : Should we throw for warnings as well? + if (responses.getOverallResult() == ServiceResult.Error) { + throw new DeleteAttachmentException(responses, + Strings.AtLeastOneAttachmentCouldNotBeDeleted); + } + } + + /** + * Calls the CreateAttachment web method to create a list of attachments. + * + * @param parentItemId the parent item id + * @param attachments the attachments + * @throws Exception the exception + */ + private void internalCreateAttachments(String parentItemId, + Iterable attachments) throws Exception { + ServiceResponseCollection responses = + this.owner + .getService().createAttachments(parentItemId, attachments); + + Enumeration enumerator = responses + .getEnumerator(); + while (enumerator.hasMoreElements()) { + CreateAttachmentResponse response = enumerator.nextElement(); + // We remove all attachments that were successfully created from the + // change log. We should never + // receive a warning from EWS, so we ignore them. + if (response.getResult() != ServiceResult.Error) { + this.removeFromChangeLog(response.getAttachment()); + } + } + + // TODO : Should we throw for warnings as well? + if (responses.getOverallResult() == ServiceResult.Error) { + throw new CreateAttachmentException(responses, + Strings.AttachmentCreationFailed); } - - /** - * Disables the change log clearing mechanism. Attachment collections are - * saved separately from the items they belong to. - */ - @Override - protected void clearChangeLog() { - // Do nothing - } - - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - public void validate() throws Exception { - // Validate all added attachments - boolean contactPhotoFound = false; - for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems() - .size(); attachmentIndex++) { - Attachment attachment = this.getAddedItems().get(attachmentIndex); - if (attachment.isNew()) { - - // At the server side, only the last attachment with - // IsContactPhoto is kept, all other IsContactPhoto - // attachments are removed. CreateAttachment will generate - // AttachmentId for each of such attachments (although - // only the last one is valid). - // - // With E14 SP2 CreateItemWithAttachment, such request will only - // return 1 AttachmentId; but the client - // expects to see all, so let us prevent such "invalid" request - // in the first place. - // - // The IsNew check is to still let CreateAttachmentRequest allow - // multiple IsContactPhoto attachments. - // - if (this.owner.isNew() - && this.owner.getService().getRequestedServerVersion() - .ordinal() >= ExchangeVersion.Exchange2010_SP2 - .ordinal()) { - FileAttachment fileAttachment = (FileAttachment) attachment; - - if (fileAttachment.isContactPhoto()) { - if (contactPhotoFound) { - throw new ServiceValidationException( - Strings.MultipleContactPhotosInAttachment); - } - - contactPhotoFound = true; - } - } - - attachment.validate(attachmentIndex); - } - } - } - - - /** - * Calls the DeleteAttachment web method to delete a list of attachments. - * - * @param attachments - * the attachments - * @throws Exception - * the exception - */ - private void internalDeleteAttachments(Iterable attachments) - throws Exception { - ServiceResponseCollection responses = - this.owner - .getService().deleteAttachments(attachments); - Enumeration enumerator = responses - .getEnumerator(); - while (enumerator.hasMoreElements()) { - DeleteAttachmentResponse response = enumerator.nextElement(); - // We remove all attachments that were successfully deleted from the - // change log. We should never - // receive a warning from EWS, so we ignore them. - if (response.getResult() != ServiceResult.Error) { - this.removeFromChangeLog(response.getAttachment()); - } - } - - // TODO : Should we throw for warnings as well? - if (responses.getOverallResult() == ServiceResult.Error) { - throw new DeleteAttachmentException(responses, - Strings.AtLeastOneAttachmentCouldNotBeDeleted); - } - } - - /** - * Calls the CreateAttachment web method to create a list of attachments. - * - * @param parentItemId - * the parent item id - * @param attachments - * the attachments - * @throws Exception - * the exception - */ - private void internalCreateAttachments(String parentItemId, - Iterable attachments) throws Exception { - ServiceResponseCollection responses = - this.owner - .getService().createAttachments(parentItemId, attachments); - - Enumeration enumerator = responses - .getEnumerator(); - while (enumerator.hasMoreElements()) { - CreateAttachmentResponse response = enumerator.nextElement(); - // We remove all attachments that were successfully created from the - // change log. We should never - // receive a warning from EWS, so we ignore them. - if (response.getResult() != ServiceResult.Error) { - this.removeFromChangeLog(response.getAttachment()); - } - } - - // TODO : Should we throw for warnings as well? - if (responses.getOverallResult() == ServiceResult.Error) { - throw new CreateAttachmentException(responses, - Strings.AttachmentCreationFailed); - } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java index a861a95ac..e2ecb1132 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java @@ -14,54 +14,50 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents base Attachments property type. - * */ public final class AttachmentsPropertyDefinition extends - ComplexPropertyDefinition { - - private static final EnumSet Exchange2010SP2PropertyDefinitionFlags = EnumSet - .of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.ReuseInstance, - PropertyDefinitionFlags.UpdateCollectionItems); - - public AttachmentsPropertyDefinition() { - super(null,XmlElementNames.Attachments, "item:Attachments", - EnumSet - .of(PropertyDefinitionFlags.AutoInstantiateOnRead), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public AttachmentCollection createComplexProperty() { - return new AttachmentCollection(); - } - }); - - } - - /** - * Determines whether the specified flag is set. - * - * @param flag - * The flag. - * @param version - * Requested version. - * @return true/false if the specified flag is set,otherwise false. - * - */ - @Override - protected boolean hasFlag(PropertyDefinitionFlags flag, - ExchangeVersion version) { - if (version != null - && this.getVersion() - .compareTo(ExchangeVersion.Exchange2010_SP2) >= 0) { - if (AttachmentsPropertyDefinition.Exchange2010SP2PropertyDefinitionFlags - .contains(flag)) { - return true; - } else { - return false; - } - } - return super.hasFlag(flag, version); - } + ComplexPropertyDefinition { + + private static final EnumSet Exchange2010SP2PropertyDefinitionFlags = EnumSet + .of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.ReuseInstance, + PropertyDefinitionFlags.UpdateCollectionItems); + + public AttachmentsPropertyDefinition() { + super(null, XmlElementNames.Attachments, "item:Attachments", + EnumSet + .of(PropertyDefinitionFlags.AutoInstantiateOnRead), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public AttachmentCollection createComplexProperty() { + return new AttachmentCollection(); + } + }); + + } + + /** + * Determines whether the specified flag is set. + * + * @param flag The flag. + * @param version Requested version. + * @return true/false if the specified flag is set,otherwise false. + */ + @Override + protected boolean hasFlag(PropertyDefinitionFlags flag, + ExchangeVersion version) { + if (version != null + && this.getVersion() + .compareTo(ExchangeVersion.Exchange2010_SP2) >= 0) { + if (AttachmentsPropertyDefinition.Exchange2010SP2PropertyDefinitionFlags + .contains(flag)) { + return true; + } else { + return false; + } + } + return super.hasFlag(flag, version); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Attendee.java b/src/main/java/microsoft/exchange/webservices/data/Attendee.java index bfba47aca..f1299c4cb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attendee.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attendee.java @@ -14,135 +14,124 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an attendee to a meeting. - * - * */ public final class Attendee extends EmailAddress { - /** The response type. */ - private MeetingResponseType responseType; + /** + * The response type. + */ + private MeetingResponseType responseType; - /** The last response time. */ - private Date lastResponseTime; + /** + * The last response time. + */ + private Date lastResponseTime; - /** - * Initializes a new instance of the Attendee class. - */ - public Attendee() { - super(); - } + /** + * Initializes a new instance of the Attendee class. + */ + public Attendee() { + super(); + } - /** - * Initializes a new instance of the Attendee class. - * - * @param smtpAddress - * the smtp address - * @throws Exception - * the exception - */ - public Attendee(String smtpAddress) throws Exception { - super(smtpAddress); - EwsUtilities.validateParam(smtpAddress, "smtpAddress"); - } + /** + * Initializes a new instance of the Attendee class. + * + * @param smtpAddress the smtp address + * @throws Exception the exception + */ + public Attendee(String smtpAddress) throws Exception { + super(smtpAddress); + EwsUtilities.validateParam(smtpAddress, "smtpAddress"); + } - /** - * Initializes a new instance of the Attendee class. - * - * @param name - * the name - * @param smtpAddress - * the smtp address - */ - public Attendee(String name, String smtpAddress) { - super(name, smtpAddress); - } + /** + * Initializes a new instance of the Attendee class. + * + * @param name the name + * @param smtpAddress the smtp address + */ + public Attendee(String name, String smtpAddress) { + super(name, smtpAddress); + } - /** - * Initializes a new instance of the Attendee class. - * - * @param name - * the name - * @param smtpAddress - * the smtp address - * @param routingType - * the routing type - */ - public Attendee(String name, String smtpAddress, String routingType) { - super(name, smtpAddress, routingType); - } + /** + * Initializes a new instance of the Attendee class. + * + * @param name the name + * @param smtpAddress the smtp address + * @param routingType the routing type + */ + public Attendee(String name, String smtpAddress, String routingType) { + super(name, smtpAddress, routingType); + } - /** - * Initializes a new instance of the Attendee class. - * - * @param mailbox - * the mailbox - * @throws Exception - * the exception - */ - public Attendee(EmailAddress mailbox) throws Exception { - super(mailbox); - } + /** + * Initializes a new instance of the Attendee class. + * + * @param mailbox the mailbox + * @throws Exception the exception + */ + public Attendee(EmailAddress mailbox) throws Exception { + super(mailbox); + } - /** - * Gets the type of response the attendee gave to the meeting invitation - * it received. - * - * @return the response type - */ - public MeetingResponseType getResponseType() { - return responseType; - } + /** + * Gets the type of response the attendee gave to the meeting invitation + * it received. + * + * @return the response type + */ + public MeetingResponseType getResponseType() { + return responseType; + } - /** - * Gets the last response time. - * - * @return the last response time - */ - public Date getLastResponseTime() { - return lastResponseTime; - } + /** + * Gets the last response time. + * + * @return the last response time + */ + public Date getLastResponseTime() { + return lastResponseTime; + } - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Mailbox)) { - this.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ResponseType)) { - this.responseType = reader - .readElementValue(MeetingResponseType.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.LastResponseTime)) { - this.lastResponseTime = reader.readElementValueAsDateTime(); - return true; - } else { - return super.tryReadElementFromXml(reader); - } - } + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Mailbox)) { + this.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ResponseType)) { + this.responseType = reader + .readElementValue(MeetingResponseType.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.LastResponseTime)) { + this.lastResponseTime = reader.readElementValueAsDateTime(); + return true; + } else { + return super.tryReadElementFromXml(reader); + } + } - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(this.getNamespace(), XmlElementNames.Mailbox); - super.writeElementsToXml(writer); - writer.writeEndElement(); - } + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(this.getNamespace(), XmlElementNames.Mailbox); + super.writeElementsToXml(writer); + writer.writeEndElement(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java index 9ea944f86..f673e405d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java @@ -14,139 +14,144 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Collection; /** - *Represents the availability of an individual attendee. + * Represents the availability of an individual attendee. */ public final class AttendeeAvailability extends ServiceResponse { - /** The calendar events. */ - private Collection calendarEvents = - new ArrayList(); - - /** The merged free busy status. */ - private Collection mergedFreeBusyStatus = - new ArrayList(); - - /** The view type. */ - private FreeBusyViewType viewType; - - /** The working hours. */ - private WorkingHours workingHours; - - /** - * Initializes a new instance of the AttendeeAvailability class. - */ - protected AttendeeAvailability() { - super(); - } - - /** - * Loads the free busy view from XML. - * - * @param reader - * the reader - * @param viewType - * the view type - * @throws Exception - * the exception - */ - protected void loadFreeBusyViewFromXml(EwsServiceXmlReader reader, - FreeBusyViewType viewType) throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.FreeBusyView); - - String viewTypeString = reader.readElementValue(XmlNamespace.Types, - XmlElementNames.FreeBusyViewType); - - for (Object o : FreeBusyViewType.class.getEnumConstants()) { - if (o.toString().equals(viewTypeString)) { - this.viewType = (FreeBusyViewType)o; - break; - } - } - do { - reader.read(); - - if (reader.isStartElement()) { - if (reader.getLocalName() - .equals(XmlElementNames.MergedFreeBusy)) { - String mergedFreeBusy = reader.readElementValue(); - - for (int i = 0; i < mergedFreeBusy.length(); i++) { - - Byte b = Byte.parseByte(mergedFreeBusy.charAt(i)+""); - for (LegacyFreeBusyStatus legacyStatus : LegacyFreeBusyStatus.values()) { - if(b == legacyStatus.getBusyStatus()) { - this.mergedFreeBusyStatus.add(legacyStatus); - break; - } - } - - } - - } else if (reader.getLocalName().equals( - XmlElementNames.CalendarEventArray)) { - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.CalendarEvent)) { - CalendarEvent calendarEvent = new CalendarEvent(); - - calendarEvent.loadFromXml(reader, - XmlElementNames.CalendarEvent); - - this.calendarEvents.add(calendarEvent); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.CalendarEventArray)); - - } else if (reader.getLocalName().equals( - XmlElementNames.WorkingHours)) { - this.workingHours = new WorkingHours(); - this.workingHours - .loadFromXml(reader, reader.getLocalName()); - - break; - } - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.FreeBusyView)); - } - - /** - * Gets a collection of calendar events for the attendee. - * - * @return the calendar events - */ - public Collection getCalendarEvents() { - return this.calendarEvents; - } - - /** - * Gets a collection of merged free/busy status for the attendee. - * - * @return the merged free busy status - */ - public Collection getMergedFreeBusyStatus() { - return mergedFreeBusyStatus; - } - - /** - * Gets the free/busy view type that wes retrieved for the attendee. - * - * @return the view type - */ - public FreeBusyViewType getViewType() { - return viewType; - } - - /** - * Gets the working hours of the attendee. - * - * @return the working hours - */ - public WorkingHours getWorkingHours() { - return workingHours; - } + /** + * The calendar events. + */ + private Collection calendarEvents = + new ArrayList(); + + /** + * The merged free busy status. + */ + private Collection mergedFreeBusyStatus = + new ArrayList(); + + /** + * The view type. + */ + private FreeBusyViewType viewType; + + /** + * The working hours. + */ + private WorkingHours workingHours; + + /** + * Initializes a new instance of the AttendeeAvailability class. + */ + protected AttendeeAvailability() { + super(); + } + + /** + * Loads the free busy view from XML. + * + * @param reader the reader + * @param viewType the view type + * @throws Exception the exception + */ + protected void loadFreeBusyViewFromXml(EwsServiceXmlReader reader, + FreeBusyViewType viewType) throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.FreeBusyView); + + String viewTypeString = reader.readElementValue(XmlNamespace.Types, + XmlElementNames.FreeBusyViewType); + + for (Object o : FreeBusyViewType.class.getEnumConstants()) { + if (o.toString().equals(viewTypeString)) { + this.viewType = (FreeBusyViewType) o; + break; + } + } + do { + reader.read(); + + if (reader.isStartElement()) { + if (reader.getLocalName() + .equals(XmlElementNames.MergedFreeBusy)) { + String mergedFreeBusy = reader.readElementValue(); + + for (int i = 0; i < mergedFreeBusy.length(); i++) { + + Byte b = Byte.parseByte(mergedFreeBusy.charAt(i) + ""); + for (LegacyFreeBusyStatus legacyStatus : LegacyFreeBusyStatus.values()) { + if (b == legacyStatus.getBusyStatus()) { + this.mergedFreeBusyStatus.add(legacyStatus); + break; + } + } + + } + + } else if (reader.getLocalName().equals( + XmlElementNames.CalendarEventArray)) { + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.CalendarEvent)) { + CalendarEvent calendarEvent = new CalendarEvent(); + + calendarEvent.loadFromXml(reader, + XmlElementNames.CalendarEvent); + + this.calendarEvents.add(calendarEvent); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.CalendarEventArray)); + + } else if (reader.getLocalName().equals( + XmlElementNames.WorkingHours)) { + this.workingHours = new WorkingHours(); + this.workingHours + .loadFromXml(reader, reader.getLocalName()); + + break; + } + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.FreeBusyView)); + } + + /** + * Gets a collection of calendar events for the attendee. + * + * @return the calendar events + */ + public Collection getCalendarEvents() { + return this.calendarEvents; + } + + /** + * Gets a collection of merged free/busy status for the attendee. + * + * @return the merged free busy status + */ + public Collection getMergedFreeBusyStatus() { + return mergedFreeBusyStatus; + } + + /** + * Gets the free/busy view type that wes retrieved for the attendee. + * + * @return the view type + */ + public FreeBusyViewType getViewType() { + return viewType; + } + + /** + * Gets the working hours of the attendee. + * + * @return the working hours + */ + public WorkingHours getWorkingHours() { + return workingHours; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java index 3daccc22d..18812712f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java @@ -11,130 +11,119 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * * Represents a collection of attendees. */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class AttendeeCollection extends - ComplexPropertyCollection { - - /** - * Initializes a new instance of the AttendeeCollection class. - */ - protected AttendeeCollection() { - super(); - } - - /** - * Adds an attendee to the collection. - * - * @param attendee - * the attendee - */ - public void add(Attendee attendee) { - this.internalAdd(attendee); - } - - /** - * Adds an attendee to the collection. - * - * @param smtpAddress - * the smtp address - * @return An Attendee instance initialized with the provided SMTP address. - * @throws Exception - * the exception - */ - public Attendee add(String smtpAddress) throws Exception { - Attendee result = new Attendee(smtpAddress); - - this.internalAdd(result); - - return result; - } - - /** - * Adds an attendee to the collection. - * - * @param name - * the name - * @param smtpAddress - * the smtp address - * @return An Attendee instance initialized with the provided name and SMTP - * address. - */ - public Attendee add(String name, String smtpAddress) { - Attendee result = new Attendee(name, smtpAddress); - - this.internalAdd(result); - - return result; - } - - /** - * Clears the collection. - */ - public void clear() { - this.internalClear(); - } - - /** - * Removes an attendee from the collection. - * - * @param index - * the index - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("parameter \'index\' : " + - Strings.IndexIsOutOfRange); - } - - this.internalRemoveAt(index); - } - - /** - * Removes an attendee from the collection. - * - * @param attendee - * the attendee - * @return True if the attendee was successfully removed from the - * collection, false otherwise. - * @throws Exception - * the exception - */ - public boolean remove(Attendee attendee) throws Exception { - EwsUtilities.validateParam(attendee, "attendee"); - - return this.internalRemove(attendee); - } - - /** - * Creates an Attendee object from an XML element name. - * - * @param xmlElementName - * the xml element name - * @return An Attendee object. - */ - @Override - protected Attendee createComplexProperty(String xmlElementName) { - if (xmlElementName.equalsIgnoreCase(XmlElementNames.Attendee)) { - return new Attendee(); - } else { - return null; - } - } - - /** - * Retrieves the XML element name corresponding to the provided Attendee - * object. - * - * @param attendee - * the attendee - * @return The XML element name corresponding to the provided Attendee - * object. - */ - @Override - protected String getCollectionItemXmlElementName(Attendee attendee) { - return XmlElementNames.Attendee; - } + ComplexPropertyCollection { + + /** + * Initializes a new instance of the AttendeeCollection class. + */ + protected AttendeeCollection() { + super(); + } + + /** + * Adds an attendee to the collection. + * + * @param attendee the attendee + */ + public void add(Attendee attendee) { + this.internalAdd(attendee); + } + + /** + * Adds an attendee to the collection. + * + * @param smtpAddress the smtp address + * @return An Attendee instance initialized with the provided SMTP address. + * @throws Exception the exception + */ + public Attendee add(String smtpAddress) throws Exception { + Attendee result = new Attendee(smtpAddress); + + this.internalAdd(result); + + return result; + } + + /** + * Adds an attendee to the collection. + * + * @param name the name + * @param smtpAddress the smtp address + * @return An Attendee instance initialized with the provided name and SMTP + * address. + */ + public Attendee add(String name, String smtpAddress) { + Attendee result = new Attendee(name, smtpAddress); + + this.internalAdd(result); + + return result; + } + + /** + * Clears the collection. + */ + public void clear() { + this.internalClear(); + } + + /** + * Removes an attendee from the collection. + * + * @param index the index + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("parameter \'index\' : " + + Strings.IndexIsOutOfRange); + } + + this.internalRemoveAt(index); + } + + /** + * Removes an attendee from the collection. + * + * @param attendee the attendee + * @return True if the attendee was successfully removed from the + * collection, false otherwise. + * @throws Exception the exception + */ + public boolean remove(Attendee attendee) throws Exception { + EwsUtilities.validateParam(attendee, "attendee"); + + return this.internalRemove(attendee); + } + + /** + * Creates an Attendee object from an XML element name. + * + * @param xmlElementName the xml element name + * @return An Attendee object. + */ + @Override + protected Attendee createComplexProperty(String xmlElementName) { + if (xmlElementName.equalsIgnoreCase(XmlElementNames.Attendee)) { + return new Attendee(); + } else { + return null; + } + } + + /** + * Retrieves the XML element name corresponding to the provided Attendee + * object. + * + * @param attendee the attendee + * @return The XML element name corresponding to the provided Attendee + * object. + */ + @Override + protected String getCollectionItemXmlElementName(Attendee attendee) { + return XmlElementNames.Attendee; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java index d315fb1bb..ae57c1b9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java @@ -16,153 +16,148 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class AttendeeInfo implements ISelfValidate { - /** The smtp address. */ - private String smtpAddress; - - /** The attendee type. */ - private MeetingAttendeeType attendeeType = MeetingAttendeeType.Required; - - /** The exclude conflicts. */ - private boolean excludeConflicts; - - /** - * Initializes a new instance of the AttendeeInfo class. - */ - public AttendeeInfo() { - } - - /** - * Initializes a new instance of the AttendeeInfo class. - * - * @param smtpAddress - * the smtp address - * @param attendeeType - * the attendee type - * @param excludeConflicts - * the exclude conflicts - */ - public AttendeeInfo(String smtpAddress, MeetingAttendeeType attendeeType, - boolean excludeConflicts) { - this(); - this.smtpAddress = smtpAddress; - this.attendeeType = attendeeType; - this.excludeConflicts = excludeConflicts; - } - - /** - * Initializes a new instance of the AttendeeInfo class. - * - * @param smtpAddress - * the smtp address - */ - public AttendeeInfo(String smtpAddress) { - this(smtpAddress, MeetingAttendeeType.Required, false); - this.smtpAddress = smtpAddress; - } - - /** - * Defines an implicit conversion between a string representing an SMTP - * address and AttendeeInfo. - * - * @param smtpAddress - * the smtp address - * @return An AttendeeInfo initialized with the specified SMTP address. - */ - public static AttendeeInfo getAttendeeInfoFromString(String smtpAddress) { - return new AttendeeInfo(smtpAddress); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.MailboxData); - - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Email); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, - this.smtpAddress); - writer.writeEndElement(); // Email - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.AttendeeType, this.attendeeType); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ExcludeConflicts, this.excludeConflicts); - - writer.writeEndElement(); // MailboxData - } - - /** - * Gets the SMTP address of this attendee. - * - * @return the smtp address - */ - public String getSmtpAddress() { - return smtpAddress; - } - - /** - * Sets the smtp address. - * - * @param smtpAddress - * the new smtp address - */ - public void setSmtpAddress(String smtpAddress) { - this.smtpAddress = smtpAddress; - } - - /** - * Gets the type of this attendee. - * - * @return the attendee type - */ - public MeetingAttendeeType getAttendeeType() { - return attendeeType; - } - - /** - * Sets the attendee type. - * - * @param attendeeType - * the new attendee type - */ - public void setAttendeeType(MeetingAttendeeType attendeeType) { - this.attendeeType = attendeeType; - } - - /** - * Gets a value indicating whether times when this attendee is not - * available should be returned. - * - * @return true, if is exclude conflicts - */ - public boolean isExcludeConflicts() { - return excludeConflicts; - } - - /** - * Sets the exclude conflicts. - * - * @param excludeConflicts - * the new exclude conflicts - */ - public void setExcludeConflicts(boolean excludeConflicts) { - this.excludeConflicts = excludeConflicts; - } - - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - public void validate() throws Exception { - EwsUtilities.validateParam(this.smtpAddress, "SmtpAddress"); - } + /** + * The smtp address. + */ + private String smtpAddress; + + /** + * The attendee type. + */ + private MeetingAttendeeType attendeeType = MeetingAttendeeType.Required; + + /** + * The exclude conflicts. + */ + private boolean excludeConflicts; + + /** + * Initializes a new instance of the AttendeeInfo class. + */ + public AttendeeInfo() { + } + + /** + * Initializes a new instance of the AttendeeInfo class. + * + * @param smtpAddress the smtp address + * @param attendeeType the attendee type + * @param excludeConflicts the exclude conflicts + */ + public AttendeeInfo(String smtpAddress, MeetingAttendeeType attendeeType, + boolean excludeConflicts) { + this(); + this.smtpAddress = smtpAddress; + this.attendeeType = attendeeType; + this.excludeConflicts = excludeConflicts; + } + + /** + * Initializes a new instance of the AttendeeInfo class. + * + * @param smtpAddress the smtp address + */ + public AttendeeInfo(String smtpAddress) { + this(smtpAddress, MeetingAttendeeType.Required, false); + this.smtpAddress = smtpAddress; + } + + /** + * Defines an implicit conversion between a string representing an SMTP + * address and AttendeeInfo. + * + * @param smtpAddress the smtp address + * @return An AttendeeInfo initialized with the specified SMTP address. + */ + public static AttendeeInfo getAttendeeInfoFromString(String smtpAddress) { + return new AttendeeInfo(smtpAddress); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.MailboxData); + + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Email); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, + this.smtpAddress); + writer.writeEndElement(); // Email + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.AttendeeType, this.attendeeType); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ExcludeConflicts, this.excludeConflicts); + + writer.writeEndElement(); // MailboxData + } + + /** + * Gets the SMTP address of this attendee. + * + * @return the smtp address + */ + public String getSmtpAddress() { + return smtpAddress; + } + + /** + * Sets the smtp address. + * + * @param smtpAddress the new smtp address + */ + public void setSmtpAddress(String smtpAddress) { + this.smtpAddress = smtpAddress; + } + + /** + * Gets the type of this attendee. + * + * @return the attendee type + */ + public MeetingAttendeeType getAttendeeType() { + return attendeeType; + } + + /** + * Sets the attendee type. + * + * @param attendeeType the new attendee type + */ + public void setAttendeeType(MeetingAttendeeType attendeeType) { + this.attendeeType = attendeeType; + } + + /** + * Gets a value indicating whether times when this attendee is not + * available should be returned. + * + * @return true, if is exclude conflicts + */ + public boolean isExcludeConflicts() { + return excludeConflicts; + } + + /** + * Sets the exclude conflicts. + * + * @param excludeConflicts the new exclude conflicts + */ + public void setExcludeConflicts(boolean excludeConflicts) { + this.excludeConflicts = excludeConflicts; + } + + /** + * Validates this instance. + * + * @throws Exception the exception + */ + public void validate() throws Exception { + EwsUtilities.validateParam(this.smtpAddress, "SmtpAddress"); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index 0644b2700..96a786c0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -10,180 +10,172 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Random; -import javax.xml.stream.XMLStreamException; - /** * Class that reads AutoDiscover configuration information from DNS. */ class AutodiscoverDnsClient { - /** - * SRV DNS prefix to lookup. - */ - private static final String AutoDiscoverSrvPrefix = "_autodiscover._tcp."; - - /** - * We are only interested in records that use SSL. - */ - private static final int SslPort = 443; - - /** - * Random selector in the case of ties. - */ - private static Random RandomTieBreakerSelector = new Random(); - - /** - * AutodiscoverService using this DNS reader. - */ - private AutodiscoverService service; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - */ - protected AutodiscoverDnsClient(AutodiscoverService service) { - this.service = service; - } - - /** - * Finds the Autodiscover host from DNS SRV records. - * - * @param domain - * the domain - * @return Autodiscover hostname (will be null if lookup failed). - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - protected String findAutodiscoverHostFromSrv(String domain) - throws XMLStreamException, IOException { - String domainToMatch = AutoDiscoverSrvPrefix + domain; - - DnsSrvRecord dnsSrvRecord = this - .findBestMatchingSrvRecord(domainToMatch); - - if ((dnsSrvRecord == null) || dnsSrvRecord.getNameTarget() == null || - dnsSrvRecord.getNameTarget().isEmpty()) { - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - "No appropriate SRV record was found."); - return null; - } else { - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "DNS query for SRV record for domain %s found %s", - domain, dnsSrvRecord.getNameTarget())); - - return dnsSrvRecord.getNameTarget(); - } - } - - /** - * Finds the best matching SRV record. - * - * @param domain - * the domain - * @return DnsSrvRecord(will be null if lookup failed). - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - private DnsSrvRecord findBestMatchingSrvRecord(String domain) - throws XMLStreamException, IOException { - List dnsSrvRecordList; - try { - // Make DnsQuery call to get collection of SRV records. - dnsSrvRecordList = DnsClient.dnsQuery(DnsSrvRecord.class, domain, - this.service.getDnsServerAddress()); - } catch (DnsException ex) { - String dnsExcMessage = String.format("DnsQuery returned error '%s'.", ex.getMessage()); - this.service - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - dnsExcMessage); - return null; - } catch (SecurityException ex) { - // In restricted environments, we may not be allowed to call - // un-managed code. - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "DnsQuery cannot be called. Security error: %s.", - ex.getMessage())); - return null; - } - - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, String - .format("%d SRV records were returned.", dnsSrvRecordList - .size())); - - // If multiple records were returned, they will be returned sorted by - // priority - // (and weight) order. Need to find the index of the first record that - // supports SSL. - int priority = Integer.MIN_VALUE; - int weight = Integer.MAX_VALUE; - boolean recordFound = false; - for (DnsSrvRecord dnsSrvRecord : dnsSrvRecordList) { - if (dnsSrvRecord.getPort() == SslPort) { - priority = dnsSrvRecord.getPriority(); - weight = dnsSrvRecord.getWeight(); - recordFound = true; - break; - } - } - - // Records were returned but nothing matched our criteria. - if (!recordFound) { - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - "No appropriate SRV records were found."); - - return null; - } - - List bestDnsSrvRecordList = new ArrayList(); - for (DnsSrvRecord dnsSrvRecord : dnsSrvRecordList) { - if (dnsSrvRecord.getPort() == SslPort && - dnsSrvRecord.getPriority() == priority && - dnsSrvRecord.getWeight() == weight) { - bestDnsSrvRecordList.add(dnsSrvRecord); - } - } - - // The list must contain at least one matching record since we found one - // earlier. - EwsUtilities.EwsAssert(dnsSrvRecordList.size() > 0, - "AutodiscoverDnsClient.FindBestMatchingSrvRecord", - "At least one DNS SRV record must match the criteria."); - - // If we have multiple records with the same priority and weight, - // randomly pick one. - int recordIndex = (bestDnsSrvRecordList.size() > 1) ? - RandomTieBreakerSelector - .nextInt(bestDnsSrvRecordList.size()) : - 0; - - DnsSrvRecord bestDnsSrvRecord = bestDnsSrvRecordList.get(recordIndex); - - String traceMessage = String.format("Returning SRV record %d " + - "of %d records. " + - "Target: %s, Priority: %d, Weight: %d", - recordIndex, dnsSrvRecordList.size(), - bestDnsSrvRecord.getNameTarget(), - bestDnsSrvRecord.getPriority(), - bestDnsSrvRecord.getWeight()); - this.service.traceMessage(TraceFlags. - AutodiscoverConfiguration, traceMessage); - - - return bestDnsSrvRecord; - } + /** + * SRV DNS prefix to lookup. + */ + private static final String AutoDiscoverSrvPrefix = "_autodiscover._tcp."; + + /** + * We are only interested in records that use SSL. + */ + private static final int SslPort = 443; + + /** + * Random selector in the case of ties. + */ + private static Random RandomTieBreakerSelector = new Random(); + + /** + * AutodiscoverService using this DNS reader. + */ + private AutodiscoverService service; + + /** + * Initializes a new instance of the class. + * + * @param service the service + */ + protected AutodiscoverDnsClient(AutodiscoverService service) { + this.service = service; + } + + /** + * Finds the Autodiscover host from DNS SRV records. + * + * @param domain the domain + * @return Autodiscover hostname (will be null if lookup failed). + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + protected String findAutodiscoverHostFromSrv(String domain) + throws XMLStreamException, IOException { + String domainToMatch = AutoDiscoverSrvPrefix + domain; + + DnsSrvRecord dnsSrvRecord = this + .findBestMatchingSrvRecord(domainToMatch); + + if ((dnsSrvRecord == null) || dnsSrvRecord.getNameTarget() == null || + dnsSrvRecord.getNameTarget().isEmpty()) { + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + "No appropriate SRV record was found."); + return null; + } else { + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "DNS query for SRV record for domain %s found %s", + domain, dnsSrvRecord.getNameTarget())); + + return dnsSrvRecord.getNameTarget(); + } + } + + /** + * Finds the best matching SRV record. + * + * @param domain the domain + * @return DnsSrvRecord(will be null if lookup failed). + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + private DnsSrvRecord findBestMatchingSrvRecord(String domain) + throws XMLStreamException, IOException { + List dnsSrvRecordList; + try { + // Make DnsQuery call to get collection of SRV records. + dnsSrvRecordList = DnsClient.dnsQuery(DnsSrvRecord.class, domain, + this.service.getDnsServerAddress()); + } catch (DnsException ex) { + String dnsExcMessage = String.format("DnsQuery returned error '%s'.", ex.getMessage()); + this.service + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + dnsExcMessage); + return null; + } catch (SecurityException ex) { + // In restricted environments, we may not be allowed to call + // un-managed code. + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "DnsQuery cannot be called. Security error: %s.", + ex.getMessage())); + return null; + } + + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, String + .format("%d SRV records were returned.", dnsSrvRecordList + .size())); + + // If multiple records were returned, they will be returned sorted by + // priority + // (and weight) order. Need to find the index of the first record that + // supports SSL. + int priority = Integer.MIN_VALUE; + int weight = Integer.MAX_VALUE; + boolean recordFound = false; + for (DnsSrvRecord dnsSrvRecord : dnsSrvRecordList) { + if (dnsSrvRecord.getPort() == SslPort) { + priority = dnsSrvRecord.getPriority(); + weight = dnsSrvRecord.getWeight(); + recordFound = true; + break; + } + } + + // Records were returned but nothing matched our criteria. + if (!recordFound) { + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + "No appropriate SRV records were found."); + + return null; + } + + List bestDnsSrvRecordList = new ArrayList(); + for (DnsSrvRecord dnsSrvRecord : dnsSrvRecordList) { + if (dnsSrvRecord.getPort() == SslPort && + dnsSrvRecord.getPriority() == priority && + dnsSrvRecord.getWeight() == weight) { + bestDnsSrvRecordList.add(dnsSrvRecord); + } + } + + // The list must contain at least one matching record since we found one + // earlier. + EwsUtilities.EwsAssert(dnsSrvRecordList.size() > 0, + "AutodiscoverDnsClient.FindBestMatchingSrvRecord", + "At least one DNS SRV record must match the criteria."); + + // If we have multiple records with the same priority and weight, + // randomly pick one. + int recordIndex = (bestDnsSrvRecordList.size() > 1) ? + RandomTieBreakerSelector + .nextInt(bestDnsSrvRecordList.size()) : + 0; + + DnsSrvRecord bestDnsSrvRecord = bestDnsSrvRecordList.get(recordIndex); + + String traceMessage = String.format("Returning SRV record %d " + + "of %d records. " + + "Target: %s, Priority: %d, Weight: %d", + recordIndex, dnsSrvRecordList.size(), + bestDnsSrvRecord.getNameTarget(), + bestDnsSrvRecord.getPriority(), + bestDnsSrvRecord.getWeight()); + this.service.traceMessage(TraceFlags. + AutodiscoverConfiguration, traceMessage); + + + return bestDnsSrvRecord; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index b581d28df..80c91e5a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -14,36 +14,49 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the types of Autodiscover endpoints that are available. */ enum AutodiscoverEndpoints { - - /** No endpoints available. */ - None(0), - - /** The "legacy" Autodiscover endpoint. */ - Legacy(1), - - /** The SOAP endpoint. */ - Soap(2), - - /** The WS-Security endpoint. */ - WsSecurity(4), - - /** The WS-Security/SymmetricKey endpoint.*/ - WSSecuritySymmetricKey(8), - - /** The WS-Security/X509Cert endpoint.*/ - WSSecurityX509Cert(16); - - /** The autodiscover end points. */ - @SuppressWarnings("unused") - private final int autodiscoverEndPoints; - - /** - * Instantiates a new autodiscover endpoints. - * - * @param autodiscoverEndPoints - * the autodiscover end points - */ - AutodiscoverEndpoints(int autodiscoverEndPoints) { - this.autodiscoverEndPoints = autodiscoverEndPoints; - } + + /** + * No endpoints available. + */ + None(0), + + /** + * The "legacy" Autodiscover endpoint. + */ + Legacy(1), + + /** + * The SOAP endpoint. + */ + Soap(2), + + /** + * The WS-Security endpoint. + */ + WsSecurity(4), + + /** + * The WS-Security/SymmetricKey endpoint. + */ + WSSecuritySymmetricKey(8), + + /** + * The WS-Security/X509Cert endpoint. + */ + WSSecurityX509Cert(16); + + /** + * The autodiscover end points. + */ + @SuppressWarnings("unused") + private final int autodiscoverEndPoints; + + /** + * Instantiates a new autodiscover endpoints. + * + * @param autodiscoverEndPoints the autodiscover end points + */ + AutodiscoverEndpoints(int autodiscoverEndPoints) { + this.autodiscoverEndPoints = autodiscoverEndPoints; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index 5d357e553..b05f6ae7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -12,115 +12,122 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines the AutodiscoverError class. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class AutodiscoverError { - /** The time. */ - private String time; - - /** The id. */ - private String id; - - /** The error code. */ - private int errorCode; - - /** The message. */ - private String message; - - /** The debug data. */ - private String debugData; - - /** - * Initializes a new instance of the AutodiscoverError class. - */ - private AutodiscoverError() { - } - - /** - * Parses the XML through the specified reader and creates an Autodiscover - * error. - * - * @param reader - * the reader - * @return AutodiscoverError - * @throws Exception - * the exception - */ - protected static AutodiscoverError parse(EwsXmlReader reader) - throws Exception { - AutodiscoverError error = new AutodiscoverError(); - error.time = reader.readAttributeValue(XmlAttributeNames.Time); - error.id = reader.readAttributeValue(XmlAttributeNames.Id); - - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ErrorCode)) { - error.errorCode = reader.readElementValue(Integer.class); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Message)) { - error.message = reader.readElementValue(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.DebugData)) { - error.debugData = reader.readElementValue(); - } else { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.Error)); - - return error; - } - - /** - * Gets the time when the error was returned. - * - * @return the time - */ - public String getTime() { - return time; - } - - /** - * Gets a hash of the name of the computer that is running Microsoft - * Exchange Server that has the Client Access server role installed. - * - * @return the id - */ - public String getId() { - return id; - } - - /** - * Gets the error code. - * - * @return the error code - */ - public int getErrorCode() { - return errorCode; - } - - /** - * Gets the error message. - * - * @return the message - */ - public String getMessage() { - return message; - } - - /** - * Gets the debug data. - * - * @return the debug data - */ - public String getDebugData() { - return debugData; - } + /** + * The time. + */ + private String time; + + /** + * The id. + */ + private String id; + + /** + * The error code. + */ + private int errorCode; + + /** + * The message. + */ + private String message; + + /** + * The debug data. + */ + private String debugData; + + /** + * Initializes a new instance of the AutodiscoverError class. + */ + private AutodiscoverError() { + } + + /** + * Parses the XML through the specified reader and creates an Autodiscover + * error. + * + * @param reader the reader + * @return AutodiscoverError + * @throws Exception the exception + */ + protected static AutodiscoverError parse(EwsXmlReader reader) + throws Exception { + AutodiscoverError error = new AutodiscoverError(); + error.time = reader.readAttributeValue(XmlAttributeNames.Time); + error.id = reader.readAttributeValue(XmlAttributeNames.Id); + + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ErrorCode)) { + error.errorCode = reader.readElementValue(Integer.class); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Message)) { + error.message = reader.readElementValue(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.DebugData)) { + error.debugData = reader.readElementValue(); + } else { + reader.skipCurrentElement(); + } + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.Error)); + + return error; + } + + /** + * Gets the time when the error was returned. + * + * @return the time + */ + public String getTime() { + return time; + } + + /** + * Gets a hash of the name of the computer that is running Microsoft + * Exchange Server that has the Client Access server role installed. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the error code. + * + * @return the error code + */ + public int getErrorCode() { + return errorCode; + } + + /** + * Gets the error message. + * + * @return the message + */ + public String getMessage() { + return message; + } + + /** + * Gets the debug data. + * + * @return the debug data + */ + public String getDebugData() { + return debugData; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java index cbdc14b1e..67ef9f820 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java @@ -15,49 +15,71 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum AutodiscoverErrorCode { - // There was no Error. - /** The No error. */ - NoError, - - // The caller must follow the e-mail address redirection that was returned - // by Autodiscover. - /** The Redirect address. */ - RedirectAddress, - - // The caller must follow the URL redirection that was returned by - // Autodiscover. - /** The Redirect url. */ - RedirectUrl, - - // The user that was passed in the request is invalid. - /** The Invalid user. */ - InvalidUser, - - // The request is invalid. - /** The Invalid request. */ - InvalidRequest, - - // A specified setting is invalid. - /** The Invalid setting. */ - InvalidSetting, - - // A specified setting is not available. - /** The Setting is not available. */ - SettingIsNotAvailable, - - // The server is too busy to process the request. - /** The Server busy. */ - ServerBusy, - - // The requested domain is not valid. - /** The Invalid domain. */ - InvalidDomain, - - // The organization is not federated. - /** The Not federated. */ - NotFederated, - - // Internal server error. - /** The Internal server error. */ - InternalServerError, + // There was no Error. + /** + * The No error. + */ + NoError, + + // The caller must follow the e-mail address redirection that was returned + // by Autodiscover. + /** + * The Redirect address. + */ + RedirectAddress, + + // The caller must follow the URL redirection that was returned by + // Autodiscover. + /** + * The Redirect url. + */ + RedirectUrl, + + // The user that was passed in the request is invalid. + /** + * The Invalid user. + */ + InvalidUser, + + // The request is invalid. + /** + * The Invalid request. + */ + InvalidRequest, + + // A specified setting is invalid. + /** + * The Invalid setting. + */ + InvalidSetting, + + // A specified setting is not available. + /** + * The Setting is not available. + */ + SettingIsNotAvailable, + + // The server is too busy to process the request. + /** + * The Server busy. + */ + ServerBusy, + + // The requested domain is not valid. + /** + * The Invalid domain. + */ + InvalidDomain, + + // The organization is not federated. + /** + * The Not federated. + */ + NotFederated, + + // Internal server error. + /** + * The Internal server error. + */ + InternalServerError, } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index ab2838a6b..38a60b95d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -16,33 +16,30 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverLocalException extends ServiceLocalException { - /** - * Initializes a new instance of the class. - */ - public AutodiscoverLocalException() { - super(); - } + /** + * Initializes a new instance of the class. + */ + public AutodiscoverLocalException() { + super(); + } - /** - * Initializes a new instance of the class. - * - * @param message - * the message - */ - public AutodiscoverLocalException(String message) { - super(message); - } + /** + * Initializes a new instance of the class. + * + * @param message the message + */ + public AutodiscoverLocalException(String message) { + super(message); + } - /** - * Initializes a new instance of the class. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public AutodiscoverLocalException(String message, - Exception innerException) { - super(message, innerException); - } + /** + * Initializes a new instance of the class. + * + * @param message the message + * @param innerException the inner exception + */ + public AutodiscoverLocalException(String message, + Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 236538840..8c2d19c50 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -16,55 +16,51 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverRemoteException extends ServiceRemoteException { - /** The error. */ - private AutodiscoverError error; + /** + * The error. + */ + private AutodiscoverError error; - /** - * Initializes a new instance of the class. - * - * @param error - * the error - */ - public AutodiscoverRemoteException(AutodiscoverError error) { - super(); - this.error = error; - } + /** + * Initializes a new instance of the class. + * + * @param error the error + */ + public AutodiscoverRemoteException(AutodiscoverError error) { + super(); + this.error = error; + } - /** - * Initializes a new instance of the class. - * - * @param message - * the message - * @param error - * the error - */ - protected AutodiscoverRemoteException(String message, AutodiscoverError error) { - super(message); - this.error = error; - } + /** + * Initializes a new instance of the class. + * + * @param message the message + * @param error the error + */ + protected AutodiscoverRemoteException(String message, AutodiscoverError error) { + super(message); + this.error = error; + } - /** - * Initializes a new instance of the class. - * - * @param message - * the message - * @param error - * the error - * @param innerException - * the inner exception - */ - public AutodiscoverRemoteException(String message, AutodiscoverError error, - Exception innerException) { - super(message, innerException); - this.error = error; - } + /** + * Initializes a new instance of the class. + * + * @param message the message + * @param error the error + * @param innerException the inner exception + */ + public AutodiscoverRemoteException(String message, AutodiscoverError error, + Exception innerException) { + super(message, innerException); + this.error = error; + } - /** - * Gets the error. The error. - * - * @return the error - */ - public AutodiscoverError getError() { - return this.error; - } + /** + * Gets the error. The error. + * + * @return the error + */ + public AutodiscoverError getError() { + return this.error; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index d397b5cfa..1ffc52fe4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -10,135 +10,125 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; +import javax.xml.stream.XMLStreamException; +import java.io.*; import java.net.URI; import java.net.URISyntaxException; import java.text.ParseException; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; -import javax.xml.stream.XMLStreamException; - /** * Represents the base class for all requested made to the Autodiscover service. */ abstract class AutodiscoverRequest { - /** The service. */ - private AutodiscoverService service; - - /** The url. */ - private URI url; - - /** - * Initializes a new instance of the AutodiscoverResponse class. - * - * @param service - * Autodiscover service associated with this request. - * @param url - * URL of Autodiscover service. - * - */ - protected AutodiscoverRequest(AutodiscoverService service, URI url) { - this.service = service; - this.url = url; - } - - /** - * Determines whether response is a redirection. - * - * @param request - * the request - * @return True if redirection response. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - protected static boolean isRedirectionResponse(HttpWebRequest request) - throws EWSHttpException { - return ((request.getResponseCode() == 301) - || (request.getResponseCode() == 302) - || (request.getResponseCode() == 307) || (request - .getResponseCode() == 303)); - } - - /** - * Validates the request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected void validate() throws ServiceLocalException, Exception { - this.getService().validate(); - } - - /** - * Executes this instance. - * - * @return the autodiscover response - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected AutodiscoverResponse internalExecute() - throws ServiceLocalException, Exception { - this.validate(); - HttpWebRequest request = null; - try { - request = this.service.prepareHttpWebRequestForUrl(this.url); - this.service.traceHttpRequestHeaders( - TraceFlags.AutodiscoverRequestHttpHeaders, request); - - boolean needSignature = this.getService().getCredentials() != null - && this.getService().getCredentials().isNeedSignature(); - boolean needTrace = this.getService().isTraceEnabledFor( - TraceFlags.AutodiscoverRequest); - - OutputStream urlOutStream = request.getOutputStream(); - // OutputStreamWriter out = new OutputStreamWriter(request - // .getOutputStream()); - - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - EwsServiceXmlWriter writer = new EwsServiceXmlWriter(this - .getService(), memoryStream); - writer.setRequireWSSecurityUtilityNamespace(needSignature); - this.writeSoapRequest(this.url, writer); - - if (needSignature) { - this.service.getCredentials().sign(memoryStream); - } - - if (needTrace) { - memoryStream.flush(); - this.service.traceXml(TraceFlags.AutodiscoverRequest, - memoryStream); - } - memoryStream.writeTo(urlOutStream); - urlOutStream.flush(); - urlOutStream.close(); - memoryStream.close(); - // out.write(memoryStream.toString()); - // out.close(); - request.executeRequest(); - request.getResponseCode(); - if (AutodiscoverRequest.isRedirectionResponse(request)) { - AutodiscoverResponse response = this - .createRedirectionResponse(request); - if (response != null) { - return response; - } else { - throw new ServiceRemoteException( - Strings.InvalidRedirectionResponseReturned); - } - } + /** + * The service. + */ + private AutodiscoverService service; + + /** + * The url. + */ + private URI url; + + /** + * Initializes a new instance of the AutodiscoverResponse class. + * + * @param service Autodiscover service associated with this request. + * @param url URL of Autodiscover service. + */ + protected AutodiscoverRequest(AutodiscoverService service, URI url) { + this.service = service; + this.url = url; + } + + /** + * Determines whether response is a redirection. + * + * @param request the request + * @return True if redirection response. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + protected static boolean isRedirectionResponse(HttpWebRequest request) + throws EWSHttpException { + return ((request.getResponseCode() == 301) + || (request.getResponseCode() == 302) + || (request.getResponseCode() == 307) || (request + .getResponseCode() == 303)); + } + + /** + * Validates the request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected void validate() throws ServiceLocalException, Exception { + this.getService().validate(); + } + + /** + * Executes this instance. + * + * @return the autodiscover response + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected AutodiscoverResponse internalExecute() + throws ServiceLocalException, Exception { + this.validate(); + HttpWebRequest request = null; + try { + request = this.service.prepareHttpWebRequestForUrl(this.url); + this.service.traceHttpRequestHeaders( + TraceFlags.AutodiscoverRequestHttpHeaders, request); + + boolean needSignature = this.getService().getCredentials() != null + && this.getService().getCredentials().isNeedSignature(); + boolean needTrace = this.getService().isTraceEnabledFor( + TraceFlags.AutodiscoverRequest); + + OutputStream urlOutStream = request.getOutputStream(); + // OutputStreamWriter out = new OutputStreamWriter(request + // .getOutputStream()); + + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + EwsServiceXmlWriter writer = new EwsServiceXmlWriter(this + .getService(), memoryStream); + writer.setRequireWSSecurityUtilityNamespace(needSignature); + this.writeSoapRequest(this.url, writer); + + if (needSignature) { + this.service.getCredentials().sign(memoryStream); + } + + if (needTrace) { + memoryStream.flush(); + this.service.traceXml(TraceFlags.AutodiscoverRequest, + memoryStream); + } + memoryStream.writeTo(urlOutStream); + urlOutStream.flush(); + urlOutStream.close(); + memoryStream.close(); + // out.write(memoryStream.toString()); + // out.close(); + request.executeRequest(); + request.getResponseCode(); + if (AutodiscoverRequest.isRedirectionResponse(request)) { + AutodiscoverResponse response = this + .createRedirectionResponse(request); + if (response != null) { + return response; + } else { + throw new ServiceRemoteException( + Strings.InvalidRedirectionResponseReturned); + } + } /* - * BufferedReader in = new BufferedReader(new + * BufferedReader in = new BufferedReader(new * InputStreamReader(request.getInputStream())); * * String decodedString; @@ -147,644 +137,600 @@ protected AutodiscoverResponse internalExecute() * System.out.println(decodedString); } in.close(); */ - memoryStream = new ByteArrayOutputStream(); - InputStream serviceResponseStream = request.getInputStream(); - - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - memoryStream.flush(); - serviceResponseStream.close(); - - if (this.service.isTraceEnabled()) { - this.service.traceResponse(request, memoryStream); - } - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsXmlReader ewsXmlReader = new EwsXmlReader(memoryStreamIn); - - // WCF may not generate an XML declaration. - ewsXmlReader.read(); - if (ewsXmlReader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { - ewsXmlReader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - } else if ((ewsXmlReader.getNodeType().getNodeType() != XmlNodeType.START_ELEMENT) - || (!ewsXmlReader.getLocalName().equals( - XmlElementNames.SOAPEnvelopeElementName)) - || (!ewsXmlReader.getNamespaceUri().equals( - EwsUtilities.getNamespaceUri(XmlNamespace.Soap)))) { - throw new ServiceXmlDeserializationException( - Strings.InvalidAutodiscoverServiceResponse); - } - - this.readSoapHeaders(ewsXmlReader); - - AutodiscoverResponse response = this.readSoapBody(ewsXmlReader); - - ewsXmlReader.readEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - - if (response.getErrorCode() == AutodiscoverErrorCode.NoError) { - return response; - } else { - throw new AutodiscoverResponseException( - response.getErrorCode(), response.getErrorMessage()); - } - - } catch (XMLStreamException ex) { - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format("XML parsing error: %s", ex.getMessage())); - - // Wrap exception - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, ex.getMessage()), ex); - } catch (IOException ex) { - this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format("I/O error: %s", ex.getMessage())); - - // Wrap exception - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, ex.getMessage()), ex); - } catch (Exception ex) { - // HttpWebRequest httpWebResponse = (HttpWebRequest)ex; - - if (null != request && request.getResponseCode() == 7) { - if (AutodiscoverRequest.isRedirectionResponse(request)) { - this.service - .processHttpResponseHeaders( - TraceFlags.AutodiscoverResponseHttpHeaders, - request); - - AutodiscoverResponse response = this - .createRedirectionResponse(request); - if (response != null) { - return response; - } - } else { - this.processWebException(ex, request); - } - } - - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, ex.getMessage()), ex); - } finally { - try { - if (request != null) { - request.close(); - } - } catch (Exception e) { - // do nothing - } - } - } - - /** - * Processes the web exception. - * - * @param exception - * WebException - * @param req - * HttpWebRequest - */ - private void processWebException(Exception exception, HttpWebRequest req) { - if (null != req) { - try { - if (500 == req.getResponseCode()) { - if (this.service - .isTraceEnabledFor( - TraceFlags.AutodiscoverRequest)) { - ByteArrayOutputStream memoryStream = - new ByteArrayOutputStream(); - InputStream serviceResponseStream = AutodiscoverRequest - .getResponseStream(req); - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - memoryStream.flush(); - serviceResponseStream.close(); - this.service.traceResponse(req, memoryStream); - ByteArrayInputStream memoryStreamIn = - new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); - this.readSoapFault(reader); - memoryStream.close(); - } else { - InputStream serviceResponseStream = AutodiscoverRequest - .getResponseStream(req); - EwsXmlReader reader = new EwsXmlReader( - serviceResponseStream); - SoapFaultDetails soapFaultDetails = this.readSoapFault(reader); - serviceResponseStream.close(); - - if (soapFaultDetails != null) { - throw new ServiceResponseException( - new ServiceResponse(soapFaultDetails)); - } - } - } else { - this.service.processHttpErrorResponse(req, exception); - } - } catch (Exception e) { - e.printStackTrace(); - } - } - } - - /** - * Create a redirection response. - * - * @param httpWebResponse - * The HTTP web response. - * @return AutodiscoverResponse autodiscoverResponse object. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - private AutodiscoverResponse createRedirectionResponse( - HttpWebRequest httpWebResponse) throws XMLStreamException, - IOException, EWSHttpException { - String location = httpWebResponse.getResponseHeaderField("Location"); - if (!(location == null || location.isEmpty())) { - try { - URI redirectionUri = new URI(location); - if (redirectionUri.getScheme().toLowerCase().equals("http") - || redirectionUri.getScheme().toLowerCase().equals( - "https")) { - AutodiscoverResponse response = this.createServiceResponse(); - response.setErrorCode(AutodiscoverErrorCode.RedirectUrl); - response.setRedirectionUrl(redirectionUri); - return response; - } - - this.service - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "Invalid redirection" + - " URL '%s' " + - "returned by Autodiscover " + - "service.", - redirectionUri.toString())); - - } catch (URISyntaxException ex) { - this.service - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "Invalid redirection " + - "location '%s' " + - "returned by Autodiscover " + - "service.", - location)); - } - } else { - this.service - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - "Redirection response returned by Autodiscover " + - "service without redirection location."); - } - - return null; - } - - /** - * Reads the SOAP fault. - * - * @param reader - * The reader. - * @return SOAP fault details. - * - */ - private SoapFaultDetails readSoapFault(EwsXmlReader reader) { - SoapFaultDetails soapFaultDetails = null; - - try { - - reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { - reader.read(); - } - if (!reader.isStartElement() - || (!reader.getLocalName().equals( - XmlElementNames.SOAPEnvelopeElementName))) { - return null; - } - - // Get the namespace URI from the envelope element and use it for - // the rest of the parsing. - // If it's not 1.1 or 1.2, we can't continue. - XmlNamespace soapNamespace = EwsUtilities - .getNamespaceFromUri(reader.getNamespaceUri()); - if (soapNamespace == XmlNamespace.NotSpecified) { - return null; - } - - reader.read(); - - // Skip SOAP header. - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPHeaderElementName)) { - do { - reader.read(); - } while (!reader.isEndElement(soapNamespace, - XmlElementNames.SOAPHeaderElementName)); - - // Queue up the next read - reader.read(); - } - - // Parse the fault element contained within the SOAP body. - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPBodyElementName)) { - do { - reader.read(); - - // Parse Fault element - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPFaultElementName)) { - soapFaultDetails = SoapFaultDetails.parse(reader, - soapNamespace); - } - } while (!reader.isEndElement(soapNamespace, - XmlElementNames.SOAPBodyElementName)); - } - - reader.readEndElement(soapNamespace, - XmlElementNames.SOAPEnvelopeElementName); - } catch (Exception e) { - // If response doesn't contain a valid SOAP fault, just ignore - // exception and - // return null for SOAP fault details. - e.printStackTrace(); - } - - return soapFaultDetails; - } - - /** - * Writes the autodiscover SOAP request. - * - * @param requestUrl - * Request URL. - * - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeSoapRequest(URI requestUrl, - EwsServiceXmlWriter writer) throws XMLStreamException, - ServiceXmlSerializationException { - - if (writer.isRequireWSSecurityUtilityNamespace()) { - writer.writeAttributeValue("xmlns", - EwsUtilities.WSSecurityUtilityNamespacePrefix, - EwsUtilities.WSSecurityUtilityNamespace); - } - writer.writeStartDocument(); - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - writer.writeAttributeValue("xmlns", EwsUtilities - .getNamespacePrefix(XmlNamespace.Soap), EwsUtilities - .getNamespaceUri(XmlNamespace.Soap)); - writer.writeAttributeValue("xmlns", - EwsUtilities.AutodiscoverSoapNamespacePrefix, - EwsUtilities.AutodiscoverSoapNamespace); - writer.writeAttributeValue("xmlns", - EwsUtilities.WSAddressingNamespacePrefix, - EwsUtilities.WSAddressingNamespace); - writer.writeAttributeValue("xmlns", - EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, - EwsUtilities.EwsXmlSchemaInstanceNamespace); - - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName); - - if (this.service.getCredentials() != null) { - this.service.getCredentials().emitExtraSoapHeaderNamespaceAliases( - writer.getInternalWriter()); - } - - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.RequestedServerVersion, this.service - .getRequestedServerVersion().toString()); - - writer.writeElementValue(XmlNamespace.WSAddressing, - XmlElementNames.Action, this.getWsAddressingActionName()); - - writer.writeElementValue(XmlNamespace.WSAddressing, XmlElementNames.To, - requestUrl.toString()); - - this.writeExtraCustomSoapHeadersToXml(writer); - - if (this.service.getCredentials() != null) { - this.service.getCredentials().serializeWSSecurityHeaders( - writer.getInternalWriter()); - } - - this.service.doOnSerializeCustomSoapHeaders(writer.getInternalWriter()); - - writer.writeEndElement(); // soap:Header - - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - - this.writeBodyToXml(writer); - - writer.writeEndElement(); // soap:Body - writer.writeEndElement(); // soap:Envelope - writer.flush(); - writer.dispose(); - } - - /** - * Write extra headers. - * - * @param writer The writer - * @throws ServiceXmlSerializationException - * @throws javax.xml.stream.XMLStreamException - */ - protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException - { - // do nothing here. - // currently used only by GetUserSettingRequest to emit the BinarySecret header. + memoryStream = new ByteArrayOutputStream(); + InputStream serviceResponseStream = request.getInputStream(); + + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + memoryStream.flush(); + serviceResponseStream.close(); + + if (this.service.isTraceEnabled()) { + this.service.traceResponse(request, memoryStream); + } + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsXmlReader ewsXmlReader = new EwsXmlReader(memoryStreamIn); + + // WCF may not generate an XML declaration. + ewsXmlReader.read(); + if (ewsXmlReader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { + ewsXmlReader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + } else if ((ewsXmlReader.getNodeType().getNodeType() != XmlNodeType.START_ELEMENT) + || (!ewsXmlReader.getLocalName().equals( + XmlElementNames.SOAPEnvelopeElementName)) + || (!ewsXmlReader.getNamespaceUri().equals( + EwsUtilities.getNamespaceUri(XmlNamespace.Soap)))) { + throw new ServiceXmlDeserializationException( + Strings.InvalidAutodiscoverServiceResponse); + } + + this.readSoapHeaders(ewsXmlReader); + + AutodiscoverResponse response = this.readSoapBody(ewsXmlReader); + + ewsXmlReader.readEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + + if (response.getErrorCode() == AutodiscoverErrorCode.NoError) { + return response; + } else { + throw new AutodiscoverResponseException( + response.getErrorCode(), response.getErrorMessage()); + } + + } catch (XMLStreamException ex) { + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("XML parsing error: %s", ex.getMessage())); + + // Wrap exception + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, ex.getMessage()), ex); + } catch (IOException ex) { + this.service.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("I/O error: %s", ex.getMessage())); + + // Wrap exception + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, ex.getMessage()), ex); + } catch (Exception ex) { + // HttpWebRequest httpWebResponse = (HttpWebRequest)ex; + + if (null != request && request.getResponseCode() == 7) { + if (AutodiscoverRequest.isRedirectionResponse(request)) { + this.service + .processHttpResponseHeaders( + TraceFlags.AutodiscoverResponseHttpHeaders, + request); + + AutodiscoverResponse response = this + .createRedirectionResponse(request); + if (response != null) { + return response; + } + } else { + this.processWebException(ex, request); + } + } + + // Wrap exception if the above code block didn't throw + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, ex.getMessage()), ex); + } finally { + try { + if (request != null) { + request.close(); + } + } catch (Exception e) { + // do nothing + } + } + } + + /** + * Processes the web exception. + * + * @param exception WebException + * @param req HttpWebRequest + */ + private void processWebException(Exception exception, HttpWebRequest req) { + if (null != req) { + try { + if (500 == req.getResponseCode()) { + if (this.service + .isTraceEnabledFor( + TraceFlags.AutodiscoverRequest)) { + ByteArrayOutputStream memoryStream = + new ByteArrayOutputStream(); + InputStream serviceResponseStream = AutodiscoverRequest + .getResponseStream(req); + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + memoryStream.flush(); + serviceResponseStream.close(); + this.service.traceResponse(req, memoryStream); + ByteArrayInputStream memoryStreamIn = + new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); + this.readSoapFault(reader); + memoryStream.close(); + } else { + InputStream serviceResponseStream = AutodiscoverRequest + .getResponseStream(req); + EwsXmlReader reader = new EwsXmlReader( + serviceResponseStream); + SoapFaultDetails soapFaultDetails = this.readSoapFault(reader); + serviceResponseStream.close(); + + if (soapFaultDetails != null) { + throw new ServiceResponseException( + new ServiceResponse(soapFaultDetails)); + } + } + } else { + this.service.processHttpErrorResponse(req, exception); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + /** + * Create a redirection response. + * + * @param httpWebResponse The HTTP web response. + * @return AutodiscoverResponse autodiscoverResponse object. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + private AutodiscoverResponse createRedirectionResponse( + HttpWebRequest httpWebResponse) throws XMLStreamException, + IOException, EWSHttpException { + String location = httpWebResponse.getResponseHeaderField("Location"); + if (!(location == null || location.isEmpty())) { + try { + URI redirectionUri = new URI(location); + if (redirectionUri.getScheme().toLowerCase().equals("http") + || redirectionUri.getScheme().toLowerCase().equals( + "https")) { + AutodiscoverResponse response = this.createServiceResponse(); + response.setErrorCode(AutodiscoverErrorCode.RedirectUrl); + response.setRedirectionUrl(redirectionUri); + return response; + } + + this.service + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "Invalid redirection" + + " URL '%s' " + + "returned by Autodiscover " + + "service.", + redirectionUri.toString())); + + } catch (URISyntaxException ex) { + this.service + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "Invalid redirection " + + "location '%s' " + + "returned by Autodiscover " + + "service.", + location)); + } + } else { + this.service + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + "Redirection response returned by Autodiscover " + + "service without redirection location."); + } + + return null; + } + + /** + * Reads the SOAP fault. + * + * @param reader The reader. + * @return SOAP fault details. + */ + private SoapFaultDetails readSoapFault(EwsXmlReader reader) { + SoapFaultDetails soapFaultDetails = null; + + try { + + reader.read(); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_DOCUMENT) { + reader.read(); + } + if (!reader.isStartElement() + || (!reader.getLocalName().equals( + XmlElementNames.SOAPEnvelopeElementName))) { + return null; + } + + // Get the namespace URI from the envelope element and use it for + // the rest of the parsing. + // If it's not 1.1 or 1.2, we can't continue. + XmlNamespace soapNamespace = EwsUtilities + .getNamespaceFromUri(reader.getNamespaceUri()); + if (soapNamespace == XmlNamespace.NotSpecified) { + return null; + } + + reader.read(); + + // Skip SOAP header. + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPHeaderElementName)) { + do { + reader.read(); + } while (!reader.isEndElement(soapNamespace, + XmlElementNames.SOAPHeaderElementName)); + + // Queue up the next read + reader.read(); + } + + // Parse the fault element contained within the SOAP body. + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPBodyElementName)) { + do { + reader.read(); + + // Parse Fault element + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPFaultElementName)) { + soapFaultDetails = SoapFaultDetails.parse(reader, + soapNamespace); + } + } while (!reader.isEndElement(soapNamespace, + XmlElementNames.SOAPBodyElementName)); + } + + reader.readEndElement(soapNamespace, + XmlElementNames.SOAPEnvelopeElementName); + } catch (Exception e) { + // If response doesn't contain a valid SOAP fault, just ignore + // exception and + // return null for SOAP fault details. + e.printStackTrace(); + } + + return soapFaultDetails; + } + + /** + * Writes the autodiscover SOAP request. + * + * @param requestUrl Request URL. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeSoapRequest(URI requestUrl, + EwsServiceXmlWriter writer) throws XMLStreamException, + ServiceXmlSerializationException { + + if (writer.isRequireWSSecurityUtilityNamespace()) { + writer.writeAttributeValue("xmlns", + EwsUtilities.WSSecurityUtilityNamespacePrefix, + EwsUtilities.WSSecurityUtilityNamespace); + } + writer.writeStartDocument(); + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + writer.writeAttributeValue("xmlns", EwsUtilities + .getNamespacePrefix(XmlNamespace.Soap), EwsUtilities + .getNamespaceUri(XmlNamespace.Soap)); + writer.writeAttributeValue("xmlns", + EwsUtilities.AutodiscoverSoapNamespacePrefix, + EwsUtilities.AutodiscoverSoapNamespace); + writer.writeAttributeValue("xmlns", + EwsUtilities.WSAddressingNamespacePrefix, + EwsUtilities.WSAddressingNamespace); + writer.writeAttributeValue("xmlns", + EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, + EwsUtilities.EwsXmlSchemaInstanceNamespace); + + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName); + + if (this.service.getCredentials() != null) { + this.service.getCredentials().emitExtraSoapHeaderNamespaceAliases( + writer.getInternalWriter()); + } + + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.RequestedServerVersion, this.service + .getRequestedServerVersion().toString()); + + writer.writeElementValue(XmlNamespace.WSAddressing, + XmlElementNames.Action, this.getWsAddressingActionName()); + + writer.writeElementValue(XmlNamespace.WSAddressing, XmlElementNames.To, + requestUrl.toString()); + + this.writeExtraCustomSoapHeadersToXml(writer); + + if (this.service.getCredentials() != null) { + this.service.getCredentials().serializeWSSecurityHeaders( + writer.getInternalWriter()); + } + + this.service.doOnSerializeCustomSoapHeaders(writer.getInternalWriter()); + + writer.writeEndElement(); // soap:Header + + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + + this.writeBodyToXml(writer); + + writer.writeEndElement(); // soap:Body + writer.writeEndElement(); // soap:Envelope + writer.flush(); + writer.dispose(); + } + + /** + * Write extra headers. + * + * @param writer The writer + * @throws ServiceXmlSerializationException + * @throws javax.xml.stream.XMLStreamException + */ + protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + // do nothing here. + // currently used only by GetUserSettingRequest to emit the BinarySecret header. + } + + + /** + * Writes XML body. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void writeBodyToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeStartElement(XmlNamespace.Autodiscover, this + .getRequestXmlElementName()); + // writer.WriteAttributeValue("xmlns", + // EwsUtilities.AutodiscoverSoapNamespacePrefix, + // EwsUtilities.AutodiscoverSoapNamespace); + + this.writeAttributesToXml(writer); + this.writeElementsToXml(writer); + + writer.writeEndElement(); // m:this.GetXmlElementName() + } + + /** + * Gets the response stream (may be wrapped with GZip/Deflate stream to + * decompress content). + * + * @param request the request + * @return ResponseStream + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + protected static InputStream getResponseStream(HttpWebRequest request) + throws EWSHttpException, IOException { + String contentEncoding = ""; + + if (null != request.getContentEncoding()) { + contentEncoding = request.getContentEncoding().toLowerCase(); } + InputStream responseStream; - /** - * Writes XML body. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void writeBodyToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeStartElement(XmlNamespace.Autodiscover, this - .getRequestXmlElementName()); - // writer.WriteAttributeValue("xmlns", - // EwsUtilities.AutodiscoverSoapNamespacePrefix, - // EwsUtilities.AutodiscoverSoapNamespace); - - this.writeAttributesToXml(writer); - this.writeElementsToXml(writer); - - writer.writeEndElement(); // m:this.GetXmlElementName() - } - - /** - * Gets the response stream (may be wrapped with GZip/Deflate stream to - * decompress content). - * - * @param request - * the request - * @return ResponseStream - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - protected static InputStream getResponseStream(HttpWebRequest request) - throws EWSHttpException, IOException { - String contentEncoding = ""; - - if (null != request.getContentEncoding()) { - contentEncoding = request.getContentEncoding().toLowerCase(); - } - - InputStream responseStream; - - if (contentEncoding.contains("gzip")) { - responseStream = new GZIPInputStream(request.getInputStream()); - } else if (contentEncoding.contains("deflate")) { - responseStream = new InflaterInputStream(request.getInputStream()); - } else { - responseStream = request.getInputStream(); - } - return responseStream; - } - - /** - * Read SOAP header. - * - * @param reader - * EwsXmlReader. - * @throws Exception - * the exception - */ - protected void readSoapHeaders(EwsXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName); - do { - reader.read(); - - this.readSoapHeader(reader); - } while (!reader.isEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName)); - } - - /** - * Reads a single SOAP header. - * - *@param reader EwsXmlReader - * @throws Exception - */ - protected void readSoapHeader(EwsXmlReader reader) throws Exception - { - // Is this the ServerVersionInfo? - if (reader.isStartElement(XmlNamespace.Autodiscover, - XmlElementNames.ServerVersionInfo)) { - this.service.setServerInfo(this.readServerVersionInfo(reader)); - } - } - - /** - * Read ServerVersionInfo SOAP header. - * - * @param reader - * EwsXmlReader. - * @return ExchangeServerInfo ExchangeServerInfo object - * @throws Exception - * the exception - */ - private ExchangeServerInfo readServerVersionInfo(EwsXmlReader reader) - throws Exception { - ExchangeServerInfo serverInfo = new ExchangeServerInfo(); - do { - reader.read(); - - if (reader.isStartElement()) { - if (reader.getLocalName().equals(XmlElementNames.MajorVersion)) { - serverInfo.setMajorVersion(reader - .readElementValue(Integer.class)); - } else if (reader.getLocalName().equals( - XmlElementNames.MinorVersion)) { - serverInfo.setMinorVersion(reader - .readElementValue(Integer.class)); - } else if (reader.getLocalName().equals( - XmlElementNames.MajorBuildNumber)) { - serverInfo.setMajorBuildNumber(reader - .readElementValue(Integer.class)); - } else if (reader.getLocalName().equals( - XmlElementNames.MinorBuildNumber)) { - serverInfo.setMinorBuildNumber(reader - .readElementValue(Integer.class)); - } else if (reader.getLocalName() - .equals(XmlElementNames.Version)) { - serverInfo.setVersionString(reader.readElementValue()); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.ServerVersionInfo)); - - return serverInfo; - } - - /** - * Read SOAP body. - * - * @param reader - * EwsXmlReader. - * @return AutodiscoverResponse AutodiscoverResponse object - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws java.text.ParseException - * the parse exception - * @throws Exception - * the exception - */ - protected AutodiscoverResponse readSoapBody(EwsXmlReader reader) - throws InstantiationException, IllegalAccessException, - ParseException, Exception { - reader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - AutodiscoverResponse responses = this.loadFromXml(reader); - reader.readEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - return responses; - } - - /** - * Loads responses from XML. - * - * @param reader - * The reader. - * @return AutodiscoverResponse AutodiscoverResponse object - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws java.text.ParseException - * the parse exception - * @throws Exception - * the exception - */ - protected AutodiscoverResponse loadFromXml(EwsXmlReader reader) - throws InstantiationException, IllegalAccessException, - ParseException, Exception { - String elementName = this.getResponseXmlElementName(); - reader.readStartElement(XmlNamespace.Autodiscover, elementName); - AutodiscoverResponse response = this.createServiceResponse(); - response.loadFromXml(reader, elementName); - return response; - } - - /** - * Gets the name of the request XML element. - * - * @return RequestXmlElementName gets XmlElementName. - * - */ - protected abstract String getRequestXmlElementName(); - - /** - * Gets the name of the response XML element. - * - * @return ResponseXmlElementName gets XmlElementName. - * - */ - protected abstract String getResponseXmlElementName(); - - /** - * Gets the WS-Addressing action name. - * - * @return WsAddressingActionName gets WsAddressingActionName. - * - */ - protected abstract String getWsAddressingActionName(); - - /** - * Creates the service response. - * - * @return AutodiscoverResponse AutodiscoverResponse object. - * - */ - protected abstract AutodiscoverResponse createServiceResponse(); - - /** - * Writes attributes to request XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException; - - /** - * Writes elements to request XML. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException; - - /** - * Gets the Service. - * - * @return AutodiscoverService AutodiscoverService object. - * - */ - protected AutodiscoverService getService() { - return this.service; - } - - /** - * Gets the URL. - * - * @return url URL Object. - * - */ - protected URI getUrl() { - return this.url; - } + if (contentEncoding.contains("gzip")) { + responseStream = new GZIPInputStream(request.getInputStream()); + } else if (contentEncoding.contains("deflate")) { + responseStream = new InflaterInputStream(request.getInputStream()); + } else { + responseStream = request.getInputStream(); + } + return responseStream; + } + + /** + * Read SOAP header. + * + * @param reader EwsXmlReader. + * @throws Exception the exception + */ + protected void readSoapHeaders(EwsXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName); + do { + reader.read(); + + this.readSoapHeader(reader); + } while (!reader.isEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName)); + } + + /** + * Reads a single SOAP header. + * + * @param reader EwsXmlReader + * @throws Exception + */ + protected void readSoapHeader(EwsXmlReader reader) throws Exception { + // Is this the ServerVersionInfo? + if (reader.isStartElement(XmlNamespace.Autodiscover, + XmlElementNames.ServerVersionInfo)) { + this.service.setServerInfo(this.readServerVersionInfo(reader)); + } + } + + /** + * Read ServerVersionInfo SOAP header. + * + * @param reader EwsXmlReader. + * @return ExchangeServerInfo ExchangeServerInfo object + * @throws Exception the exception + */ + private ExchangeServerInfo readServerVersionInfo(EwsXmlReader reader) + throws Exception { + ExchangeServerInfo serverInfo = new ExchangeServerInfo(); + do { + reader.read(); + + if (reader.isStartElement()) { + if (reader.getLocalName().equals(XmlElementNames.MajorVersion)) { + serverInfo.setMajorVersion(reader + .readElementValue(Integer.class)); + } else if (reader.getLocalName().equals( + XmlElementNames.MinorVersion)) { + serverInfo.setMinorVersion(reader + .readElementValue(Integer.class)); + } else if (reader.getLocalName().equals( + XmlElementNames.MajorBuildNumber)) { + serverInfo.setMajorBuildNumber(reader + .readElementValue(Integer.class)); + } else if (reader.getLocalName().equals( + XmlElementNames.MinorBuildNumber)) { + serverInfo.setMinorBuildNumber(reader + .readElementValue(Integer.class)); + } else if (reader.getLocalName() + .equals(XmlElementNames.Version)) { + serverInfo.setVersionString(reader.readElementValue()); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.ServerVersionInfo)); + + return serverInfo; + } + + /** + * Read SOAP body. + * + * @param reader EwsXmlReader. + * @return AutodiscoverResponse AutodiscoverResponse object + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws java.text.ParseException the parse exception + * @throws Exception the exception + */ + protected AutodiscoverResponse readSoapBody(EwsXmlReader reader) + throws InstantiationException, IllegalAccessException, + ParseException, Exception { + reader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + AutodiscoverResponse responses = this.loadFromXml(reader); + reader.readEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + return responses; + } + + /** + * Loads responses from XML. + * + * @param reader The reader. + * @return AutodiscoverResponse AutodiscoverResponse object + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws java.text.ParseException the parse exception + * @throws Exception the exception + */ + protected AutodiscoverResponse loadFromXml(EwsXmlReader reader) + throws InstantiationException, IllegalAccessException, + ParseException, Exception { + String elementName = this.getResponseXmlElementName(); + reader.readStartElement(XmlNamespace.Autodiscover, elementName); + AutodiscoverResponse response = this.createServiceResponse(); + response.loadFromXml(reader, elementName); + return response; + } + + /** + * Gets the name of the request XML element. + * + * @return RequestXmlElementName gets XmlElementName. + */ + protected abstract String getRequestXmlElementName(); + + /** + * Gets the name of the response XML element. + * + * @return ResponseXmlElementName gets XmlElementName. + */ + protected abstract String getResponseXmlElementName(); + + /** + * Gets the WS-Addressing action name. + * + * @return WsAddressingActionName gets WsAddressingActionName. + */ + protected abstract String getWsAddressingActionName(); + + /** + * Creates the service response. + * + * @return AutodiscoverResponse AutodiscoverResponse object. + */ + protected abstract AutodiscoverResponse createServiceResponse(); + + /** + * Writes attributes to request XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException; + + /** + * Writes elements to request XML. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException; + + /** + * Gets the Service. + * + * @return AutodiscoverService AutodiscoverService object. + */ + protected AutodiscoverService getService() { + return this.service; + } + + /** + * Gets the URL. + * + * @return url URL Object. + */ + protected URI getUrl() { + return this.url; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java index 1eaf71d9b..c0b3cd986 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java @@ -15,101 +15,100 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for all responses returned by the Autodiscover * service. - * */ public abstract class AutodiscoverResponse { - /** The error code. */ - private AutodiscoverErrorCode errorCode; + /** + * The error code. + */ + private AutodiscoverErrorCode errorCode; - /** The error message. */ - private String errorMessage; + /** + * The error message. + */ + private String errorMessage; - /** The redirection url. */ - private URI redirectionUrl; + /** + * The redirection url. + */ + private URI redirectionUrl; - /** - * Initializes a new instance of the AutodiscoverResponse class. - */ - AutodiscoverResponse() { - this.errorCode = AutodiscoverErrorCode.NoError; - } + /** + * Initializes a new instance of the AutodiscoverResponse class. + */ + AutodiscoverResponse() { + this.errorCode = AutodiscoverErrorCode.NoError; + } - /** - * Initializes a new instance of the AutodiscoverResponse class. - * - * @param reader - * the reader - * @param endElementName - * the end element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader, String endElementName) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ErrorCode)) { - this.errorCode = reader - .readElementValue(AutodiscoverErrorCode.class); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ErrorMessage)) { - this.errorMessage = reader.readElementValue(); - } - } + /** + * Initializes a new instance of the AutodiscoverResponse class. + * + * @param reader the reader + * @param endElementName the end element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader, String endElementName) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ErrorCode)) { + this.errorCode = reader + .readElementValue(AutodiscoverErrorCode.class); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ErrorMessage)) { + this.errorMessage = reader.readElementValue(); + } + } - /** - * Gets the error code that was returned by the service. - * - * @return the error code - */ - public AutodiscoverErrorCode getErrorCode() { - return errorCode; - } + /** + * Gets the error code that was returned by the service. + * + * @return the error code + */ + public AutodiscoverErrorCode getErrorCode() { + return errorCode; + } - /** - * Sets the error code. - * - * @param errorCode - * the new error code - */ - protected void setErrorCode(AutodiscoverErrorCode errorCode) { - this.errorCode = errorCode; - } + /** + * Sets the error code. + * + * @param errorCode the new error code + */ + protected void setErrorCode(AutodiscoverErrorCode errorCode) { + this.errorCode = errorCode; + } - /** - * Gets the error message that was returned by the service. - * - * @return the error message - */ - public String getErrorMessage() { - return errorMessage; - } + /** + * Gets the error message that was returned by the service. + * + * @return the error message + */ + public String getErrorMessage() { + return errorMessage; + } - /** - * Sets the error message. - * - * @param errorMessage - * the new error message - */ - protected void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } + /** + * Sets the error message. + * + * @param errorMessage the new error message + */ + protected void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } - /** - * Gets the redirection URL. - * - * @return the redirection url - */ - protected URI getRedirectionUrl() { - return redirectionUrl; - } + /** + * Gets the redirection URL. + * + * @return the redirection url + */ + protected URI getRedirectionUrl() { + return redirectionUrl; + } - /** - * Sets the redirection url. - * - * @param redirectionUrl - * the new redirection url - */ - protected void setRedirectionUrl(URI redirectionUrl) { - this.redirectionUrl = redirectionUrl; - } + /** + * Sets the redirection url. + * + * @param redirectionUrl the new redirection url + */ + protected void setRedirectionUrl(URI redirectionUrl) { + this.redirectionUrl = redirectionUrl; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index b45875bf7..6d56c45dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -16,135 +16,130 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of responses to a call to the Autodiscover service. - * - * @param - * The type of the responses in the collection. + * + * @param The type of the responses in the collection. */ public abstract class AutodiscoverResponseCollection - - extends AutodiscoverResponse implements Iterable { + + extends AutodiscoverResponse implements Iterable { - /** The responses. */ - private List responses; + /** + * The responses. + */ + private List responses; - /** - * Initializes a new instance of the AutodiscoverResponseCollection class. - */ - protected AutodiscoverResponseCollection() { - this.responses = new ArrayList(); - } + /** + * Initializes a new instance of the AutodiscoverResponseCollection class. + */ + protected AutodiscoverResponseCollection() { + this.responses = new ArrayList(); + } - /** - * Gets the number of responses in the collection. - * - * @return the count - */ - public int getCount() { - return this.responses.size(); - } + /** + * Gets the number of responses in the collection. + * + * @return the count + */ + public int getCount() { + return this.responses.size(); + } - /** - * Gets the response at the specified index. - * - * @param index - * the index - * @return the t response at index - */ - public TResponse getTResponseAtIndex(int index) { - return this.responses.get(index); - } + /** + * Gets the response at the specified index. + * + * @param index the index + * @return the t response at index + */ + public TResponse getTResponseAtIndex(int index) { + return this.responses.get(index); + } - /** - * Gets the responses. - * - * @return the responses - */ - protected List getResponses() { - return responses; - } + /** + * Gets the responses. + * + * @return the responses + */ + protected List getResponses() { + return responses; + } - /** - * Loads response from XML. - * - * @param reader - * the reader - * @param endElementName - * End element name. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader, String endElementName) - throws Exception { - do { - reader.read(); + /** + * Loads response from XML. + * + * @param reader the reader + * @param endElementName End element name. + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader, String endElementName) + throws Exception { + do { + reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - this.getResponseCollectionXmlElementName())) { - this.loadResponseCollectionFromXml(reader); - } else { - super.loadFromXml(reader, endElementName); - } - } - } while (!reader - .isEndElement(XmlNamespace.Autodiscover, endElementName)); - } + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + this.getResponseCollectionXmlElementName())) { + this.loadResponseCollectionFromXml(reader); + } else { + super.loadFromXml(reader, endElementName); + } + } + } while (!reader + .isEndElement(XmlNamespace.Autodiscover, endElementName)); + } - /** - * Loads response from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - private void loadResponseCollectionFromXml(EwsXmlReader reader) - throws Exception { - if (!reader.isEmptyElement()) { - do { - reader.read(); - if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && - (reader.getLocalName().equals(this - .getResponseInstanceXmlElementName()))) { - TResponse response = this.createResponseInstance(); - response.loadFromXml(reader, this - .getResponseInstanceXmlElementName()); - this.responses.add(response); - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, this - .getResponseCollectionXmlElementName())); - }else { - reader.read(); - } - } + /** + * Loads response from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + private void loadResponseCollectionFromXml(EwsXmlReader reader) + throws Exception { + if (!reader.isEmptyElement()) { + do { + reader.read(); + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && + (reader.getLocalName().equals(this + .getResponseInstanceXmlElementName()))) { + TResponse response = this.createResponseInstance(); + response.loadFromXml(reader, this + .getResponseInstanceXmlElementName()); + this.responses.add(response); + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, this + .getResponseCollectionXmlElementName())); + } else { + reader.read(); + } + } - /** - * Gets the name of the response collection XML element. - * - * @return Response collection XMl element name. - */ - protected abstract String getResponseCollectionXmlElementName(); + /** + * Gets the name of the response collection XML element. + * + * @return Response collection XMl element name. + */ + protected abstract String getResponseCollectionXmlElementName(); - /** - * Gets the name of the response instance XML element. - * - * @return Response collection XMl element name. - */ - protected abstract String getResponseInstanceXmlElementName(); + /** + * Gets the name of the response instance XML element. + * + * @return Response collection XMl element name. + */ + protected abstract String getResponseInstanceXmlElementName(); - /** - * Create a response instance. - * - * @return TResponse. - */ - protected abstract TResponse createResponseInstance(); + /** + * Create a response instance. + * + * @return TResponse. + */ + protected abstract TResponse createResponseInstance(); - /** - * Gets an Iterator that iterates through the elements of the collection. - * - * @return An Iterator for the collection. - */ - public Iterator iterator() { - return this.responses.iterator(); - } + /** + * Gets an Iterator that iterates through the elements of the collection. + * + * @return An Iterator for the collection. + */ + public Iterator iterator() { + return this.responses.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index a08e3b66d..8a646aaf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -15,31 +15,29 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverResponseException extends ServiceRemoteException { - /** - * Error code when Autodiscover service operation failed remotely. - */ - private AutodiscoverErrorCode errorCode; + /** + * Error code when Autodiscover service operation failed remotely. + */ + private AutodiscoverErrorCode errorCode; - /** - * Initializes a new instance of the class. - * - * @param errorCode - * the error code - * @param message - * the message - */ - protected AutodiscoverResponseException(AutodiscoverErrorCode errorCode, - String message) { - super(message); - this.errorCode = errorCode; - } + /** + * Initializes a new instance of the class. + * + * @param errorCode the error code + * @param message the message + */ + protected AutodiscoverResponseException(AutodiscoverErrorCode errorCode, + String message) { + super(message); + this.errorCode = errorCode; + } - /** - * Gets the ErrorCode for the exception. - * - * @return the error code - */ - public AutodiscoverErrorCode getErrorCode() { - return this.errorCode; - } + /** + * Gets the ErrorCode for the exception. + * + * @return the error code + */ + public AutodiscoverErrorCode getErrorCode() { + return this.errorCode; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java index 6d677ea83..54d02ab96 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java @@ -15,16 +15,24 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ enum AutodiscoverResponseType { - // The request returned an error. - /** The Error. */ - Error, - // A URL redirection is necessary. - /** The Redirect url. */ - RedirectUrl, - // An address redirection is necessary. - /** The Redirect address. */ - RedirectAddress, - // The request succeeded. - /** The Success. */ - Success + // The request returned an error. + /** + * The Error. + */ + Error, + // A URL redirection is necessary. + /** + * The Redirect url. + */ + RedirectUrl, + // An address redirection is necessary. + /** + * The Redirect address. + */ + RedirectAddress, + // The request succeeded. + /** + * The Success. + */ + Success } diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 29f3d36aa..a244fc84b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -10,1389 +10,1331 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.PrintWriter; +import javax.xml.stream.XMLStreamException; +import java.io.*; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.util.*; -import javax.xml.stream.XMLStreamException; - /** * Represents a binding to the Exchange Autodiscover Service. */ public final class AutodiscoverService extends ExchangeServiceBase implements -IAutodiscoverRedirectionUrl, IFunctionDelegate { - - // region Private members - /** The domain. */ - private String domain; - - /** The is external. */ - private Boolean isExternal = true; - - /** The url. */ - private URI url; - - /** The redirection url validation callback. */ - private IAutodiscoverRedirectionUrl - redirectionUrlValidationCallback; - - /** The dns client. */ - private AutodiscoverDnsClient dnsClient; - - /** The dns server address. */ - private String dnsServerAddress; - - /** The enable scp lookup. */ - private boolean enableScpLookup = true; - - // Autodiscover legacy path - /** The Constant AutodiscoverLegacyPath. */ - private static final String AutodiscoverLegacyPath = - "/autodiscover/autodiscover.xml"; - - // Autodiscover legacy HTTPS Url - /** The Constant AutodiscoverLegacyHttpsUrl. */ - private static final String AutodiscoverLegacyHttpsUrl = "https://%s" + - AutodiscoverLegacyPath; - // Autodiscover legacy HTTP Url - /** The Constant AutodiscoverLegacyHttpUrl. */ - private static final String AutodiscoverLegacyHttpUrl = "http://%s" + - AutodiscoverLegacyPath; - // Autodiscover SOAP HTTPS Url - /** The Constant AutodiscoverSoapHttpsUrl. */ - private static final String AutodiscoverSoapHttpsUrl = - "https://%s/autodiscover/autodiscover.svc"; - // Autodiscover SOAP WS-Security HTTPS Url - /** The Constant AutodiscoverSoapWsSecurityHttpsUrl. */ - private static final String AutodiscoverSoapWsSecurityHttpsUrl = - AutodiscoverSoapHttpsUrl + - "/wssecurity"; - - /** - * Autodiscover SOAP WS-Security symmetrickey HTTPS Url - */ - private static final String AutodiscoverSoapWsSecuritySymmetricKeyHttpsUrl = AutodiscoverSoapHttpsUrl + "/wssecurity/symmetrickey"; - - /** - * Autodiscover SOAP WS-Security x509cert HTTPS Url - */ - private static final String AutodiscoverSoapWsSecurityX509CertHttpsUrl = AutodiscoverSoapHttpsUrl + "/wssecurity/x509cert"; - - - // Autodiscover request namespace - /** The Constant AutodiscoverRequestNamespace. */ - private static final String AutodiscoverRequestNamespace = - "http://schemas.microsoft.com/exchange/autodiscover/" + - "outlook/requestschema/2006"; - // Maximum number of Url (or address) redirections that will be followed by - // an Autodiscover call - /** The Constant AutodiscoverMaxRedirections. */ - protected static final int AutodiscoverMaxRedirections = 10; - // HTTP header indicating that SOAP Autodiscover service is enabled. - /** The Constant AutodiscoverSoapEnabledHeaderName. */ - private static final String AutodiscoverSoapEnabledHeaderName = - "X-SOAP-Enabled"; - // HTTP header indicating that WS-Security Autodiscover service is enabled. - /** The Constant AutodiscoverWsSecurityEnabledHeaderName. */ - private static final String AutodiscoverWsSecurityEnabledHeaderName = - "X-WSSecurity-Enabled"; - - - /** HTTP header indicating that WS-Security/SymmetricKey Autodiscover service is enabled. */ - - private static final String AutodiscoverWsSecuritySymmetricKeyEnabledHeaderName = "X-WSSecurity-SymmetricKey-Enabled"; - - - /** HTTP header indicating that WS-Security/X509Cert Autodiscover service is enabled. */ - - private static final String AutodiscoverWsSecurityX509CertEnabledHeaderName = "X-WSSecurity-X509Cert-Enabled"; - - - // Minimum request version for Autodiscover SOAP service. - /** The Constant MinimumRequestVersionForAutoDiscoverSoapService. */ - private static final ExchangeVersion - MinimumRequestVersionForAutoDiscoverSoapService = - ExchangeVersion.Exchange2010; - - /** - * Default implementation of AutodiscoverRedirectionUrlValidationCallback. - * Always returns true indicating that the URL can be used. - * - * @param redirectionUrl - * the redirection url - * @return Returns true. - * @throws AutodiscoverLocalException - * the autodiscover local exception - */ - private boolean defaultAutodiscoverRedirectionUrlValidationCallback( - String redirectionUrl) throws AutodiscoverLocalException { - throw new AutodiscoverLocalException(String.format( - Strings.AutodiscoverRedirectBlocked, redirectionUrl)); - } - - // Legacy Autodiscover - /** - * Calls the Autodiscover service to get configuration settings at the - * specified URL. - * - * @param - * the generic type - * @param cls - * the cls - * @param emailAddress - * the email address - * @param url - * the url - * @return The requested configuration settings. (TSettings The type of the - * settings to retrieve) - * @throws Exception - * the exception - */ - private - TSettings getLegacyUserSettingsAtUrl( - Class cls, String emailAddress, URI url) - throws Exception { - this - .traceMessage(TraceFlags.AutodiscoverConfiguration, String - .format("Trying to call Autodiscover for %s on %s.", - emailAddress, url)); - - TSettings settings = cls.newInstance(); - HttpWebRequest request = this.prepareHttpWebRequestForUrl(url); - - this.traceHttpRequestHeaders( - TraceFlags.AutodiscoverRequestHttpHeaders, - request); - // OutputStreamWriter out = new - // OutputStreamWriter(request.getOutputStream()); - OutputStream urlOutStream = request.getOutputStream(); - - // If tracing is enabled, we generate the request in-memory so that we - // can pass it along to the ITraceListener. Then we copy the stream to - // the request stream. - if (this.isTraceEnabledFor(TraceFlags.AutodiscoverRequest)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - - PrintWriter writer = new PrintWriter(memoryStream); - this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); - writer.flush(); - - this.traceXml(TraceFlags.AutodiscoverRequest, memoryStream); - // out.write(memoryStream.toString()); - // out.close(); - memoryStream.writeTo(urlOutStream); - urlOutStream.flush(); - urlOutStream.close(); - memoryStream.close(); - } else { - PrintWriter writer = new PrintWriter(urlOutStream); - this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); - + IAutodiscoverRedirectionUrl, IFunctionDelegate { + + // region Private members + /** + * The domain. + */ + private String domain; + + /** + * The is external. + */ + private Boolean isExternal = true; + + /** + * The url. + */ + private URI url; + + /** + * The redirection url validation callback. + */ + private IAutodiscoverRedirectionUrl + redirectionUrlValidationCallback; + + /** + * The dns client. + */ + private AutodiscoverDnsClient dnsClient; + + /** + * The dns server address. + */ + private String dnsServerAddress; + + /** + * The enable scp lookup. + */ + private boolean enableScpLookup = true; + + // Autodiscover legacy path + /** + * The Constant AutodiscoverLegacyPath. + */ + private static final String AutodiscoverLegacyPath = + "/autodiscover/autodiscover.xml"; + + // Autodiscover legacy HTTPS Url + /** + * The Constant AutodiscoverLegacyHttpsUrl. + */ + private static final String AutodiscoverLegacyHttpsUrl = "https://%s" + + AutodiscoverLegacyPath; + // Autodiscover legacy HTTP Url + /** + * The Constant AutodiscoverLegacyHttpUrl. + */ + private static final String AutodiscoverLegacyHttpUrl = "http://%s" + + AutodiscoverLegacyPath; + // Autodiscover SOAP HTTPS Url + /** + * The Constant AutodiscoverSoapHttpsUrl. + */ + private static final String AutodiscoverSoapHttpsUrl = + "https://%s/autodiscover/autodiscover.svc"; + // Autodiscover SOAP WS-Security HTTPS Url + /** + * The Constant AutodiscoverSoapWsSecurityHttpsUrl. + */ + private static final String AutodiscoverSoapWsSecurityHttpsUrl = + AutodiscoverSoapHttpsUrl + + "/wssecurity"; + + /** + * Autodiscover SOAP WS-Security symmetrickey HTTPS Url + */ + private static final String AutodiscoverSoapWsSecuritySymmetricKeyHttpsUrl = + AutodiscoverSoapHttpsUrl + "/wssecurity/symmetrickey"; + + /** + * Autodiscover SOAP WS-Security x509cert HTTPS Url + */ + private static final String AutodiscoverSoapWsSecurityX509CertHttpsUrl = + AutodiscoverSoapHttpsUrl + "/wssecurity/x509cert"; + + + // Autodiscover request namespace + /** + * The Constant AutodiscoverRequestNamespace. + */ + private static final String AutodiscoverRequestNamespace = + "http://schemas.microsoft.com/exchange/autodiscover/" + + "outlook/requestschema/2006"; + // Maximum number of Url (or address) redirections that will be followed by + // an Autodiscover call + /** + * The Constant AutodiscoverMaxRedirections. + */ + protected static final int AutodiscoverMaxRedirections = 10; + // HTTP header indicating that SOAP Autodiscover service is enabled. + /** + * The Constant AutodiscoverSoapEnabledHeaderName. + */ + private static final String AutodiscoverSoapEnabledHeaderName = + "X-SOAP-Enabled"; + // HTTP header indicating that WS-Security Autodiscover service is enabled. + /** + * The Constant AutodiscoverWsSecurityEnabledHeaderName. + */ + private static final String AutodiscoverWsSecurityEnabledHeaderName = + "X-WSSecurity-Enabled"; + + + /** + * HTTP header indicating that WS-Security/SymmetricKey Autodiscover service is enabled. + */ + + private static final String AutodiscoverWsSecuritySymmetricKeyEnabledHeaderName = + "X-WSSecurity-SymmetricKey-Enabled"; + + + /** + * HTTP header indicating that WS-Security/X509Cert Autodiscover service is enabled. + */ + + private static final String AutodiscoverWsSecurityX509CertEnabledHeaderName = + "X-WSSecurity-X509Cert-Enabled"; + + + // Minimum request version for Autodiscover SOAP service. + /** + * The Constant MinimumRequestVersionForAutoDiscoverSoapService. + */ + private static final ExchangeVersion + MinimumRequestVersionForAutoDiscoverSoapService = + ExchangeVersion.Exchange2010; + + /** + * Default implementation of AutodiscoverRedirectionUrlValidationCallback. + * Always returns true indicating that the URL can be used. + * + * @param redirectionUrl the redirection url + * @return Returns true. + * @throws AutodiscoverLocalException the autodiscover local exception + */ + private boolean defaultAutodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) throws AutodiscoverLocalException { + throw new AutodiscoverLocalException(String.format( + Strings.AutodiscoverRedirectBlocked, redirectionUrl)); + } + + // Legacy Autodiscover + + /** + * Calls the Autodiscover service to get configuration settings at the + * specified URL. + * + * @param the generic type + * @param cls the cls + * @param emailAddress the email address + * @param url the url + * @return The requested configuration settings. (TSettings The type of the + * settings to retrieve) + * @throws Exception the exception + */ + private + TSettings getLegacyUserSettingsAtUrl( + Class cls, String emailAddress, URI url) + throws Exception { + this + .traceMessage(TraceFlags.AutodiscoverConfiguration, String + .format("Trying to call Autodiscover for %s on %s.", + emailAddress, url)); + + TSettings settings = cls.newInstance(); + HttpWebRequest request = this.prepareHttpWebRequestForUrl(url); + + this.traceHttpRequestHeaders( + TraceFlags.AutodiscoverRequestHttpHeaders, + request); + // OutputStreamWriter out = new + // OutputStreamWriter(request.getOutputStream()); + OutputStream urlOutStream = request.getOutputStream(); + + // If tracing is enabled, we generate the request in-memory so that we + // can pass it along to the ITraceListener. Then we copy the stream to + // the request stream. + if (this.isTraceEnabledFor(TraceFlags.AutodiscoverRequest)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + + PrintWriter writer = new PrintWriter(memoryStream); + this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); + writer.flush(); + + this.traceXml(TraceFlags.AutodiscoverRequest, memoryStream); + // out.write(memoryStream.toString()); + // out.close(); + memoryStream.writeTo(urlOutStream); + urlOutStream.flush(); + urlOutStream.close(); + memoryStream.close(); + } else { + PrintWriter writer = new PrintWriter(urlOutStream); + this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); + /* Flush Start */ - writer.flush(); - urlOutStream.flush(); - urlOutStream.close(); + writer.flush(); + urlOutStream.flush(); + urlOutStream.close(); /* Flush End */ - } - request.executeRequest(); - request.getResponseCode(); - URI redirectUrl; - OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = outParam.getParam(); - settings.makeRedirectionResponse(redirectUrl); - return settings; - } - InputStream serviceResponseStream = request.getInputStream(); - // If tracing is enabled, we read the entire response into a - // MemoryStream so that we - // can pass it along to the ITraceListener. Then we parse the response - // from the - // MemoryStream. - if (this.isTraceEnabledFor(TraceFlags.AutodiscoverResponse)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - memoryStream.flush(); - - this.traceResponse(request, memoryStream); - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); - reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - settings.loadFromXml(reader); - - } else { - EwsXmlReader reader = new EwsXmlReader(serviceResponseStream); - reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - settings.loadFromXml(reader); - } - - serviceResponseStream.close(); - - try { - request.close(); - } catch (Exception e2) { - // do nothing - } - - return settings; - } - - /** - * Writes the autodiscover request. - * - * @param emailAddress - * the email address - * @param settings - * the settings - * @param writer - * the writer - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - private void writeLegacyAutodiscoverRequest(String emailAddress, - ConfigurationSettingsBase settings, PrintWriter writer) - throws IOException { - writer.write(String.format("", - AutodiscoverRequestNamespace)); - writer.write(""); - writer.write(String.format("%s", - emailAddress)); - writer.write(String.format( - "%s", - settings.getNamespace())); - writer.write(""); - writer.write(""); - } - - /** - * Gets a redirection URL to an SSL-enabled Autodiscover service from the - * standard non-SSL Autodiscover URL. - * - * @param domainName - * the domain name - * @return A valid SSL-enabled redirection URL. (May be null). - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws ServiceLocalException - * the service local exception - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - private URI getRedirectUrl(String domainName) throws EWSHttpException, - XMLStreamException, IOException, ServiceLocalException, - URISyntaxException { - String url = String.format(AutodiscoverLegacyHttpUrl, "autodiscover." - + domainName); - - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Trying to get Autodiscover redirection URL from %s.", url)); - - HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); - try { - request.setUrl(URI.create(url).toURL()); - } catch (MalformedURLException e) { - String strErr = String.format("Incorrect format : %s", url); - throw new ServiceLocalException(strErr); - } - - request.setAllowAutoRedirect(false); - request.setPreAuthenticate(false); - request.setRequestMethod("GET"); - request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings.CredentialsRequired); - } - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); - - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - try { - request.prepareAsyncConnection(); - } catch (Exception ex) { - ex.getMessage(); - request = null; - } - - if (request != null) - { - URI redirectUrl; - OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) - { - redirectUrl = outParam.getParam(); - return redirectUrl; - } - } - try { - if (request != null) { - request.close(); - } - } catch (Exception e2) { - // do nothing - } - - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - "No Autodiscover redirection URL was returned."); - - return null; - } - - /** - * Tries the get redirection response. - * - * @param request - * the request - * @param redirectUrl - * The redirect URL. - * @return True if a valid redirection URL was found. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - private boolean tryGetRedirectionResponse(HttpWebRequest request, - OutParam redirectUrl) throws XMLStreamException, IOException, - EWSHttpException { - // redirectUrl = null; - if (AutodiscoverRequest.isRedirectionResponse(request)) { - // Get the redirect location and verify that it's valid. - String location = request.getResponseHeaderField("Location"); - - if (!(location == null || location.isEmpty())) { - try { - redirectUrl.setParam(new URI(location)); - - // Check if URL is SSL and that the path matches. - if ((redirectUrl.getParam().getScheme().toLowerCase() - .equals("https")) && - (redirectUrl.getParam().getPath() - .equalsIgnoreCase( - AutodiscoverLegacyPath))) { - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format("Redirection URL found: '%s'", - redirectUrl.getParam().toString())); - - return true; - } - } catch (URISyntaxException ex) { - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "Invalid redirection URL " + - "was returned: '%s'", - location)); - return false; - } - } - } - return false; - } - - /** - * Calls the legacy Autodiscover service to retrieve configuration settings. - * - * @param - * the generic type - * @param cls - * the cls - * @param emailAddress - * The email address to retrieve configuration settings for. - * @return The requested configuration settings. - * @throws Exception - * the exception - */ - protected - TSettings getLegacyUserSettings( - Class cls, String emailAddress) throws Exception { - /*int currentHop = 1; - return this.internalGetConfigurationSettings(cls, emailAddress, - currentHop);*/ - - // If Url is specified, call service directly. - if (this.url != null) - { - // this.Uri is intended for Autodiscover SOAP service, convert to Legacy endpoint URL. - URI autodiscoverUrl = new URI(this.url.toString()+AutodiscoverLegacyPath); - return this.getLegacyUserSettingsAtUrl(cls, emailAddress, autodiscoverUrl); + } + request.executeRequest(); + request.getResponseCode(); + URI redirectUrl; + OutParam outParam = new OutParam(); + if (this.tryGetRedirectionResponse(request, outParam)) { + redirectUrl = outParam.getParam(); + settings.makeRedirectionResponse(redirectUrl); + return settings; + } + InputStream serviceResponseStream = request.getInputStream(); + // If tracing is enabled, we read the entire response into a + // MemoryStream so that we + // can pass it along to the ITraceListener. Then we parse the response + // from the + // MemoryStream. + if (this.isTraceEnabledFor(TraceFlags.AutodiscoverResponse)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); } + } + memoryStream.flush(); + + this.traceResponse(request, memoryStream); + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + settings.loadFromXml(reader); + + } else { + EwsXmlReader reader = new EwsXmlReader(serviceResponseStream); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + settings.loadFromXml(reader); + } - // If Domain is specified, figure out the endpoint Url and call service. - else if (!(this.domain == null || this.domain.isEmpty())) - { - URI autodiscoverUrl = new URI(String.format(AutodiscoverLegacyHttpsUrl, this.domain)); - return this.getLegacyUserSettingsAtUrl(cls, - emailAddress, autodiscoverUrl); - } - else - { - // No Url or Domain specified, need to - //figure out which endpoint to use. - int currentHop = 1; - OutParam outParam = new OutParam(); - outParam.setParam(currentHop); - List redirectionEmailAddresses = new ArrayList(); - return this.internalGetLegacyUserSettings( - cls, - emailAddress, - redirectionEmailAddresses, - outParam); - } - } + serviceResponseStream.close(); - /** - * Calls the Autodiscover service to retrieve configuration settings. - * - * @param - * the generic type - * @param cls - * the cls - * @param emailAddress - * The email address to retrieve configuration settings for. - * @param currentHop - * Current number of redirection urls/addresses attempted so far. - * @return The requested configuration settings. - * @throws Exception - * the exception - */ - private - TSettings internalGetLegacyUserSettings( - Class cls, - String emailAddress, - List redirectionEmailAddresses, - OutParam currentHop) - throws Exception { - String domainName = EwsUtilities.domainFromEmailAddress(emailAddress); - - int scpUrlCount; - OutParam outParamInt = new OutParam(); - List urls = this.getAutodiscoverServiceUrls(domainName, outParamInt); - scpUrlCount = outParamInt.getParam(); - if (urls.size() == 0) - { - throw new ServiceValidationException( - Strings.AutodiscoverServiceRequestRequiresDomainOrUrl); - } + try { + request.close(); + } catch (Exception e2) { + // do nothing + } - // Assume caller is not inside the Intranet, regardless of whether SCP - // Urls - // were returned or not. SCP Urls are only relevent if one of them - // returns - // valid Autodiscover settings. - this.isExternal = true; - - int currentUrlIndex = 0; - - // Used to save exception for later reporting. - Exception delayedException = null; - TSettings settings; - - do { - URI autodiscoverUrl = urls.get(currentUrlIndex); - boolean isScpUrl = currentUrlIndex < scpUrlCount; - - try { - settings = this.getLegacyUserSettingsAtUrl(cls, - emailAddress, autodiscoverUrl); - - switch (settings.getResponseType()) { - case Success: - // Not external if Autodiscover endpoint found via SCP - // returned the settings. - if (isScpUrl) { - this.isExternal = false; - } - this.url = autodiscoverUrl; - return settings; - case RedirectUrl: - if (currentHop.getParam() < AutodiscoverMaxRedirections) { - currentHop.setParam(currentHop.getParam() + 1); - - this - .traceMessage( - TraceFlags.AutodiscoverResponse, - String - .format( - "Autodiscover " + - "service " + - "returned " + - "redirection URL '%s'.", - settings - .getRedirectTarget())); - - urls.add(currentUrlIndex, new URI( - settings.getRedirectTarget())); - - break; - } else { - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); - } - case RedirectAddress: - if (currentHop.getParam() < AutodiscoverMaxRedirections) { - currentHop.setParam(currentHop.getParam() + 1); - - this - .traceMessage( - TraceFlags.AutodiscoverResponse, - String - .format( - "Autodiscover " + - "service " + - "returned " + - "redirection email " + - "address '%s'.", - settings - .getRedirectTarget())); - // Bug E14:255576 If this email address was already tried, we may have a loop - // in SCP lookups. Disable consideration of SCP records. - this.disableScpLookupIfDuplicateRedirection( - settings.getRedirectTarget(), - redirectionEmailAddresses); - - return this.internalGetLegacyUserSettings(cls, - settings.getRedirectTarget(), - redirectionEmailAddresses, - currentHop); - } else { - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); - } - case Error: - // Don't treat errors from an SCP-based Autodiscover service - // to be conclusive. - // We'll try the next one and record the error for later. - if (isScpUrl) { - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - "Error returned by " + - "Autodiscover service " + - "found via SCP, treating " + - "as inconclusive."); - - delayedException = new AutodiscoverRemoteException( - Strings.AutodiscoverError, settings.getError()); - currentUrlIndex++; - } else { - throw new AutodiscoverRemoteException( - Strings.AutodiscoverError, settings.getError()); - } - break; - default: - EwsUtilities - .EwsAssert(false, - "Autodiscover.GetConfigurationSettings", - "An unexpected error has occured. " + - "This code path should never be reached."); - break; - } - } catch (XMLStreamException ex) { - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String - .format("%s failed: XML parsing error: %s", url, ex - .getMessage())); - - // The content at the URL wasn't a valid response, let's try the - // next. - currentUrlIndex++; - } catch (IOException ex) { - this.traceMessage( - TraceFlags.AutodiscoverConfiguration, - String.format("%s failed: I/O error: %s", - url, ex.getMessage())); - - // The content at the URL wasn't a valid response, let's try the next. - currentUrlIndex++; - } catch (Exception ex) { - HttpWebRequest response = null; - URI redirectUrl; - OutParam outParam1 = new OutParam(); - if ((response != null) && - this.tryGetRedirectionResponse(response, outParam1)) { - redirectUrl = outParam1.getParam(); - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Host returned a redirection to url %s", - redirectUrl.toString())); - - currentHop.setParam(currentHop.getParam() + 1); - urls.add(currentUrlIndex, redirectUrl); - } else { - if (response != null) { - this.processHttpErrorResponse(response, ex); + return settings; + } + + /** + * Writes the autodiscover request. + * + * @param emailAddress the email address + * @param settings the settings + * @param writer the writer + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + private void writeLegacyAutodiscoverRequest(String emailAddress, + ConfigurationSettingsBase settings, PrintWriter writer) + throws IOException { + writer.write(String.format("", + AutodiscoverRequestNamespace)); + writer.write(""); + writer.write(String.format("%s", + emailAddress)); + writer.write(String.format( + "%s", + settings.getNamespace())); + writer.write(""); + writer.write(""); + } + + /** + * Gets a redirection URL to an SSL-enabled Autodiscover service from the + * standard non-SSL Autodiscover URL. + * + * @param domainName the domain name + * @return A valid SSL-enabled redirection URL. (May be null). + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws ServiceLocalException the service local exception + * @throws java.net.URISyntaxException the uRI syntax exception + */ + private URI getRedirectUrl(String domainName) throws EWSHttpException, + XMLStreamException, IOException, ServiceLocalException, + URISyntaxException { + String url = String.format(AutodiscoverLegacyHttpUrl, "autodiscover." + + domainName); + + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( + "Trying to get Autodiscover redirection URL from %s.", url)); + + HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); + try { + request.setUrl(URI.create(url).toURL()); + } catch (MalformedURLException e) { + String strErr = String.format("Incorrect format : %s", url); + throw new ServiceLocalException(strErr); + } + + request.setAllowAutoRedirect(false); + request.setPreAuthenticate(false); + request.setRequestMethod("GET"); + request.setUseDefaultCredentials(this.getUseDefaultCredentials()); + if (!this.getUseDefaultCredentials()) { + ExchangeCredentials serviceCredentials = this.getCredentials(); + if (null == serviceCredentials) { + throw new ServiceLocalException(Strings.CredentialsRequired); + } + // Make sure that credentials have been authenticated if required + serviceCredentials.preAuthenticate(); + + // Apply credentials to the request + serviceCredentials.prepareWebRequest(request); + } + try { + request.prepareAsyncConnection(); + } catch (Exception ex) { + ex.getMessage(); + request = null; + } - } + if (request != null) { + URI redirectUrl; + OutParam outParam = new OutParam(); + if (this.tryGetRedirectionResponse(request, outParam)) { + redirectUrl = outParam.getParam(); + return redirectUrl; + } + } + try { + if (request != null) { + request.close(); + } + } catch (Exception e2) { + // do nothing + } - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format("%s failed: %s (%s)", url, ex - .getClass().getName(), ex.getMessage())); + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + "No Autodiscover redirection URL was returned."); + + return null; + } + + /** + * Tries the get redirection response. + * + * @param request the request + * @param redirectUrl The redirect URL. + * @return True if a valid redirection URL was found. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + private boolean tryGetRedirectionResponse(HttpWebRequest request, + OutParam redirectUrl) throws XMLStreamException, IOException, + EWSHttpException { + // redirectUrl = null; + if (AutodiscoverRequest.isRedirectionResponse(request)) { + // Get the redirect location and verify that it's valid. + String location = request.getResponseHeaderField("Location"); + + if (!(location == null || location.isEmpty())) { + try { + redirectUrl.setParam(new URI(location)); + + // Check if URL is SSL and that the path matches. + if ((redirectUrl.getParam().getScheme().toLowerCase() + .equals("https")) && + (redirectUrl.getParam().getPath() + .equalsIgnoreCase( + AutodiscoverLegacyPath))) { + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("Redirection URL found: '%s'", + redirectUrl.getParam().toString())); + + return true; + } + } catch (URISyntaxException ex) { + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "Invalid redirection URL " + + "was returned: '%s'", + location)); + return false; + } + } + } + return false; + } + + /** + * Calls the legacy Autodiscover service to retrieve configuration settings. + * + * @param the generic type + * @param cls the cls + * @param emailAddress The email address to retrieve configuration settings for. + * @return The requested configuration settings. + * @throws Exception the exception + */ + protected + TSettings getLegacyUserSettings( + Class cls, String emailAddress) throws Exception { + /*int currentHop = 1; + return this.internalGetConfigurationSettings(cls, emailAddress, + currentHop);*/ - // The url did not work, let's try the next. - currentUrlIndex++; - } - } - } while (currentUrlIndex < urls.size()); - - // If we got this far it's because none of the URLs we tried have - // worked. As a next-to-last chance, use GetRedirectUrl to - // try to get a redirection URL using an HTTP GET on a non-SSL - // Autodiscover endpoint. If successful, use this - // redirection URL to get the configuration settings for this email - // address. (This will be a common scenario for - // DataCenter deployments). - URI redirectionUrl = this.getRedirectUrl(domainName); - OutParam outParam = new OutParam(); - if ((redirectionUrl != null) - && this.tryLastChanceHostRedirection(cls, emailAddress, - redirectionUrl, outParam)) { - settings = outParam.getParam(); - return settings; - } else { - // Getting a redirection URL from an HTTP GET failed too. As a last - // chance, try to get an appropriate SRV Record - // using DnsQuery. If successful, use this redirection URL to get - // the configuration settings for this email address. - redirectionUrl = this.getRedirectionUrlFromDnsSrvRecord(domainName); - if ((redirectionUrl != null) - && this.tryLastChanceHostRedirection(cls, emailAddress, - redirectionUrl, outParam)) { - return outParam.getParam(); - } + // If Url is specified, call service directly. + if (this.url != null) { + // this.Uri is intended for Autodiscover SOAP service, convert to Legacy endpoint URL. + URI autodiscoverUrl = new URI(this.url.toString() + AutodiscoverLegacyPath); + return this.getLegacyUserSettingsAtUrl(cls, emailAddress, autodiscoverUrl); + } - // If there was an earlier exception, throw it. - if (delayedException != null) { - throw delayedException; - } + // If Domain is specified, figure out the endpoint Url and call service. + else if (!(this.domain == null || this.domain.isEmpty())) { + URI autodiscoverUrl = new URI(String.format(AutodiscoverLegacyHttpsUrl, this.domain)); + return this.getLegacyUserSettingsAtUrl(cls, + emailAddress, autodiscoverUrl); + } else { + // No Url or Domain specified, need to + //figure out which endpoint to use. + int currentHop = 1; + OutParam outParam = new OutParam(); + outParam.setParam(currentHop); + List redirectionEmailAddresses = new ArrayList(); + return this.internalGetLegacyUserSettings( + cls, + emailAddress, + redirectionEmailAddresses, + outParam); + } + } + + /** + * Calls the Autodiscover service to retrieve configuration settings. + * + * @param the generic type + * @param cls the cls + * @param emailAddress The email address to retrieve configuration settings for. + * @param currentHop Current number of redirection urls/addresses attempted so far. + * @return The requested configuration settings. + * @throws Exception the exception + */ + private + TSettings internalGetLegacyUserSettings( + Class cls, + String emailAddress, + List redirectionEmailAddresses, + OutParam currentHop) + throws Exception { + String domainName = EwsUtilities.domainFromEmailAddress(emailAddress); + + int scpUrlCount; + OutParam outParamInt = new OutParam(); + List urls = this.getAutodiscoverServiceUrls(domainName, outParamInt); + scpUrlCount = outParamInt.getParam(); + if (urls.size() == 0) { + throw new ServiceValidationException( + Strings.AutodiscoverServiceRequestRequiresDomainOrUrl); + } - throw new AutodiscoverLocalException(Strings.AutodiscoverCouldNotBeLocated); - } - } - - /** - * Get an autodiscover SRV record in DNS and construct autodiscover URL. - * - * @param domainName - * Name of the domain. - * @return Autodiscover URL (may be null if lookup failed) - * @throws Exception - * the exception - */ - protected URI getRedirectionUrlFromDnsSrvRecord(String domainName) - throws Exception { - - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "Trying to get Autodiscover host " + - "from DNS SRV record for %s.", - domainName)); - - String hostname = this.dnsClient - .findAutodiscoverHostFromSrv(domainName); - if (!(hostname == null || hostname.isEmpty())) { - this - .traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Autodiscover host %s was returned.", - hostname)); - - return new URI(String.format(AutodiscoverLegacyHttpsUrl, - hostname)); - } else { - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - "No matching Autodiscover DNS SRV records were found."); - - return null; - } - } - - /** - * Tries to get Autodiscover settings using redirection Url. - * - * @param - * the generic type - * @param cls - * the cls - * @param emailAddress - * The email address. - * @param redirectionUrl - * Redirection Url. - * @param settings - * The settings. - * @return boolean The boolean. - * @throws AutodiscoverLocalException - * the autodiscover local exception - * @throws AutodiscoverRemoteException - * the autodiscover remote exception - * @throws Exception - * the exception - */ - private boolean - tryLastChanceHostRedirection( - Class cls, String emailAddress, URI redirectionUrl, - OutParam settings) throws AutodiscoverLocalException, - AutodiscoverRemoteException, Exception { - List redirectionEmailAddresses = new ArrayList(); - - // Bug 60274: Performing a non-SSL HTTP GET to retrieve a redirection - // URL is potentially unsafe. We allow the caller - // to specify delegate to be called to determine whether we are allowed - // to use the redirection URL. - if (this - .callRedirectionUrlValidationCallback( - redirectionUrl.toString())) { - for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { - try { - settings.setParam(this.getLegacyUserSettingsAtUrl(cls, - emailAddress, redirectionUrl)); - - switch (settings.getParam().getResponseType()) { - case Success: - return true; - case Error: - throw new AutodiscoverRemoteException( - Strings.AutodiscoverError, settings.getParam() - .getError()); - case RedirectAddress: - // If this email address was already tried, - //we may have a loop - // in SCP lookups. Disable consideration of SCP records. - this.disableScpLookupIfDuplicateRedirection(settings.getParam().getRedirectTarget(), - redirectionEmailAddresses); - OutParam outParam = new OutParam(); - outParam.setParam(currentHop); - settings.setParam( - this.internalGetLegacyUserSettings(cls, - emailAddress, - redirectionEmailAddresses, - outParam)); - currentHop = outParam.getParam(); - return true; - case RedirectUrl: - try { - redirectionUrl = new URI(settings.getParam() - .getRedirectTarget()); - } catch (URISyntaxException ex) { - this - .traceMessage( - TraceFlags. - AutodiscoverConfiguration, - String - .format( - "Service " + - "returned " + - "invalid " + - "redirection " + - "URL %s", - settings - .getParam() - .getRedirectTarget())); - return false; - } - break; - default: - String failureMessage = String.format( - "Autodiscover call at %s failed with error %s, target %s", - redirectionUrl, - settings.getParam().getResponseType(), - settings.getParam().getRedirectTarget()); - this.traceMessage( - TraceFlags.AutodiscoverConfiguration, failureMessage); - - return false; - } - } catch (XMLStreamException ex) { - // If the response is malformed, it wasn't a valid - // Autodiscover endpoint. - this - .traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "%s failed: XML parsing error: %s", - redirectionUrl.toString(), ex - .getMessage())); - return false; - } catch (IOException ex) - { - this.traceMessage( - TraceFlags.AutodiscoverConfiguration, - String.format("%s failed: I/O error: %s", - redirectionUrl, ex.getMessage())); - return false; - }catch (Exception ex) { - // TODO: BUG response is always null - HttpWebRequest response = null; - OutParam outParam = new OutParam(); - if ((response != null) - && this.tryGetRedirectionResponse(response, - outParam)) { - redirectionUrl = outParam.getParam(); - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "Host returned a " + - "redirection" + - " to url %s", - redirectionUrl)); - - } else { - if (response != null) { - this.processHttpErrorResponse(response, ex); - } - - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String.format("%s failed: %s (%s)", - url, ex.getClass().getName(), - ex.getMessage())); - return false; - } - } - } - } - - return false; - } - - /** - * Disables SCP lookup if duplicate email address redirection. - * - * @param emailAddress - * The email address to use. - * @param redirectionEmailAddresses - * The list of prior redirection email addresses. - */ - private void disableScpLookupIfDuplicateRedirection( - String emailAddress, - List redirectionEmailAddresses) { - // SMTP addresses are case-insensitive so entries are converted to lower-case. - emailAddress = emailAddress.toLowerCase(); - - if (redirectionEmailAddresses.contains(emailAddress)) - { - this.enableScpLookup = false; + // Assume caller is not inside the Intranet, regardless of whether SCP + // Urls + // were returned or not. SCP Urls are only relevent if one of them + // returns + // valid Autodiscover settings. + this.isExternal = true; + + int currentUrlIndex = 0; + + // Used to save exception for later reporting. + Exception delayedException = null; + TSettings settings; + + do { + URI autodiscoverUrl = urls.get(currentUrlIndex); + boolean isScpUrl = currentUrlIndex < scpUrlCount; + + try { + settings = this.getLegacyUserSettingsAtUrl(cls, + emailAddress, autodiscoverUrl); + + switch (settings.getResponseType()) { + case Success: + // Not external if Autodiscover endpoint found via SCP + // returned the settings. + if (isScpUrl) { + this.isExternal = false; + } + this.url = autodiscoverUrl; + return settings; + case RedirectUrl: + if (currentHop.getParam() < AutodiscoverMaxRedirections) { + currentHop.setParam(currentHop.getParam() + 1); + + this + .traceMessage( + TraceFlags.AutodiscoverResponse, + String + .format( + "Autodiscover " + + "service " + + "returned " + + "redirection URL '%s'.", + settings + .getRedirectTarget())); + + urls.add(currentUrlIndex, new URI( + settings.getRedirectTarget())); + + break; + } else { + throw new AutodiscoverLocalException( + Strings.MaximumRedirectionHopsExceeded); + } + case RedirectAddress: + if (currentHop.getParam() < AutodiscoverMaxRedirections) { + currentHop.setParam(currentHop.getParam() + 1); + + this + .traceMessage( + TraceFlags.AutodiscoverResponse, + String + .format( + "Autodiscover " + + "service " + + "returned " + + "redirection email " + + "address '%s'.", + settings + .getRedirectTarget())); + // Bug E14:255576 If this email address was already tried, we may have a loop + // in SCP lookups. Disable consideration of SCP records. + this.disableScpLookupIfDuplicateRedirection( + settings.getRedirectTarget(), + redirectionEmailAddresses); + + return this.internalGetLegacyUserSettings(cls, + settings.getRedirectTarget(), + redirectionEmailAddresses, + currentHop); + } else { + throw new AutodiscoverLocalException( + Strings.MaximumRedirectionHopsExceeded); + } + case Error: + // Don't treat errors from an SCP-based Autodiscover service + // to be conclusive. + // We'll try the next one and record the error for later. + if (isScpUrl) { + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + "Error returned by " + + "Autodiscover service " + + "found via SCP, treating " + + "as inconclusive."); + + delayedException = new AutodiscoverRemoteException( + Strings.AutodiscoverError, settings.getError()); + currentUrlIndex++; + } else { + throw new AutodiscoverRemoteException( + Strings.AutodiscoverError, settings.getError()); + } + break; + default: + EwsUtilities + .EwsAssert(false, + "Autodiscover.GetConfigurationSettings", + "An unexpected error has occured. " + + "This code path should never be reached."); + break; } - else - { - redirectionEmailAddresses.add(emailAddress); + } catch (XMLStreamException ex) { + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String + .format("%s failed: XML parsing error: %s", url, ex + .getMessage())); + + // The content at the URL wasn't a valid response, let's try the + // next. + currentUrlIndex++; + } catch (IOException ex) { + this.traceMessage( + TraceFlags.AutodiscoverConfiguration, + String.format("%s failed: I/O error: %s", + url, ex.getMessage())); + + // The content at the URL wasn't a valid response, let's try the next. + currentUrlIndex++; + } catch (Exception ex) { + HttpWebRequest response = null; + URI redirectUrl; + OutParam outParam1 = new OutParam(); + if ((response != null) && + this.tryGetRedirectionResponse(response, outParam1)) { + redirectUrl = outParam1.getParam(); + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "Host returned a redirection to url %s", + redirectUrl.toString())); + + currentHop.setParam(currentHop.getParam() + 1); + urls.add(currentUrlIndex, redirectUrl); + } else { + if (response != null) { + this.processHttpErrorResponse(response, ex); + + } + + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("%s failed: %s (%s)", url, ex + .getClass().getName(), ex.getMessage())); + + // The url did not work, let's try the next. + currentUrlIndex++; + } + } + } while (currentUrlIndex < urls.size()); + + // If we got this far it's because none of the URLs we tried have + // worked. As a next-to-last chance, use GetRedirectUrl to + // try to get a redirection URL using an HTTP GET on a non-SSL + // Autodiscover endpoint. If successful, use this + // redirection URL to get the configuration settings for this email + // address. (This will be a common scenario for + // DataCenter deployments). + URI redirectionUrl = this.getRedirectUrl(domainName); + OutParam outParam = new OutParam(); + if ((redirectionUrl != null) + && this.tryLastChanceHostRedirection(cls, emailAddress, + redirectionUrl, outParam)) { + settings = outParam.getParam(); + return settings; + } else { + // Getting a redirection URL from an HTTP GET failed too. As a last + // chance, try to get an appropriate SRV Record + // using DnsQuery. If successful, use this redirection URL to get + // the configuration settings for this email address. + redirectionUrl = this.getRedirectionUrlFromDnsSrvRecord(domainName); + if ((redirectionUrl != null) + && this.tryLastChanceHostRedirection(cls, emailAddress, + redirectionUrl, outParam)) { + return outParam.getParam(); + } + + // If there was an earlier exception, throw it. + if (delayedException != null) { + throw delayedException; + } + + throw new AutodiscoverLocalException(Strings.AutodiscoverCouldNotBeLocated); + } + } + + /** + * Get an autodiscover SRV record in DNS and construct autodiscover URL. + * + * @param domainName Name of the domain. + * @return Autodiscover URL (may be null if lookup failed) + * @throws Exception the exception + */ + protected URI getRedirectionUrlFromDnsSrvRecord(String domainName) + throws Exception { + + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "Trying to get Autodiscover host " + + "from DNS SRV record for %s.", + domainName)); + + String hostname = this.dnsClient + .findAutodiscoverHostFromSrv(domainName); + if (!(hostname == null || hostname.isEmpty())) { + this + .traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "Autodiscover host %s was returned.", + hostname)); + + return new URI(String.format(AutodiscoverLegacyHttpsUrl, + hostname)); + } else { + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + "No matching Autodiscover DNS SRV records were found."); + + return null; + } + } + + /** + * Tries to get Autodiscover settings using redirection Url. + * + * @param the generic type + * @param cls the cls + * @param emailAddress The email address. + * @param redirectionUrl Redirection Url. + * @param settings The settings. + * @return boolean The boolean. + * @throws AutodiscoverLocalException the autodiscover local exception + * @throws AutodiscoverRemoteException the autodiscover remote exception + * @throws Exception the exception + */ + private boolean + tryLastChanceHostRedirection( + Class cls, String emailAddress, URI redirectionUrl, + OutParam settings) throws AutodiscoverLocalException, + AutodiscoverRemoteException, Exception { + List redirectionEmailAddresses = new ArrayList(); + + // Bug 60274: Performing a non-SSL HTTP GET to retrieve a redirection + // URL is potentially unsafe. We allow the caller + // to specify delegate to be called to determine whether we are allowed + // to use the redirection URL. + if (this + .callRedirectionUrlValidationCallback( + redirectionUrl.toString())) { + for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { + try { + settings.setParam(this.getLegacyUserSettingsAtUrl(cls, + emailAddress, redirectionUrl)); + + switch (settings.getParam().getResponseType()) { + case Success: + return true; + case Error: + throw new AutodiscoverRemoteException( + Strings.AutodiscoverError, settings.getParam() + .getError()); + case RedirectAddress: + // If this email address was already tried, + //we may have a loop + // in SCP lookups. Disable consideration of SCP records. + this.disableScpLookupIfDuplicateRedirection(settings.getParam().getRedirectTarget(), + redirectionEmailAddresses); + OutParam outParam = new OutParam(); + outParam.setParam(currentHop); + settings.setParam( + this.internalGetLegacyUserSettings(cls, + emailAddress, + redirectionEmailAddresses, + outParam)); + currentHop = outParam.getParam(); + return true; + case RedirectUrl: + try { + redirectionUrl = new URI(settings.getParam() + .getRedirectTarget()); + } catch (URISyntaxException ex) { + this + .traceMessage( + TraceFlags. + AutodiscoverConfiguration, + String + .format( + "Service " + + "returned " + + "invalid " + + "redirection " + + "URL %s", + settings + .getParam() + .getRedirectTarget())); + return false; + } + break; + default: + String failureMessage = String.format( + "Autodiscover call at %s failed with error %s, target %s", + redirectionUrl, + settings.getParam().getResponseType(), + settings.getParam().getRedirectTarget()); + this.traceMessage( + TraceFlags.AutodiscoverConfiguration, failureMessage); + + return false; + } + } catch (XMLStreamException ex) { + // If the response is malformed, it wasn't a valid + // Autodiscover endpoint. + this + .traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "%s failed: XML parsing error: %s", + redirectionUrl.toString(), ex + .getMessage())); + return false; + } catch (IOException ex) { + this.traceMessage( + TraceFlags.AutodiscoverConfiguration, + String.format("%s failed: I/O error: %s", + redirectionUrl, ex.getMessage())); + return false; + } catch (Exception ex) { + // TODO: BUG response is always null + HttpWebRequest response = null; + OutParam outParam = new OutParam(); + if ((response != null) + && this.tryGetRedirectionResponse(response, + outParam)) { + redirectionUrl = outParam.getParam(); + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "Host returned a " + + "redirection" + + " to url %s", + redirectionUrl)); + + } else { + if (response != null) { + this.processHttpErrorResponse(response, ex); + } + + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String.format("%s failed: %s (%s)", + url, ex.getClass().getName(), + ex.getMessage())); + return false; + } } + } } - /** - * Gets user settings from Autodiscover legacy endpoint. - * - * @param emailAddress - * The email address to use. - * @param requestedSettings - * The requested settings. - * @return GetUserSettingsResponse - */ - protected GetUserSettingsResponse internalGetLegacyUserSettings( - String emailAddress, - List requestedSettings) throws Exception { - // Cannot call legacy Autodiscover service with WindowsLive credentials + return false; + } + + /** + * Disables SCP lookup if duplicate email address redirection. + * + * @param emailAddress The email address to use. + * @param redirectionEmailAddresses The list of prior redirection email addresses. + */ + private void disableScpLookupIfDuplicateRedirection( + String emailAddress, + List redirectionEmailAddresses) { + // SMTP addresses are case-insensitive so entries are converted to lower-case. + emailAddress = emailAddress.toLowerCase(); + + if (redirectionEmailAddresses.contains(emailAddress)) { + this.enableScpLookup = false; + } else { + redirectionEmailAddresses.add(emailAddress); + } + } + + /** + * Gets user settings from Autodiscover legacy endpoint. + * + * @param emailAddress The email address to use. + * @param requestedSettings The requested settings. + * @return GetUserSettingsResponse + */ + protected GetUserSettingsResponse internalGetLegacyUserSettings( + String emailAddress, + List requestedSettings) throws Exception { + // Cannot call legacy Autodiscover service with WindowsLive credentials /*if ((this.getCredentials() != null) && (this.getCredentials() instanceof WindowsLiveCredentials)) { throw new AutodiscoverLocalException( Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover); }*/ - - // Cannot call legacy Autodiscover service with WindowsLive and other WSSecurity-based credentials - if ((this.getCredentials() != null) && (this.getCredentials() instanceof WSSecurityBasedCredentials)) - { - throw new AutodiscoverLocalException(Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover); - } - OutlookConfigurationSettings settings = this.getLegacyUserSettings( - OutlookConfigurationSettings.class, - emailAddress); - - - - return settings.convertSettings(emailAddress, requestedSettings); + // Cannot call legacy Autodiscover service with WindowsLive and other WSSecurity-based credentials + if ((this.getCredentials() != null) && (this.getCredentials() instanceof WSSecurityBasedCredentials)) { + throw new AutodiscoverLocalException(Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover); } - /** - * Calls the SOAP Autodiscover service - * for user settings for a single SMTP address. - * - * @param smtpAddress - * SMTP address. - * @param requestedSettings - * The requested settings. - * @return GetUserSettingsResponse - */ - protected GetUserSettingsResponse internalGetSoapUserSettings( - String smtpAddress, - List requestedSettings) throws Exception { - List smtpAddresses = new ArrayList(); - smtpAddresses.add(smtpAddress); + OutlookConfigurationSettings settings = this.getLegacyUserSettings( + OutlookConfigurationSettings.class, + emailAddress); + + + + return settings.convertSettings(emailAddress, requestedSettings); + } + + /** + * Calls the SOAP Autodiscover service + * for user settings for a single SMTP address. + * + * @param smtpAddress SMTP address. + * @param requestedSettings The requested settings. + * @return GetUserSettingsResponse + */ + protected GetUserSettingsResponse internalGetSoapUserSettings( + String smtpAddress, + List requestedSettings) throws Exception { + List smtpAddresses = new ArrayList(); + smtpAddresses.add(smtpAddress); + + List redirectionEmailAddresses = new ArrayList(); + redirectionEmailAddresses.add(smtpAddress.toLowerCase()); + + for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { + GetUserSettingsResponse response = this.getUserSettings(smtpAddresses, + requestedSettings).getTResponseAtIndex(0); + + switch (response.getErrorCode()) { + case RedirectAddress: + this.traceMessage( + TraceFlags.AutodiscoverResponse, + String.format("Autodiscover service returned redirection email address '%s'.", + response.getRedirectTarget())); + + smtpAddresses.clear(); + smtpAddresses.add(response.getRedirectTarget(). + toLowerCase()); + this.url = null; + this.domain = null; + + // If this email address was already tried, + //we may have a loop + // in SCP lookups. Disable consideration of SCP records. + this.disableScpLookupIfDuplicateRedirection(response.getRedirectTarget(), + redirectionEmailAddresses); + break; + + case RedirectUrl: + this.traceMessage( + TraceFlags.AutodiscoverResponse, + String.format("Autodiscover service returned redirection URL '%s'.", + response.getRedirectTarget())); + + //this.url = new URI(response.getRedirectTarget()); + this.url = this.getCredentials().adjustUrl(new URI(response.getRedirectTarget())); + break; + + case NoError: + default: + return response; + } + } - List redirectionEmailAddresses = new ArrayList(); - redirectionEmailAddresses.add(smtpAddress.toLowerCase()); + throw new AutodiscoverLocalException( + Strings.AutodiscoverCouldNotBeLocated); + } + + /** + * Gets the user settings using Autodiscover SOAP service. + * + * @param smtpAddresses The SMTP addresses of the users. + * @param settings The settings. + * @return GetUserSettingsResponseCollection Object. + * @throws Exception the exception + */ + protected GetUserSettingsResponseCollection getUserSettings( + final List smtpAddresses, List settings) + throws Exception { + EwsUtilities.validateParam(smtpAddresses, "smtpAddresses"); + EwsUtilities.validateParam(settings, "settings"); + + return this.getSettings( + GetUserSettingsResponseCollection.class, UserSettingName.class, + smtpAddresses, settings, null, this, + new IFuncDelegate() { + public String func() throws FormatException { + return EwsUtilities + .domainFromEmailAddress(smtpAddresses.get(0)); + } + }); + } + + /** + * Gets user or domain settings using Autodiscover SOAP service. + * + * @param the generic type + * @param the generic type + * @param cls the cls + * @param cls1 the cls1 + * @param identities Either the domains or the SMTP addresses of the users. + * @param settings The settings. + * @param requestedVersion Requested version of the Exchange service. + * @param getSettingsMethod The method to use. + * @param getDomainMethod The method to calculate the domain value. + * @return TGetSettingsResponse Collection. + * @throws Exception the exception + */ + private + TGetSettingsResponseCollection getSettings( + Class cls, + Class cls1, + List identities, + List settings, + ExchangeVersion requestedVersion, + IFunctionDelegate, List, + ExchangeVersion, URI, + TGetSettingsResponseCollection> getSettingsMethod, + IFuncDelegate getDomainMethod) throws Exception { + TGetSettingsResponseCollection response; + + // Autodiscover service only exists in E14 or later. + if (this.getRequestedServerVersion().compareTo( + MinimumRequestVersionForAutoDiscoverSoapService) < 0) { + throw new ServiceVersionException(String.format( + Strings.AutodiscoverServiceIncompatibleWithRequestVersion, + MinimumRequestVersionForAutoDiscoverSoapService)); + } - for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) - { - GetUserSettingsResponse response = this.getUserSettings(smtpAddresses, - requestedSettings).getTResponseAtIndex(0); - - switch (response.getErrorCode()) { - case RedirectAddress: - this.traceMessage( - TraceFlags.AutodiscoverResponse, - String.format("Autodiscover service returned redirection email address '%s'.", - response.getRedirectTarget())); - - smtpAddresses.clear(); - smtpAddresses.add(response.getRedirectTarget(). - toLowerCase()); - this.url = null; - this.domain = null; - - // If this email address was already tried, - //we may have a loop - // in SCP lookups. Disable consideration of SCP records. - this.disableScpLookupIfDuplicateRedirection(response.getRedirectTarget(), - redirectionEmailAddresses); - break; - - case RedirectUrl: - this.traceMessage( - TraceFlags.AutodiscoverResponse, - String.format("Autodiscover service returned redirection URL '%s'.", - response.getRedirectTarget())); - - //this.url = new URI(response.getRedirectTarget()); - this.url = this.getCredentials().adjustUrl(new URI(response.getRedirectTarget())); - break; - - case NoError: - default: - return response; - } + // If Url is specified, call service directly. + if (this.url != null) { + URI autodiscoverUrl = this.url; + response = getSettingsMethod.func(identities, settings, + requestedVersion, this.url); + this.url = autodiscoverUrl; + return response; + } + // If Domain is specified, determine endpoint Url and call service. + else if (!(this.domain == null || this.domain.isEmpty())) { + URI autodiscoverUrl = this.getAutodiscoverEndpointUrl(this.domain); + response = getSettingsMethod.func(identities, settings, + requestedVersion, + autodiscoverUrl); + + // If we got this far, response was successful, set Url. + this.url = autodiscoverUrl; + return response; + } + // No Url or Domain specified, need to figure out which endpoint(s) to + // try. + else { + // Assume caller is not inside the Intranet, regardless of whether + // SCP Urls + // were returned or not. SCP Urls are only relevent if one of them + // returns + // valid Autodiscover settings. + this.isExternal = true; + + URI autodiscoverUrl; + + String domainName = getDomainMethod.func(); + int scpHostCount; + OutParam outParam = new OutParam(); + List hosts = this.getAutodiscoverServiceHosts(domainName, + outParam); + scpHostCount = outParam.getParam(); + if (hosts.size() == 0) { + throw new ServiceValidationException( + Strings.AutodiscoverServiceRequestRequiresDomainOrUrl); + } + + for (int currentHostIndex = 0; currentHostIndex < hosts.size(); currentHostIndex++) { + String host = hosts.get(currentHostIndex); + boolean isScpHost = currentHostIndex < scpHostCount; + OutParam outParams = new OutParam(); + if (this.tryGetAutodiscoverEndpointUrl(host, outParams)) { + autodiscoverUrl = outParams.getParam(); + response = getSettingsMethod.func(identities, settings, + requestedVersion, + autodiscoverUrl); + + // If we got this far, the response was successful, set Url. + this.url = autodiscoverUrl; + + // Not external if Autodiscover endpoint found via SCP + // returned the settings. + if (isScpHost) { + this.isExternal = false; + } + + return response; } - + } + + // Next-to-last chance: try unauthenticated GET over HTTP to be + // redirected to appropriate service endpoint. + autodiscoverUrl = this.getRedirectUrl(domainName); + OutParam outParamUrl = new OutParam(); + if ((autodiscoverUrl != null) && + this + .callRedirectionUrlValidationCallback( + autodiscoverUrl.toString()) && + this.tryGetAutodiscoverEndpointUrl(autodiscoverUrl + .getHost(), outParamUrl)) { + autodiscoverUrl = outParamUrl.getParam(); + response = getSettingsMethod.func(identities, settings, + requestedVersion, + autodiscoverUrl); + + // If we got this far, the response was successful, set Url. + this.url = autodiscoverUrl; + + return response; + } + + // Last Chance: try to read autodiscover SRV Record from DNS. If we + // find one, use + // the hostname returned to construct an Autodiscover endpoint URL. + autodiscoverUrl = this + .getRedirectionUrlFromDnsSrvRecord(domainName); + if ((autodiscoverUrl != null) && + this + .callRedirectionUrlValidationCallback( + autodiscoverUrl.toString()) && + this.tryGetAutodiscoverEndpointUrl(autodiscoverUrl + .getHost(), outParamUrl)) { + autodiscoverUrl = outParamUrl.getParam(); + response = getSettingsMethod.func(identities, settings, + requestedVersion, + autodiscoverUrl); + + // If we got this far, the response was successful, set Url. + this.url = autodiscoverUrl; + + return response; + } else { throw new AutodiscoverLocalException( - Strings.AutodiscoverCouldNotBeLocated); + Strings.AutodiscoverCouldNotBeLocated); + } + } + } + + /** + * Gets settings for one or more users. + * + * @param smtpAddresses The SMTP addresses of the users. + * @param settings The settings. + * @param requestedVersion Requested version of the Exchange service. + * @param autodiscoverUrl The autodiscover URL. + * @return GetUserSettingsResponse collection. + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + private GetUserSettingsResponseCollection internalGetUserSettings( + List smtpAddresses, List settings, + ExchangeVersion requestedVersion, + URI autodiscoverUrl) throws ServiceLocalException, Exception { + // The response to GetUserSettings can be a redirection. Execute + // GetUserSettings until we get back + // a valid response or we've followed too many redirections. + for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { + GetUserSettingsRequest request = new GetUserSettingsRequest(this, + autodiscoverUrl); + request.setSmtpAddresses(smtpAddresses); + request.setSettings(settings); + GetUserSettingsResponseCollection response = request.execute(); + + // Did we get redirected? + if (response.getErrorCode() == AutodiscoverErrorCode.RedirectUrl + && response.getRedirectionUrl() != null) { + this.traceMessage( + TraceFlags.AutodiscoverConfiguration, + String.format("Request to %s returned redirection to %s", + autodiscoverUrl.toString(), response.getRedirectionUrl())); + + autodiscoverUrl = response.getRedirectionUrl(); + } else { + return response; + } } - /** - * Gets the user settings using Autodiscover SOAP service. - * - * @param smtpAddresses - * The SMTP addresses of the users. - * @param settings - * The settings. - * @return GetUserSettingsResponseCollection Object. - * @throws Exception - * the exception - */ - protected GetUserSettingsResponseCollection getUserSettings( - final List smtpAddresses, List settings) - throws Exception { - EwsUtilities.validateParam(smtpAddresses, "smtpAddresses"); - EwsUtilities.validateParam(settings, "settings"); - - return this.getSettings( - GetUserSettingsResponseCollection.class, UserSettingName.class, - smtpAddresses, settings, null, this, - new IFuncDelegate() { - public String func() throws FormatException { - return EwsUtilities - .domainFromEmailAddress(smtpAddresses.get(0)); - } - }); - } - - /** - * Gets user or domain settings using Autodiscover SOAP service. - * - * @param - * the generic type - * @param - * the generic type - * @param cls - * the cls - * @param cls1 - * the cls1 - * @param identities - * Either the domains or the SMTP addresses of the users. - * @param settings - * The settings. - * @param requestedVersion - * Requested version of the Exchange service. - * @param getSettingsMethod - * The method to use. - * @param getDomainMethod - * The method to calculate the domain value. - * @return TGetSettingsResponse Collection. - * @throws Exception - * the exception - */ - private - TGetSettingsResponseCollection getSettings( - Class cls, - Class cls1, - List identities, - List settings, - ExchangeVersion requestedVersion, - IFunctionDelegate, List, - ExchangeVersion, URI, - TGetSettingsResponseCollection> getSettingsMethod, - IFuncDelegate getDomainMethod) throws Exception { - TGetSettingsResponseCollection response; - - // Autodiscover service only exists in E14 or later. - if (this.getRequestedServerVersion().compareTo( - MinimumRequestVersionForAutoDiscoverSoapService) < 0) { - throw new ServiceVersionException(String.format( - Strings.AutodiscoverServiceIncompatibleWithRequestVersion, - MinimumRequestVersionForAutoDiscoverSoapService)); - } - - // If Url is specified, call service directly. - if (this.url != null) { - URI autodiscoverUrl = this.url; - response = getSettingsMethod.func(identities, settings, - requestedVersion, this.url); - this.url = autodiscoverUrl; - return response; - } - // If Domain is specified, determine endpoint Url and call service. - else if (!(this.domain == null || this.domain.isEmpty())) { - URI autodiscoverUrl = this.getAutodiscoverEndpointUrl(this.domain); - response = getSettingsMethod.func(identities, settings, - requestedVersion, - autodiscoverUrl); - - // If we got this far, response was successful, set Url. - this.url = autodiscoverUrl; - return response; - } - // No Url or Domain specified, need to figure out which endpoint(s) to - // try. - else { - // Assume caller is not inside the Intranet, regardless of whether - // SCP Urls - // were returned or not. SCP Urls are only relevent if one of them - // returns - // valid Autodiscover settings. - this.isExternal = true; - - URI autodiscoverUrl; - - String domainName = getDomainMethod.func(); - int scpHostCount; - OutParam outParam = new OutParam(); - List hosts = this.getAutodiscoverServiceHosts(domainName, - outParam); - scpHostCount = outParam.getParam(); - if (hosts.size() == 0) { - throw new ServiceValidationException( - Strings.AutodiscoverServiceRequestRequiresDomainOrUrl); - } - - for (int currentHostIndex = 0; currentHostIndex < hosts.size(); currentHostIndex++) { - String host = hosts.get(currentHostIndex); - boolean isScpHost = currentHostIndex < scpHostCount; - OutParam outParams = new OutParam(); - if (this.tryGetAutodiscoverEndpointUrl(host, outParams)) { - autodiscoverUrl = outParams.getParam(); - response = getSettingsMethod.func(identities, settings, - requestedVersion, - autodiscoverUrl); - - // If we got this far, the response was successful, set Url. - this.url = autodiscoverUrl; - - // Not external if Autodiscover endpoint found via SCP - // returned the settings. - if (isScpHost) { - this.isExternal = false; - } - - return response; - } - } - - // Next-to-last chance: try unauthenticated GET over HTTP to be - // redirected to appropriate service endpoint. - autodiscoverUrl = this.getRedirectUrl(domainName); - OutParam outParamUrl = new OutParam(); - if ((autodiscoverUrl != null) && - this - .callRedirectionUrlValidationCallback( - autodiscoverUrl.toString()) && - this.tryGetAutodiscoverEndpointUrl(autodiscoverUrl - .getHost(), outParamUrl)) { - autodiscoverUrl = outParamUrl.getParam(); - response = getSettingsMethod.func(identities, settings, - requestedVersion, - autodiscoverUrl); - - // If we got this far, the response was successful, set Url. - this.url = autodiscoverUrl; - - return response; - } - - // Last Chance: try to read autodiscover SRV Record from DNS. If we - // find one, use - // the hostname returned to construct an Autodiscover endpoint URL. - autodiscoverUrl = this - .getRedirectionUrlFromDnsSrvRecord(domainName); - if ((autodiscoverUrl != null) && - this - .callRedirectionUrlValidationCallback( - autodiscoverUrl.toString()) && - this.tryGetAutodiscoverEndpointUrl(autodiscoverUrl - .getHost(), outParamUrl)) { - autodiscoverUrl = outParamUrl.getParam(); - response = getSettingsMethod.func(identities, settings, - requestedVersion, - autodiscoverUrl); - - // If we got this far, the response was successful, set Url. - this.url = autodiscoverUrl; - - return response; - } else { - throw new AutodiscoverLocalException( - Strings.AutodiscoverCouldNotBeLocated); - } - } - } - - /** - * Gets settings for one or more users. - * - * @param smtpAddresses - * The SMTP addresses of the users. - * @param settings - * The settings. - * @param requestedVersion - * Requested version of the Exchange service. - * @param autodiscoverUrl - * The autodiscover URL. - * @return GetUserSettingsResponse collection. - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - private GetUserSettingsResponseCollection internalGetUserSettings( - List smtpAddresses, List settings, - ExchangeVersion requestedVersion, - URI autodiscoverUrl) throws ServiceLocalException, Exception { - // The response to GetUserSettings can be a redirection. Execute - // GetUserSettings until we get back - // a valid response or we've followed too many redirections. - for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { - GetUserSettingsRequest request = new GetUserSettingsRequest(this, - autodiscoverUrl); - request.setSmtpAddresses(smtpAddresses); - request.setSettings(settings); - GetUserSettingsResponseCollection response = request.execute(); - - // Did we get redirected? - if (response.getErrorCode() == AutodiscoverErrorCode.RedirectUrl - && response.getRedirectionUrl() != null) { - this.traceMessage( - TraceFlags.AutodiscoverConfiguration, - String.format("Request to %s returned redirection to %s", - autodiscoverUrl.toString(), response.getRedirectionUrl())); - - autodiscoverUrl = response.getRedirectionUrl(); - } else { - return response; - } - } - - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Maximum number of redirection hops %d exceeded", - AutodiscoverMaxRedirections)); - - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); - } - - /** - * Gets the domain settings using Autodiscover SOAP service. - * - * @param domains - * The domains. - * @param settings - * The settings. - * @param requestedVersion - * Requested version of the Exchange service. - * @return GetDomainSettingsResponse collection. - * @throws Exception - * the exception - */ - protected GetDomainSettingsResponseCollection getDomainSettings( - final List domains, List settings, - ExchangeVersion requestedVersion) - throws Exception { - EwsUtilities.validateParam(domains, "domains"); - EwsUtilities.validateParam(settings, "settings"); - - return this.getSettings( - GetDomainSettingsResponseCollection.class, - DomainSettingName.class, domains, settings, - requestedVersion, this, - new IFuncDelegate() { - public String func() { - return domains.get(0); - } - }); - } - - /** - * Gets settings for one or more domains. - * - * @param domains - * The domains. - * @param settings - * The settings. - * @param requestedVersion - * Requested version of the Exchange service. - * @param autodiscoverUrl - * The autodiscover URL. - * @return GetDomainSettingsResponse Collection. - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - private GetDomainSettingsResponseCollection internalGetDomainSettings( - List domains, List settings, - ExchangeVersion requestedVersion, - URI autodiscoverUrl) throws ServiceLocalException, Exception { - // The response to GetDomainSettings can be a redirection. Execute - // GetDomainSettings until we get back - // a valid response or we've followed too many redirections. - for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { - GetDomainSettingsRequest request = new GetDomainSettingsRequest( - this, autodiscoverUrl); - request.setDomains(domains); - request.setSettings(settings); - request.setRequestedVersion(requestedVersion); - GetDomainSettingsResponseCollection response = request.execute(); - - // Did we get redirected? - if (response.getErrorCode() == AutodiscoverErrorCode.RedirectUrl - && response.getRedirectionUrl() != null) { - autodiscoverUrl = response.getRedirectionUrl(); - } else { - return response; - } - } - - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Maximum number of redirection hops %d exceeded", - AutodiscoverMaxRedirections)); - - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); - } - - /** - * Gets the autodiscover endpoint URL. - * - * @param host - * The host. - * @return URI The URI. - * @throws Exception - * the exception - */ - private URI getAutodiscoverEndpointUrl(String host) throws Exception { - URI autodiscoverUrl = null; - OutParam outParam = new OutParam(); - if (this.tryGetAutodiscoverEndpointUrl(host, outParam)) { - return autodiscoverUrl; - } else { - throw new AutodiscoverLocalException( - Strings.NoSoapOrWsSecurityEndpointAvailable); - } - } - - /** - * Tries the get Autodiscover Service endpoint URL. - * - * @param host - * The host. - * @param url - * the url - * @return boolean The boolean. - * @throws Exception - * the exception - */ - private boolean tryGetAutodiscoverEndpointUrl(String host, - OutParam url) - throws Exception { - EnumSet endpoints; - OutParam> outParam = - new OutParam>(); - if (this.tryGetEnabledEndpointsForHost(host, outParam)) { - endpoints = outParam.getParam(); - url - .setParam(new URI(String.format(AutodiscoverSoapHttpsUrl, - host))); - - // Make sure that at least one of the non-legacy endpoints is - // available. - if ((!endpoints.contains(AutodiscoverEndpoints.Soap)) && - (!endpoints.contains( - AutodiscoverEndpoints.WsSecurity)) - // (endpoints .contains( AutodiscoverEndpoints.WSSecuritySymmetricKey) ) && - //(endpoints .contains( AutodiscoverEndpoints.WSSecurityX509Cert)) - ) - { - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "No Autodiscover endpoints " + - "are available for host %s", - host)); - - return false; - } + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( + "Maximum number of redirection hops %d exceeded", + AutodiscoverMaxRedirections)); + + throw new AutodiscoverLocalException( + Strings.MaximumRedirectionHopsExceeded); + } + + /** + * Gets the domain settings using Autodiscover SOAP service. + * + * @param domains The domains. + * @param settings The settings. + * @param requestedVersion Requested version of the Exchange service. + * @return GetDomainSettingsResponse collection. + * @throws Exception the exception + */ + protected GetDomainSettingsResponseCollection getDomainSettings( + final List domains, List settings, + ExchangeVersion requestedVersion) + throws Exception { + EwsUtilities.validateParam(domains, "domains"); + EwsUtilities.validateParam(settings, "settings"); + + return this.getSettings( + GetDomainSettingsResponseCollection.class, + DomainSettingName.class, domains, settings, + requestedVersion, this, + new IFuncDelegate() { + public String func() { + return domains.get(0); + } + }); + } + + /** + * Gets settings for one or more domains. + * + * @param domains The domains. + * @param settings The settings. + * @param requestedVersion Requested version of the Exchange service. + * @param autodiscoverUrl The autodiscover URL. + * @return GetDomainSettingsResponse Collection. + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + private GetDomainSettingsResponseCollection internalGetDomainSettings( + List domains, List settings, + ExchangeVersion requestedVersion, + URI autodiscoverUrl) throws ServiceLocalException, Exception { + // The response to GetDomainSettings can be a redirection. Execute + // GetDomainSettings until we get back + // a valid response or we've followed too many redirections. + for (int currentHop = 0; currentHop < AutodiscoverService.AutodiscoverMaxRedirections; currentHop++) { + GetDomainSettingsRequest request = new GetDomainSettingsRequest( + this, autodiscoverUrl); + request.setDomains(domains); + request.setSettings(settings); + request.setRequestedVersion(requestedVersion); + GetDomainSettingsResponseCollection response = request.execute(); + + // Did we get redirected? + if (response.getErrorCode() == AutodiscoverErrorCode.RedirectUrl + && response.getRedirectionUrl() != null) { + autodiscoverUrl = response.getRedirectionUrl(); + } else { + return response; + } + } - // If we have WLID credentials, make sure that we have a WS-Security - // endpoint + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( + "Maximum number of redirection hops %d exceeded", + AutodiscoverMaxRedirections)); + + throw new AutodiscoverLocalException( + Strings.MaximumRedirectionHopsExceeded); + } + + /** + * Gets the autodiscover endpoint URL. + * + * @param host The host. + * @return URI The URI. + * @throws Exception the exception + */ + private URI getAutodiscoverEndpointUrl(String host) throws Exception { + URI autodiscoverUrl = null; + OutParam outParam = new OutParam(); + if (this.tryGetAutodiscoverEndpointUrl(host, outParam)) { + return autodiscoverUrl; + } else { + throw new AutodiscoverLocalException( + Strings.NoSoapOrWsSecurityEndpointAvailable); + } + } + + /** + * Tries the get Autodiscover Service endpoint URL. + * + * @param host The host. + * @param url the url + * @return boolean The boolean. + * @throws Exception the exception + */ + private boolean tryGetAutodiscoverEndpointUrl(String host, + OutParam url) + throws Exception { + EnumSet endpoints; + OutParam> outParam = + new OutParam>(); + if (this.tryGetEnabledEndpointsForHost(host, outParam)) { + endpoints = outParam.getParam(); + url + .setParam(new URI(String.format(AutodiscoverSoapHttpsUrl, + host))); + + // Make sure that at least one of the non-legacy endpoints is + // available. + if ((!endpoints.contains(AutodiscoverEndpoints.Soap)) && + (!endpoints.contains( + AutodiscoverEndpoints.WsSecurity)) + // (endpoints .contains( AutodiscoverEndpoints.WSSecuritySymmetricKey) ) && + //(endpoints .contains( AutodiscoverEndpoints.WSSecurityX509Cert)) + ) { + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "No Autodiscover endpoints " + + "are available for host %s", + host)); + + return false; + } + + // If we have WLID credentials, make sure that we have a WS-Security + // endpoint /* if (this.getCredentials() instanceof WindowsLiveCredentials) { if (endpoints.contains(AutodiscoverEndpoints.WsSecurity)) { @@ -1444,202 +1386,190 @@ else if (this.getCredentials()instanceof X509CertificateCredentials) } } */ - return true; - - - } else { - this - .traceMessage( - TraceFlags.AutodiscoverConfiguration, - String - .format( - "No Autodiscover endpoints " + - "are available for host %s", - host)); - - return false; - } - } - - /** - * Gets the list of autodiscover service URLs. - * - * @param domainName - * Domain name. - * @param scpHostCount - * Count of hosts found via SCP lookup. - * @return List of Autodiscover URLs. - * @throws java.net.URISyntaxException - * the URI Syntax exception - */ - protected List getAutodiscoverServiceUrls(String domainName, - OutParam scpHostCount) throws URISyntaxException { - List urls; - - urls = new ArrayList(); - - scpHostCount.setParam(urls.size()); - - // As a fallback, add autodiscover URLs base on the domain name. - urls.add(new URI(String.format(AutodiscoverLegacyHttpsUrl, - domainName))); - urls.add(new URI(String.format(AutodiscoverLegacyHttpsUrl, - "autodiscover." + domainName))); - - return urls; - } - - /** - * Gets the list of autodiscover service hosts. - * - * @param domainName - * Domain name. - * @param outParam - * the out param - * @return List of hosts. - * @throws java.net.URISyntaxException - * the uRI syntax exception - * @throws ClassNotFoundException - * the class not found exception - */ - protected List getAutodiscoverServiceHosts(String domainName, - OutParam outParam) throws URISyntaxException, - ClassNotFoundException { - - List urls = this.getAutodiscoverServiceUrls(domainName, outParam); - List lst = new ArrayList(); - for (URI url : urls) { - lst.add(url.getHost()); - } - return lst; - } - - /** - * Gets the enabled autodiscover endpoints on a specific host. - * - * @param host - * The host. - * @param endpoints - * Endpoints found for host. - * @return Flags indicating which endpoints are enabled. - * @throws Exception - * the exception - */ - private boolean tryGetEnabledEndpointsForHost(String host, - OutParam> endpoints) - throws Exception { - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Determining which endpoints are enabled for host %s", host)); - - // We may get redirected to another host. And therefore need to limit - // the number - // of redirections we'll tolerate. - for (int currentHop = 0; currentHop < AutodiscoverMaxRedirections; currentHop++) { - URI autoDiscoverUrl = new URI(String.format( - AutodiscoverLegacyHttpsUrl, host)); - - endpoints.setParam(EnumSet.of(AutodiscoverEndpoints.None)); - - HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); - try { - request.setUrl(autoDiscoverUrl.toURL()); - } catch (MalformedURLException e) { - String strErr = String.format("Incorrect format : %s", url); - throw new ServiceLocalException(strErr); - } + return true; - request.setRequestMethod("GET"); - request.setAllowAutoRedirect(false); - request.setPreAuthenticate(false); - request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings. - CredentialsRequired); - } - // Make sure that credentials have been - // authenticated if required - serviceCredentials.preAuthenticate(); + } else { + this + .traceMessage( + TraceFlags.AutodiscoverConfiguration, + String + .format( + "No Autodiscover endpoints " + + "are available for host %s", + host)); - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - try { - request.prepareAsyncConnection(); - } catch (Exception ex) { - ex.getMessage(); - request = null; - } - - if (request != null) { - URI redirectUrl; - OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = outParam.getParam(); - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Host returned redirection to host '%s'", - redirectUrl.getHost())); - - host = redirectUrl.getHost(); - } else { - endpoints.setParam(this - .getEndpointsFromHttpWebResponse(request)); + return false; + } + } + + /** + * Gets the list of autodiscover service URLs. + * + * @param domainName Domain name. + * @param scpHostCount Count of hosts found via SCP lookup. + * @return List of Autodiscover URLs. + * @throws java.net.URISyntaxException the URI Syntax exception + */ + protected List getAutodiscoverServiceUrls(String domainName, + OutParam scpHostCount) throws URISyntaxException { + List urls; + + urls = new ArrayList(); + + scpHostCount.setParam(urls.size()); + + // As a fallback, add autodiscover URLs base on the domain name. + urls.add(new URI(String.format(AutodiscoverLegacyHttpsUrl, + domainName))); + urls.add(new URI(String.format(AutodiscoverLegacyHttpsUrl, + "autodiscover." + domainName))); + + return urls; + } + + /** + * Gets the list of autodiscover service hosts. + * + * @param domainName Domain name. + * @param outParam the out param + * @return List of hosts. + * @throws java.net.URISyntaxException the uRI syntax exception + * @throws ClassNotFoundException the class not found exception + */ + protected List getAutodiscoverServiceHosts(String domainName, + OutParam outParam) throws URISyntaxException, + ClassNotFoundException { + + List urls = this.getAutodiscoverServiceUrls(domainName, outParam); + List lst = new ArrayList(); + for (URI url : urls) { + lst.add(url.getHost()); + } + return lst; + } + + /** + * Gets the enabled autodiscover endpoints on a specific host. + * + * @param host The host. + * @param endpoints Endpoints found for host. + * @return Flags indicating which endpoints are enabled. + * @throws Exception the exception + */ + private boolean tryGetEnabledEndpointsForHost(String host, + OutParam> endpoints) + throws Exception { + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( + "Determining which endpoints are enabled for host %s", host)); + + // We may get redirected to another host. And therefore need to limit + // the number + // of redirections we'll tolerate. + for (int currentHop = 0; currentHop < AutodiscoverMaxRedirections; currentHop++) { + URI autoDiscoverUrl = new URI(String.format( + AutodiscoverLegacyHttpsUrl, host)); + + endpoints.setParam(EnumSet.of(AutodiscoverEndpoints.None)); + + HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); + try { + request.setUrl(autoDiscoverUrl.toURL()); + } catch (MalformedURLException e) { + String strErr = String.format("Incorrect format : %s", url); + throw new ServiceLocalException(strErr); + } + + request.setRequestMethod("GET"); + request.setAllowAutoRedirect(false); + request.setPreAuthenticate(false); + request.setUseDefaultCredentials(this.getUseDefaultCredentials()); + if (!this.getUseDefaultCredentials()) { + ExchangeCredentials serviceCredentials = this.getCredentials(); + if (null == serviceCredentials) { + throw new ServiceLocalException(Strings. + CredentialsRequired); + } - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Host returned enabled endpoint flags: %s", - endpoints.getParam().toString())); + // Make sure that credentials have been + // authenticated if required + serviceCredentials.preAuthenticate(); + + // Apply credentials to the request + serviceCredentials.prepareWebRequest(request); + } + try { + request.prepareAsyncConnection(); + } catch (Exception ex) { + ex.getMessage(); + request = null; + } + + if (request != null) { + URI redirectUrl; + OutParam outParam = new OutParam(); + if (this.tryGetRedirectionResponse(request, outParam)) { + redirectUrl = outParam.getParam(); + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "Host returned redirection to host '%s'", + redirectUrl.getHost())); + + host = redirectUrl.getHost(); + } else { + endpoints.setParam(this + .getEndpointsFromHttpWebResponse(request)); + + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format( + "Host returned enabled endpoint flags: %s", + endpoints.getParam().toString())); + + return true; + } + } else { + return false; + } + try { + request.close(); + } catch (Exception e2) { + // do nothing + } + } - return true; - } - } else { - return false; - } - try { - request.close(); - } catch (Exception e2) { - // do nothing - } - } - - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Maximum number of redirection hops %d exceeded", - AutodiscoverMaxRedirections)); - - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); - } - - /** - * Gets the endpoints from HTTP web response. - * - * @param request - * the request - * @return Endpoints enabled. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - private EnumSet getEndpointsFromHttpWebResponse( - HttpWebRequest request) throws EWSHttpException { - EnumSet endpoints = EnumSet - .noneOf(AutodiscoverEndpoints.class); - endpoints.add(AutodiscoverEndpoints.Legacy); - - if (!(request.getResponseHeaders().get( - AutodiscoverSoapEnabledHeaderName) == null || request - .getResponseHeaders().get(AutodiscoverSoapEnabledHeaderName) - .isEmpty())) { - endpoints.add(AutodiscoverEndpoints.Soap); - } - if (!(request.getResponseHeaders().get( - AutodiscoverWsSecurityEnabledHeaderName) == null || request - .getResponseHeaders().get( - AutodiscoverWsSecurityEnabledHeaderName).isEmpty())) { - endpoints.add(AutodiscoverEndpoints.WsSecurity); - } + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( + "Maximum number of redirection hops %d exceeded", + AutodiscoverMaxRedirections)); + + throw new AutodiscoverLocalException( + Strings.MaximumRedirectionHopsExceeded); + } + + /** + * Gets the endpoints from HTTP web response. + * + * @param request the request + * @return Endpoints enabled. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + private EnumSet getEndpointsFromHttpWebResponse( + HttpWebRequest request) throws EWSHttpException { + EnumSet endpoints = EnumSet + .noneOf(AutodiscoverEndpoints.class); + endpoints.add(AutodiscoverEndpoints.Legacy); + + if (!(request.getResponseHeaders().get( + AutodiscoverSoapEnabledHeaderName) == null || request + .getResponseHeaders().get(AutodiscoverSoapEnabledHeaderName) + .isEmpty())) { + endpoints.add(AutodiscoverEndpoints.Soap); + } + if (!(request.getResponseHeaders().get( + AutodiscoverWsSecurityEnabledHeaderName) == null || request + .getResponseHeaders().get( + AutodiscoverWsSecurityEnabledHeaderName).isEmpty())) { + endpoints.add(AutodiscoverEndpoints.WsSecurity); + } /* if (! (request.getResponseHeaders().get( AutodiscoverWsSecuritySymmetricKeyEnabledHeaderName) !=null || request @@ -1656,384 +1586,341 @@ private EnumSet getEndpointsFromHttpWebResponse( { endpoints .add(AutodiscoverEndpoints.WSSecurityX509Cert); }*/ - - return endpoints; - } - - /** - * Traces the response. - * - * @param request - * the request - * @param memoryStream - * the memory stream - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - protected void traceResponse(HttpWebRequest request, - ByteArrayOutputStream memoryStream) throws XMLStreamException, - IOException, EWSHttpException { - this.processHttpResponseHeaders( - TraceFlags.AutodiscoverResponseHttpHeaders, request); - String contentType = request.getResponseContentType(); - if (!(contentType == null || contentType.isEmpty())) { - contentType = contentType.toLowerCase(); - if (contentType.toLowerCase().startsWith("text/") || - contentType.toLowerCase(). - startsWith("application/soap")) { - this.traceXml(TraceFlags.AutodiscoverResponse, memoryStream); - } else { - this.traceMessage(TraceFlags.AutodiscoverResponse, - "Non-textual response"); - } - } - } - - /** - * Creates an HttpWebRequest instance and initializes it with the - * appropriate parameters, based on the configuration of this service - * object. - * - * @param url - * The URL that the HttpWebRequest should target. - * @return HttpWebRequest The HttpWebRequest. - * @throws ServiceLocalException - * the service local exception - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - protected HttpWebRequest prepareHttpWebRequestForUrl(URI url) - throws ServiceLocalException, URISyntaxException { - return this.prepareHttpWebRequestForUrl(url, false, - // acceptGzipEncoding - false); // allowAutoRedirect - } - - /** - * Calls the redirection URL validation callback. If the redirection URL - * validation callback is null, use the default callback which does not - * allow following any redirections. - * - * @param redirectionUrl - * The redirection URL. - * @return True if redirection should be followed. - * @throws AutodiscoverLocalException - * the autodiscover local exception - */ - private boolean callRedirectionUrlValidationCallback(String redirectionUrl) - throws AutodiscoverLocalException { - IAutodiscoverRedirectionUrl callback = - (this.redirectionUrlValidationCallback == null) ? this - : this.redirectionUrlValidationCallback; - return callback - .autodiscoverRedirectionUrlValidationCallback(redirectionUrl); - } - - /** - * Processes an HTTP error response. - * - * @param httpWebResponse - * The HTTP web response. - * @throws Exception - * the exception - */ - @Override - protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, - Exception webException) throws Exception { - this.internalProcessHttpErrorResponse( - httpWebResponse, - webException, - TraceFlags.AutodiscoverResponseHttpHeaders, - TraceFlags.AutodiscoverResponse); + + return endpoints; + } + + /** + * Traces the response. + * + * @param request the request + * @param memoryStream the memory stream + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + protected void traceResponse(HttpWebRequest request, + ByteArrayOutputStream memoryStream) throws XMLStreamException, + IOException, EWSHttpException { + this.processHttpResponseHeaders( + TraceFlags.AutodiscoverResponseHttpHeaders, request); + String contentType = request.getResponseContentType(); + if (!(contentType == null || contentType.isEmpty())) { + contentType = contentType.toLowerCase(); + if (contentType.toLowerCase().startsWith("text/") || + contentType.toLowerCase(). + startsWith("application/soap")) { + this.traceXml(TraceFlags.AutodiscoverResponse, memoryStream); + } else { + this.traceMessage(TraceFlags.AutodiscoverResponse, + "Non-textual response"); + } + } + } + + /** + * Creates an HttpWebRequest instance and initializes it with the + * appropriate parameters, based on the configuration of this service + * object. + * + * @param url The URL that the HttpWebRequest should target. + * @return HttpWebRequest The HttpWebRequest. + * @throws ServiceLocalException the service local exception + * @throws java.net.URISyntaxException the uRI syntax exception + */ + protected HttpWebRequest prepareHttpWebRequestForUrl(URI url) + throws ServiceLocalException, URISyntaxException { + return this.prepareHttpWebRequestForUrl(url, false, + // acceptGzipEncoding + false); // allowAutoRedirect + } + + /** + * Calls the redirection URL validation callback. If the redirection URL + * validation callback is null, use the default callback which does not + * allow following any redirections. + * + * @param redirectionUrl The redirection URL. + * @return True if redirection should be followed. + * @throws AutodiscoverLocalException the autodiscover local exception + */ + private boolean callRedirectionUrlValidationCallback(String redirectionUrl) + throws AutodiscoverLocalException { + IAutodiscoverRedirectionUrl callback = + (this.redirectionUrlValidationCallback == null) ? this + : this.redirectionUrlValidationCallback; + return callback + .autodiscoverRedirectionUrlValidationCallback(redirectionUrl); + } + + /** + * Processes an HTTP error response. + * + * @param httpWebResponse The HTTP web response. + * @throws Exception the exception + */ + @Override + protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, + Exception webException) throws Exception { + this.internalProcessHttpErrorResponse( + httpWebResponse, + webException, + TraceFlags.AutodiscoverResponseHttpHeaders, + TraceFlags.AutodiscoverResponse); + } + + /* + * (non-Javadoc) + * + * @see microsoft.exchange.webservices.AutodiscoverRedirectionUrlInterface# + * autodiscoverRedirectionUrlValidationCallback(java.lang.String) + */ + public boolean autodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) throws AutodiscoverLocalException { + return defaultAutodiscoverRedirectionUrlValidationCallback( + redirectionUrl); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService() throws ArgumentException { + this(ExchangeVersion.Exchange2010); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param requestedServerVersion The requested server version. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService(ExchangeVersion requestedServerVersion) + throws ArgumentException { + this(null, null, requestedServerVersion); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param domain The domain that will be used to determine the URL of the + * service. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService(String domain) throws ArgumentException { + this(null, domain); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param domain The domain that will be used to determine the URL of the + * service. + * @param requestedServerVersion The requested server version. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService(String domain, + ExchangeVersion requestedServerVersion) throws ArgumentException { + this(null, domain, requestedServerVersion); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param url The URL of the service. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService(URI url) throws ArgumentException { + this(url, url.getHost()); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param url The URL of the service. + * @param requestedServerVersion The requested server version. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public AutodiscoverService(URI url, + ExchangeVersion requestedServerVersion) throws ArgumentException { + this(url, url.getHost(), requestedServerVersion); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param url The URL of the service. + * @param domain The domain that will be used to determine the URL of the + * service. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + protected AutodiscoverService(URI url, String domain) + throws ArgumentException { + super(); + EwsUtilities.validateDomainNameAllowNull(domain, "domain"); + this.url = url; + this.domain = domain; + this.dnsClient = new AutodiscoverDnsClient(this); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param url The URL of the service. + * @param domain The domain that will be used to determine the URL of the + * service. + * @param requestedServerVersion The requested server version. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + protected AutodiscoverService(URI url, String domain, + ExchangeVersion requestedServerVersion) throws ArgumentException { + super(requestedServerVersion); + EwsUtilities.validateDomainNameAllowNull(domain, "domain"); + + this.url = url; + this.domain = domain; + this.dnsClient = new AutodiscoverDnsClient(this); + } + + /** + * Initializes a new instance of the AutodiscoverService class. + * + * @param service The other service. + * @param requestedServerVersion The requested server version. + */ + protected AutodiscoverService(ExchangeServiceBase service, + ExchangeVersion requestedServerVersion) { + super(service, requestedServerVersion); + this.dnsClient = new AutodiscoverDnsClient(this); + } + + /** + * Initializes a new instance of the "AutodiscoverService" class. + * + * @param service The service. + */ + protected AutodiscoverService(ExchangeServiceBase service) { + super(service, service.getRequestedServerVersion()); + } + + /** + * Retrieves the specified settings for single SMTP address. + * + * @param userSmtpAddress The SMTP addresses of the user. + * @param userSettingNames The user setting names. + * @return A UserResponse object containing the requested settings for the + * specified user. + * @throws Exception the exception + *

+ * This method handles will run the entire Autodiscover "discovery" + * algorithm and will follow address and URL redirections. + */ + public GetUserSettingsResponse getUserSettings(String userSmtpAddress, + UserSettingName... userSettingNames) throws Exception { + List requestedSettings = new ArrayList(); + requestedSettings.addAll(Arrays.asList(userSettingNames)); + + if (userSmtpAddress == null || userSmtpAddress.isEmpty()) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSmtpAddress); } - - /* - * (non-Javadoc) - * - * @see microsoft.exchange.webservices.AutodiscoverRedirectionUrlInterface# - * autodiscoverRedirectionUrlValidationCallback(java.lang.String) - */ - public boolean autodiscoverRedirectionUrlValidationCallback( - String redirectionUrl) throws AutodiscoverLocalException { - return defaultAutodiscoverRedirectionUrlValidationCallback( - redirectionUrl); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * @throws microsoft.exchange.webservices.data.ArgumentException - * - */ - public AutodiscoverService() throws ArgumentException { - this(ExchangeVersion.Exchange2010); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param requestedServerVersion - * The requested server version. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public AutodiscoverService(ExchangeVersion requestedServerVersion) - throws ArgumentException { - this(null, null, requestedServerVersion); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param domain - * The domain that will be used to determine the URL of the - * service. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public AutodiscoverService(String domain) throws ArgumentException { - this(null, domain); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param domain - * The domain that will be used to determine the URL of the - * service. - * @param requestedServerVersion - * The requested server version. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public AutodiscoverService(String domain, - ExchangeVersion requestedServerVersion) throws ArgumentException { - this(null, domain, requestedServerVersion); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param url - * The URL of the service. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public AutodiscoverService(URI url) throws ArgumentException { - this(url, url.getHost()); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param url - * The URL of the service. - * @param requestedServerVersion - * The requested server version. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public AutodiscoverService(URI url, - ExchangeVersion requestedServerVersion) throws ArgumentException { - this(url, url.getHost(), requestedServerVersion); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param url - * The URL of the service. - * @param domain - * The domain that will be used to determine the URL of the - * service. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - protected AutodiscoverService(URI url, String domain) - throws ArgumentException { - super(); - EwsUtilities.validateDomainNameAllowNull(domain, "domain"); - this.url = url; - this.domain = domain; - this.dnsClient = new AutodiscoverDnsClient(this); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param url - * The URL of the service. - * @param domain - * The domain that will be used to determine the URL of the - * service. - * @param requestedServerVersion - * The requested server version. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - protected AutodiscoverService(URI url, String domain, - ExchangeVersion requestedServerVersion) throws ArgumentException { - super(requestedServerVersion); - EwsUtilities.validateDomainNameAllowNull(domain, "domain"); - - this.url = url; - this.domain = domain; - this.dnsClient = new AutodiscoverDnsClient(this); - } - - /** - * Initializes a new instance of the AutodiscoverService class. - * @param service The other service. - * @param requestedServerVersion The requested server version. - */ - protected AutodiscoverService(ExchangeServiceBase service, - ExchangeVersion requestedServerVersion) { - super(service, requestedServerVersion); - this.dnsClient = new AutodiscoverDnsClient(this); - } - - /** - * Initializes a new instance of the "AutodiscoverService" class. - * - * @param service - * The service. - */ - protected AutodiscoverService(ExchangeServiceBase service) { - super(service, service.getRequestedServerVersion()); - } - - /** - * Retrieves the specified settings for single SMTP address. - * - * @param userSmtpAddress - * The SMTP addresses of the user. - * @param userSettingNames - * The user setting names. - * @return A UserResponse object containing the requested settings for the - * specified user. - * @throws Exception - * the exception - * - * This method handles will run the entire Autodiscover "discovery" - * algorithm and will follow address and URL redirections. - */ - public GetUserSettingsResponse getUserSettings(String userSmtpAddress, - UserSettingName... userSettingNames) throws Exception { - List requestedSettings = new ArrayList(); - requestedSettings.addAll(Arrays.asList(userSettingNames)); - - if (userSmtpAddress == null || userSmtpAddress.isEmpty()) - { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSmtpAddress); - } - if (requestedSettings.size() == 0) - { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSettingsCount); - } + if (requestedSettings.size() == 0) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSettingsCount); + } - if (this.getRequestedServerVersion().compareTo(MinimumRequestVersionForAutoDiscoverSoapService) < 0) - { - return this.internalGetLegacyUserSettings(userSmtpAddress, - requestedSettings); - } - else - { - return this.internalGetSoapUserSettings(userSmtpAddress, - requestedSettings); - } - - } - - /** - * Retrieves the specified settings for a set of users. - * - * @param userSmtpAddresses - * the user smtp addresses - * @param userSettingNames - * The user setting names. - * @return A GetUserSettingsResponseCollection object containing the - * responses for each individual user. - * @throws Exception - * the exception - */ - public GetUserSettingsResponseCollection getUsersSettings( - Iterable userSmtpAddresses, - UserSettingName... userSettingNames) throws Exception { - if (this.getRequestedServerVersion().compareTo(MinimumRequestVersionForAutoDiscoverSoapService) < 0) { - throw new ServiceVersionException( - String.format(Strings.AutodiscoverServiceIncompatibleWithRequestVersion, - MinimumRequestVersionForAutoDiscoverSoapService)); - } - List smtpAddresses = new ArrayList(); - smtpAddresses.addAll((Collection) userSmtpAddresses); - List settings = new ArrayList(); - settings.addAll(Arrays.asList(userSettingNames)); - return this.getUserSettings(smtpAddresses, settings); - } - - /** - * Retrieves the specified settings for a domain. - * - * @param domain - * The domain. - * @param requestedVersion - * Requested version of the Exchange service. - * @param domainSettingNames - * The domain setting names. - * @return A DomainResponse object containing the requested settings for the - * specified domain. - * @throws Exception - * the exception - */ - public GetDomainSettingsResponse getDomainSettings(String domain, - ExchangeVersion requestedVersion, - DomainSettingName... domainSettingNames) throws Exception { - List domains = new ArrayList(1); - domains.add(domain); - - List settings = new ArrayList(); - settings.addAll(Arrays.asList(domainSettingNames)); - - return this.getDomainSettings(domains, settings, requestedVersion). - getTResponseAtIndex(0); - } - - /** - * Retrieves the specified settings for a set of domains. - * - * @param domains - * the domains - * @param requestedVersion - * Requested version of the Exchange service. - * @param domainSettingNames - * The domain setting names. - * @return A GetDomainSettingsResponseCollection object containing the - * responses for each individual domain. - * @throws Exception - * the exception - */ - public GetDomainSettingsResponseCollection getDomainSettings( - Iterable domains, ExchangeVersion requestedVersion, - DomainSettingName... domainSettingNames) - throws Exception { - List settings = new ArrayList(); - settings.addAll(Arrays.asList(domainSettingNames)); - - List domainslst = new ArrayList(); - domainslst.addAll((Collection) domains); - - return this.getDomainSettings(domainslst, settings, requestedVersion); - } - - /** - * Try to get the partner access information for the given target tenant. - * - * @param targetTenantDomain The target domain or user email address. - * @param partnerAccessCredentials The partner access credentials. - * @param targetTenantAutodiscoverUrl The autodiscover url for the given tenant. - * @return True if the partner access information was retrieved, false otherwise. - */ - - /** commented as the code belongs to Partener Token credentials. */ + if (this.getRequestedServerVersion().compareTo(MinimumRequestVersionForAutoDiscoverSoapService) < 0) { + return this.internalGetLegacyUserSettings(userSmtpAddress, + requestedSettings); + } else { + return this.internalGetSoapUserSettings(userSmtpAddress, + requestedSettings); + } + + } + + /** + * Retrieves the specified settings for a set of users. + * + * @param userSmtpAddresses the user smtp addresses + * @param userSettingNames The user setting names. + * @return A GetUserSettingsResponseCollection object containing the + * responses for each individual user. + * @throws Exception the exception + */ + public GetUserSettingsResponseCollection getUsersSettings( + Iterable userSmtpAddresses, + UserSettingName... userSettingNames) throws Exception { + if (this.getRequestedServerVersion().compareTo(MinimumRequestVersionForAutoDiscoverSoapService) < 0) { + throw new ServiceVersionException( + String.format(Strings.AutodiscoverServiceIncompatibleWithRequestVersion, + MinimumRequestVersionForAutoDiscoverSoapService)); + } + List smtpAddresses = new ArrayList(); + smtpAddresses.addAll((Collection) userSmtpAddresses); + List settings = new ArrayList(); + settings.addAll(Arrays.asList(userSettingNames)); + return this.getUserSettings(smtpAddresses, settings); + } + + /** + * Retrieves the specified settings for a domain. + * + * @param domain The domain. + * @param requestedVersion Requested version of the Exchange service. + * @param domainSettingNames The domain setting names. + * @return A DomainResponse object containing the requested settings for the + * specified domain. + * @throws Exception the exception + */ + public GetDomainSettingsResponse getDomainSettings(String domain, + ExchangeVersion requestedVersion, + DomainSettingName... domainSettingNames) throws Exception { + List domains = new ArrayList(1); + domains.add(domain); + + List settings = new ArrayList(); + settings.addAll(Arrays.asList(domainSettingNames)); + + return this.getDomainSettings(domains, settings, requestedVersion). + getTResponseAtIndex(0); + } + + /** + * Retrieves the specified settings for a set of domains. + * + * @param domains the domains + * @param requestedVersion Requested version of the Exchange service. + * @param domainSettingNames The domain setting names. + * @return A GetDomainSettingsResponseCollection object containing the + * responses for each individual domain. + * @throws Exception the exception + */ + public GetDomainSettingsResponseCollection getDomainSettings( + Iterable domains, ExchangeVersion requestedVersion, + DomainSettingName... domainSettingNames) + throws Exception { + List settings = new ArrayList(); + settings.addAll(Arrays.asList(domainSettingNames)); + + List domainslst = new ArrayList(); + domainslst.addAll((Collection) domains); + + return this.getDomainSettings(domainslst, settings, requestedVersion); + } + + /** + * Try to get the partner access information for the given target tenant. + * + * @param targetTenantDomain The target domain or user email address. + * @param partnerAccessCredentials The partner access credentials. + * @param targetTenantAutodiscoverUrl The autodiscover url for the given tenant. + * @return True if the partner access information was retrieved, false otherwise. + */ + + /** commented as the code belongs to Partener Token credentials. */ /* public boolean tryGetPartnerAccess( String targetTenantDomain, @@ -2113,149 +2000,144 @@ else if (firstResponse.getErrorCode() == AutodiscoverErrorCode.RedirectUrl) return true; } */ - /** - * Gets the domain this service is bound to. When this property is - * set, the domain - * - * name is used to automatically determine the Autodiscover service URL. - * - * @return the domain - */ - public String getDomain() { - return this.domain; - } - - /** - * Sets the domain this service is bound to. When this property is - * set, the domain - * name is used to automatically determine the Autodiscover service URL. - * - * @param value - * the new domain - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - public void setDomain(String value) throws ArgumentException { - EwsUtilities.validateDomainNameAllowNull(value, "Domain"); - - // If Domain property is set to non-null value, Url property is nulled. - if (value != null) { - this.url = null; - } - this.domain = value; - } - - /** - * Gets the url this service is bound to. - * - * @return the url - */ - public URI getUrl() { - return this.url; - } - - /** - * Sets the url this service is bound to. - * - * @param value - * the new url - */ - public void setUrl(URI value) { - // If Url property is set to non-null value, Domain property is set to - // host portion of Url. - if (value != null) { - this.domain = value.getHost(); - } - this.url = value; - } - - public Boolean isExternal() - { - return this.isExternal; - } - - protected void setIsExternal(Boolean value) - { - this.isExternal = value; - } - - - /** - * Gets the redirection url validation callback. - * - * @return the redirection url validation callback - */ - public IAutodiscoverRedirectionUrl - getRedirectionUrlValidationCallback() { - return this.redirectionUrlValidationCallback; - } - - /** - * Sets the redirection url validation callback. - * - * @param value - * the new redirection url validation callback - */ - public void setRedirectionUrlValidationCallback( - IAutodiscoverRedirectionUrl value) { - this.redirectionUrlValidationCallback = value; - } - - /** - * Gets the dns server address. - * - * @return the dns server address - */ - protected String getDnsServerAddress() { - return this.dnsServerAddress; - } - - /** - * Sets the dns server address. - * - * @param value - * the new dns server address - */ - protected void setDnsServerAddress(String value) { - this.dnsServerAddress = value; - } - - /** - * Gets a value indicating whether the AutodiscoverService should - * perform SCP (ServiceConnectionPoint) record lookup when determining - * the Autodiscover service URL. - * - * @return the enable scp lookup - */ - public boolean getEnableScpLookup() { - return this.enableScpLookup; - } - - /** - * Sets the enable scp lookup. - * - * @param value - * the new enable scp lookup - */ - public void setEnableScpLookup(boolean value) { - this.enableScpLookup = value; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.FuncDelegateInterface#func(java.util.List, - * java.util.List, java.net.URI) - */ - @Override - public Object func(List arg1, List arg2, ExchangeVersion arg3, URI arg4) - throws ServiceLocalException, Exception { - if (arg2.get(0).getClass().equals(DomainSettingName.class)) - return internalGetDomainSettings(arg1, arg2, arg3, arg4); - else if (arg2.get(0).getClass().equals(UserSettingName.class)) - return internalGetUserSettings(arg1, arg2, arg3, arg4); - else - return null; - } + + /** + * Gets the domain this service is bound to. When this property is + * set, the domain + *

+ * name is used to automatically determine the Autodiscover service URL. + * + * @return the domain + */ + public String getDomain() { + return this.domain; + } + + /** + * Sets the domain this service is bound to. When this property is + * set, the domain + * name is used to automatically determine the Autodiscover service URL. + * + * @param value the new domain + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + public void setDomain(String value) throws ArgumentException { + EwsUtilities.validateDomainNameAllowNull(value, "Domain"); + + // If Domain property is set to non-null value, Url property is nulled. + if (value != null) { + this.url = null; + } + this.domain = value; + } + + /** + * Gets the url this service is bound to. + * + * @return the url + */ + public URI getUrl() { + return this.url; + } + + /** + * Sets the url this service is bound to. + * + * @param value the new url + */ + public void setUrl(URI value) { + // If Url property is set to non-null value, Domain property is set to + // host portion of Url. + if (value != null) { + this.domain = value.getHost(); + } + this.url = value; + } + + public Boolean isExternal() { + return this.isExternal; + } + + protected void setIsExternal(Boolean value) { + this.isExternal = value; + } + + + /** + * Gets the redirection url validation callback. + * + * @return the redirection url validation callback + */ + public IAutodiscoverRedirectionUrl + getRedirectionUrlValidationCallback() { + return this.redirectionUrlValidationCallback; + } + + /** + * Sets the redirection url validation callback. + * + * @param value the new redirection url validation callback + */ + public void setRedirectionUrlValidationCallback( + IAutodiscoverRedirectionUrl value) { + this.redirectionUrlValidationCallback = value; + } + + /** + * Gets the dns server address. + * + * @return the dns server address + */ + protected String getDnsServerAddress() { + return this.dnsServerAddress; + } + + /** + * Sets the dns server address. + * + * @param value the new dns server address + */ + protected void setDnsServerAddress(String value) { + this.dnsServerAddress = value; + } + + /** + * Gets a value indicating whether the AutodiscoverService should + * perform SCP (ServiceConnectionPoint) record lookup when determining + * the Autodiscover service URL. + * + * @return the enable scp lookup + */ + public boolean getEnableScpLookup() { + return this.enableScpLookup; + } + + /** + * Sets the enable scp lookup. + * + * @param value the new enable scp lookup + */ + public void setEnableScpLookup(boolean value) { + this.enableScpLookup = value; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.FuncDelegateInterface#func(java.util.List, + * java.util.List, java.net.URI) + */ + @Override + public Object func(List arg1, List arg2, ExchangeVersion arg3, URI arg4) + throws ServiceLocalException, Exception { + if (arg2.get(0).getClass().equals(DomainSettingName.class)) { + return internalGetDomainSettings(arg1, arg2, arg3, arg4); + } else if (arg2.get(0).getClass().equals(UserSettingName.class)) { + return internalGetUserSettings(arg1, arg2, arg3, arg4); + } else { + return null; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java index b67397308..8a03f92a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum AvailabilityData { - // Only return free/busy data. - /** The Free busy. */ - FreeBusy, + // Only return free/busy data. + /** + * The Free busy. + */ + FreeBusy, - // Only return suggestions. - /** The Suggestions. */ - Suggestions, + // Only return suggestions. + /** + * The Suggestions. + */ + Suggestions, - // Return both free/busy data and suggestions. - /** The Free busy and suggestions. */ - FreeBusyAndSuggestions + // Return both free/busy data and suggestions. + /** + * The Free busy and suggestions. + */ + FreeBusyAndSuggestions } diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java index 1cb3b5ef5..af678a61b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java @@ -13,373 +13,378 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; /** - *Represents the options of a GetAvailability request. + * Represents the options of a GetAvailability request. */ public final class AvailabilityOptions { - /** The merged free busy interval. */ - private int mergedFreeBusyInterval = 30; - - /** The requested free busy view. */ - private FreeBusyViewType requestedFreeBusyView = FreeBusyViewType.Detailed; - - /** The good suggestion threshold. */ - private int goodSuggestionThreshold = 25; - - /** The maximum suggestions per day. */ - private int maximumSuggestionsPerDay = 10; - - /** The maximum non work hours suggestions per day. */ - private int maximumNonWorkHoursSuggestionsPerDay = 0; - - /** The meeting duration. */ - private int meetingDuration = 60; - - /** The minimum suggestion quality. */ - private SuggestionQuality minimumSuggestionQuality = SuggestionQuality.Fair; - - /** The detailed suggestions window. */ - private TimeWindow detailedSuggestionsWindow; - - /** The current meeting time. */ - private Date currentMeetingTime; - - /** The global object id. */ - private String globalObjectId; - - /** - * Validates this instance against the specified time window. - * - * @param timeWindow - * the time window - * @throws Exception - * the exception - */ - protected void validate(long timeWindow) throws Exception { - if (this.mergedFreeBusyInterval > timeWindow) { - throw new IllegalArgumentException(String.format("%s,%s", - Strings.MergedFreeBusyIntervalMustBeSmallerThanTimeWindow, - "MergedFreeBusyInterval")); - } - - EwsUtilities.validateParamAllowNull(this.detailedSuggestionsWindow, - "DetailedSuggestionsWindow"); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param request - * the request - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - GetUserAvailabilityRequest request) throws Exception { - if (request.isFreeBusyViewRequested()) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.FreeBusyViewOptions); - - request.getTimeWindow().writeToXmlUnscopedDatesOnly(writer, - XmlElementNames.TimeWindow); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MergedFreeBusyIntervalInMinutes, - this.mergedFreeBusyInterval); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.RequestedView, this.requestedFreeBusyView); - - writer.writeEndElement(); // FreeBusyViewOptions - } - - if (request.isSuggestionsViewRequested()) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.SuggestionsViewOptions); - - writer - .writeElementValue(XmlNamespace.Types, - XmlElementNames.GoodThreshold, - this.goodSuggestionThreshold); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MaximumResultsByDay, - this.maximumSuggestionsPerDay); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MaximumNonWorkHourResultsByDay, - this.maximumNonWorkHoursSuggestionsPerDay); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MeetingDurationInMinutes, - this.meetingDuration); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MinimumSuggestionQuality, - this.minimumSuggestionQuality); - - TimeWindow timeWindowToSerialize = - this.detailedSuggestionsWindow == null ? request - .getTimeWindow() : - this.detailedSuggestionsWindow; - - timeWindowToSerialize.writeToXmlUnscopedDatesOnly(writer, - XmlElementNames.DetailedSuggestionsWindow); - - if (this.currentMeetingTime != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.CurrentMeetingTime, - this.currentMeetingTime); - } - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.GlobalObjectId, this.globalObjectId); - - writer.writeEndElement(); // SuggestionsViewOptions - } - } - - /** - * Initializes a new instance of the AvailabilityOptions class. - */ - public AvailabilityOptions() { - } - - /** - * Gets the time difference between two successive slots in a - * FreeBusyMerged view. MergedFreeBusyInterval must be between 5 and 1440. - * The default value is 30. - * - * @return the merged free busy interval - */ - public int getMergedFreeBusyInterval() { - return this.mergedFreeBusyInterval; - } - - /** - * Sets the merged free busy interval. - * - * @param value - * the new merged free busy interval - */ - public void setMergedFreeBusyInterval(int value) { - if (value < 5 || value > 1440) { - throw new IllegalArgumentException(String.format("%s,%s,%s,%s", - Strings.InvalidPropertyValueNotInRange, - "MergedFreeBusyInterval", 5, 1440)); - } - - this.mergedFreeBusyInterval = value; - } - - /** - * Gets the requested type of free/busy view. The default value is - * FreeBusyViewType.Detailed. - * - * @return the requested free busy view - */ - public FreeBusyViewType getRequestedFreeBusyView() { - return this.requestedFreeBusyView; - } - - /** - * Sets the requested free busy view. - * - * @param value - * the new requested free busy view - */ - public void setRequestedFreeBusyView(FreeBusyViewType value) { - this.requestedFreeBusyView = value; - } - - /** - * Gets the percentage of attendees that must have the time period - * open for the time period to qualify as a good suggested meeting time. - * GoodSuggestionThreshold must be between 1 and 49. The default value is - * 25. - * - * @return the good suggestion threshold - */ - public int getGoodSuggestionThreshold() { - return this.goodSuggestionThreshold; - } - - /** - * Sets the good suggestion threshold. - * - * @param value - * the new good suggestion threshold - */ - public void setGoodSuggestionThreshold(int value) { - if (value < 1 || value > 49) { - throw new IllegalArgumentException(String.format( - Strings.InvalidPropertyValueNotInRange, - "GoodSuggestionThreshold", 1, 49)); - } - - this.goodSuggestionThreshold = value; - } - - /** - * Gets the number of suggested meeting times that should be - * returned per day. MaximumSuggestionsPerDay must be between 0 and 48. The - * default value is 10. - * - * @return the maximum suggestions per day - */ - public int getMaximumSuggestionsPerDay() { - return this.maximumSuggestionsPerDay; - } - - /** - * Sets the maximum suggestions per day. - * - * @param value - * the new maximum suggestions per day - */ - public void setMaximumSuggestionsPerDay(int value) { - if (value < 0 || value > 48) { - throw new IllegalArgumentException(String.format("%s,%s,%s,%s", - Strings.InvalidPropertyValueNotInRange, - "MaximumSuggestionsPerDay", 0, 48)); - } - - this.maximumSuggestionsPerDay = value; - } - - /** - * Gets the number of suggested meeting times outside regular - * working hours per day. MaximumNonWorkHoursSuggestionsPerDay must be - * between 0 and 48. The default value is 0. - * - * @return the maximum non work hours suggestions per day - */ - public int getMaximumNonWorkHoursSuggestionsPerDay() { - return this.maximumNonWorkHoursSuggestionsPerDay; - } - - /** - * Sets the maximum non work hours suggestions per day. - * - * @param value - * the new maximum non work hours suggestions per day - */ - public void setMaximumNonWorkHoursSuggestionsPerDay(int value) { - if (value < 0 || value > 48) { - throw new IllegalArgumentException(String.format( - Strings.InvalidPropertyValueNotInRange, - "MaximumNonWorkHoursSuggestionsPerDay", 0, 48)); - } - - this.maximumNonWorkHoursSuggestionsPerDay = value; - } - - /** - * Gets the duration, in minutes, of the meeting for which to obtain - * suggestions. MeetingDuration must be between 30 and 1440. The default - * value is 60. - * - * @return the meeting duration - */ - public int getMeetingDuration() { - return this.meetingDuration; - } - - /** - * Sets the meeting duration. - * - * @param value - * the new meeting duration - */ - public void setMeetingDuration(int value) { - if (value < 30 || value > 1440) { - throw new IllegalArgumentException(String.format("%s,%s,%s,%s", - Strings.InvalidPropertyValueNotInRange, "MeetingDuration", - 30, 1440)); - } - - this.meetingDuration = value; - } - - /** - * Gets the minimum quality of suggestions that should be returned. - * The default is SuggestionQuality.Fair. - * - * @return the minimum suggestion quality - */ - public SuggestionQuality getMinimumSuggestionQuality() { - return this.minimumSuggestionQuality; - } - - /** - * Sets the minimum suggestion quality. - * - * @param value - * the new minimum suggestion quality - */ - public void setMinimumSuggestionQuality(SuggestionQuality value) { - this.minimumSuggestionQuality = value; - } - - /** - * Gets the time window for which detailed information about - * suggested meeting times should be returned. - * - * @return the detailed suggestions window - */ - public TimeWindow getDetailedSuggestionsWindow() { - return this.detailedSuggestionsWindow; - } - - /** - * Sets the detailed suggestions window. - * - * @param value - * the new detailed suggestions window - */ - public void setDetailedSuggestionsWindow(TimeWindow value) { - this.detailedSuggestionsWindow = value; - } - - /** - * Gets the start time of a meeting that you want to update with the - * suggested meeting times. - * - * @return the current meeting time - */ - public Date getCurrentMeetingTime() { - return this.currentMeetingTime; - } - - /** - * Sets the current meeting time. - * - * @param value - * the new current meeting time - */ - public void setCurrentMeetingTime(Date value) { - this.currentMeetingTime = value; - } - - /** - * Gets the global object Id of a meeting that will be modified - * based on the data returned by GetUserAvailability. - * - * @return the global object id - */ - public String getGlobalObjectId() { - return this.globalObjectId; - } - - /** - * Sets the global object id. - * - * @param value - * the new global object id - */ - public void setGlobalObjectId(String value) { - this.globalObjectId = value; - } + /** + * The merged free busy interval. + */ + private int mergedFreeBusyInterval = 30; + + /** + * The requested free busy view. + */ + private FreeBusyViewType requestedFreeBusyView = FreeBusyViewType.Detailed; + + /** + * The good suggestion threshold. + */ + private int goodSuggestionThreshold = 25; + + /** + * The maximum suggestions per day. + */ + private int maximumSuggestionsPerDay = 10; + + /** + * The maximum non work hours suggestions per day. + */ + private int maximumNonWorkHoursSuggestionsPerDay = 0; + + /** + * The meeting duration. + */ + private int meetingDuration = 60; + + /** + * The minimum suggestion quality. + */ + private SuggestionQuality minimumSuggestionQuality = SuggestionQuality.Fair; + + /** + * The detailed suggestions window. + */ + private TimeWindow detailedSuggestionsWindow; + + /** + * The current meeting time. + */ + private Date currentMeetingTime; + + /** + * The global object id. + */ + private String globalObjectId; + + /** + * Validates this instance against the specified time window. + * + * @param timeWindow the time window + * @throws Exception the exception + */ + protected void validate(long timeWindow) throws Exception { + if (this.mergedFreeBusyInterval > timeWindow) { + throw new IllegalArgumentException(String.format("%s,%s", + Strings.MergedFreeBusyIntervalMustBeSmallerThanTimeWindow, + "MergedFreeBusyInterval")); + } + + EwsUtilities.validateParamAllowNull(this.detailedSuggestionsWindow, + "DetailedSuggestionsWindow"); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param request the request + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + GetUserAvailabilityRequest request) throws Exception { + if (request.isFreeBusyViewRequested()) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.FreeBusyViewOptions); + + request.getTimeWindow().writeToXmlUnscopedDatesOnly(writer, + XmlElementNames.TimeWindow); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MergedFreeBusyIntervalInMinutes, + this.mergedFreeBusyInterval); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.RequestedView, this.requestedFreeBusyView); + + writer.writeEndElement(); // FreeBusyViewOptions + } + + if (request.isSuggestionsViewRequested()) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.SuggestionsViewOptions); + + writer + .writeElementValue(XmlNamespace.Types, + XmlElementNames.GoodThreshold, + this.goodSuggestionThreshold); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MaximumResultsByDay, + this.maximumSuggestionsPerDay); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MaximumNonWorkHourResultsByDay, + this.maximumNonWorkHoursSuggestionsPerDay); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MeetingDurationInMinutes, + this.meetingDuration); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MinimumSuggestionQuality, + this.minimumSuggestionQuality); + + TimeWindow timeWindowToSerialize = + this.detailedSuggestionsWindow == null ? request + .getTimeWindow() : + this.detailedSuggestionsWindow; + + timeWindowToSerialize.writeToXmlUnscopedDatesOnly(writer, + XmlElementNames.DetailedSuggestionsWindow); + + if (this.currentMeetingTime != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.CurrentMeetingTime, + this.currentMeetingTime); + } + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.GlobalObjectId, this.globalObjectId); + + writer.writeEndElement(); // SuggestionsViewOptions + } + } + + /** + * Initializes a new instance of the AvailabilityOptions class. + */ + public AvailabilityOptions() { + } + + /** + * Gets the time difference between two successive slots in a + * FreeBusyMerged view. MergedFreeBusyInterval must be between 5 and 1440. + * The default value is 30. + * + * @return the merged free busy interval + */ + public int getMergedFreeBusyInterval() { + return this.mergedFreeBusyInterval; + } + + /** + * Sets the merged free busy interval. + * + * @param value the new merged free busy interval + */ + public void setMergedFreeBusyInterval(int value) { + if (value < 5 || value > 1440) { + throw new IllegalArgumentException(String.format("%s,%s,%s,%s", + Strings.InvalidPropertyValueNotInRange, + "MergedFreeBusyInterval", 5, 1440)); + } + + this.mergedFreeBusyInterval = value; + } + + /** + * Gets the requested type of free/busy view. The default value is + * FreeBusyViewType.Detailed. + * + * @return the requested free busy view + */ + public FreeBusyViewType getRequestedFreeBusyView() { + return this.requestedFreeBusyView; + } + + /** + * Sets the requested free busy view. + * + * @param value the new requested free busy view + */ + public void setRequestedFreeBusyView(FreeBusyViewType value) { + this.requestedFreeBusyView = value; + } + + /** + * Gets the percentage of attendees that must have the time period + * open for the time period to qualify as a good suggested meeting time. + * GoodSuggestionThreshold must be between 1 and 49. The default value is + * 25. + * + * @return the good suggestion threshold + */ + public int getGoodSuggestionThreshold() { + return this.goodSuggestionThreshold; + } + + /** + * Sets the good suggestion threshold. + * + * @param value the new good suggestion threshold + */ + public void setGoodSuggestionThreshold(int value) { + if (value < 1 || value > 49) { + throw new IllegalArgumentException(String.format( + Strings.InvalidPropertyValueNotInRange, + "GoodSuggestionThreshold", 1, 49)); + } + + this.goodSuggestionThreshold = value; + } + + /** + * Gets the number of suggested meeting times that should be + * returned per day. MaximumSuggestionsPerDay must be between 0 and 48. The + * default value is 10. + * + * @return the maximum suggestions per day + */ + public int getMaximumSuggestionsPerDay() { + return this.maximumSuggestionsPerDay; + } + + /** + * Sets the maximum suggestions per day. + * + * @param value the new maximum suggestions per day + */ + public void setMaximumSuggestionsPerDay(int value) { + if (value < 0 || value > 48) { + throw new IllegalArgumentException(String.format("%s,%s,%s,%s", + Strings.InvalidPropertyValueNotInRange, + "MaximumSuggestionsPerDay", 0, 48)); + } + + this.maximumSuggestionsPerDay = value; + } + + /** + * Gets the number of suggested meeting times outside regular + * working hours per day. MaximumNonWorkHoursSuggestionsPerDay must be + * between 0 and 48. The default value is 0. + * + * @return the maximum non work hours suggestions per day + */ + public int getMaximumNonWorkHoursSuggestionsPerDay() { + return this.maximumNonWorkHoursSuggestionsPerDay; + } + + /** + * Sets the maximum non work hours suggestions per day. + * + * @param value the new maximum non work hours suggestions per day + */ + public void setMaximumNonWorkHoursSuggestionsPerDay(int value) { + if (value < 0 || value > 48) { + throw new IllegalArgumentException(String.format( + Strings.InvalidPropertyValueNotInRange, + "MaximumNonWorkHoursSuggestionsPerDay", 0, 48)); + } + + this.maximumNonWorkHoursSuggestionsPerDay = value; + } + + /** + * Gets the duration, in minutes, of the meeting for which to obtain + * suggestions. MeetingDuration must be between 30 and 1440. The default + * value is 60. + * + * @return the meeting duration + */ + public int getMeetingDuration() { + return this.meetingDuration; + } + + /** + * Sets the meeting duration. + * + * @param value the new meeting duration + */ + public void setMeetingDuration(int value) { + if (value < 30 || value > 1440) { + throw new IllegalArgumentException(String.format("%s,%s,%s,%s", + Strings.InvalidPropertyValueNotInRange, "MeetingDuration", + 30, 1440)); + } + + this.meetingDuration = value; + } + + /** + * Gets the minimum quality of suggestions that should be returned. + * The default is SuggestionQuality.Fair. + * + * @return the minimum suggestion quality + */ + public SuggestionQuality getMinimumSuggestionQuality() { + return this.minimumSuggestionQuality; + } + + /** + * Sets the minimum suggestion quality. + * + * @param value the new minimum suggestion quality + */ + public void setMinimumSuggestionQuality(SuggestionQuality value) { + this.minimumSuggestionQuality = value; + } + + /** + * Gets the time window for which detailed information about + * suggested meeting times should be returned. + * + * @return the detailed suggestions window + */ + public TimeWindow getDetailedSuggestionsWindow() { + return this.detailedSuggestionsWindow; + } + + /** + * Sets the detailed suggestions window. + * + * @param value the new detailed suggestions window + */ + public void setDetailedSuggestionsWindow(TimeWindow value) { + this.detailedSuggestionsWindow = value; + } + + /** + * Gets the start time of a meeting that you want to update with the + * suggested meeting times. + * + * @return the current meeting time + */ + public Date getCurrentMeetingTime() { + return this.currentMeetingTime; + } + + /** + * Sets the current meeting time. + * + * @param value the new current meeting time + */ + public void setCurrentMeetingTime(Date value) { + this.currentMeetingTime = value; + } + + /** + * Gets the global object Id of a meeting that will be modified + * based on the data returned by GetUserAvailability. + * + * @return the global object id + */ + public String getGlobalObjectId() { + return this.globalObjectId; + } + + /** + * Sets the global object id. + * + * @param value the new global object id + */ + public void setGlobalObjectId(String value) { + this.globalObjectId = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index d5e1617da..df3a892ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -13,148 +13,150 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a base 64 class. */ - class Base64 { - - /** The data. */ - static byte[] dataArry; - - /** The char set. */ - static String strSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZab" + - "cdefghijklmnopqrstuvwxyz0123456789+/"; +class Base64 { - static { - dataArry = new byte[64]; - for (int i = 0; i < 64; i++) { - byte s = (byte)strSet.charAt(i); - dataArry[i] = s; - } - } + /** + * The data. + */ + static byte[] dataArry; - /** - * Encodes String. - * - * @param data - * The String to be encoded - * @return String - * encoded value of String - */ - public static String encode(String data) { - return encode(data.getBytes()); - } + /** + * The char set. + */ + static String strSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZab" + + "cdefghijklmnopqrstuvwxyz0123456789+/"; - /** - * Encodes byte array. - * - * @param byteArry - * The value - * @return String - * encoded result of byte array - */ + static { + dataArry = new byte[64]; + for (int i = 0; i < 64; i++) { + byte s = (byte) strSet.charAt(i); + dataArry[i] = s; + } + } - public static String encode(byte[] byteArry) { - return encode(byteArry, 0, byteArry.length); - } + /** + * Encodes String. + * + * @param data The String to be encoded + * @return String + * encoded value of String + */ + public static String encode(String data) { + return encode(data.getBytes()); + } - /** - * Encodes byte array. - * - * @param byteArry The byte array to encode - * @param startIndex The starting index of array - * @param length Length of byte array - * @return String, encoded result of byte array - */ + /** + * Encodes byte array. + * + * @param byteArry The value + * @return String + * encoded result of byte array + */ - public static String encode(byte[] byteArry, int startIndex, int length) { - byte[] resArry = new byte[(length + 2) / 3 * 4 + length / 72]; - int curState = 0; // Current state - int prev = 0; // previous byte - int presLength = 0; // Current length of bytes decoded - int max = length + startIndex; - int resIndex = 0; + public static String encode(byte[] byteArry) { + return encode(byteArry, 0, byteArry.length); + } - for (int i = startIndex; i < max; i++) { - int x = byteArry[i]; - switch (++curState) { - case 1: - resArry[resIndex++] = dataArry[(x >> 2) & 0x3f]; - break; - case 2: - resArry[resIndex++] = dataArry[((prev << 4) & 0x30) | - ((x >> 4) & 0xf)]; - break; - case 3: - resArry[resIndex++] = dataArry[((prev << 2) & 0x3C) | - ((x >> 6) & 0x3)]; - resArry[resIndex++] = dataArry[x & 0x3F]; - curState = 0; - break; - } - prev = x; - if (++presLength >= 72) { - resArry[resIndex++] = (byte)'\n'; - presLength = 0; - } - } + /** + * Encodes byte array. + * + * @param byteArry The byte array to encode + * @param startIndex The starting index of array + * @param length Length of byte array + * @return String, encoded result of byte array + */ - switch (curState) { - case 1: - resArry[resIndex++] = dataArry[(prev << 4) & 0x30]; - resArry[resIndex++] = (byte)'='; - resArry[resIndex] = (byte)'='; - break; - case 2: - resArry[resIndex++] = dataArry[(prev << 2) & 0x3c]; - resArry[resIndex] = (byte)'='; - break; - } + public static String encode(byte[] byteArry, int startIndex, int length) { + byte[] resArry = new byte[(length + 2) / 3 * 4 + length / 72]; + int curState = 0; // Current state + int prev = 0; // previous byte + int presLength = 0; // Current length of bytes decoded + int max = length + startIndex; + int resIndex = 0; - return new String(resArry); - } + for (int i = startIndex; i < max; i++) { + int x = byteArry[i]; + switch (++curState) { + case 1: + resArry[resIndex++] = dataArry[(x >> 2) & 0x3f]; + break; + case 2: + resArry[resIndex++] = dataArry[((prev << 4) & 0x30) | + ((x >> 4) & 0xf)]; + break; + case 3: + resArry[resIndex++] = dataArry[((prev << 2) & 0x3C) | + ((x >> 6) & 0x3)]; + resArry[resIndex++] = dataArry[x & 0x3F]; + curState = 0; + break; + } + prev = x; + if (++presLength >= 72) { + resArry[resIndex++] = (byte) '\n'; + presLength = 0; + } + } - /** - * Decodes String value. - * - * @param data Encoded value - * @return The byte array of decoded value - */ + switch (curState) { + case 1: + resArry[resIndex++] = dataArry[(prev << 4) & 0x30]; + resArry[resIndex++] = (byte) '='; + resArry[resIndex] = (byte) '='; + break; + case 2: + resArry[resIndex++] = dataArry[(prev << 2) & 0x3c]; + resArry[resIndex] = (byte) '='; + break; + } - public static byte[] decode(String data) { - int last = 0; // end state - if (data.endsWith("=")) { - last++; - } - if (data.endsWith("==")) { - last++; - } - int decodeLen = (data.length() + 3) / 4 * 3 - last; - byte[] byteArry = new byte[decodeLen]; - int index = 0; - try { - for (int i = 0; i < data.length(); i++) { - int valueAt = strSet.indexOf(data.charAt(i)); - if (valueAt == -1) { - break; - } - switch (i % 4) { - case 0: - byteArry[index] = (byte)(valueAt << 2); - break; - case 1: - byteArry[index++] |= (byte)((valueAt >> 4) & 0x3); - byteArry[index] = (byte)(valueAt << 4); - break; - case 2: - byteArry[index++] |= (byte)((valueAt >> 2) & 0xf); - byteArry[index] = (byte)(valueAt << 6); - break; - case 3: - byteArry[index++] |= (byte)(valueAt & 0x3f); - break; - } - } - } catch (ArrayIndexOutOfBoundsException e) { - e.printStackTrace(); - } - return byteArry; - } + return new String(resArry); + } + + /** + * Decodes String value. + * + * @param data Encoded value + * @return The byte array of decoded value + */ + + public static byte[] decode(String data) { + int last = 0; // end state + if (data.endsWith("=")) { + last++; + } + if (data.endsWith("==")) { + last++; + } + int decodeLen = (data.length() + 3) / 4 * 3 - last; + byte[] byteArry = new byte[decodeLen]; + int index = 0; + try { + for (int i = 0; i < data.length(); i++) { + int valueAt = strSet.indexOf(data.charAt(i)); + if (valueAt == -1) { + break; + } + switch (i % 4) { + case 0: + byteArry[index] = (byte) (valueAt << 2); + break; + case 1: + byteArry[index++] |= (byte) ((valueAt >> 4) & 0x3); + byteArry[index] = (byte) (valueAt << 4); + break; + case 2: + byteArry[index++] |= (byte) ((valueAt >> 2) & 0xf); + byteArry[index] = (byte) (valueAt << 6); + break; + case 3: + byteArry[index++] |= (byte) (valueAt & 0x3f); + break; + } + } + } catch (ArrayIndexOutOfBoundsException e) { + e.printStackTrace(); + } + return byteArry; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index 7c4942b0a..8cc65d3b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -15,177 +15,172 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class Base64EncoderStream. */ - class Base64EncoderStream { - - /** - * Encode. - * - * @param uc - * the uc - * @return the char - */ - private static char encode(byte uc) { - if (uc < 26) { - return (char)('A' + uc); - } - if (uc < 52) { - return (char)('a' + (uc - 26)); - } - if (uc < 62) { - return (char)('0' + (uc - 52)); - } - if (uc == 62) { - return '+'; - } - return '/'; - } - - /** - * Checks if is base64. - * - * @param c - * the c - * @return true, if is base64 - */ - private static boolean isBase64(char c) { - return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || - c == '+' || c == '/' || c == '='; - } - - /** - * Decode. - * - * @param c - * the c - * @return the byte - */ - private static byte decode(char c) { - if (c >= 'A' && c <= 'Z') { - return (byte)(c - 'A'); - } - if (c >= 'a' && c <= 'z') { - return (byte)(c - 'a' + 26); - } - if (c >= '0' && c <= '9') { - return (byte)(c - '0' + 52); - } - if (c == '+') { - return 62; - } - - return 63; - } - - /** - * Encode. - * - * @param vby - * the vby - * @return the string - */ - public static String encode(byte[] vby) { - if (vby.length == 0) { - return ""; - } - - StringBuilder encodedString = new StringBuilder(); - - for (int i = 0; i < vby.length; i += 3) { - byte by1 = vby[i]; - byte by2 = 0; - byte by3 = 0; - - if (i + 1 < vby.length) { - by2 = vby[i + 1]; - } - - if (i + 2 < vby.length) { - by3 = vby[i + 2]; - } - byte by4 = (byte)(by1 >> 2); - byte by5 = (byte)(((by1 & 0x3) << 4) | (by2 >> 4)); - byte by6 = (byte)(((by2 & 0xf) << 2) | (by3 >> 6)); - byte by7 = (byte)(by3 & 0x3f); - - encodedString.append(encode(by4)); - encodedString.append(encode(by5)); - - if (i + 1 < vby.length) { - encodedString.append(encode(by6)); - } else { - encodedString.append("="); - } - - if (i + 2 < vby.length) { - encodedString.append(encode(by7)); - } else { - encodedString.append("="); - } - - if (i % (76 / 4 * 3) == 0) { - encodedString.append("\r\n"); - } - } - - return encodedString.toString(); - } - - /** - * Decode. - * - * @param stringToDecode - * the string to decode. - * @return size - */ - public static byte[] decode(String stringToDecode) { - StringBuilder str = new StringBuilder(); - for (int j = 0; j < stringToDecode.length(); j++) { - if (isBase64(stringToDecode.charAt(j))) { - str.append(stringToDecode.charAt(j)); - } - } - - Vector byteVector = new Vector(); - if (str.length() == 0) { - return new byte[byteVector.size()]; - } - - for (int i = 0; i < str.length(); i += 4) { - char c1, c2 = 'A', c3 = 'A', c4 = 'A'; - c1 = str.charAt(i); - if (i + 1 < str.length()) { - c2 = str.charAt(i + 1); - } - - if (i + 2 < str.length()) { - c3 = str.charAt(i + 2); - } - - if (i + 3 < str.length()) { - c4 = str.charAt(i + 3); - } - - byte by1, by2, by3, by4; - by1 = decode(c1); - by2 = decode(c2); - by3 = decode(c3); - by4 = decode(c4); - byteVector.add((byte) ((byte) (by1 << 2) | (byte) (by2 >> 4))); - - if (c3 != '=') { - byteVector.add((byte) (((by2 & 0xf) << 4) | (by3 >> 2))); - } - - if (c4 != '=') { - byteVector.add((byte) (((by3 & 0x3) << 6) | by4)); - } - } - - byte[] byteArray = new byte[byteVector.size()]; - for (int i = 0; i < byteVector.size(); i++) { - byteArray[i] = byteVector.get(i); - } - - return byteArray; - } +class Base64EncoderStream { + + /** + * Encode. + * + * @param uc the uc + * @return the char + */ + private static char encode(byte uc) { + if (uc < 26) { + return (char) ('A' + uc); + } + if (uc < 52) { + return (char) ('a' + (uc - 26)); + } + if (uc < 62) { + return (char) ('0' + (uc - 52)); + } + if (uc == 62) { + return '+'; + } + return '/'; + } + + /** + * Checks if is base64. + * + * @param c the c + * @return true, if is base64 + */ + private static boolean isBase64(char c) { + return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || + c == '+' || c == '/' || c == '='; + } + + /** + * Decode. + * + * @param c the c + * @return the byte + */ + private static byte decode(char c) { + if (c >= 'A' && c <= 'Z') { + return (byte) (c - 'A'); + } + if (c >= 'a' && c <= 'z') { + return (byte) (c - 'a' + 26); + } + if (c >= '0' && c <= '9') { + return (byte) (c - '0' + 52); + } + if (c == '+') { + return 62; + } + + return 63; + } + + /** + * Encode. + * + * @param vby the vby + * @return the string + */ + public static String encode(byte[] vby) { + if (vby.length == 0) { + return ""; + } + + StringBuilder encodedString = new StringBuilder(); + + for (int i = 0; i < vby.length; i += 3) { + byte by1 = vby[i]; + byte by2 = 0; + byte by3 = 0; + + if (i + 1 < vby.length) { + by2 = vby[i + 1]; + } + + if (i + 2 < vby.length) { + by3 = vby[i + 2]; + } + byte by4 = (byte) (by1 >> 2); + byte by5 = (byte) (((by1 & 0x3) << 4) | (by2 >> 4)); + byte by6 = (byte) (((by2 & 0xf) << 2) | (by3 >> 6)); + byte by7 = (byte) (by3 & 0x3f); + + encodedString.append(encode(by4)); + encodedString.append(encode(by5)); + + if (i + 1 < vby.length) { + encodedString.append(encode(by6)); + } else { + encodedString.append("="); + } + + if (i + 2 < vby.length) { + encodedString.append(encode(by7)); + } else { + encodedString.append("="); + } + + if (i % (76 / 4 * 3) == 0) { + encodedString.append("\r\n"); + } + } + + return encodedString.toString(); + } + + /** + * Decode. + * + * @param stringToDecode the string to decode. + * @return size + */ + public static byte[] decode(String stringToDecode) { + StringBuilder str = new StringBuilder(); + for (int j = 0; j < stringToDecode.length(); j++) { + if (isBase64(stringToDecode.charAt(j))) { + str.append(stringToDecode.charAt(j)); + } + } + + Vector byteVector = new Vector(); + if (str.length() == 0) { + return new byte[byteVector.size()]; + } + + for (int i = 0; i < str.length(); i += 4) { + char c1, c2 = 'A', c3 = 'A', c4 = 'A'; + c1 = str.charAt(i); + if (i + 1 < str.length()) { + c2 = str.charAt(i + 1); + } + + if (i + 2 < str.length()) { + c3 = str.charAt(i + 2); + } + + if (i + 3 < str.length()) { + c4 = str.charAt(i + 3); + } + + byte by1, by2, by3, by4; + by1 = decode(c1); + by2 = decode(c2); + by3 = decode(c3); + by4 = decode(c4); + byteVector.add((byte) ((byte) (by1 << 2) | (byte) (by2 >> 4))); + + if (c3 != '=') { + byteVector.add((byte) (((by2 & 0xf) << 4) | (by3 >> 2))); + } + + if (c4 != '=') { + byteVector.add((byte) (((by3 & 0x3) << 6) | by4)); + } + } + + byte[] byteArray = new byte[byteVector.size()]; + for (int i = 0; i < byteVector.size(); i++) { + byteArray[i] = byteVector.get(i); + } + + return byteArray; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java index 813acd18b..b5d5938ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java @@ -16,34 +16,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum BasePropertySet { - // Only includes the Id of items and folders. - /** The Id only. */ - IdOnly("IdOnly"), - - // Includes all the first class properties of items and folders. - /** The First class properties. */ - FirstClassProperties("AllProperties"); - - /** The base shape value. */ - private String baseShapeValue; - - /** - * Instantiates a new base property set. - * - * @param baseShapeValue - * the base shape value - */ - BasePropertySet(String baseShapeValue) { - this.baseShapeValue = baseShapeValue; - } - - /** - * Gets the base shape value. - * - * @return the base shape value - */ - public String getBaseShapeValue() { - return this.baseShapeValue; - } + // Only includes the Id of items and folders. + /** + * The Id only. + */ + IdOnly("IdOnly"), + + // Includes all the first class properties of items and folders. + /** + * The First class properties. + */ + FirstClassProperties("AllProperties"); + + /** + * The base shape value. + */ + private String baseShapeValue; + + /** + * Instantiates a new base property set. + * + * @param baseShapeValue the base shape value + */ + BasePropertySet(String baseShapeValue) { + this.baseShapeValue = baseShapeValue; + } + + /** + * Gets the base shape value. + * + * @return the base shape value + */ + public String getBaseShapeValue() { + return this.baseShapeValue; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/BodyType.java b/src/main/java/microsoft/exchange/webservices/data/BodyType.java index ac078785b..ba919522f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BodyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/BodyType.java @@ -12,15 +12,14 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines the type of body of an item. - * */ public enum BodyType { - /** - * The body is formatted in HTML. - */ - HTML, - /** - * The body is in plain text. - */ - Text + /** + * The body is formatted in HTML. + */ + HTML, + /** + * The body is in plain text. + */ + Text } diff --git a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java index 0b3f7987c..c79d2eec5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java @@ -17,73 +17,60 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class BoolPropertyDefinition extends GenericPropertyDefinition { - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected BoolPropertyDefinition(String xmlElementName, String uri, - ExchangeVersion version) { - super(Boolean.class,xmlElementName, uri, version); - } + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected BoolPropertyDefinition(String xmlElementName, String uri, + ExchangeVersion version) { + super(Boolean.class, xmlElementName, uri, version); + } - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected BoolPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(Boolean.class,xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected BoolPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(Boolean.class, xmlElementName, uri, flags, version); + } - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - * @param isNullable - * Indicates that this property definition is for a nullable - * property. - */ - protected BoolPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version, - boolean isNullable) { - super(Boolean.class,xmlElementName, uri, flags, version, isNullable); - } - - /** - * Convert instance to string. - * - * @param value - * The value. - * @return String representation of property value. - */ - @Override - /** - * Convert instance to string. - * @param value The value. - * @return String representation of Boolean property. - */ - protected String toString(Object value) { - return EwsUtilities.boolToXSBool((Boolean)value); - } + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + * @param isNullable Indicates that this property definition is for a nullable + * property. + */ + protected BoolPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version, + boolean isNullable) { + super(Boolean.class, xmlElementName, uri, flags, version, isNullable); + } + + /** + * Convert instance to string. + * + * @param value The value. + * @return String representation of property value. + */ + @Override + /** + * Convert instance to string. + * @param value The value. + * @return String representation of Boolean property. + */ + protected String toString(Object value) { + return EwsUtilities.boolToXSBool((Boolean) value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java index 9ded0d216..9fd1258b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java @@ -14,56 +14,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.List; /** - * * Represents an array of byte arrays - * */ public class ByteArrayArray extends ComplexProperty { - final static String ItemXmlElementName = "Base64Binary"; - private List content = new ArrayList(); + final static String ItemXmlElementName = "Base64Binary"; + private List content = new ArrayList(); - ByteArrayArray() { - } + ByteArrayArray() { + } - /** - * - * Gets the content of the array of byte arrays - */ - public byte[][] getContent() { - return (byte[][]) this.content.toArray(); - } + /** + * Gets the content of the array of byte arrays + */ + public byte[][] getContent() { + return (byte[][]) this.content.toArray(); + } - /** - * Tries to read element from XML. - * - */ + /** + * Tries to read element from XML. + */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { - if (reader.getLocalName().equalsIgnoreCase( - ByteArrayArray.ItemXmlElementName)) { - this.content.add(reader.readBase64ElementValue()); - return true; - } else { - return false; - } + if (reader.getLocalName().equalsIgnoreCase( + ByteArrayArray.ItemXmlElementName)) { + this.content.add(reader.readBase64ElementValue()); + return true; + } else { + return false; + } - } + } - /** - * The Writer - */ + /** + * The Writer + */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - for (byte[] item : this.content) { - writer.writeStartElement(XmlNamespace.Types, - ByteArrayArray.ItemXmlElementName); - writer.writeBase64ElementValue(item); - writer.writeEndElement(); - } + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + for (byte[] item : this.content) { + writer.writeStartElement(XmlNamespace.Types, + ByteArrayArray.ItemXmlElementName); + writer.writeBase64ElementValue(item); + writer.writeEndElement(); + } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index e2ecd092d..645adb348 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -10,48 +10,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; - import org.apache.http.Header; import org.apache.http.entity.BasicHttpEntity; import org.apache.http.message.BasicHeader; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; + class ByteArrayOSRequestEntity extends BasicHttpEntity { - private ByteArrayOutputStream os = null; - - /** - * Constructor for ByteArrayOSRequestEntity. - */ - ByteArrayOSRequestEntity(OutputStream os) { - super(); - this.os = (ByteArrayOutputStream) os; - } - - @Override - public long getContentLength() { - return os.size(); - } - - @Override - public Header getContentType() { - return new BasicHeader("Content-Type", "text/xml; charset=utf-8"); - } - - @Override - public boolean isRepeatable() { - return true; - } - - @Override - public void writeTo(OutputStream out) throws IOException { - os.writeTo(out); - } - - @Override - public boolean isStreaming() { - return false; - } + private ByteArrayOutputStream os = null; + + /** + * Constructor for ByteArrayOSRequestEntity. + */ + ByteArrayOSRequestEntity(OutputStream os) { + super(); + this.os = (ByteArrayOutputStream) os; + } + + @Override + public long getContentLength() { + return os.size(); + } + + @Override + public Header getContentType() { + return new BasicHeader("Content-Type", "text/xml; charset=utf-8"); + } + + @Override + public boolean isRepeatable() { + return true; + } + + @Override + public void writeTo(OutputStream out) throws IOException { + os.writeTo(out); + } + + @Override + public boolean isStreaming() { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index 24e1826cf..72d34363c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -14,70 +14,62 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents byte array property definition. - * - * */ final class ByteArrayPropertyDefinition extends TypedPropertyDefinition { - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected ByteArrayPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected ByteArrayPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } - /** - * Parses the specified value. - * - * @param value - * accepts String - * @return value - */ - @Override - protected Object parse(String value) { - return Base64EncoderStream.decode(value); - // return null; - } + /** + * Parses the specified value. + * + * @param value accepts String + * @return value + */ + @Override + protected Object parse(String value) { + return Base64EncoderStream.decode(value); + // return null; + } - /** - * Converts byte array property to a string. - * - * @param value - * accepts Object - * @return value - */ - @Override - protected String toString(Object value) { - return Base64EncoderStream.encode((byte[])value); - } + /** + * Converts byte array property to a string. + * + * @param value accepts Object + * @return value + */ + @Override + protected String toString(Object value) { + return Base64EncoderStream.encode((byte[]) value); + } - /** - * Gets a value indicating whether this property definition is for a - * nullable type (ref, int?, bool?...). - * - * @return True - */ - @Override - protected boolean isNullable() { - return true; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return Byte.class; - } + /** + * Gets a value indicating whether this property definition is for a + * nullable type (ref, int?, bool?...). + * + * @return True + */ + @Override + protected boolean isNullable() { + return true; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return Byte.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java index 58d99f1df..ceb32da5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java @@ -14,95 +14,100 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the results of an action performed on a calendar item or meeting * message, such as accepting, tentatively accepting or declining a meeting * request. - * - * */ public final class CalendarActionResults { - /** The appointment. */ - private Appointment appointment; + /** + * The appointment. + */ + private Appointment appointment; - /** The meeting request. */ - private MeetingRequest meetingRequest; + /** + * The meeting request. + */ + private MeetingRequest meetingRequest; - /** The meeting response. */ - private MeetingResponse meetingResponse; + /** + * The meeting response. + */ + private MeetingResponse meetingResponse; - /** The meeting cancellation. */ - private MeetingCancellation meetingCancellation; + /** + * The meeting cancellation. + */ + private MeetingCancellation meetingCancellation; - /** - * Initializes a new instance of the class. - * - * @param items - * the items - */ - CalendarActionResults(Iterable items) { - this.appointment = EwsUtilities.findFirstItemOfType(Appointment.class, - items); - this.meetingRequest = EwsUtilities.findFirstItemOfType( - MeetingRequest.class, items); - this.meetingResponse = EwsUtilities.findFirstItemOfType( - MeetingResponse.class, items); - this.meetingCancellation = EwsUtilities.findFirstItemOfType( - MeetingCancellation.class, items); - } + /** + * Initializes a new instance of the class. + * + * @param items the items + */ + CalendarActionResults(Iterable items) { + this.appointment = EwsUtilities.findFirstItemOfType(Appointment.class, + items); + this.meetingRequest = EwsUtilities.findFirstItemOfType( + MeetingRequest.class, items); + this.meetingResponse = EwsUtilities.findFirstItemOfType( + MeetingResponse.class, items); + this.meetingCancellation = EwsUtilities.findFirstItemOfType( + MeetingCancellation.class, items); + } - /** - * Gets the meeting that was accepted, tentatively accepted or declined. - * - * When a meeting is accepted or tentatively accepted via an Appointment - * object, EWS recreates the meeting, and Appointment represents that new - * version. When a meeting is accepted or tentatively accepted via a - * MeetingRequest object, EWS creates an associated meeting in the - * attendee's calendar and Appointment represents that meeting. When - * declining a meeting via an Appointment object, EWS moves the appointment - * to the attendee's Deleted Items folder and Appointment represents that - * moved copy. When declining a meeting via a MeetingRequest object, EWS - * creates an associated meeting in the attendee's Deleted Items folder, and - * Appointment represents that meeting. When a meeting is declined via - * either an Appointment or a MeetingRequest object from the Deleted Items - * folder, Appointment is null. - * - * @return appointment - */ - public Appointment getAppointment() { - return this.appointment; - } + /** + * Gets the meeting that was accepted, tentatively accepted or declined. + *

+ * When a meeting is accepted or tentatively accepted via an Appointment + * object, EWS recreates the meeting, and Appointment represents that new + * version. When a meeting is accepted or tentatively accepted via a + * MeetingRequest object, EWS creates an associated meeting in the + * attendee's calendar and Appointment represents that meeting. When + * declining a meeting via an Appointment object, EWS moves the appointment + * to the attendee's Deleted Items folder and Appointment represents that + * moved copy. When declining a meeting via a MeetingRequest object, EWS + * creates an associated meeting in the attendee's Deleted Items folder, and + * Appointment represents that meeting. When a meeting is declined via + * either an Appointment or a MeetingRequest object from the Deleted Items + * folder, Appointment is null. + * + * @return appointment + */ + public Appointment getAppointment() { + return this.appointment; + } - /** - * Gets the meeting request that was moved to the Deleted Items folder as a - * result of an attendee accepting, tentatively accepting or declining a - * meeting request. If the meeting request is accepted, tentatively accepted - * or declined from the Deleted Items folder, it is permanently deleted and - * MeetingRequest is null. - * - * @return meetingRequest - */ - public MeetingRequest getMeetingRequest() { - return this.meetingRequest; - } + /** + * Gets the meeting request that was moved to the Deleted Items folder as a + * result of an attendee accepting, tentatively accepting or declining a + * meeting request. If the meeting request is accepted, tentatively accepted + * or declined from the Deleted Items folder, it is permanently deleted and + * MeetingRequest is null. + * + * @return meetingRequest + */ + public MeetingRequest getMeetingRequest() { + return this.meetingRequest; + } - /** - * Gets the copy of the response that is sent to the organizer of a meeting - * when the meeting is accepted, tentatively accepted or declined by an - * attendee. MeetingResponse is null if the attendee chose not to send a - * response. - * - * @return meetingResponse - */ - public MeetingResponse getMeetingResponse() { - return this.meetingResponse; - } + /** + * Gets the copy of the response that is sent to the organizer of a meeting + * when the meeting is accepted, tentatively accepted or declined by an + * attendee. MeetingResponse is null if the attendee chose not to send a + * response. + * + * @return meetingResponse + */ + public MeetingResponse getMeetingResponse() { + return this.meetingResponse; + } - /** - * Gets the copy of the meeting cancellation message sent by the organizer - * to the attendees of a meeting when the meeting is cancelled. - * - * @return meetingCancellation - */ - public MeetingCancellation getMeetingCancellation() { - return this.meetingCancellation; - } + /** + * Gets the copy of the meeting cancellation message sent by the organizer + * to the attendees of a meeting when the meeting is cancelled. + * + * @return meetingCancellation + */ + public MeetingCancellation getMeetingCancellation() { + return this.meetingCancellation; + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java index 8074abd84..70a58657b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java @@ -13,99 +13,104 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; /** - *Represents an event in a calendar. - * + * Represents an event in a calendar. */ public final class CalendarEvent extends ComplexProperty { - /** The start time. */ - private Date startTime; + /** + * The start time. + */ + private Date startTime; - /** The end time. */ - private Date endTime; + /** + * The end time. + */ + private Date endTime; - /** The free busy status. */ - private LegacyFreeBusyStatus freeBusyStatus; + /** + * The free busy status. + */ + private LegacyFreeBusyStatus freeBusyStatus; - /** The details. */ - private CalendarEventDetails details; + /** + * The details. + */ + private CalendarEventDetails details; - /** - * Initializes a new instance of the CalendarEvent class. - */ - protected CalendarEvent() { - super(); - } + /** + * Initializes a new instance of the CalendarEvent class. + */ + protected CalendarEvent() { + super(); + } - /** - * Gets the start date and time of the event. - * - * @return the start time - */ - public Date getStartTime() { - return startTime; - } + /** + * Gets the start date and time of the event. + * + * @return the start time + */ + public Date getStartTime() { + return startTime; + } - /** - * Gets the end date and time of the event. - * - * @return the end time - */ - public Date getEndTime() { - return endTime; - } + /** + * Gets the end date and time of the event. + * + * @return the end time + */ + public Date getEndTime() { + return endTime; + } - /** - * Gets the free/busy status associated with the event. - * - * @return the free busy status - */ - public LegacyFreeBusyStatus getFreeBusyStatus() { - return freeBusyStatus; - } + /** + * Gets the free/busy status associated with the event. + * + * @return the free busy status + */ + public LegacyFreeBusyStatus getFreeBusyStatus() { + return freeBusyStatus; + } - /** - * Gets the details of the calendar event. Details is null if the user - * requsting them does no have the appropriate rights. - * - * @return the details - */ - public CalendarEventDetails getDetails() { - return details; - } + /** + * Gets the details of the calendar event. Details is null if the user + * requsting them does no have the appropriate rights. + * + * @return the details + */ + public CalendarEventDetails getDetails() { + return details; + } - /** - * Attempts to read the element at the reader's current position. - * - * @param reader - * the reader - * @return True if the element was read, false otherwise. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.StartTime)) { - this.startTime = reader - .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.EndTime)) { - this.endTime = reader - .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.BusyType)) { - this.freeBusyStatus = reader - .readElementValue(LegacyFreeBusyStatus.class); - return true; - } - if (reader.getLocalName().equals(XmlElementNames.CalendarEventDetails)) { - this.details = new CalendarEventDetails(); - this.details.loadFromXml(reader, reader.getLocalName()); - return true; - } else { - return false; - } + /** + * Attempts to read the element at the reader's current position. + * + * @param reader the reader + * @return True if the element was read, false otherwise. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.StartTime)) { + this.startTime = reader + .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.EndTime)) { + this.endTime = reader + .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.BusyType)) { + this.freeBusyStatus = reader + .readElementValue(LegacyFreeBusyStatus.class); + return true; + } + if (reader.getLocalName().equals(XmlElementNames.CalendarEventDetails)) { + this.details = new CalendarEventDetails(); + this.details.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java index 74dbd1f71..a959f4f0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java @@ -13,155 +13,168 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the details of a calendar event as returned by the * GetUserAvailability operation. - * */ public final class CalendarEventDetails extends ComplexProperty { - /** The store id. */ - private String storeId; - - /** The subject. */ - private String subject; - - /** The location. */ - private String location; - - /** The is meeting. */ - private boolean isMeeting; - - /** The is recurring. */ - private boolean isRecurring; - - /** The is exception. */ - private boolean isException; - - /** The is reminder set. */ - private boolean isReminderSet; - - /** The is private. */ - private boolean isPrivate; - - /** - * Initializes a new instance of the CalendarEventDetails class. - */ - protected CalendarEventDetails() { - super(); - } - - /** - * Attempts to read the element at the reader's current position. - * - * @param reader - * the reader - * @return True if the element was read, false otherwise. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.ID)) { - this.storeId = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Subject)) { - this.subject = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Location)) { - this.location = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsMeeting)) { - this.isMeeting = reader.readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsRecurring)) { - this.isRecurring = reader.readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsException)) { - this.isException = reader.readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsReminderSet)) { - - this.isReminderSet = reader.readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsPrivate)) { - this.isPrivate = reader.readElementValue(Boolean.class); - return true; - } else { - return false; - } - - } - - /** - * Gets the store Id of the calendar event. - * - * @return the store id - */ - public String getStoreId() { - return this.storeId; - } - - /** - * Gets the subject of the calendar event. - * - * @return the subject - */ - public String getSubject() { - return subject; - } - - /** - * Gets the location of the calendar event. - * - * @return the location - */ - public String getLocation() { - return location; - } - - /** - * Gets a value indicating whether the calendar event is a meeting. - * - * @return true, if is meeting - */ - public boolean isMeeting() { - return isMeeting; - } - - /** - * Gets a value indicating whether the calendar event is recurring. - * - * @return true, if is recurring - */ - public boolean isRecurring() { - return isRecurring; - } - - /** - * Gets a value indicating whether the calendar event is an exception in a - * recurring series. - * - * @return true, if is exception - */ - public boolean isException() { - return isException; - } - - /** - * Gets a value indicating whether the calendar event has a reminder set. - * - * @return true, if is reminder set - */ - public boolean isReminderSet() { - return isReminderSet; - } - - /** - * Gets a value indicating whether the calendar event is private. - * - * @return true, if is private - */ - public boolean isPrivate() { - return isPrivate; - } + /** + * The store id. + */ + private String storeId; + + /** + * The subject. + */ + private String subject; + + /** + * The location. + */ + private String location; + + /** + * The is meeting. + */ + private boolean isMeeting; + + /** + * The is recurring. + */ + private boolean isRecurring; + + /** + * The is exception. + */ + private boolean isException; + + /** + * The is reminder set. + */ + private boolean isReminderSet; + + /** + * The is private. + */ + private boolean isPrivate; + + /** + * Initializes a new instance of the CalendarEventDetails class. + */ + protected CalendarEventDetails() { + super(); + } + + /** + * Attempts to read the element at the reader's current position. + * + * @param reader the reader + * @return True if the element was read, false otherwise. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.ID)) { + this.storeId = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Subject)) { + this.subject = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Location)) { + this.location = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsMeeting)) { + this.isMeeting = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsRecurring)) { + this.isRecurring = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsException)) { + this.isException = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsReminderSet)) { + + this.isReminderSet = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsPrivate)) { + this.isPrivate = reader.readElementValue(Boolean.class); + return true; + } else { + return false; + } + + } + + /** + * Gets the store Id of the calendar event. + * + * @return the store id + */ + public String getStoreId() { + return this.storeId; + } + + /** + * Gets the subject of the calendar event. + * + * @return the subject + */ + public String getSubject() { + return subject; + } + + /** + * Gets the location of the calendar event. + * + * @return the location + */ + public String getLocation() { + return location; + } + + /** + * Gets a value indicating whether the calendar event is a meeting. + * + * @return true, if is meeting + */ + public boolean isMeeting() { + return isMeeting; + } + + /** + * Gets a value indicating whether the calendar event is recurring. + * + * @return true, if is recurring + */ + public boolean isRecurring() { + return isRecurring; + } + + /** + * Gets a value indicating whether the calendar event is an exception in a + * recurring series. + * + * @return true, if is exception + */ + public boolean isException() { + return isException; + } + + /** + * Gets a value indicating whether the calendar event has a reminder set. + * + * @return true, if is reminder set + */ + public boolean isReminderSet() { + return isReminderSet; + } + + /** + * Gets a value indicating whether the calendar event is private. + * + * @return true, if is private + */ + public boolean isPrivate() { + return isPrivate; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java index 5e75ee250..4bc7da873 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java @@ -14,132 +14,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a folder containing appointments. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.CalendarFolder) -public class CalendarFolder extends Folder{ +public class CalendarFolder extends Folder { - /** - * Binds to an existing calendar folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A CalendarFolder instance representing the calendar folder - * corresponding to the specified Id - * @throws Exception - * the exception - */ - public static CalendarFolder bind(ExchangeService service, FolderId id, - PropertySet propertySet) throws Exception { - return service.bindToFolder(CalendarFolder.class, id, propertySet); - } + /** + * Binds to an existing calendar folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A CalendarFolder instance representing the calendar folder + * corresponding to the specified Id + * @throws Exception the exception + */ + public static CalendarFolder bind(ExchangeService service, FolderId id, + PropertySet propertySet) throws Exception { + return service.bindToFolder(CalendarFolder.class, id, propertySet); + } - /** - * Binds to an existing calendar folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A CalendarFolder instance representing the calendar folder - * corresponding to the specified Id - * @throws Exception - * the exception - */ - public static CalendarFolder bind(ExchangeService service, FolderId id) - throws Exception { - return CalendarFolder.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing calendar folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A CalendarFolder instance representing the calendar folder + * corresponding to the specified Id + * @throws Exception the exception + */ + public static CalendarFolder bind(ExchangeService service, FolderId id) + throws Exception { + return CalendarFolder.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Binds to an existing calendar folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @param propertySet - * the property set - * @return A CalendarFolder instance representing the calendar folder with - * the specified name. - * @throws Exception - * the exception - */ - public static CalendarFolder bind(ExchangeService service, - WellKnownFolderName name, PropertySet - propertySet) throws Exception { - return CalendarFolder.bind(service, new FolderId(name), propertySet); - } + /** + * Binds to an existing calendar folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @param propertySet the property set + * @return A CalendarFolder instance representing the calendar folder with + * the specified name. + * @throws Exception the exception + */ + public static CalendarFolder bind(ExchangeService service, + WellKnownFolderName name, PropertySet + propertySet) throws Exception { + return CalendarFolder.bind(service, new FolderId(name), propertySet); + } - /** - * Binds to an existing calendar folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @return A CalendarFolder instance representing the calendar folder with - * the specified name. - * @throws Exception - * the exception - */ - public static CalendarFolder bind(ExchangeService service, - WellKnownFolderName name) throws Exception { - return CalendarFolder.bind(service, new FolderId(name), PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing calendar folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @return A CalendarFolder instance representing the calendar folder with + * the specified name. + * @throws Exception the exception + */ + public static CalendarFolder bind(ExchangeService service, + WellKnownFolderName name) throws Exception { + return CalendarFolder.bind(service, new FolderId(name), PropertySet + .getFirstClassProperties()); + } - /** - * Initializes an unsaved local instance of "CalendarFolder". To bind to an - * existing calendar folder, use CalendarFolder.Bind() instead. Calling this - * method results in a call to EWS. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public CalendarFolder(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of "CalendarFolder". To bind to an + * existing calendar folder, use CalendarFolder.Bind() instead. Calling this + * method results in a call to EWS. + * + * @param service the service + * @throws Exception the exception + */ + public CalendarFolder(ExchangeService service) throws Exception { + super(service); + } - /** - * Obtains a list of appointments by searching the contents of this folder - * and performing recurrence expansion for recurring appointments. Calling - * this method results in a call to EWS. - * - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindItemsResults findAppointments(CalendarView view) - throws Exception { - EwsUtilities.validateParam(view, "view"); + /** + * Obtains a list of appointments by searching the contents of this folder + * and performing recurrence expansion for recurring appointments. Calling + * this method results in a call to EWS. + * + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindItemsResults findAppointments(CalendarView view) + throws Exception { + EwsUtilities.validateParam(view, "view"); - ServiceResponseCollection> responses = - this.internalFindItems((SearchFilter)null, view, null - /* groupBy */); + ServiceResponseCollection> responses = + this.internalFindItems((SearchFilter) null, view, null + /* groupBy */); - return responses.getResponseAtIndex(0).getResults(); - } + return responses.getResponseAtIndex(0).getResults(); + } - /** - * Obtains a list of appointments by searching the contents of this folder - * and performing recurrence expansion. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Obtains a list of appointments by searching the contents of this folder + * and performing recurrence expansion. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java index 9bc59b46f..709f2e210 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java @@ -13,200 +13,179 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for accept, tentatively accept and decline response * messages. - * - * - * @param - * The type of message that is created when this response message is - * saved. + * + * @param The type of message that is created when this response message is + * saved. */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class CalendarResponseMessage - extends CalendarResponseMessageBase { - - /** - * Initializes a new instance of the CalendarResponseMessage class. - * - * @param referenceItem - * The reference item - * @throws Exception - * the exception - */ - protected CalendarResponseMessage(Item referenceItem) throws Exception { - super(referenceItem); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return CalendarResponseObjectSchema.Instance; - } - - /** - * Gets the body of the response. - * - * @return the body - * @throws Exception - * the exception - */ - public MessageBody getBody() throws Exception { - return (MessageBody)this - .getObjectFromPropertyDefinition(ItemSchema.Body); - } - - /** - * Sets the body. - * - * @param value - * the new body - * @throws Exception - * the exception - */ - public void setBody(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, - value); - } - - /** - * Gets a list of recipients the response will be sent to. - * - * @return the to recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getToRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.ToRecipients); - } - - /** - * Gets a list of recipients the response will be sent to as Cc. - * - * @return the cc recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getCcRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.CcRecipients); - } - - /** - * Gets a list of recipients this response will be sent to as Bcc. - * - * @return the bcc recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getBccRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.BccRecipients); - } - - /** - * Gets the item class. - * - * @return the item class - * @throws Exception - * the exception - */ - protected String getItemClass() throws Exception { - return (String)this - .getObjectFromPropertyDefinition(ItemSchema.ItemClass); - } - - /** - * Sets the item class. - * - * @param value - * the new item class - * @throws Exception - * the exception - */ - protected void setItemClass(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.ItemClass, value); - } - - /** - * Gets the sensitivity of this response. - * - * @return the sensitivity - * @throws Exception - * the exception - */ - public Sensitivity getSensitivity() throws Exception { - return (Sensitivity)this - .getObjectFromPropertyDefinition(ItemSchema.Sensitivity); - } - - /** - * Sets the sensitivity. - * - * @param value - * the new sensitivity - * @throws Exception - * the exception - */ - public void setSensitivity(Sensitivity value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Sensitivity, value); - } - - /** - * Gets a list of attachments to this response. - * - * @return the attachments - * @throws Exception - * the exception - */ - public AttachmentCollection getAttachments() throws Exception { - return (AttachmentCollection)this - .getObjectFromPropertyDefinition(ItemSchema.Attachments); - } - - /** - * Gets the internet message headers. - * - * @return the internet message headers - * @throws Exception - * the exception - */ - protected InternetMessageHeaderCollection getInternetMessageHeaders() - throws Exception { - return (InternetMessageHeaderCollection)this - .getObjectFromPropertyDefinition( - ItemSchema.InternetMessageHeaders); - } - - /** - * Gets the sender of this response. - * - * @return the sender - * @throws Exception - * the exception - */ - public EmailAddress getSender() throws Exception { - return (EmailAddress)this - .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); - } - - /** - * Sets the sender. - * - * @param value - * the new sender - * @throws Exception - * the exception - */ - public void setSender(EmailAddress value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.Sender, value); - } -} \ No newline at end of file + extends CalendarResponseMessageBase { + + /** + * Initializes a new instance of the CalendarResponseMessage class. + * + * @param referenceItem The reference item + * @throws Exception the exception + */ + protected CalendarResponseMessage(Item referenceItem) throws Exception { + super(referenceItem); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return CalendarResponseObjectSchema.Instance; + } + + /** + * Gets the body of the response. + * + * @return the body + * @throws Exception the exception + */ + public MessageBody getBody() throws Exception { + return (MessageBody) this + .getObjectFromPropertyDefinition(ItemSchema.Body); + } + + /** + * Sets the body. + * + * @param value the new body + * @throws Exception the exception + */ + public void setBody(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, + value); + } + + /** + * Gets a list of recipients the response will be sent to. + * + * @return the to recipients + * @throws Exception the exception + */ + public EmailAddressCollection getToRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.ToRecipients); + } + + /** + * Gets a list of recipients the response will be sent to as Cc. + * + * @return the cc recipients + * @throws Exception the exception + */ + public EmailAddressCollection getCcRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.CcRecipients); + } + + /** + * Gets a list of recipients this response will be sent to as Bcc. + * + * @return the bcc recipients + * @throws Exception the exception + */ + public EmailAddressCollection getBccRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.BccRecipients); + } + + /** + * Gets the item class. + * + * @return the item class + * @throws Exception the exception + */ + protected String getItemClass() throws Exception { + return (String) this + .getObjectFromPropertyDefinition(ItemSchema.ItemClass); + } + + /** + * Sets the item class. + * + * @param value the new item class + * @throws Exception the exception + */ + protected void setItemClass(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.ItemClass, value); + } + + /** + * Gets the sensitivity of this response. + * + * @return the sensitivity + * @throws Exception the exception + */ + public Sensitivity getSensitivity() throws Exception { + return (Sensitivity) this + .getObjectFromPropertyDefinition(ItemSchema.Sensitivity); + } + + /** + * Sets the sensitivity. + * + * @param value the new sensitivity + * @throws Exception the exception + */ + public void setSensitivity(Sensitivity value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Sensitivity, value); + } + + /** + * Gets a list of attachments to this response. + * + * @return the attachments + * @throws Exception the exception + */ + public AttachmentCollection getAttachments() throws Exception { + return (AttachmentCollection) this + .getObjectFromPropertyDefinition(ItemSchema.Attachments); + } + + /** + * Gets the internet message headers. + * + * @return the internet message headers + * @throws Exception the exception + */ + protected InternetMessageHeaderCollection getInternetMessageHeaders() + throws Exception { + return (InternetMessageHeaderCollection) this + .getObjectFromPropertyDefinition( + ItemSchema.InternetMessageHeaders); + } + + /** + * Gets the sender of this response. + * + * @return the sender + * @throws Exception the exception + */ + public EmailAddress getSender() throws Exception { + return (EmailAddress) this + .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); + } + + /** + * Sets the sender. + * + * @param value the new sender + * @throws Exception the exception + */ + public void setSender(EmailAddress value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.Sender, value); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java index 2c413859a..80b64fc8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java @@ -12,141 +12,126 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for all calendar-related response messages. - * - * - * @param - * The type of message that is created when this response message is - * saved. + * + * @param The type of message that is created when this response message is + * saved. */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class CalendarResponseMessageBase - extends ResponseObject { + extends ResponseObject { - /** - * Initializes a new instance of the CalendarResponseMessageBase class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - CalendarResponseMessageBase(Item referenceItem) throws Exception { - super(referenceItem); - } + /** + * Initializes a new instance of the CalendarResponseMessageBase class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + CalendarResponseMessageBase(Item referenceItem) throws Exception { + super(referenceItem); + } - /** - * Saves the response in the specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderId - * The Id of the folder in which to save the response. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ + /** + * Saves the response in the specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderId The Id of the folder in which to save the response. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ - public CalendarActionResults calendarSave(FolderId destinationFolderId) - throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + public CalendarActionResults calendarSave(FolderId destinationFolderId) + throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return new CalendarActionResults(this.internalCreate( - destinationFolderId, MessageDisposition.SaveOnly)); - } + return new CalendarActionResults(this.internalCreate( + destinationFolderId, MessageDisposition.SaveOnly)); + } - /** - * Saves the response in the specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderName - * The name of the folder in which to save the response. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults calendarSave( - WellKnownFolderName destinationFolderName) throws Exception { - return new CalendarActionResults(this.internalCreate(new FolderId( - destinationFolderName), MessageDisposition.SaveOnly)); - } + /** + * Saves the response in the specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderName The name of the folder in which to save the response. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults calendarSave( + WellKnownFolderName destinationFolderName) throws Exception { + return new CalendarActionResults(this.internalCreate(new FolderId( + destinationFolderName), MessageDisposition.SaveOnly)); + } - /** - * Saves the response in the Drafts folder. Calling this method results in a - * call to EWS. - * - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults calendarSave() throws Exception { - return new CalendarActionResults(this.internalCreate(null, - MessageDisposition.SaveOnly)); - } + /** + * Saves the response in the Drafts folder. Calling this method results in a + * call to EWS. + * + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults calendarSave() throws Exception { + return new CalendarActionResults(this.internalCreate(null, + MessageDisposition.SaveOnly)); + } - /** - * Sends this response without saving a copy. Calling this method results in - * a call to EWS. - * - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults calendarSend() throws Exception { - return new CalendarActionResults(this.internalCreate(null, - MessageDisposition.SendOnly)); - } + /** + * Sends this response without saving a copy. Calling this method results in + * a call to EWS. + * + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults calendarSend() throws Exception { + return new CalendarActionResults(this.internalCreate(null, + MessageDisposition.SendOnly)); + } - /** - * Sends this response ans saves a copy in the specified folder. Calling - * this method results in a call to EWS. - * - * @param destinationFolderId - * The Id of the folder in which to save the copy of the message. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ + /** + * Sends this response ans saves a copy in the specified folder. Calling + * this method results in a call to EWS. + * + * @param destinationFolderId The Id of the folder in which to save the copy of the message. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ - public CalendarActionResults calendarSendAndSaveCopy( - FolderId destinationFolderId) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return new CalendarActionResults(this.internalCreate( - destinationFolderId, MessageDisposition.SendAndSaveCopy)); - } + public CalendarActionResults calendarSendAndSaveCopy( + FolderId destinationFolderId) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return new CalendarActionResults(this.internalCreate( + destinationFolderId, MessageDisposition.SendAndSaveCopy)); + } - /** - * Sends this response ans saves a copy in the specified folder. Calling - * this method results in a call to EWS. - * - * @param destinationFolderName - * the destination folder name - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults calendarSendAndSaveCopy( - WellKnownFolderName destinationFolderName) throws Exception { - return new CalendarActionResults(this.internalCreate(new FolderId( - destinationFolderName), MessageDisposition.SendAndSaveCopy)); - } + /** + * Sends this response ans saves a copy in the specified folder. Calling + * this method results in a call to EWS. + * + * @param destinationFolderName the destination folder name + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults calendarSendAndSaveCopy( + WellKnownFolderName destinationFolderName) throws Exception { + return new CalendarActionResults(this.internalCreate(new FolderId( + destinationFolderName), MessageDisposition.SendAndSaveCopy)); + } - /** - * Sends this response ans saves a copy in the specified folder. Calling - * this method results in a call to EWS. - * - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * the exception - */ - public CalendarActionResults calendarSendAndSaveCopy() throws Exception { - return new CalendarActionResults(this.internalCreate(null, - MessageDisposition.SendAndSaveCopy)); - } + /** + * Sends this response ans saves a copy in the specified folder. Calling + * this method results in a call to EWS. + * + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception the exception + */ + public CalendarActionResults calendarSendAndSaveCopy() throws Exception { + return new CalendarActionResults(this.internalCreate(null, + MessageDisposition.SendAndSaveCopy)); + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java index 44571f63d..728edc1ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java @@ -15,31 +15,33 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class CalendarResponseObjectSchema extends ServiceObjectSchema { - // This must be declared after the property definitions - /** The Constant Instance. */ - static final CalendarResponseObjectSchema Instance = - new CalendarResponseObjectSchema(); + // This must be declared after the property definitions + /** + * The Constant Instance. + */ + static final CalendarResponseObjectSchema Instance = + new CalendarResponseObjectSchema(); - /** - * Registers properties. - */ - // / IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - // same order as they are defined in types.xsd) - @Override - protected void registerProperties() { - super.registerProperties(); + /** + * Registers properties. + */ + // / IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + // same order as they are defined in types.xsd) + @Override + protected void registerProperties() { + super.registerProperties(); - this.registerProperty(ItemSchema.ItemClass); - this.registerProperty(ItemSchema.Sensitivity); - this.registerProperty(ItemSchema.Body); - this.registerProperty(ItemSchema.Attachments); - this.registerProperty(ItemSchema.InternetMessageHeaders); - this.registerProperty(EmailMessageSchema.Sender); - this.registerProperty(EmailMessageSchema.ToRecipients); - this.registerProperty(EmailMessageSchema.CcRecipients); - this.registerProperty(EmailMessageSchema.BccRecipients); - this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); - this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); - this.registerProperty(ResponseObjectSchema.ReferenceItemId); - } -} \ No newline at end of file + this.registerProperty(ItemSchema.ItemClass); + this.registerProperty(ItemSchema.Sensitivity); + this.registerProperty(ItemSchema.Body); + this.registerProperty(ItemSchema.Attachments); + this.registerProperty(ItemSchema.InternetMessageHeaders); + this.registerProperty(EmailMessageSchema.Sender); + this.registerProperty(EmailMessageSchema.ToRecipients); + this.registerProperty(EmailMessageSchema.CcRecipients); + this.registerProperty(EmailMessageSchema.BccRecipients); + this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); + this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); + this.registerProperty(ResponseObjectSchema.ReferenceItemId); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java index 5cfa16b22..06053ebff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java @@ -18,234 +18,222 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class CalendarView extends ViewBase { - /** The traversal. */ - private ItemTraversal traversal = ItemTraversal.Shallow; - - /** The max items returned. */ - private Integer maxItemsReturned; - - /** The start date. */ - private Date startDate; - - /** The end date. */ - private Date endDate; - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Traversal, this - .getTraversal()); - } - - /** - * Writes the search settings to XML. - * - * @param writer - * the writer - * @param groupBy - * the group by - */ - protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, - Grouping groupBy) { - // No search settings for calendar views. - } - - /** - * Writes OrderBy property to XML. - * - * @param writer - * the writer - */ - protected void writeOrderByToXml(EwsServiceXmlWriter writer) { - // No OrderBy for calendar views. - } - - /** - * Gets the type of service object this view applies to. - * - * @return A ServiceObjectType value. - */ - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Item; - } - - /** - * Initializes a new instance of CalendarView. - * - * @param startDate - * the start date - * @param endDate - * the end date - */ - public CalendarView(Date startDate, Date endDate) { - super(); - this.startDate = startDate; - this.endDate = endDate; - } - - /** - * Initializes a new instance of CalendarView. - * - * @param startDate - * the start date - * @param endDate - * the end date - * @param maxItemsReturned - * the max items returned - */ - public CalendarView(Date startDate, Date endDate, int maxItemsReturned) { - this(startDate, endDate); - this.maxItemsReturned = maxItemsReturned; - } - - /** - * Validate instance. - * - * @param request - * the request - * @throws ServiceVersionException - * the service version exception - * @throws ServiceValidationException - * the service validation exception - */ - protected void internalValidate(ServiceRequestBase request) - throws ServiceVersionException, ServiceValidationException { - super.internalValidate(request); - - if (this.endDate.compareTo(this.startDate) < 0) { - throw new ServiceValidationException( - Strings.EndDateMustBeGreaterThanStartDate); - } - } - - /** - * Write to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void internalWriteViewToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWriteViewToXml(writer); - - writer.writeAttributeValue(XmlAttributeNames.StartDate, this.startDate); - writer.writeAttributeValue(XmlAttributeNames.EndDate, this.endDate); - } - - /** - * Gets the name of the view XML element. - * - * @return XML element name - */ - protected String getViewXmlElementName() { - return XmlElementNames.CalendarView; - } - - /** - * Gets the maximum number of items or folders the search operation should - * return. - * - * @return The maximum number of items the search operation should return. - */ - protected Integer getMaxEntriesReturned() { - return this.maxItemsReturned; - } - - /** - * Gets the start date. - * - * @return the start date - */ - public Date getStartDate() { - return this.startDate; - } - - /** - * Sets the start date. - * - * @param startDate - * the new start date - */ - public void setStartDate(Date startDate) { - this.startDate = startDate; - } - - /** - * Gets the end date. - * - * @return the end date - */ - public Date getEndDate() { - return this.endDate; - } - - /** - * Sets the end date. - * - * @param endDate - * the new end date - */ - public void setEndDate(Date endDate) { - this.endDate = endDate; - } - - /** - * The maximum number of items the search operation should return. - * - * @return the max items returned - */ - public Integer getMaxItemsReturned() { - - return this.maxItemsReturned; - } - - /** - * Sets the max items returned. - * - * @param maxItemsReturned - * the new max items returned - * @throws ArgumentException - * the argument exception - */ - public void setMaxItemsReturned(Integer maxItemsReturned) - throws ArgumentException { - if (maxItemsReturned != null) { - if (maxItemsReturned.intValue() <= 0) { - throw new ArgumentException(Strings.ValueMustBeGreaterThanZero); - } - } - - this.maxItemsReturned = maxItemsReturned; - } - - /** - * Gets the search traversal mode. Defaults to - * ItemTraversal.Shallow. - * - * @return the traversal - */ - public ItemTraversal getTraversal() { - return this.traversal; - - } - - /** - * Sets the traversal. - * - * @param traversal - * the new traversal - */ - public void setTraversal(ItemTraversal traversal) { - this.traversal = traversal; - } + /** + * The traversal. + */ + private ItemTraversal traversal = ItemTraversal.Shallow; + + /** + * The max items returned. + */ + private Integer maxItemsReturned; + + /** + * The start date. + */ + private Date startDate; + + /** + * The end date. + */ + private Date endDate; + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Traversal, this + .getTraversal()); + } + + /** + * Writes the search settings to XML. + * + * @param writer the writer + * @param groupBy the group by + */ + protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, + Grouping groupBy) { + // No search settings for calendar views. + } + + /** + * Writes OrderBy property to XML. + * + * @param writer the writer + */ + protected void writeOrderByToXml(EwsServiceXmlWriter writer) { + // No OrderBy for calendar views. + } + + /** + * Gets the type of service object this view applies to. + * + * @return A ServiceObjectType value. + */ + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Item; + } + + /** + * Initializes a new instance of CalendarView. + * + * @param startDate the start date + * @param endDate the end date + */ + public CalendarView(Date startDate, Date endDate) { + super(); + this.startDate = startDate; + this.endDate = endDate; + } + + /** + * Initializes a new instance of CalendarView. + * + * @param startDate the start date + * @param endDate the end date + * @param maxItemsReturned the max items returned + */ + public CalendarView(Date startDate, Date endDate, int maxItemsReturned) { + this(startDate, endDate); + this.maxItemsReturned = maxItemsReturned; + } + + /** + * Validate instance. + * + * @param request the request + * @throws ServiceVersionException the service version exception + * @throws ServiceValidationException the service validation exception + */ + protected void internalValidate(ServiceRequestBase request) + throws ServiceVersionException, ServiceValidationException { + super.internalValidate(request); + + if (this.endDate.compareTo(this.startDate) < 0) { + throw new ServiceValidationException( + Strings.EndDateMustBeGreaterThanStartDate); + } + } + + /** + * Write to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void internalWriteViewToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWriteViewToXml(writer); + + writer.writeAttributeValue(XmlAttributeNames.StartDate, this.startDate); + writer.writeAttributeValue(XmlAttributeNames.EndDate, this.endDate); + } + + /** + * Gets the name of the view XML element. + * + * @return XML element name + */ + protected String getViewXmlElementName() { + return XmlElementNames.CalendarView; + } + + /** + * Gets the maximum number of items or folders the search operation should + * return. + * + * @return The maximum number of items the search operation should return. + */ + protected Integer getMaxEntriesReturned() { + return this.maxItemsReturned; + } + + /** + * Gets the start date. + * + * @return the start date + */ + public Date getStartDate() { + return this.startDate; + } + + /** + * Sets the start date. + * + * @param startDate the new start date + */ + public void setStartDate(Date startDate) { + this.startDate = startDate; + } + + /** + * Gets the end date. + * + * @return the end date + */ + public Date getEndDate() { + return this.endDate; + } + + /** + * Sets the end date. + * + * @param endDate the new end date + */ + public void setEndDate(Date endDate) { + this.endDate = endDate; + } + + /** + * The maximum number of items the search operation should return. + * + * @return the max items returned + */ + public Integer getMaxItemsReturned() { + + return this.maxItemsReturned; + } + + /** + * Sets the max items returned. + * + * @param maxItemsReturned the new max items returned + * @throws ArgumentException the argument exception + */ + public void setMaxItemsReturned(Integer maxItemsReturned) + throws ArgumentException { + if (maxItemsReturned != null) { + if (maxItemsReturned.intValue() <= 0) { + throw new ArgumentException(Strings.ValueMustBeGreaterThanZero); + } + } + + this.maxItemsReturned = maxItemsReturned; + } + + /** + * Gets the search traversal mode. Defaults to + * ItemTraversal.Shallow. + * + * @return the traversal + */ + public ItemTraversal getTraversal() { + return this.traversal; + + } + + /** + * Sets the traversal. + * + * @param traversal the new traversal + */ + public void setTraversal(ItemTraversal traversal) { + this.traversal = traversal; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index c0e38d2c2..b53d42990 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -11,34 +11,35 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; import java.io.IOException; -import java.util.concurrent.*; +import java.util.concurrent.Callable; public class CallableMethod implements Callable { - HttpWebRequest request; - CallableMethod(HttpWebRequest request){ - this.request= request; - } - - protected HttpClientWebRequest executeMethod() throws EWSHttpException, HttpErrorException, IOException{ - - request.executeRequest(); - return (HttpClientWebRequest)request; - } - - public HttpWebRequest call(){ - - try { - return executeMethod(); - } catch (EWSHttpException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (HttpErrorException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return request; - } + HttpWebRequest request; + + CallableMethod(HttpWebRequest request) { + this.request = request; + } + + protected HttpClientWebRequest executeMethod() throws EWSHttpException, HttpErrorException, IOException { + + request.executeRequest(); + return (HttpClientWebRequest) request; + } + + public HttpWebRequest call() { + + try { + return executeMethod(); + } catch (EWSHttpException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (HttpErrorException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return request; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java index 69d2a0272..cd91ebfbe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java @@ -9,13 +9,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of **************************************************************************/ package microsoft.exchange.webservices.data; -import java.util.concurrent.*; + +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; public class CallableSingleTon { - static ExecutorService es; + static ExecutorService es; - static ExecutorService getExecutor(){ - es = Executors.newFixedThreadPool(3); - return es; - } + static ExecutorService getExecutor() { + es = Executors.newFixedThreadPool(3); + return es; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index de87fdf60..f2cb3c540 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -13,6 +13,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; interface Callback { - T processMe(Future task); + T processMe(Future task); } diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java index 7d8625ec6..b4e2ab84b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java @@ -15,66 +15,61 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.CancelCalendarItem, returnedByServer = false) public final class CancelMeetingMessage extends - CalendarResponseMessageBase { + CalendarResponseMessageBase { - /** - * Initializes a new instance of the class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - protected CancelMeetingMessage(Item referenceItem) throws Exception { - super(referenceItem); - } + /** + * Initializes a new instance of the class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + protected CancelMeetingMessage(Item referenceItem) throws Exception { + super(referenceItem); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ServiceObjectSchema getSchema() { - return CancelMeetingMessageSchema.Instance; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ServiceObjectSchema getSchema() { + return CancelMeetingMessageSchema.Instance; + } - /** - * Gets the body of the response. - * - * @return the body - * @throws ServiceLocalException - * the service local exception - */ - public MessageBody getBody() throws ServiceLocalException { - return (MessageBody) this.getPropertyBag() - .getObjectFromPropertyDefinition( - CancelMeetingMessageSchema.Body); - } + /** + * Gets the body of the response. + * + * @return the body + * @throws ServiceLocalException the service local exception + */ + public MessageBody getBody() throws ServiceLocalException { + return (MessageBody) this.getPropertyBag() + .getObjectFromPropertyDefinition( + CancelMeetingMessageSchema.Body); + } - /** - * Sets the body. - * - * @param value - * the new body - * @throws Exception - * the exception - */ - public void setBody(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - CancelMeetingMessageSchema.Body, value); - } + /** + * Sets the body. + * + * @param value the new body + * @throws Exception the exception + */ + public void setBody(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + CancelMeetingMessageSchema.Body, value); + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index 095b9effc..a48e9c2f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -17,34 +17,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class CancelMeetingMessageSchema extends ServiceObjectSchema { - /** The Constant Body. */ - public static final PropertyDefinition Body = - new ComplexPropertyDefinition( - MessageBody.class, - XmlElementNames.NewBodyContent, EnumSet - .of(PropertyDefinitionFlags.CanSet), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public MessageBody createComplexProperty() { - return new MessageBody(); - } - }); + /** + * The Constant Body. + */ + public static final PropertyDefinition Body = + new ComplexPropertyDefinition( + MessageBody.class, + XmlElementNames.NewBodyContent, EnumSet + .of(PropertyDefinitionFlags.CanSet), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public MessageBody createComplexProperty() { + return new MessageBody(); + } + }); - /** This must be declared after the property definitions. */ - static final CancelMeetingMessageSchema Instance = - new CancelMeetingMessageSchema(); + /** + * This must be declared after the property definitions. + */ + static final CancelMeetingMessageSchema Instance = + new CancelMeetingMessageSchema(); - /** - * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN - * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); + /** + * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN + * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); - this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); - this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); - this.registerProperty(ResponseObjectSchema.ReferenceItemId); - this.registerProperty(CancelMeetingMessageSchema.Body); - } -} \ No newline at end of file + this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); + this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); + this.registerProperty(ResponseObjectSchema.ReferenceItemId); + this.registerProperty(CancelMeetingMessageSchema.Body); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/Change.java b/src/main/java/microsoft/exchange/webservices/data/Change.java index 85312afbf..92229b580 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Change.java +++ b/src/main/java/microsoft/exchange/webservices/data/Change.java @@ -16,91 +16,87 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class Change { - /** - * The type of change. - */ - private ChangeType changeType; + /** + * The type of change. + */ + private ChangeType changeType; - /** - * The service object the change applies to. - */ - private ServiceObject serviceObject; + /** + * The service object the change applies to. + */ + private ServiceObject serviceObject; - /** - * The Id of the service object the change applies to. - */ - private ServiceId id; + /** + * The Id of the service object the change applies to. + */ + private ServiceId id; - /** - * Initializes a new instance of Change. - */ - protected Change() { - } + /** + * Initializes a new instance of Change. + */ + protected Change() { + } - /** - * Initializes a new instance of Change. - * - * @return the service id - */ - protected abstract ServiceId createId(); + /** + * Initializes a new instance of Change. + * + * @return the service id + */ + protected abstract ServiceId createId(); - /** - * Gets the type of the change. - * - * @return the change type - */ - public ChangeType getChangeType() { - return this.changeType; - } + /** + * Gets the type of the change. + * + * @return the change type + */ + public ChangeType getChangeType() { + return this.changeType; + } - /** - * sets the type of the change. - * - * @param changeType - * the new change type - */ - protected void setChangeType(ChangeType changeType) { - this.changeType = changeType; - } + /** + * sets the type of the change. + * + * @param changeType the new change type + */ + protected void setChangeType(ChangeType changeType) { + this.changeType = changeType; + } - /** - * Gets the service object the change applies to. - * - * @return the service object - */ - protected ServiceObject getServiceObject() { - return this.serviceObject; - } + /** + * Gets the service object the change applies to. + * + * @return the service object + */ + protected ServiceObject getServiceObject() { + return this.serviceObject; + } - /** - * Sets the service object. - * - * @param serviceObject - * the new service object - */ - protected void setServiceObject(ServiceObject serviceObject) { - this.serviceObject = serviceObject; - } + /** + * Sets the service object. + * + * @param serviceObject the new service object + */ + protected void setServiceObject(ServiceObject serviceObject) { + this.serviceObject = serviceObject; + } - /** - * Gets the Id of the service object the change applies to. - * - * @return the id - * @throws ServiceLocalException - * the service local exception - */ - protected ServiceId getId() throws ServiceLocalException { - return this.getServiceObject() != null ? this.getServiceObject() - .getId() : this.id; - } + /** + * Gets the Id of the service object the change applies to. + * + * @return the id + * @throws ServiceLocalException the service local exception + */ + protected ServiceId getId() throws ServiceLocalException { + return this.getServiceObject() != null ? this.getServiceObject() + .getId() : this.id; + } - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(ServiceId id) { - this.id = id; - } + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(ServiceId id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java index ad6610a8d..310fda58c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java @@ -17,109 +17,110 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of changes as returned by a synchronization * operation. - * - * @param - * the generic type + * + * @param the generic type */ public final class ChangeCollection implements - Iterable { - - /** The changes. */ - private List changes = new ArrayList(); - - /** The sync state. */ - private String syncState; - - /** The more changes available. */ - private boolean moreChangesAvailable; - - /** - * Initializes a new instance of the class. - */ - protected ChangeCollection() { - } - - /** - * Adds the specified change. - * - * @param change - * the change - */ - protected void add(TChange change) { - EwsUtilities.EwsAssert(change != null, "ChangeList.Add", - "change is null"); - this.changes.add(change); - } - - /** - * Gets the number of changes in the collection. - * - * @return the count - */ - public int getCount() { - return this.changes.size(); - } - - /** - * Gets an individual change from the change collection. - * - * @param index - * the index - * @return An single change - */ - public TChange getChangeAtIndex(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } - return this.changes.get(index); - } - - /** - * Gets the SyncState blob returned by a synchronization operation. - * - * @return the sync state - */ - public String getSyncState() { - return this.syncState; - } - - /** - * Sets the sync state. - * - * @param syncState - * the new sync state - */ - protected void setSyncState(String syncState) { - this.syncState = syncState; - } - - /** - * Gets the SyncState blob returned by a synchronization operation. - * - * @return the more changes available - */ - public boolean getMoreChangesAvailable() { - return this.moreChangesAvailable; - } - - /** - * Sets the more changes available. - * - * @param moreChangesAvailable - * the new more changes available - */ - protected void setMoreChangesAvailable(boolean moreChangesAvailable) { - this.moreChangesAvailable = moreChangesAvailable; - } - - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - return this.changes.iterator(); - } - -} \ No newline at end of file + Iterable { + + /** + * The changes. + */ + private List changes = new ArrayList(); + + /** + * The sync state. + */ + private String syncState; + + /** + * The more changes available. + */ + private boolean moreChangesAvailable; + + /** + * Initializes a new instance of the class. + */ + protected ChangeCollection() { + } + + /** + * Adds the specified change. + * + * @param change the change + */ + protected void add(TChange change) { + EwsUtilities.EwsAssert(change != null, "ChangeList.Add", + "change is null"); + this.changes.add(change); + } + + /** + * Gets the number of changes in the collection. + * + * @return the count + */ + public int getCount() { + return this.changes.size(); + } + + /** + * Gets an individual change from the change collection. + * + * @param index the index + * @return An single change + */ + public TChange getChangeAtIndex(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } + return this.changes.get(index); + } + + /** + * Gets the SyncState blob returned by a synchronization operation. + * + * @return the sync state + */ + public String getSyncState() { + return this.syncState; + } + + /** + * Sets the sync state. + * + * @param syncState the new sync state + */ + protected void setSyncState(String syncState) { + this.syncState = syncState; + } + + /** + * Gets the SyncState blob returned by a synchronization operation. + * + * @return the more changes available + */ + public boolean getMoreChangesAvailable() { + return this.moreChangesAvailable; + } + + /** + * Sets the more changes available. + * + * @param moreChangesAvailable the new more changes available + */ + protected void setMoreChangesAvailable(boolean moreChangesAvailable) { + this.moreChangesAvailable = moreChangesAvailable; + } + + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + return this.changes.iterator(); + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java index 80c3596aa..c5a12480b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java @@ -15,19 +15,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ChangeType { - // An item or folder was created. - /** The Create. */ - Create, + // An item or folder was created. + /** + * The Create. + */ + Create, - // An item or folder was modified. - /** The Update. */ - Update, + // An item or folder was modified. + /** + * The Update. + */ + Update, - // An item or folder was deleted. - /** The Delete. */ - Delete, + // An item or folder was deleted. + /** + * The Delete. + */ + Delete, - // An item's IsRead flag was changed. - /** The Read flag change. */ - ReadFlagChange, + // An item's IsRead flag was changed. + /** + * The Read flag change. + */ + ReadFlagChange, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java index 62cdc4191..b8e672311 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java @@ -15,34 +15,42 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ComparisonMode { - // The comparison is exact. - /** The Exact. */ - Exact, + // The comparison is exact. + /** + * The Exact. + */ + Exact, - // The comparison ignores casing. - /** The Ignore case. */ - IgnoreCase, + // The comparison ignores casing. + /** + * The Ignore case. + */ + IgnoreCase, - // The comparison ignores spacing characters. - /** The Ignore non spacing characters. */ - IgnoreNonSpacingCharacters, + // The comparison ignores spacing characters. + /** + * The Ignore non spacing characters. + */ + IgnoreNonSpacingCharacters, - // The comparison ignores casing and spacing characters. - /** The Ignore case and non spacing characters. */ - IgnoreCaseAndNonSpacingCharacters + // The comparison ignores casing and spacing characters. + /** + * The Ignore case and non spacing characters. + */ + IgnoreCaseAndNonSpacingCharacters - // From bug E12:113326 - // - // Although the following four values are defined in - // the EWS schema, they are useless - // as they are all thechnically equivalent to Loose. - // We are not exposing those values - // in this API. When we encounter one of these - // values on an existing search folder - // restriction, we map it to IgnoreCaseAndNonSpacingCharacters. - // - // Loose, - // LooseAndIgnoreCase, - // LooseAndIgnoreNonSpace, - // LooseAndIgnoreCaseAndIgnoreNonSpace + // From bug E12:113326 + // + // Although the following four values are defined in + // the EWS schema, they are useless + // as they are all thechnically equivalent to Loose. + // We are not exposing those values + // in this API. When we encounter one of these + // values on an existing search folder + // restriction, we map it to IgnoreCaseAndNonSpacingCharacters. + // + // Loose, + // LooseAndIgnoreCase, + // LooseAndIgnoreNonSpace, + // LooseAndIgnoreCaseAndIgnoreNonSpace } diff --git a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java index 4a6a3c767..5a62fc76e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java +++ b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java @@ -15,213 +15,229 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class CompleteName extends ComplexProperty { - /** The title. */ - private String title; - - /** The given name. */ - private String givenName; - - /** The middle name. */ - private String middleName; - - /** The surname. */ - private String surname; - - /** The suffix. */ - private String suffix; - - /** The initials. */ - private String initials; - - /** The full name. */ - private String fullName; - - /** The nickname. */ - private String nickname; - - /** The yomi given name. */ - private String yomiGivenName; - - /** The yomi surname. */ - private String yomiSurname; - - /** - * Gets the contact's title. - * - * @return the title - */ - public String getTitle() { - return title; - } - - /** - * Gets the given name (first name) of the contact. - * - * @return the givenName - */ - public String getGivenName() { - return givenName; - } - - /** - * Gets the middle name of the contact. - * - * @return the middleName - */ - public String getMiddleName() { - return middleName; - } - - /** - * Gets the surname (last name) of the contact. - * - * @return the surname - */ - public String getSurname() { - return surname; - } - - /** - * Gets the suffix of the contact. - * - * @return the suffix - */ - public String getSuffix() { - return suffix; - } - - /** - * Gets the initials of the contact. - * - * @return the initials - */ - public String getInitials() { - return initials; - } - - /** - * Gets the full name of the contact. - * - * @return the fullName - */ - public String getFullName() { - return fullName; - } - - /** - * Gets the nickname of the contact. - * - * @return the nickname - */ - public String getNickname() { - return nickname; - } - - /** - * Gets the Yomi given name (first name) of the contact. - * - * @return the yomiGivenName - */ - public String getYomiGivenName() { - return yomiGivenName; - } - - /** - * Gets the Yomi surname (last name) of the contact. - * - * @return the yomiSurname - */ - public String getYomiSurname() { - return yomiSurname; - } - - /** - * Tries to read element from XML. - * - * @param reader - * The reader. - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Title)) { - this.title = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.FirstName)) { - this.givenName = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.MiddleName)) { - this.middleName = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.LastName)) { - this.surname = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Suffix)) { - this.suffix = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Initials)) { - this.initials = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.FullName)) { - this.fullName = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.NickName)) { - this.nickname = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.YomiFirstName)) { - this.yomiGivenName = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.YomiLastName)) { - this.yomiSurname = reader.readElementValue(); - return true; - } else { - return false; - } - } - - /** - * Writes the elements to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws Exception - * throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Title, - this.title); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.FirstName, - this.givenName); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MiddleName, this.middleName); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.LastName, - this.surname); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Suffix, - this.suffix); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Initials, - this.initials); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.FullName, - this.fullName); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.NickName, - this.nickname); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.YomiFirstName, this.yomiGivenName); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.YomiLastName, this.yomiSurname); - } + /** + * The title. + */ + private String title; + + /** + * The given name. + */ + private String givenName; + + /** + * The middle name. + */ + private String middleName; + + /** + * The surname. + */ + private String surname; + + /** + * The suffix. + */ + private String suffix; + + /** + * The initials. + */ + private String initials; + + /** + * The full name. + */ + private String fullName; + + /** + * The nickname. + */ + private String nickname; + + /** + * The yomi given name. + */ + private String yomiGivenName; + + /** + * The yomi surname. + */ + private String yomiSurname; + + /** + * Gets the contact's title. + * + * @return the title + */ + public String getTitle() { + return title; + } + + /** + * Gets the given name (first name) of the contact. + * + * @return the givenName + */ + public String getGivenName() { + return givenName; + } + + /** + * Gets the middle name of the contact. + * + * @return the middleName + */ + public String getMiddleName() { + return middleName; + } + + /** + * Gets the surname (last name) of the contact. + * + * @return the surname + */ + public String getSurname() { + return surname; + } + + /** + * Gets the suffix of the contact. + * + * @return the suffix + */ + public String getSuffix() { + return suffix; + } + + /** + * Gets the initials of the contact. + * + * @return the initials + */ + public String getInitials() { + return initials; + } + + /** + * Gets the full name of the contact. + * + * @return the fullName + */ + public String getFullName() { + return fullName; + } + + /** + * Gets the nickname of the contact. + * + * @return the nickname + */ + public String getNickname() { + return nickname; + } + + /** + * Gets the Yomi given name (first name) of the contact. + * + * @return the yomiGivenName + */ + public String getYomiGivenName() { + return yomiGivenName; + } + + /** + * Gets the Yomi surname (last name) of the contact. + * + * @return the yomiSurname + */ + public String getYomiSurname() { + return yomiSurname; + } + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Title)) { + this.title = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.FirstName)) { + this.givenName = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.MiddleName)) { + this.middleName = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.LastName)) { + this.surname = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Suffix)) { + this.suffix = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Initials)) { + this.initials = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.FullName)) { + this.fullName = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.NickName)) { + this.nickname = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.YomiFirstName)) { + this.yomiGivenName = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.YomiLastName)) { + this.yomiSurname = reader.readElementValue(); + return true; + } else { + return false; + } + } + + /** + * Writes the elements to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws Exception throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Title, + this.title); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.FirstName, + this.givenName); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MiddleName, this.middleName); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.LastName, + this.surname); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Suffix, + this.suffix); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Initials, + this.initials); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.FullName, + this.fullName); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.NickName, + this.nickname); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.YomiFirstName, this.yomiGivenName); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.YomiLastName, this.yomiSurname); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java index 9c1d000d8..f2bbe68a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java @@ -11,6 +11,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; interface ComplexFunctionDelegate { - - Boolean func(T1 arg1) throws Exception; + + Boolean func(T1 arg1) throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index f6ce6841c..e58b76f0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -15,176 +15,156 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a property that can be sent to or retrieved from EWS. - * - * */ @SuppressWarnings("unchecked") @EditorBrowsable(state = EditorBrowsableState.Never) -public abstract class ComplexProperty implements ISelfValidate,ComplexFunctionDelegate { - - /** The xml namespace. */ - private XmlNamespace xmlNamespace = XmlNamespace.Types; - - /** - * Initializes a new instance. - */ - protected ComplexProperty() { - - } - - /** - * Gets the namespace. - * - * @return the namespace. - */ - protected XmlNamespace getNamespace() { - return xmlNamespace; - } - - /** - * Sets the namespace. - * - * @param xmlNamespace - * the namespace. - */ - protected void setNamespace(XmlNamespace xmlNamespace) { - this.xmlNamespace = xmlNamespace; - } - - /** - * Instance was changed. - */ - protected void changed() { - if (!onChangeList.isEmpty()) { - for (IComplexPropertyChangedDelegate change : onChangeList) { - change.complexPropertyChanged(this); - } - } - } - - /** - * Sets value of field. - * - * @param - * Field type. - * @param field - * The field. - * @param value - * The value. - * @return true, if successful - */ - protected boolean canSetFieldValue(T field, T value) { - boolean applyChange; - if (field == null) { - applyChange = value != null; - } else { - if (field instanceof Comparable) { - Comparable c = (Comparable)field; - applyChange = value != null && c.compareTo(value) != 0; - } else { - applyChange = true; - } - } - return applyChange; - } - - /** - * Clears the change log. - */ - protected void clearChangeLog() { - } - - /** - * Reads the attributes from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - } - - /** - * Reads the text value from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws Exception { - } - - /** - * Tries to read element from XML. - * - * @param reader - * The reader. - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - return false; - } - - /** - * Tries to read element from XML to patch this property. - * - * @param reader The reader. - * True if element was read. - * - */ - protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception - { - return false; +public abstract class ComplexProperty implements ISelfValidate, ComplexFunctionDelegate { + + /** + * The xml namespace. + */ + private XmlNamespace xmlNamespace = XmlNamespace.Types; + + /** + * Initializes a new instance. + */ + protected ComplexProperty() { + + } + + /** + * Gets the namespace. + * + * @return the namespace. + */ + protected XmlNamespace getNamespace() { + return xmlNamespace; + } + + /** + * Sets the namespace. + * + * @param xmlNamespace the namespace. + */ + protected void setNamespace(XmlNamespace xmlNamespace) { + this.xmlNamespace = xmlNamespace; + } + + /** + * Instance was changed. + */ + protected void changed() { + if (!onChangeList.isEmpty()) { + for (IComplexPropertyChangedDelegate change : onChangeList) { + change.complexPropertyChanged(this); + } + } + } + + /** + * Sets value of field. + * + * @param Field type. + * @param field The field. + * @param value The value. + * @return true, if successful + */ + protected boolean canSetFieldValue(T field, T value) { + boolean applyChange; + if (field == null) { + applyChange = value != null; + } else { + if (field instanceof Comparable) { + Comparable c = (Comparable) field; + applyChange = value != null && c.compareTo(value) != 0; + } else { + applyChange = true; + } } - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - } - - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param xmlNamespace - * the xml namespace - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, String xmlElementName) throws Exception { + return applyChange; + } + + /** + * Clears the change log. + */ + protected void clearChangeLog() { + } + + /** + * Reads the attributes from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + } + + /** + * Reads the text value from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws Exception { + } + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + return false; + } + + /** + * Tries to read element from XML to patch this property. + * + * @param reader The reader. + * True if element was read. + */ + protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception { + return false; + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param xmlNamespace the xml namespace + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, String xmlElementName) throws Exception { /*reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); - this.readAttributesFromXml(reader); + this.readAttributesFromXml(reader); if (!reader.isEmptyElement()) { do { @@ -206,208 +186,192 @@ protected void loadFromXml(EwsServiceXmlReader reader, reader.read(); reader.isEndElement(xmlNamespace, xmlElementName); } */ - - this.internalLoadFromXml(reader, xmlNamespace, xmlElementName); - } - - /** - * Loads from XML to update this property. - * - * @param reader The reader. - * @param xmlElementName Name of the XML element. - * @throws Exception - */ - protected void updateFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception { - this.updateFromXml(reader, this.getNamespace(), xmlElementName); - } - - /** - * Loads from XML to update itself. - * - * @param reader The reader. - * @param xmlNamespace The XML namespace. - * @param xmlElementName Name of the XML element. - */ - protected void updateFromXml( - EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, - String xmlElementName) throws Exception { - this.internalupdateLoadFromXml(reader, xmlNamespace, xmlElementName); - } - - /** - * Loads from XML - * @param reader The Reader. - * @param xmlNamespace The Xml NameSpace. - * @param xmlElementName The Xml ElementName - */ - private void internalLoadFromXml( - EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, - String xmlElementName) throws Exception - { - reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); - - this.readAttributesFromXml(reader); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - switch (reader.getNodeType().nodeType) { - case XmlNodeType.START_ELEMENT: - if (!this.tryReadElementFromXml(reader)) { - reader.skipCurrentElement(); - } - break; - case XmlNodeType.CHARACTERS: - this.readTextValueFromXml(reader); - break; - } - } while (!reader.isEndElement(xmlNamespace, xmlElementName)); - } else { - // Adding this code to skip the END_ELEMENT of an Empty Element. - reader.read(); - reader.isEndElement(xmlNamespace, xmlElementName); - } - } - - private void internalupdateLoadFromXml( - EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, - String xmlElementName) throws Exception - { - reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); - - this.readAttributesFromXml(reader); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - switch (reader.getNodeType().nodeType) { - case XmlNodeType.START_ELEMENT: - if (!this.tryReadElementFromXmlToPatch(reader)) { - reader.skipCurrentElement(); - } - break; - case XmlNodeType.CHARACTERS: - this.readTextValueFromXml(reader); - break; - } - } while (!reader.isEndElement(xmlNamespace, xmlElementName)); - } - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String xmlElementName) - throws Exception { - this.loadFromXml(reader, this.getNamespace(), xmlElementName); - } - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param xmlNamespace - * The XML namespace. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace xmlNamespace, String xmlElementName) throws Exception { - writer.writeStartElement(xmlNamespace, xmlElementName); - this.writeAttributesToXml(writer); - this.writeElementsToXml(writer); - writer.writeEndElement(); - } - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws Exception { - this.writeToXml(writer, this.getNamespace(), xmlElementName); - } - - /** - * Change events occur when property changed. - */ - private List onChangeList = - new ArrayList(); - - /** - * Set event to happen when property changed. - * - * @param change - * change event - */ - protected void addOnChangeEvent( - IComplexPropertyChangedDelegate change) { - onChangeList.add(change); - } - - /** - * Remove the event from happening when property changed. - * - * @param change - * change event - */ - protected void removeChangeEvent( - IComplexPropertyChangedDelegate change) { - onChangeList.remove(change); - } - - /** - * Clears change events list. - */ - protected void clearChangeEvents() { - onChangeList.clear(); - } - - /** - * Implements ISelfValidate.validate. Validates this instance. - * - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - public void validate() throws ServiceValidationException, Exception { - this.internalValidate(); - } - - /** - * Validates this instance. - * - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - */ - protected void internalValidate() throws ServiceValidationException, Exception { - } - - public Boolean func(EwsServiceXmlReader reader) throws Exception { - return !this.tryReadElementFromXml(reader); - } + this.internalLoadFromXml(reader, xmlNamespace, xmlElementName); + } + + /** + * Loads from XML to update this property. + * + * @param reader The reader. + * @param xmlElementName Name of the XML element. + * @throws Exception + */ + protected void updateFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception { + this.updateFromXml(reader, this.getNamespace(), xmlElementName); + } + + /** + * Loads from XML to update itself. + * + * @param reader The reader. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + */ + protected void updateFromXml( + EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + this.internalupdateLoadFromXml(reader, xmlNamespace, xmlElementName); + } + + /** + * Loads from XML + * + * @param reader The Reader. + * @param xmlNamespace The Xml NameSpace. + * @param xmlElementName The Xml ElementName + */ + private void internalLoadFromXml( + EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); + + this.readAttributesFromXml(reader); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + switch (reader.getNodeType().nodeType) { + case XmlNodeType.START_ELEMENT: + if (!this.tryReadElementFromXml(reader)) { + reader.skipCurrentElement(); + } + break; + case XmlNodeType.CHARACTERS: + this.readTextValueFromXml(reader); + break; + } + } while (!reader.isEndElement(xmlNamespace, xmlElementName)); + } else { + // Adding this code to skip the END_ELEMENT of an Empty Element. + reader.read(); + reader.isEndElement(xmlNamespace, xmlElementName); + } + } + + private void internalupdateLoadFromXml( + EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); + + this.readAttributesFromXml(reader); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + switch (reader.getNodeType().nodeType) { + case XmlNodeType.START_ELEMENT: + if (!this.tryReadElementFromXmlToPatch(reader)) { + reader.skipCurrentElement(); + } + break; + case XmlNodeType.CHARACTERS: + this.readTextValueFromXml(reader); + break; + } + } while (!reader.isEndElement(xmlNamespace, xmlElementName)); + } + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String xmlElementName) + throws Exception { + this.loadFromXml(reader, this.getNamespace(), xmlElementName); + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace xmlNamespace, String xmlElementName) throws Exception { + writer.writeStartElement(xmlNamespace, xmlElementName); + this.writeAttributesToXml(writer); + this.writeElementsToXml(writer); + writer.writeEndElement(); + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws Exception { + this.writeToXml(writer, this.getNamespace(), xmlElementName); + } + + /** + * Change events occur when property changed. + */ + private List onChangeList = + new ArrayList(); + + /** + * Set event to happen when property changed. + * + * @param change change event + */ + protected void addOnChangeEvent( + IComplexPropertyChangedDelegate change) { + onChangeList.add(change); + } + + /** + * Remove the event from happening when property changed. + * + * @param change change event + */ + protected void removeChangeEvent( + IComplexPropertyChangedDelegate change) { + onChangeList.remove(change); + } + + /** + * Clears change events list. + */ + protected void clearChangeEvents() { + onChangeList.clear(); + } + + /** + * Implements ISelfValidate.validate. Validates this instance. + * + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + public void validate() throws ServiceValidationException, Exception { + this.internalValidate(); + } + + /** + * Validates this instance. + * + * @throws ServiceValidationException the service validation exception + * @throws Exception + */ + protected void internalValidate() throws ServiceValidationException, Exception { + } + + public Boolean func(EwsServiceXmlReader reader) throws Exception { + return !this.tryReadElementFromXml(reader); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index f5dc1ae48..f00d8814a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -17,475 +17,458 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of properties that can be sent to and retrieved from * EWS. - * - * - * @param - * ComplexProperty type. + * + * @param ComplexProperty type. */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ComplexPropertyCollection - - extends ComplexProperty implements ICustomXmlUpdateSerializer, - Iterable, IComplexPropertyChangedDelegate { - - /** The items. */ - private List items = new ArrayList(); - - /** The added items. */ - private List addedItems = - new ArrayList(); - - /** The modified items. */ - private List modifiedItems = - new ArrayList(); - - /** The removed items. */ - private List removedItems = - new ArrayList(); - - /** - * Creates the complex property. - * - * @param xmlElementName - * Name of the XML element. - * @return Complex property instance. - */ - protected abstract TComplexProperty createComplexProperty( - String xmlElementName); - - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * The complex property. - * @return XML element name. - */ - protected abstract String getCollectionItemXmlElementName( - TComplexProperty complexProperty); - - /** - * Initializes a new instance of. ComplexPropertyCollection - */ - protected ComplexPropertyCollection() { - super(); - } - - /** - * Item changed. - * - * @param complexProperty - * The complex property. - */ - protected void itemChanged(ComplexProperty complexProperty) { - EwsUtilities.EwsAssert(complexProperty instanceof ComplexProperty, - "ComplexPropertyCollection.ItemChanged", String.format( - "ComplexPropertyCollection." + - "ItemChanged: the type of " + - "the complexProperty " + "argument " + - "(%s) is not supported.", - complexProperty.getClass().getName())); - - TComplexProperty property = (TComplexProperty)complexProperty; - if (!this.addedItems.contains(property)) { - if (!this.modifiedItems.contains(property)) { - this.modifiedItems.add(property); - this.changed(); - } - } - } - - /** - * Loads from XML. - * @param reader The reader. - * @param localElementName Name of the local element. - */ - @Override - protected void loadFromXml(EwsServiceXmlReader reader, - String localElementName) throws Exception { - this.loadFromXml( - reader, - XmlNamespace.Types, - localElementName); - } - - /** - * Loads from XML. - * @param reader The reader. - * @param xmlNamespace The XML namespace. - * @param localElementName Name of the local element. - */ - @Override - protected void loadFromXml(EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, - String localElementName) throws Exception { - reader.ensureCurrentNodeIsStartElement(xmlNamespace, - localElementName); - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - TComplexProperty complexProperty = this - .createComplexProperty(reader.getLocalName()); - - if (complexProperty != null) { - complexProperty.loadFromXml(reader, reader - .getLocalName()); - this.internalAdd(complexProperty, true); - } else { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(xmlNamespace, localElementName)); - } else { - reader.read(); - } - } - - /** - * Loads from XML to update itself. - * @param reader The reader. - * @param xmlNamespace The XML namespace. - * @param xmlElementName Name of the XML element. - **/ - - protected void updateFromXml( - EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, - String xmlElementName)throws Exception - { - reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); - - if (!reader.isEmptyElement()) - { - int index = 0; - do - { - reader.read(); - - if (reader.isStartElement()) - { - TComplexProperty complexProperty = this.createComplexProperty(reader.getLocalName()); - TComplexProperty actualComplexProperty = this.getPropertyAtIndex(index++); - - if (complexProperty == null || !complexProperty.getClass().equals( actualComplexProperty)) - { - throw new ServiceLocalException(Strings.PropertyTypeIncompatibleWhenUpdatingCollection); - } - - actualComplexProperty.updateFromXml(reader, xmlNamespace, reader.getLocalName()); - } - } - while (!reader.isEndElement(xmlNamespace, xmlElementName)); + + extends ComplexProperty implements ICustomXmlUpdateSerializer, + Iterable, IComplexPropertyChangedDelegate { + + /** + * The items. + */ + private List items = new ArrayList(); + + /** + * The added items. + */ + private List addedItems = + new ArrayList(); + + /** + * The modified items. + */ + private List modifiedItems = + new ArrayList(); + + /** + * The removed items. + */ + private List removedItems = + new ArrayList(); + + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element. + * @return Complex property instance. + */ + protected abstract TComplexProperty createComplexProperty( + String xmlElementName); + + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty The complex property. + * @return XML element name. + */ + protected abstract String getCollectionItemXmlElementName( + TComplexProperty complexProperty); + + /** + * Initializes a new instance of. ComplexPropertyCollection + */ + protected ComplexPropertyCollection() { + super(); + } + + /** + * Item changed. + * + * @param complexProperty The complex property. + */ + protected void itemChanged(ComplexProperty complexProperty) { + EwsUtilities.EwsAssert(complexProperty instanceof ComplexProperty, + "ComplexPropertyCollection.ItemChanged", String.format( + "ComplexPropertyCollection." + + "ItemChanged: the type of " + + "the complexProperty " + "argument " + + "(%s) is not supported.", + complexProperty.getClass().getName())); + + TComplexProperty property = (TComplexProperty) complexProperty; + if (!this.addedItems.contains(property)) { + if (!this.modifiedItems.contains(property)) { + this.modifiedItems.add(property); + this.changed(); + } + } + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param localElementName Name of the local element. + */ + @Override + protected void loadFromXml(EwsServiceXmlReader reader, + String localElementName) throws Exception { + this.loadFromXml( + reader, + XmlNamespace.Types, + localElementName); + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param xmlNamespace The XML namespace. + * @param localElementName Name of the local element. + */ + @Override + protected void loadFromXml(EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, + String localElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(xmlNamespace, + localElementName); + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + TComplexProperty complexProperty = this + .createComplexProperty(reader.getLocalName()); + + if (complexProperty != null) { + complexProperty.loadFromXml(reader, reader + .getLocalName()); + this.internalAdd(complexProperty, true); + } else { + reader.skipCurrentElement(); + } + } + } while (!reader.isEndElement(xmlNamespace, localElementName)); + } else { + reader.read(); + } + } + + /** + * Loads from XML to update itself. + * + * @param reader The reader. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + */ + + protected void updateFromXml( + EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(xmlNamespace, xmlElementName); + + if (!reader.isEmptyElement()) { + int index = 0; + do { + reader.read(); + + if (reader.isStartElement()) { + TComplexProperty complexProperty = this.createComplexProperty(reader.getLocalName()); + TComplexProperty actualComplexProperty = this.getPropertyAtIndex(index++); + + if (complexProperty == null || !complexProperty.getClass().equals(actualComplexProperty)) { + throw new ServiceLocalException(Strings.PropertyTypeIncompatibleWhenUpdatingCollection); + } + + actualComplexProperty.updateFromXml(reader, xmlNamespace, reader.getLocalName()); } + } + while (!reader.isEndElement(xmlNamespace, xmlElementName)); + } + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + if (this.shouldWriteToXml()) { + super.writeToXml( + writer, + xmlNamespace, + xmlElementName); + } + } + + /** + * Determine whether we should write collection to XML or not. + * + * @return True if collection contains at least one element. + */ + protected boolean shouldWriteToXml() { + //Only write collection if it has at least one element. + return this.getCount() > 0; + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + for (TComplexProperty complexProperty : this) { + complexProperty.writeToXml(writer, this + .getCollectionItemXmlElementName(complexProperty)); + } + } + + /** + * Clears the change log. + */ + @Override + protected void clearChangeLog() { + this.removedItems.clear(); + this.addedItems.clear(); + this.modifiedItems.clear(); + } + + /** + * Removes from change log. + * + * @param complexProperty The complex property. + */ + protected void removeFromChangeLog(TComplexProperty complexProperty) { + this.removedItems.remove(complexProperty); + this.modifiedItems.remove(complexProperty); + this.addedItems.remove(complexProperty); + } + + /** + * Gets the items. + * + * @return The items. + */ + protected List getItems() { + return this.items; + } + + /** + * Gets the added items. + * + * @return The added items. + */ + protected List getAddedItems() { + return this.addedItems; + } + + /** + * Gets the modified items. + * + * @return The modified items. + */ + protected List getModifiedItems() { + return this.modifiedItems; + } + + /** + * Gets the removed items. + * + * @return The removed items. + */ + protected List getRemovedItems() { + return this.removedItems; + } + + /** + * Add complex property. + * + * @param complexProperty The complex property. + */ + protected void internalAdd(TComplexProperty complexProperty) { + this.internalAdd(complexProperty, false); + } + + /** + * Add complex property. + * + * @param complexProperty The complex property. + * @param loading If true, collection is being loaded. + */ + private void internalAdd(TComplexProperty complexProperty, + boolean loading) { + EwsUtilities.EwsAssert(complexProperty != null, + "ComplexPropertyCollection.InternalAdd", + "complexProperty is null"); + + if (!this.items.contains(complexProperty)) { + this.items.add(complexProperty); + if (!loading) { + this.removedItems.remove(complexProperty); + this.addedItems.add(complexProperty); + } + complexProperty.addOnChangeEvent(this); + this.changed(); + } + } + + /** + * Complex property changed. + * + * @param complexProperty accepts ComplexProperty + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.itemChanged(complexProperty); + } + + /** + * Clear collection. + */ + protected void internalClear() { + while (this.getCount() > 0) { + this.internalRemoveAt(0); + } + } + + /** + * Remote entry at index. + * + * @param index The index. + */ + protected void internalRemoveAt(int index) { + EwsUtilities.EwsAssert(index >= 0 && index < this.getCount(), + "ComplexPropertyCollection.InternalRemoveAt", + "index is out of range."); + + this.internalRemove(this.items.get(index)); + } + + /** + * Remove specified complex property. + * + * @param complexProperty The complex property. + * @return True if the complex property was successfully removed from the + * collection, false otherwise. + */ + protected boolean internalRemove(TComplexProperty complexProperty) { + EwsUtilities.EwsAssert(complexProperty != null, + "ComplexPropertyCollection.InternalRemove", + "complexProperty is null"); + + if (this.items.remove(complexProperty)) { + complexProperty.removeChangeEvent(this); + if (!this.addedItems.contains(complexProperty)) { + this.removedItems.add(complexProperty); + } else { + this.addedItems.remove(complexProperty); + } + this.modifiedItems.remove(complexProperty); + this.changed(); + return true; + } else { + return false; + } + } + + /** + * Determines whether a specific property is in the collection. + * + * @param complexProperty The property to locate in the collection. + * @return True if the property was found in the collection, false + * otherwise. + */ + public boolean contains(TComplexProperty complexProperty) { + return this.items.contains(complexProperty); + } + + /** + * Searches for a specific property and return its zero-based index within + * the collection. + * + * @param complexProperty The property to locate in the collection. + * @return The zero-based index of the property within the collection. + */ + public int indexOf(TComplexProperty complexProperty) { + return this.items.indexOf(complexProperty); + } + + /** + * Gets the total number of properties in the collection. + * + * @return the count + */ + public int getCount() { + return this.items.size(); + } + + /** + * Gets the property at the specified index. + * + * @param index the index + * @return index The property at the specified index. + * @throws IllegalArgumentException thrown if if index is out of range. + */ + public TComplexProperty getPropertyAtIndex(int index) + throws IllegalArgumentException { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("parameter \'index\' : " + + Strings.IndexIsOutOfRange); + } + return this.items.get(index); + } + + /** + * Gets an enumerator that iterates through the elements of the collection. + * + * @return An Iterator for the collection. + */ + @Override + public Iterator iterator() { + return this.items.iterator(); + } + + /** + * Write set update to xml. + * + * @param writer accepts EwsServiceXmlWriter + * @param ewsObject accepts ServiceObject + * @param propertyDefinition accepts PropertyDefinition + * @return true + * @throws Exception the exception + */ + @Override + public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, PropertyDefinition propertyDefinition) + throws Exception { + // If the collection is empty, delete the property. + if (this.getCount() == 0) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getDeleteFieldXmlElementName()); + propertyDefinition.writeToXml(writer); + writer.writeEndElement(); + return true; + } + // Otherwise, use the default XML serializer. + else { + return false; } - - /** - * Writes to XML. - * @param writer The writer. - * @param xmlNamespace The XML namespace. - * @param xmlElementName Name of the XML element. - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace xmlNamespace, - String xmlElementName) throws Exception { - if (this.shouldWriteToXml()) { - super.writeToXml( - writer, - xmlNamespace, - xmlElementName); - } - } - - /** - * Determine whether we should write collection to XML or not. - * @return True if collection contains at least one element. - */ - protected boolean shouldWriteToXml() { - //Only write collection if it has at least one element. - return this.getCount() > 0; - } - - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - for (TComplexProperty complexProperty : this) { - complexProperty.writeToXml(writer, this - .getCollectionItemXmlElementName(complexProperty)); - } - } - - /** - * Clears the change log. - */ - @Override - protected void clearChangeLog() { - this.removedItems.clear(); - this.addedItems.clear(); - this.modifiedItems.clear(); - } - - /** - * Removes from change log. - * - * @param complexProperty - * The complex property. - */ - protected void removeFromChangeLog(TComplexProperty complexProperty) { - this.removedItems.remove(complexProperty); - this.modifiedItems.remove(complexProperty); - this.addedItems.remove(complexProperty); - } - - /** - * Gets the items. - * - * @return The items. - */ - protected List getItems() { - return this.items; - } - - /** - * Gets the added items. - * - * @return The added items. - */ - protected List getAddedItems() { - return this.addedItems; - } - - /** - * Gets the modified items. - * - * @return The modified items. - */ - protected List getModifiedItems() { - return this.modifiedItems; - } - - /** - * Gets the removed items. - * - * @return The removed items. - */ - protected List getRemovedItems() { - return this.removedItems; - } - - /** - * Add complex property. - * - * @param complexProperty - * The complex property. - */ - protected void internalAdd(TComplexProperty complexProperty) { - this.internalAdd(complexProperty, false); - } - - /** - * Add complex property. - * - * @param complexProperty - * The complex property. - * @param loading - * If true, collection is being loaded. - */ - private void internalAdd(TComplexProperty complexProperty, - boolean loading) { - EwsUtilities.EwsAssert(complexProperty != null, - "ComplexPropertyCollection.InternalAdd", - "complexProperty is null"); - - if (!this.items.contains(complexProperty)) { - this.items.add(complexProperty); - if (!loading) { - this.removedItems.remove(complexProperty); - this.addedItems.add(complexProperty); - } - complexProperty.addOnChangeEvent(this); - this.changed(); - } - } - - /** - * Complex property changed. - * - * @param complexProperty - * accepts ComplexProperty - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.itemChanged(complexProperty); - } - - /** - * Clear collection. - */ - protected void internalClear() { - while (this.getCount() > 0) { - this.internalRemoveAt(0); - } - } - - /** - * Remote entry at index. - * - * @param index - * The index. - */ - protected void internalRemoveAt(int index) { - EwsUtilities.EwsAssert(index >= 0 && index < this.getCount(), - "ComplexPropertyCollection.InternalRemoveAt", - "index is out of range."); - - this.internalRemove(this.items.get(index)); - } - - /** - * Remove specified complex property. - * - * @param complexProperty - * The complex property. - * @return True if the complex property was successfully removed from the - * collection, false otherwise. - */ - protected boolean internalRemove(TComplexProperty complexProperty) { - EwsUtilities.EwsAssert(complexProperty != null, - "ComplexPropertyCollection.InternalRemove", - "complexProperty is null"); - - if (this.items.remove(complexProperty)) { - complexProperty.removeChangeEvent(this); - if (!this.addedItems.contains(complexProperty)) { - this.removedItems.add(complexProperty); - } else { - this.addedItems.remove(complexProperty); - } - this.modifiedItems.remove(complexProperty); - this.changed(); - return true; - } else { - return false; - } - } - - /** - * Determines whether a specific property is in the collection. - * - * @param complexProperty - * The property to locate in the collection. - * @return True if the property was found in the collection, false - * otherwise. - */ - public boolean contains(TComplexProperty complexProperty) { - return this.items.contains(complexProperty); - } - - /** - * Searches for a specific property and return its zero-based index within - * the collection. - * - * @param complexProperty - * The property to locate in the collection. - * @return The zero-based index of the property within the collection. - */ - public int indexOf(TComplexProperty complexProperty) { - return this.items.indexOf(complexProperty); - } - - /** - * Gets the total number of properties in the collection. - * - * @return the count - */ - public int getCount() { - return this.items.size(); - } - - /** - * Gets the property at the specified index. - * - * @param index - * the index - * @return index The property at the specified index. - * @throws IllegalArgumentException - * thrown if if index is out of range. - */ - public TComplexProperty getPropertyAtIndex(int index) - throws IllegalArgumentException { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("parameter \'index\' : " + - Strings.IndexIsOutOfRange); - } - return this.items.get(index); - } - - /** - * Gets an enumerator that iterates through the elements of the collection. - * - * @return An Iterator for the collection. - */ - @Override - public Iterator iterator() { - return this.items.iterator(); - } - - /** - * Write set update to xml. - * - * @param writer - * accepts EwsServiceXmlWriter - * @param ewsObject - * accepts ServiceObject - * @param propertyDefinition - * accepts PropertyDefinition - * @return true - * @throws Exception - * the exception - */ - @Override - public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, PropertyDefinition propertyDefinition) - throws Exception { - // If the collection is empty, delete the property. - if (this.getCount() == 0) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getDeleteFieldXmlElementName()); - propertyDefinition.writeToXml(writer); - writer.writeEndElement(); - return true; - } - // Otherwise, use the default XML serializer. - else { - return false; - } - } - - /** - * Writes the deletion update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @return True if property generated serialization. - * @throws Exception - * the exception - */ - @Override - public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) throws Exception { - // Use the default XML serializer. - return false; - } + } + + /** + * Writes the deletion update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @return True if property generated serialization. + * @throws Exception the exception + */ + @Override + public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) throws Exception { + // Use the default XML serializer. + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index b88837cdc..3a84904e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -14,158 +14,139 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents base complex property type. - * - * - * @param - * The type of the complex property. + * + * @param The type of the complex property. */ class ComplexPropertyDefinition - extends ComplexPropertyDefinitionBase { + extends ComplexPropertyDefinitionBase { - private Class instance; - /** The property creation delegate. */ - private ICreateComplexPropertyDelegate - propertyCreationDelegate; + private Class instance; + /** + * The property creation delegate. + */ + private ICreateComplexPropertyDelegate + propertyCreationDelegate; - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param flags - * The flags. - * @param version - * The version. - * @param propertyCreationDelegate - * Delegate used to create instances of ComplexProperty. - */ - protected ComplexPropertyDefinition( - Class cls, - String xmlElementName, - EnumSet flags, - ExchangeVersion version, - ICreateComplexPropertyDelegate - propertyCreationDelegate) { - super(xmlElementName, flags, version); - this.instance = cls; - EwsUtilities.EwsAssert(propertyCreationDelegate != null, - "ComplexPropertyDefinition ctor", - "CreateComplexPropertyDelegate cannot be null"); + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param flags The flags. + * @param version The version. + * @param propertyCreationDelegate Delegate used to create instances of ComplexProperty. + */ + protected ComplexPropertyDefinition( + Class cls, + String xmlElementName, + EnumSet flags, + ExchangeVersion version, + ICreateComplexPropertyDelegate + propertyCreationDelegate) { + super(xmlElementName, flags, version); + this.instance = cls; + EwsUtilities.EwsAssert(propertyCreationDelegate != null, + "ComplexPropertyDefinition ctor", + "CreateComplexPropertyDelegate cannot be null"); - this.propertyCreationDelegate = propertyCreationDelegate; - } + this.propertyCreationDelegate = propertyCreationDelegate; + } - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - * @param propertyCreationDelegate - * Delegate used to create instances of ComplexProperty. - */ - protected ComplexPropertyDefinition( - Class cls, - String xmlElementName, - String uri, - ExchangeVersion version, - ICreateComplexPropertyDelegate - propertyCreationDelegate) { - super(xmlElementName, uri, version); - this.instance = cls; - this.propertyCreationDelegate = propertyCreationDelegate; - } - - protected ComplexPropertyDefinition( - String xmlElementName, - String uri, - ExchangeVersion version, - ICreateComplexPropertyDelegate - propertyCreationDelegate) { - super(xmlElementName, uri, version); - this.propertyCreationDelegate = propertyCreationDelegate; - } + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + * @param propertyCreationDelegate Delegate used to create instances of ComplexProperty. + */ + protected ComplexPropertyDefinition( + Class cls, + String xmlElementName, + String uri, + ExchangeVersion version, + ICreateComplexPropertyDelegate + propertyCreationDelegate) { + super(xmlElementName, uri, version); + this.instance = cls; + this.propertyCreationDelegate = propertyCreationDelegate; + } - /** - * Instantiates a new complex property definition. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - * @param propertyCreationDelegate - * the property creation delegate - */ - protected ComplexPropertyDefinition( - Class cls, - String xmlElementName, - String uri, - EnumSet flags, - ExchangeVersion version, - ICreateComplexPropertyDelegate - propertyCreationDelegate) { - super(xmlElementName, uri, flags, version); - this.instance = cls; - this.propertyCreationDelegate = propertyCreationDelegate; - } + protected ComplexPropertyDefinition( + String xmlElementName, + String uri, + ExchangeVersion version, + ICreateComplexPropertyDelegate + propertyCreationDelegate) { + super(xmlElementName, uri, version); + this.propertyCreationDelegate = propertyCreationDelegate; + } - - /** - * Instantiates a new complex property definition. - * - * @param xmlElementName - * the xml element name - * @param attachments - * the attachments - * @param flags - * the flags - * @param version - * the version - * @param propertyCreationDelegate - * the property creation delegate - */ - public ComplexPropertyDefinition( - String attachments, - String xmlElementName, - ExchangeVersion version, - EnumSet flags, - ICreateComplexPropertyDelegate propertyCreationDelegate) { - // TODO Auto-generated constructor stub - super(xmlElementName,attachments,flags,version); - this.propertyCreationDelegate = propertyCreationDelegate; - } + /** + * Instantiates a new complex property definition. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + * @param propertyCreationDelegate the property creation delegate + */ + protected ComplexPropertyDefinition( + Class cls, + String xmlElementName, + String uri, + EnumSet flags, + ExchangeVersion version, + ICreateComplexPropertyDelegate + propertyCreationDelegate) { + super(xmlElementName, uri, flags, version); + this.instance = cls; + this.propertyCreationDelegate = propertyCreationDelegate; + } - /** - * Creates the property instance. - * - * @param owner - * The owner. - * @return ComplexProperty instance. - */ - @Override - protected ComplexProperty createPropertyInstance(ServiceObject owner) { - TComplexProperty complexProperty = this.propertyCreationDelegate - .createComplexProperty(); - if (complexProperty instanceof IOwnedProperty) { - IOwnedProperty ownedProperty = (IOwnedProperty)complexProperty; - ownedProperty.setOwner(owner); - } - return complexProperty; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - /*ParameterizedType parameterizedType = + + /** + * Instantiates a new complex property definition. + * + * @param xmlElementName the xml element name + * @param attachments the attachments + * @param flags the flags + * @param version the version + * @param propertyCreationDelegate the property creation delegate + */ + public ComplexPropertyDefinition( + String attachments, + String xmlElementName, + ExchangeVersion version, + EnumSet flags, + ICreateComplexPropertyDelegate propertyCreationDelegate) { + // TODO Auto-generated constructor stub + super(xmlElementName, attachments, flags, version); + this.propertyCreationDelegate = propertyCreationDelegate; + } + + /** + * Creates the property instance. + * + * @param owner The owner. + * @return ComplexProperty instance. + */ + @Override + protected ComplexProperty createPropertyInstance(ServiceObject owner) { + TComplexProperty complexProperty = this.propertyCreationDelegate + .createComplexProperty(); + if (complexProperty instanceof IOwnedProperty) { + IOwnedProperty ownedProperty = (IOwnedProperty) complexProperty; + ownedProperty.setOwner(owner); + } + return complexProperty; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + /*ParameterizedType parameterizedType = (ParameterizedType) getClass().getGenericSuperclass(); return (Class) parameterizedType.getActualTypeArguments()[0]; @@ -175,7 +156,7 @@ public Class getType() { /*return ((Class)((ParameterizedType)this.getClass(). getGenericSuperclass()).getActualTypeArguments()[0]). newInstance();*/ - //return ComplexProperty.class; - return this.instance; - } + //return ComplexProperty.class; + return this.instance; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index 063c1b688..31b1980e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -14,97 +14,81 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents abstract complex property definition. - * */ abstract class ComplexPropertyDefinitionBase extends PropertyDefinition { - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param flags - * The flags. - * @param version - * The version. - */ - protected ComplexPropertyDefinitionBase(String xmlElementName, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, flags, version); - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, - ExchangeVersion version) { - super(xmlElementName, uri, version); - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } - - /** - * Creates the property instance. - * - * @param owner - * The owner. - * @return ComplexProperty. - */ - protected abstract ComplexProperty createPropertyInstance( - ServiceObject owner); - - /** - * Internals the load from XML. - * - * @param reader - * The reader. - * @param propertyBag - * The property bag. - * @throws Exception - * the exception - */ - protected void internalLoadFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - OutParam complexProperty = new OutParam(); - - boolean justCreated = getPropertyInstance(propertyBag,complexProperty); - if (!justCreated && this.hasFlag(PropertyDefinitionFlags.UpdateCollectionItems, propertyBag.getOwner().getService().getRequestedServerVersion())) - { - ComplexProperty c = (ComplexProperty)complexProperty.getParam(); - if (complexProperty.getParam() instanceof ComplexProperty) { - c.updateFromXml(reader, reader.getLocalName()); - } - - - - } - else{ - ComplexProperty c = (ComplexProperty)complexProperty.getParam(); - c.loadFromXml(reader, reader.getLocalName()); - } - /*if (!propertyBag.tryGetValue(this, complexProperty) || + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param flags The flags. + * @param version The version. + */ + protected ComplexPropertyDefinitionBase(String xmlElementName, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, flags, version); + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, + ExchangeVersion version) { + super(xmlElementName, uri, version); + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } + + /** + * Creates the property instance. + * + * @param owner The owner. + * @return ComplexProperty. + */ + protected abstract ComplexProperty createPropertyInstance( + ServiceObject owner); + + /** + * Internals the load from XML. + * + * @param reader The reader. + * @param propertyBag The property bag. + * @throws Exception the exception + */ + protected void internalLoadFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + OutParam complexProperty = new OutParam(); + + boolean justCreated = getPropertyInstance(propertyBag, complexProperty); + if (!justCreated && this.hasFlag(PropertyDefinitionFlags.UpdateCollectionItems, + propertyBag.getOwner().getService().getRequestedServerVersion())) { + ComplexProperty c = (ComplexProperty) complexProperty.getParam(); + if (complexProperty.getParam() instanceof ComplexProperty) { + c.updateFromXml(reader, reader.getLocalName()); + } + + + + } else { + ComplexProperty c = (ComplexProperty) complexProperty.getParam(); + c.loadFromXml(reader, reader.getLocalName()); + } + /*if (!propertyBag.tryGetValue(this, complexProperty) || !this.hasFlag(PropertyDefinitionFlags.ReuseInstance)) { complexProperty.setParam(this.createPropertyInstance(propertyBag .getOwner())); @@ -113,75 +97,68 @@ protected void internalLoadFromXml(EwsServiceXmlReader reader, ComplexProperty c = (ComplexProperty)complexProperty.getParam(); c.loadFromXml(reader, reader.getLocalName()); }*/ - propertyBag.setObjectFromPropertyDefinition(this, complexProperty - .getParam()); - } - - - - - /** - * Gets the property instance. - *@param propertyBag The property bag. - *@param complexProperty The property instance. - *@return True if the instance is newly created. - * - */ - private boolean getPropertyInstance(PropertyBag propertyBag, OutParam complexProperty) - { - boolean retValue = false; - if (!propertyBag.tryGetValue(this, complexProperty) || !this.hasFlag(PropertyDefinitionFlags.ReuseInstance,propertyBag.getOwner().getService().getRequestedServerVersion())) - { - complexProperty.setParam(this.createPropertyInstance(propertyBag - .getOwner())); - retValue = true; - } - return retValue; - + propertyBag.setObjectFromPropertyDefinition(this, complexProperty + .getParam()); + } + + + + /** + * Gets the property instance. + * + * @param propertyBag The property bag. + * @param complexProperty The property instance. + * @return True if the instance is newly created. + */ + private boolean getPropertyInstance(PropertyBag propertyBag, OutParam complexProperty) { + boolean retValue = false; + if (!propertyBag.tryGetValue(this, complexProperty) || !this + .hasFlag(PropertyDefinitionFlags.ReuseInstance, + propertyBag.getOwner().getService().getRequestedServerVersion())) { + complexProperty.setParam(this.createPropertyInstance(propertyBag + .getOwner())); + retValue = true; } - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param propertyBag - * The property bag. - * @throws Exception - * the exception - */ - @Override - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this - .getXmlElement()); - - if (!reader.isEmptyElement() || reader.hasAttributes()) { - this.internalLoadFromXml(reader, propertyBag); - } - reader.readEndElementIfNecessary(XmlNamespace.Types, this - .getXmlElement()); - } - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param propertyBag - * The property bag. - * @param isUpdateOperation - * Indicates whether the context is an update operation. - * @throws Exception - * the exception - */ - @Override - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { - ComplexProperty complexProperty = (ComplexProperty)propertyBag - .getObjectFromPropertyDefinition(this); - if (complexProperty != null) { - complexProperty.writeToXml(writer, this.getXmlElement()); - } - } + return retValue; + + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param propertyBag The property bag. + * @throws Exception the exception + */ + @Override + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this + .getXmlElement()); + + if (!reader.isEmptyElement() || reader.hasAttributes()) { + this.internalLoadFromXml(reader, propertyBag); + } + reader.readEndElementIfNecessary(XmlNamespace.Types, this + .getXmlElement()); + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @param propertyBag The property bag. + * @param isUpdateOperation Indicates whether the context is an update operation. + * @throws Exception the exception + */ + @Override + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { + ComplexProperty complexProperty = (ComplexProperty) propertyBag + .getObjectFromPropertyDefinition(this); + if (complexProperty != null) { + complexProperty.writeToXml(writer, this.getXmlElement()); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java index 7bab64850..818ad9382 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java @@ -15,116 +15,112 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base class for configuration settings. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) abstract class ConfigurationSettingsBase { - /** The error. */ - private AutodiscoverError error; - - /** - * Initializes a new instance of the ConfigurationSettingsBase class. - * - */ - protected ConfigurationSettingsBase() { - } - - /** - * Tries to read the current XML element. - * - * @param reader - * the reader - * @return True is the current element was read, false otherwise. - * @throws Exception - * the exception - */ - protected boolean tryReadCurrentXmlElement(EwsXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Error)) { - this.error = AutodiscoverError.parse(reader); - - return true; - } else { - return false; - } - } - - /** - * Loads the settings from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.NotSpecified, - XmlElementNames.Autodiscover); - reader.readStartElement(XmlNamespace.NotSpecified, - XmlElementNames.Response); - - do { - reader.read(); - - if (reader.isStartElement()) { - if (!this.tryReadCurrentXmlElement(reader)) { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.Response)); - - reader.readEndElement(XmlNamespace.NotSpecified, - XmlElementNames.Autodiscover); - } - - /** - * Gets the namespace that defines the settings. - * - * @return The namespace that defines the settings - */ - protected abstract String getNamespace(); - - /** - * Makes this instance a redirection response. - * - * @param redirectUrl - * the redirect url - */ - protected abstract void makeRedirectionResponse(URI redirectUrl); - - /** - * Gets the type of the response. - * - * @return The type of the response. - */ - protected abstract AutodiscoverResponseType getResponseType(); - - /** - * Gets the redirect target. - * - * @return The redirect target. - */ - protected abstract String getRedirectTarget(); - - /** - * Convert ConfigurationSettings to GetUserSettings response. - * @param smtpAddress SMTP address. - * @param requestedSettings The requested settings. - * @return GetUserSettingsResponse. - */ - protected abstract GetUserSettingsResponse convertSettings( - String smtpAddress, - List requestedSettings); - - - /** - * Gets the error. - * - * @return The error. - */ - protected AutodiscoverError getError() { - return this.error; - } + /** + * The error. + */ + private AutodiscoverError error; + + /** + * Initializes a new instance of the ConfigurationSettingsBase class. + */ + protected ConfigurationSettingsBase() { + } + + /** + * Tries to read the current XML element. + * + * @param reader the reader + * @return True is the current element was read, false otherwise. + * @throws Exception the exception + */ + protected boolean tryReadCurrentXmlElement(EwsXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Error)) { + this.error = AutodiscoverError.parse(reader); + + return true; + } else { + return false; + } + } + + /** + * Loads the settings from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.NotSpecified, + XmlElementNames.Autodiscover); + reader.readStartElement(XmlNamespace.NotSpecified, + XmlElementNames.Response); + + do { + reader.read(); + + if (reader.isStartElement()) { + if (!this.tryReadCurrentXmlElement(reader)) { + reader.skipCurrentElement(); + } + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.Response)); + + reader.readEndElement(XmlNamespace.NotSpecified, + XmlElementNames.Autodiscover); + } + + /** + * Gets the namespace that defines the settings. + * + * @return The namespace that defines the settings + */ + protected abstract String getNamespace(); + + /** + * Makes this instance a redirection response. + * + * @param redirectUrl the redirect url + */ + protected abstract void makeRedirectionResponse(URI redirectUrl); + + /** + * Gets the type of the response. + * + * @return The type of the response. + */ + protected abstract AutodiscoverResponseType getResponseType(); + + /** + * Gets the redirect target. + * + * @return The redirect target. + */ + protected abstract String getRedirectTarget(); + + /** + * Convert ConfigurationSettings to GetUserSettings response. + * + * @param smtpAddress SMTP address. + * @param requestedSettings The requested settings. + * @return GetUserSettingsResponse. + */ + protected abstract GetUserSettingsResponse convertSettings( + String smtpAddress, + List requestedSettings); + + + /** + * Gets the error. + * + * @return The error. + */ + protected AutodiscoverError getError() { + return this.error; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Conflict.java b/src/main/java/microsoft/exchange/webservices/data/Conflict.java index 67b78f453..11f3c1b29 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conflict.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conflict.java @@ -12,140 +12,148 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a conflict in a meeting time suggestion. - * */ public final class Conflict extends ComplexProperty { - /** The conflict type. */ - private ConflictType conflictType; - - /** The number of members. */ - private int numberOfMembers; - - /** The number of members available. */ - private int numberOfMembersAvailable; - - /** The number of members with conflict. */ - private int numberOfMembersWithConflict; - - /** The number of members with no data. */ - private int numberOfMembersWithNoData; - - /** The free busy status. */ - private LegacyFreeBusyStatus freeBusyStatus; - - /** - * Initializes a new instance of the Conflict class. - * - * @param conflictType - * the conflict type - */ - protected Conflict(ConflictType conflictType) { - super(); - this.conflictType = conflictType; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.NumberOfMembers)) { - this.numberOfMembers = reader.readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.NumberOfMembersAvailable)) { - this.numberOfMembersAvailable = reader - .readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.NumberOfMembersWithConflict)) { - this.numberOfMembersWithConflict = reader - .readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.NumberOfMembersWithNoData)) { - this.numberOfMembersWithNoData = reader - .readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.BusyType)) { - this.freeBusyStatus = reader - .readElementValue(LegacyFreeBusyStatus.class); - return true; - } else { - return false; - } - } - - /** - * Gets the type of the conflict. - * - * @return the conflict type - */ - public ConflictType getConflictType() { - return conflictType; - } - - /** - * Gets the number of users, resources, and rooms in the conflicting group. - * The value of this property is only meaningful when ConflictType is equal - * to ConflictType.GroupConflict. - * - * @return the number of members - */ - public int getNumberOfMembers() { - return numberOfMembers; - } - - /** - * Gets the number of members who are available (whose status is Free) in - * the conflicting group. The value of this property is only meaningful when - * ConflictType is equal to ConflictType.GroupConflict. - * - * @return the number of members available - */ - public int getNumberOfMembersAvailable() { - return numberOfMembersAvailable; - } - - /** - * Gets the number of members who have a conflict (whose status is Busy, OOF - * or Tentative) in the conflicting group. The value of this property is - * only meaningful when ConflictType is equal to ConflictType.GroupConflict. - * - * @return the number of members with conflict - */ - public int getNumberOfMembersWithConflict() { - return numberOfMembersWithConflict; - } - - /** - * Gets the number of members who do not have published free/busy data in - * the conflicting group. The value of this property is only meaningful when - * ConflictType is equal to ConflictType.GroupConflict. - * - * @return the number of members with no data - */ - public int getNumberOfMembersWithNoData() { - return numberOfMembersWithNoData; - } - - /** - * Gets the free/busy status of the conflicting attendee. The value of this - * property is only meaningful when ConflictType is equal to - * ConflictType.IndividualAttendee. - * - * @return the free busy status - */ - public LegacyFreeBusyStatus getFreeBusyStatus() { - return freeBusyStatus; - } + /** + * The conflict type. + */ + private ConflictType conflictType; + + /** + * The number of members. + */ + private int numberOfMembers; + + /** + * The number of members available. + */ + private int numberOfMembersAvailable; + + /** + * The number of members with conflict. + */ + private int numberOfMembersWithConflict; + + /** + * The number of members with no data. + */ + private int numberOfMembersWithNoData; + + /** + * The free busy status. + */ + private LegacyFreeBusyStatus freeBusyStatus; + + /** + * Initializes a new instance of the Conflict class. + * + * @param conflictType the conflict type + */ + protected Conflict(ConflictType conflictType) { + super(); + this.conflictType = conflictType; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.NumberOfMembers)) { + this.numberOfMembers = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.NumberOfMembersAvailable)) { + this.numberOfMembersAvailable = reader + .readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.NumberOfMembersWithConflict)) { + this.numberOfMembersWithConflict = reader + .readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.NumberOfMembersWithNoData)) { + this.numberOfMembersWithNoData = reader + .readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.BusyType)) { + this.freeBusyStatus = reader + .readElementValue(LegacyFreeBusyStatus.class); + return true; + } else { + return false; + } + } + + /** + * Gets the type of the conflict. + * + * @return the conflict type + */ + public ConflictType getConflictType() { + return conflictType; + } + + /** + * Gets the number of users, resources, and rooms in the conflicting group. + * The value of this property is only meaningful when ConflictType is equal + * to ConflictType.GroupConflict. + * + * @return the number of members + */ + public int getNumberOfMembers() { + return numberOfMembers; + } + + /** + * Gets the number of members who are available (whose status is Free) in + * the conflicting group. The value of this property is only meaningful when + * ConflictType is equal to ConflictType.GroupConflict. + * + * @return the number of members available + */ + public int getNumberOfMembersAvailable() { + return numberOfMembersAvailable; + } + + /** + * Gets the number of members who have a conflict (whose status is Busy, OOF + * or Tentative) in the conflicting group. The value of this property is + * only meaningful when ConflictType is equal to ConflictType.GroupConflict. + * + * @return the number of members with conflict + */ + public int getNumberOfMembersWithConflict() { + return numberOfMembersWithConflict; + } + + /** + * Gets the number of members who do not have published free/busy data in + * the conflicting group. The value of this property is only meaningful when + * ConflictType is equal to ConflictType.GroupConflict. + * + * @return the number of members with no data + */ + public int getNumberOfMembersWithNoData() { + return numberOfMembersWithNoData; + } + + /** + * Gets the free/busy status of the conflicting attendee. The value of this + * property is only meaningful when ConflictType is equal to + * ConflictType.IndividualAttendee. + * + * @return the free busy status + */ + public LegacyFreeBusyStatus getFreeBusyStatus() { + return freeBusyStatus; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java index 0ad327743..8523f3e52 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java @@ -15,17 +15,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ConflictResolutionMode { - // Local property changes are discarded. - /** The Never overwrite. */ - NeverOverwrite, + // Local property changes are discarded. + /** + * The Never overwrite. + */ + NeverOverwrite, - // Local property changes are applied to the server unless the server-side - // copy is more recent than the local copy. - /** The Auto resolve. */ - AutoResolve, + // Local property changes are applied to the server unless the server-side + // copy is more recent than the local copy. + /** + * The Auto resolve. + */ + AutoResolve, - // Local property changes overwrite server-side changes. - /** The Always overwrite. */ - AlwaysOverwrite + // Local property changes overwrite server-side changes. + /** + * The Always overwrite. + */ + AlwaysOverwrite } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java index d70c251ec..e34dbaa76 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java @@ -15,22 +15,30 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ConflictType { - // There is a conflict with an indicidual attendee. - /** The Individual attendee conflict. */ - IndividualAttendeeConflict, + // There is a conflict with an indicidual attendee. + /** + * The Individual attendee conflict. + */ + IndividualAttendeeConflict, - // There is a conflict with at least one member of a group. - /** The Group conflict. */ - GroupConflict, + // There is a conflict with at least one member of a group. + /** + * The Group conflict. + */ + GroupConflict, - // There is a conflict with at least one member of a group, but the group - // was too big for detailed information to be returned. - /** The Group too big conflict. */ - GroupTooBigConflict, + // There is a conflict with at least one member of a group, but the group + // was too big for detailed information to be returned. + /** + * The Group too big conflict. + */ + GroupTooBigConflict, - // There is a conflict with an unresolvable attendee or an attendee that is - // not a user, group, or contact. - /** The Unknown attendee conflict. */ - UnknownAttendeeConflict + // There is a conflict with an unresolvable attendee or an attendee that is + // not a user, group, or contact. + /** + * The Unknown attendee conflict. + */ + UnknownAttendeeConflict } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java index cd6c533a1..38fbbc2e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java @@ -12,19 +12,24 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines the type of Id of a ConnectingId object. - * */ public enum ConnectingIdType { - // / The connecting Id is a principal name. - /** The Principal name. */ - PrincipalName, + // / The connecting Id is a principal name. + /** + * The Principal name. + */ + PrincipalName, - // / The Id is an SID. - /** The SID. */ - SID, + // / The Id is an SID. + /** + * The SID. + */ + SID, - // / The Id is an SMTP address. - /** The Smtp address. */ - SmtpAddress + // / The Id is an SMTP address. + /** + * The Smtp address. + */ + SmtpAddress } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java index 813ec27e4..c437cdbac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java @@ -15,24 +15,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ConnectionFailureCause { - // None - /** The None. */ - None, - - // UserBusy - /** The User busy. */ - UserBusy, - - // NoAnswer - /** The No answer. */ - NoAnswer, - - // Unavailable - /** The Unavailable. */ - Unavailable, - - // Other - /** The Other. */ - Other + // None + /** + * The None. + */ + None, + + // UserBusy + /** + * The User busy. + */ + UserBusy, + + // NoAnswer + /** + * The No answer. + */ + NoAnswer, + + // Unavailable + /** + * The Unavailable. + */ + Unavailable, + + // Other + /** + * The Other. + */ + Other } diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index 726c2462e..e97421a3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -15,1053 +15,956 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; /** - *Represents a contact. Properties available on contacts are defined in the + * Represents a contact. Properties available on contacts are defined in the * ContactSchema class. */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.Contact, returnedByServer = true) public class Contact extends Item { - - /** The Contact picture name. */ - private final String ContactPictureName = "ContactPicture.jpg"; - - /** - * Initializes an unsaved local instance of . To bind - * to an existing contact, use Contact.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public Contact(ExchangeService service) throws Exception { - super(service); - } - - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * the parent attachment - * @throws Exception - * the exception - */ - protected Contact(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } - - /** - * Binds to an existing contact and loads the specified set of properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A Contact instance representing the contact corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Contact bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(Contact.class, id, propertySet); - } - - /** - * Binds to an existing contact and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A Contact instance representing the contact corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Contact bind(ExchangeService service, ItemId id) - throws Exception { - return Contact.bind(service, id, PropertySet.getFirstClassProperties()); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ContactSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Sets the contact's picture using the specified byte array. - * - * @param content - * the new contact picture - * @throws Exception - * the exception - */ - public void setContactPicture(byte[] content) throws Exception { - EwsUtilities.validateMethodVersion(this.getService(), - ExchangeVersion.Exchange2010, "SetContactPicture"); - - internalRemoveContactPicture(); - FileAttachment fileAttachment = getAttachments().addFileAttachment( - ContactPictureName, content); - fileAttachment.setIsContactPhoto(true); - } - - /** - * Sets the contact's picture using the specified stream. - * - * @param contentStream - * the new contact picture - * @throws Exception - * the exception - */ - public void setContactPicture(InputStream contentStream) throws Exception { - EwsUtilities.validateMethodVersion(this.getService(), - ExchangeVersion.Exchange2010, "SetContactPicture"); - - internalRemoveContactPicture(); - FileAttachment fileAttachment = getAttachments().addFileAttachment( - ContactPictureName, contentStream); - fileAttachment.setIsContactPhoto(true); - } - - /** - * Sets the contact's picture using the specified file. - * - * @param fileName - * the new contact picture - * @throws Exception - * the exception - */ - public void setContactPicture(String fileName) throws Exception { - EwsUtilities.validateMethodVersion(this.getService(), - ExchangeVersion.Exchange2010, "SetContactPicture"); - - internalRemoveContactPicture(); - FileAttachment fileAttachment = getAttachments().addFileAttachment( - new File(fileName).getName(), fileName); - fileAttachment.setIsContactPhoto(true); - } - - /** - * Retrieves the file attachment that holds the contact's picture. - * - * @return The file attachment that holds the contact's picture. - * @throws ServiceLocalException - * the service local exception - */ - public FileAttachment getContactPictureAttachment() - throws ServiceLocalException { - EwsUtilities.validateMethodVersion(this.getService(), - ExchangeVersion.Exchange2010, "GetContactPictureAttachment"); - - if (!this.getPropertyBag().isPropertyLoaded(ContactSchema.Attachments)) { - throw new PropertyException(Strings.AttachmentCollectionNotLoaded); - } - - for (Attachment fileAttachment : this.getAttachments()) { - if (fileAttachment instanceof FileAttachment) { - if (((FileAttachment) fileAttachment).isContactPhoto()) { - return (FileAttachment) fileAttachment; - } - } - } - return null; - } - - /** - * Removes the picture from local attachment collection. - * - * @throws Exception - * the exception - */ - private void internalRemoveContactPicture() throws Exception { - // Iterates in reverse order to remove file attachments that have - // IsContactPhoto set to true. - for (int index = this.getAttachments().getCount() - 1; index >= 0; index--) { - FileAttachment fileAttachment = (FileAttachment) this - .getAttachments().getPropertyAtIndex(index); - if (fileAttachment != null) { - if (fileAttachment.isContactPhoto()) { - this.getAttachments().remove(fileAttachment); - } - } - } - - } - - /** - * Removes the contact's picture. - * - * @throws Exception - * the exception - */ - public void removeContactPicture() throws Exception { - EwsUtilities.validateMethodVersion(this.getService(), - ExchangeVersion.Exchange2010, "RemoveContactPicture"); - - if (!this.getPropertyBag().isPropertyLoaded(ContactSchema.Attachments)) { - throw new PropertyException(Strings.AttachmentCollectionNotLoaded); - } - - internalRemoveContactPicture(); - } - - /** - * Validates this instance. - * - * @throws ServiceVersionException - * the service version exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceVersionException, Exception { - super.validate(); - - Object fileAsMapping; - OutParam outParam = new OutParam(); - if (this.tryGetProperty(ContactSchema.FileAsMapping, outParam)) { - fileAsMapping = outParam.getParam(); - // FileAsMapping is extended by 5 new values in 2010 mode. Validate - // that they are used according the version. - EwsUtilities.validateEnumVersionValue( - (FileAsMapping) fileAsMapping, this.getService() - .getRequestedServerVersion()); - } - } - - /** - * Gets the name under which this contact is filed as. FileAs can be - * manually set or can be automatically calculated based on the value of the - * FileAsMapping property. - * - * @return the file as - * @throws ServiceLocalException - * the service local exception - */ - public String getFileAs() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.FileAs); - - } - - /** - * Sets the file as. - * - * @param value - * the new file as - * @throws Exception - * the exception - */ - public void setFileAs(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.FileAs, value); - } - - /** - * Gets a value indicating how the FileAs property should be - * automatically calculated. - * - * @return the file as mapping - * @throws ServiceLocalException - * the service local exception - */ - public FileAsMapping getFileAsMapping() throws ServiceLocalException { - return (FileAsMapping) this.getPropertyBag() - .getObjectFromPropertyDefinition(ContactSchema.FileAsMapping); - } - - /** - * Sets the file as. - * - * @param value - * the new file as - * @throws Exception - * the exception - */ - public void setFileAs(FileAsMapping value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.FileAsMapping, value); - } - - /** - * Gets the display name of the contact. - * - * @return the display name - * @throws ServiceLocalException - * the service local exception - */ - public String getDisplayName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.DisplayName); - } - - /** - * Sets the display name. - * - * @param value - * the new display name - * @throws Exception - * the exception - */ - public void setDisplayName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.DisplayName, value); - } - - /** - * Gets the given name of the contact. - * - * @return the given name - * @throws ServiceLocalException - * the service local exception - */ - public String getGivenName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.GivenName); - } - - /** - * Sets the given name. - * - * @param value - * the new given name - * @throws Exception - * the exception - */ - public void setGivenName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.GivenName, value); - } - - /** - * Gets the initials of the contact. - * - * @return the initials - * @throws ServiceLocalException - * the service local exception - */ - public String getInitials() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Initials); - } - - /** - * Sets the initials. - * - * @param value - * the new initials - * @throws Exception - * the exception - */ - public void setInitials(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Initials, value); - } - - /** - * Gets the middle name of the contact. - * - * @return the middle name - * @throws ServiceLocalException - * the service local exception - */ - public String getMiddleName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.MiddleName); - } - - /** - * Sets the middle name. - * - * @param value - * the new middle name - * @throws Exception - * the exception - */ - public void setMiddleName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.MiddleName, value); - } - - /** - * Gets the nick name of the contact. - * - * @return the nick name - * @throws ServiceLocalException - * the service local exception - */ - public String getNickName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.NickName); - } - - /** - * Sets the nick name. - * - * @param value - * the new nick name - * @throws Exception - * the exception - */ - public void setNickName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.NickName, value); - } - - /** - * Gets the complete name of the contact. - * - * @return the complete name - * @throws ServiceLocalException - * the service local exception - */ - public CompleteName getCompleteName() throws ServiceLocalException { - return (CompleteName) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.CompleteName); - } - - /** - * Gets the company name of the contact. - * - * @return the company name - * @throws ServiceLocalException - * the service local exception - */ - public String getCompanyName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.CompanyName); - } - - /** - * Sets the company name. - * - * @param value - * the new company name - * @throws Exception - * the exception - */ - public void setCompanyName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.CompanyName, value); - } - - /** - * Gets an indexed list of e-mail addresses for the contact. For example, to - * set the first e-mail address, use the following syntax: - * EmailAddresses[EmailAddressKey.EmailAddress1] = "john.doe@contoso.com" - * - * @return the email addresses - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddressDictionary getEmailAddresses() - throws ServiceLocalException { - return (EmailAddressDictionary) this.getPropertyBag() - .getObjectFromPropertyDefinition(ContactSchema.EmailAddresses); - } - - /** - * Gets an indexed list of physical addresses for the contact. For example, - * to set the first business address, use the following syntax: - * physical[PhysicalAddressKey.Business] = new PhysicalAddressEntry() - * - * @return the physical addresses - * @throws ServiceLocalException - * the service local exception - */ - public PhysicalAddressDictionary getPhysicalAddresses() - throws ServiceLocalException { - return (PhysicalAddressDictionary) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ContactSchema.PhysicalAddresses); - } - - /** - * Gets an indexed list of phone numbers for the contact. For example, to - * set the home phone number, use the following syntax: - * PhoneNumbers[PhoneNumberKey.HomePhone] = "phone number" - * - * @return the phone numbers - * @throws ServiceLocalException - * the service local exception - */ - public PhoneNumberDictionary getPhoneNumbers() - throws ServiceLocalException { - return (PhoneNumberDictionary) this.getPropertyBag() - .getObjectFromPropertyDefinition(ContactSchema.PhoneNumbers); - } - - /** - * Gets the contact's assistant name. - * - * @return the assistant name - * @throws ServiceLocalException - * the service local exception - */ - public String getAssistantName() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.AssistantName); - } - - /** - * Sets the assistant name. - * - * @param value - * the new assistant name - * @throws Exception - * the exception - */ - public void setAssistantName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.AssistantName, value); - } - - /** - * Gets the contact's assistant name. - * - * @return the birthday - * @throws ServiceLocalException - * the service local exception - */ - public Date getBirthday() throws ServiceLocalException { - return (Date) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Birthday); - - } - - /** - * Sets the birthday. - * - * @param value - * the new birthday - * @throws Exception - * the exception - */ - public void setBirthday(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Birthday, value); - } - - /** - * Gets the business home page of the contact. - * - * @return the business home page - * @throws ServiceLocalException - * the service local exception - */ - public String getBusinessHomePage() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.BusinessHomePage); - - } - - /** - * Sets the business home page. - * - * @param value - * the new business home page - * @throws Exception - * the exception - */ - public void setBusinessHomePage(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.BusinessHomePage, value); - } - - /** - * Gets a list of children for the contact. - * - * @return the children - * @throws ServiceLocalException - * the service local exception - */ - public StringList getChildren() throws ServiceLocalException { - return (StringList) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Children); - - } - - /** - * Sets the children. - * - * @param value - * the new children - * @throws Exception - * the exception - */ - public void setChildren(StringList value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Children, value); - } - - /** - * Gets a list of companies for the contact. - * - * @return the companies - * @throws ServiceLocalException - * the service local exception - */ - public StringList getCompanies() throws ServiceLocalException { - return (StringList) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Companies); - - } - - /** - * Sets the companies. - * - * @param value - * the new companies - * @throws Exception - * the exception - */ - public void setCompanies(StringList value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Companies, value); - } - - /** - * Gets the source of the contact. - * - * @return the contact source - * @throws ServiceLocalException - * the service local exception - */ - public ContactSource getContactSource() throws ServiceLocalException { - return (ContactSource) getPropertyBag() - .getObjectFromPropertyDefinition(ContactSchema.ContactSource); - } - - /** - * Gets the department of the contact. - * - * @return the department - * @throws ServiceLocalException - * the service local exception - */ - public String getDepartment() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Department); - } - - /** - * Sets the department. - * - * @param value - * the new department - * @throws Exception - * the exception - */ - public void setDepartment(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Department, value); - } - - /** - * Gets the generation of the contact. - * - * @return the generation - * @throws ServiceLocalException - * the service local exception - */ - public String getGeneration() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Generation); - } - - /** - * Sets the generation. - * - * @param value - * the new generation - * @throws Exception - * the exception - */ - public void setGeneration(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Generation, value); - } - - /** - * Gets an indexed list of Instant Messaging addresses for the contact. For - * example, to set the first IM address, use the following syntax: - * ImAddresses[ImAddressKey.ImAddress1] = "john.doe@contoso.com" - * - * @return the im addresses - * @throws ServiceLocalException - * the service local exception - */ - public ImAddressDictionary getImAddresses() throws ServiceLocalException { - return (ImAddressDictionary) getPropertyBag() - .getObjectFromPropertyDefinition(ContactSchema.ImAddresses); - } - - /** - * Gets the contact's job title. - * - * @return the job title - * @throws ServiceLocalException - * the service local exception - */ - public String getJobTitle() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.JobTitle); - } - - /** - * Sets the job title. - * - * @param value - * the new job title - * @throws Exception - * the exception - */ - public void setJobTitle(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.JobTitle, value); - } - - /** - * Gets the name of the contact's manager. - * - * @return the manager - * @throws ServiceLocalException - * the service local exception - */ - public String getManager() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Manager); - } - - /** - * Sets the manager. - * - * @param value - * the new manager - * @throws Exception - * the exception - */ - public void setManager(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Manager, value); - } - - /** - * Gets the mileage for the contact. - * - * @return the mileage - * @throws ServiceLocalException - * the service local exception - */ - public String getMileage() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Mileage); - } - - /** - * Sets the mileage. - * - * @param value - * the new mileage - * @throws Exception - * the exception - */ - public void setMileage(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Mileage, value); - } - - /** - * Gets the location of the contact's office. - * - * @return the office location - * @throws ServiceLocalException - * the service local exception - */ - public String getOfficeLocation() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.OfficeLocation); - } - - /** - * Sets the office location. - * - * @param value - * the new office location - * @throws Exception - * the exception - */ - public void setOfficeLocation(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.OfficeLocation, value); - } - - /** - * Gets the index of the contact's postal address. When set, - * PostalAddressIndex refers to an entry in the PhysicalAddresses indexed - * list. - * - * @return the postal address index - * @throws ServiceLocalException - * the service local exception - */ - public PhysicalAddressIndex getPostalAddressIndex() - throws ServiceLocalException { - return (PhysicalAddressIndex) getPropertyBag() - .getObjectFromPropertyDefinition( - ContactSchema.PostalAddressIndex); - } - - /** - * Sets the postal address index. - * - * @param value - * the new postal address index - * @throws Exception - * the exception - */ - public void setPostalAddressIndex(PhysicalAddressIndex value) - throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.PostalAddressIndex, value); - } - - /** - * Gets the contact's profession. - * - * @return the profession - * @throws ServiceLocalException - * the service local exception - */ - public String getProfession() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Profession); - } - - /** - * Sets the profession. - * - * @param value - * the new profession - * @throws Exception - * the exception - */ - public void setProfession(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Profession, value); - } - - /** - * Gets the name of the contact's spouse. - * - * @return the spouse name - * @throws ServiceLocalException - * the service local exception - */ - public String getSpouseName() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.SpouseName); - } - - /** - * Sets the spouse name. - * - * @param value - * the new spouse name - * @throws Exception - * the exception - */ - public void setSpouseName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.SpouseName, value); - } - - /** - * Gets the surname of the contact. - * - * @return the surname - * @throws ServiceLocalException - * the service local exception - */ - public String getSurname() throws ServiceLocalException { - return (String) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.Surname); - } - - /** - * Sets the surname. - * - * @param value - * the new surname - * @throws Exception - * the exception - */ - public void setSurname(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.Surname, value); - } - - /** - * Gets the date of the contact's wedding anniversary. - * - * @return the wedding anniversary - * @throws ServiceLocalException - * the service local exception - */ - public Date getWeddingAnniversary() throws ServiceLocalException { - return (Date) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.WeddingAnniversary); - } - - /** - * Sets the wedding anniversary. - * - * @param value - * the new wedding anniversary - * @throws Exception - * the exception - */ - public void setWeddingAnniversary(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.WeddingAnniversary, value); - } - - /** - * Gets a value indicating whether this contact has a picture associated - * with it. - * - * @return the checks for picture - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getHasPicture() throws ServiceLocalException { - return (Boolean) getPropertyBag().getObjectFromPropertyDefinition( - ContactSchema.HasPicture); - } - /** - * Gets the funn phonetic name from the directory - * - */ - public String getPhoneticFullName() throws Exception{ - return (String)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticFullName); - } - - /** - * Gets the funn phonetic name from the directory - * - */ - public String getPhoneticFirstName() throws Exception{ - return (String)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticFirstName); - } - - /** - * Gets the phonetic last name from the directory - * @throws ServiceLocalException - */ - public String getPhoneticLastName() throws ServiceLocalException - { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticLastName); - } - /** - * Gets the Alias from the directory - * @throws ServiceLocalException - */ - public String getAlias() throws ServiceLocalException - { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Alias); + /** + * The Contact picture name. + */ + private final String ContactPictureName = "ContactPicture.jpg"; + + /** + * Initializes an unsaved local instance of . To bind + * to an existing contact, use Contact.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + public Contact(ExchangeService service) throws Exception { + super(service); + } + + /** + * Initializes a new instance of the class. + * + * @param parentAttachment the parent attachment + * @throws Exception the exception + */ + protected Contact(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } + + /** + * Binds to an existing contact and loads the specified set of properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A Contact instance representing the contact corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Contact bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(Contact.class, id, propertySet); + } + + /** + * Binds to an existing contact and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A Contact instance representing the contact corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Contact bind(ExchangeService service, ItemId id) + throws Exception { + return Contact.bind(service, id, PropertySet.getFirstClassProperties()); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ContactSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Sets the contact's picture using the specified byte array. + * + * @param content the new contact picture + * @throws Exception the exception + */ + public void setContactPicture(byte[] content) throws Exception { + EwsUtilities.validateMethodVersion(this.getService(), + ExchangeVersion.Exchange2010, "SetContactPicture"); + + internalRemoveContactPicture(); + FileAttachment fileAttachment = getAttachments().addFileAttachment( + ContactPictureName, content); + fileAttachment.setIsContactPhoto(true); + } + + /** + * Sets the contact's picture using the specified stream. + * + * @param contentStream the new contact picture + * @throws Exception the exception + */ + public void setContactPicture(InputStream contentStream) throws Exception { + EwsUtilities.validateMethodVersion(this.getService(), + ExchangeVersion.Exchange2010, "SetContactPicture"); + + internalRemoveContactPicture(); + FileAttachment fileAttachment = getAttachments().addFileAttachment( + ContactPictureName, contentStream); + fileAttachment.setIsContactPhoto(true); + } + + /** + * Sets the contact's picture using the specified file. + * + * @param fileName the new contact picture + * @throws Exception the exception + */ + public void setContactPicture(String fileName) throws Exception { + EwsUtilities.validateMethodVersion(this.getService(), + ExchangeVersion.Exchange2010, "SetContactPicture"); + + internalRemoveContactPicture(); + FileAttachment fileAttachment = getAttachments().addFileAttachment( + new File(fileName).getName(), fileName); + fileAttachment.setIsContactPhoto(true); + } + + /** + * Retrieves the file attachment that holds the contact's picture. + * + * @return The file attachment that holds the contact's picture. + * @throws ServiceLocalException the service local exception + */ + public FileAttachment getContactPictureAttachment() + throws ServiceLocalException { + EwsUtilities.validateMethodVersion(this.getService(), + ExchangeVersion.Exchange2010, "GetContactPictureAttachment"); + + if (!this.getPropertyBag().isPropertyLoaded(ContactSchema.Attachments)) { + throw new PropertyException(Strings.AttachmentCollectionNotLoaded); } - /** - * Get the Notes from the directory - * @throws ServiceLocalException - */ - public String getNotes() throws ServiceLocalException - { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Notes); - } - - /** - * Gets the Photo from the directory - * @throws ServiceLocalException - */ - public byte[] getDirectoryPhoto() throws ServiceLocalException - { - return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Photo); + for (Attachment fileAttachment : this.getAttachments()) { + if (fileAttachment instanceof FileAttachment) { + if (((FileAttachment) fileAttachment).isContactPhoto()) { + return (FileAttachment) fileAttachment; + } + } } - - /** - * Gets the User SMIME certificate from the directory - * @throws ServiceLocalException - */ - public byte[][] getUserSMIMECertificate() throws ServiceLocalException - { - - { - ByteArrayArray array = (ByteArrayArray)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.UserSMIMECertificate); - return array.getContent(); + return null; + } + + /** + * Removes the picture from local attachment collection. + * + * @throws Exception the exception + */ + private void internalRemoveContactPicture() throws Exception { + // Iterates in reverse order to remove file attachments that have + // IsContactPhoto set to true. + for (int index = this.getAttachments().getCount() - 1; index >= 0; index--) { + FileAttachment fileAttachment = (FileAttachment) this + .getAttachments().getPropertyAtIndex(index); + if (fileAttachment != null) { + if (fileAttachment.isContactPhoto()) { + this.getAttachments().remove(fileAttachment); } + } } - /** - * Gets the MSExchange certificate from the directory - * @throws ServiceLocalException - */ - public byte[][] getMSExchangeCertificate() throws ServiceLocalException - { - - { - ByteArrayArray array = (ByteArrayArray)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.MSExchangeCertificate); - return array.getContent(); - } + } + + /** + * Removes the contact's picture. + * + * @throws Exception the exception + */ + public void removeContactPicture() throws Exception { + EwsUtilities.validateMethodVersion(this.getService(), + ExchangeVersion.Exchange2010, "RemoveContactPicture"); + + if (!this.getPropertyBag().isPropertyLoaded(ContactSchema.Attachments)) { + throw new PropertyException(Strings.AttachmentCollectionNotLoaded); } - /** - * Gets the DirectoryID as Guid or DN string - * @throws ServiceLocalException - */ - public String getDirectoryId() throws ServiceLocalException - { - return (String)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.DirectoryId); + internalRemoveContactPicture(); + } + + /** + * Validates this instance. + * + * @throws ServiceVersionException the service version exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceVersionException, Exception { + super.validate(); + + Object fileAsMapping; + OutParam outParam = new OutParam(); + if (this.tryGetProperty(ContactSchema.FileAsMapping, outParam)) { + fileAsMapping = outParam.getParam(); + // FileAsMapping is extended by 5 new values in 2010 mode. Validate + // that they are used according the version. + EwsUtilities.validateEnumVersionValue( + (FileAsMapping) fileAsMapping, this.getService() + .getRequestedServerVersion()); } - - /** - * Gets the manager mailbox information - * @throws ServiceLocalException - */ - public EmailAddress getManagerMailbox() throws ServiceLocalException + } + + /** + * Gets the name under which this contact is filed as. FileAs can be + * manually set or can be automatically calculated based on the value of the + * FileAsMapping property. + * + * @return the file as + * @throws ServiceLocalException the service local exception + */ + public String getFileAs() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.FileAs); + + } + + /** + * Sets the file as. + * + * @param value the new file as + * @throws Exception the exception + */ + public void setFileAs(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.FileAs, value); + } + + /** + * Gets a value indicating how the FileAs property should be + * automatically calculated. + * + * @return the file as mapping + * @throws ServiceLocalException the service local exception + */ + public FileAsMapping getFileAsMapping() throws ServiceLocalException { + return (FileAsMapping) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.FileAsMapping); + } + + /** + * Sets the file as. + * + * @param value the new file as + * @throws Exception the exception + */ + public void setFileAs(FileAsMapping value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.FileAsMapping, value); + } + + /** + * Gets the display name of the contact. + * + * @return the display name + * @throws ServiceLocalException the service local exception + */ + public String getDisplayName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.DisplayName); + } + + /** + * Sets the display name. + * + * @param value the new display name + * @throws Exception the exception + */ + public void setDisplayName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.DisplayName, value); + } + + /** + * Gets the given name of the contact. + * + * @return the given name + * @throws ServiceLocalException the service local exception + */ + public String getGivenName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.GivenName); + } + + /** + * Sets the given name. + * + * @param value the new given name + * @throws Exception the exception + */ + public void setGivenName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.GivenName, value); + } + + /** + * Gets the initials of the contact. + * + * @return the initials + * @throws ServiceLocalException the service local exception + */ + public String getInitials() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Initials); + } + + /** + * Sets the initials. + * + * @param value the new initials + * @throws Exception the exception + */ + public void setInitials(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Initials, value); + } + + /** + * Gets the middle name of the contact. + * + * @return the middle name + * @throws ServiceLocalException the service local exception + */ + public String getMiddleName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.MiddleName); + } + + /** + * Sets the middle name. + * + * @param value the new middle name + * @throws Exception the exception + */ + public void setMiddleName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.MiddleName, value); + } + + /** + * Gets the nick name of the contact. + * + * @return the nick name + * @throws ServiceLocalException the service local exception + */ + public String getNickName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.NickName); + } + + /** + * Sets the nick name. + * + * @param value the new nick name + * @throws Exception the exception + */ + public void setNickName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.NickName, value); + } + + /** + * Gets the complete name of the contact. + * + * @return the complete name + * @throws ServiceLocalException the service local exception + */ + public CompleteName getCompleteName() throws ServiceLocalException { + return (CompleteName) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.CompleteName); + } + + /** + * Gets the company name of the contact. + * + * @return the company name + * @throws ServiceLocalException the service local exception + */ + public String getCompanyName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.CompanyName); + } + + /** + * Sets the company name. + * + * @param value the new company name + * @throws Exception the exception + */ + public void setCompanyName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.CompanyName, value); + } + + /** + * Gets an indexed list of e-mail addresses for the contact. For example, to + * set the first e-mail address, use the following syntax: + * EmailAddresses[EmailAddressKey.EmailAddress1] = "john.doe@contoso.com" + * + * @return the email addresses + * @throws ServiceLocalException the service local exception + */ + public EmailAddressDictionary getEmailAddresses() + throws ServiceLocalException { + return (EmailAddressDictionary) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.EmailAddresses); + } + + /** + * Gets an indexed list of physical addresses for the contact. For example, + * to set the first business address, use the following syntax: + * physical[PhysicalAddressKey.Business] = new PhysicalAddressEntry() + * + * @return the physical addresses + * @throws ServiceLocalException the service local exception + */ + public PhysicalAddressDictionary getPhysicalAddresses() + throws ServiceLocalException { + return (PhysicalAddressDictionary) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ContactSchema.PhysicalAddresses); + } + + /** + * Gets an indexed list of phone numbers for the contact. For example, to + * set the home phone number, use the following syntax: + * PhoneNumbers[PhoneNumberKey.HomePhone] = "phone number" + * + * @return the phone numbers + * @throws ServiceLocalException the service local exception + */ + public PhoneNumberDictionary getPhoneNumbers() + throws ServiceLocalException { + return (PhoneNumberDictionary) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.PhoneNumbers); + } + + /** + * Gets the contact's assistant name. + * + * @return the assistant name + * @throws ServiceLocalException the service local exception + */ + public String getAssistantName() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.AssistantName); + } + + /** + * Sets the assistant name. + * + * @param value the new assistant name + * @throws Exception the exception + */ + public void setAssistantName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.AssistantName, value); + } + + /** + * Gets the contact's assistant name. + * + * @return the birthday + * @throws ServiceLocalException the service local exception + */ + public Date getBirthday() throws ServiceLocalException { + return (Date) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Birthday); + + } + + /** + * Sets the birthday. + * + * @param value the new birthday + * @throws Exception the exception + */ + public void setBirthday(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Birthday, value); + } + + /** + * Gets the business home page of the contact. + * + * @return the business home page + * @throws ServiceLocalException the service local exception + */ + public String getBusinessHomePage() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.BusinessHomePage); + + } + + /** + * Sets the business home page. + * + * @param value the new business home page + * @throws Exception the exception + */ + public void setBusinessHomePage(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.BusinessHomePage, value); + } + + /** + * Gets a list of children for the contact. + * + * @return the children + * @throws ServiceLocalException the service local exception + */ + public StringList getChildren() throws ServiceLocalException { + return (StringList) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Children); + + } + + /** + * Sets the children. + * + * @param value the new children + * @throws Exception the exception + */ + public void setChildren(StringList value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Children, value); + } + + /** + * Gets a list of companies for the contact. + * + * @return the companies + * @throws ServiceLocalException the service local exception + */ + public StringList getCompanies() throws ServiceLocalException { + return (StringList) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Companies); + + } + + /** + * Sets the companies. + * + * @param value the new companies + * @throws Exception the exception + */ + public void setCompanies(StringList value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Companies, value); + } + + /** + * Gets the source of the contact. + * + * @return the contact source + * @throws ServiceLocalException the service local exception + */ + public ContactSource getContactSource() throws ServiceLocalException { + return (ContactSource) getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.ContactSource); + } + + /** + * Gets the department of the contact. + * + * @return the department + * @throws ServiceLocalException the service local exception + */ + public String getDepartment() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Department); + } + + /** + * Sets the department. + * + * @param value the new department + * @throws Exception the exception + */ + public void setDepartment(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Department, value); + } + + /** + * Gets the generation of the contact. + * + * @return the generation + * @throws ServiceLocalException the service local exception + */ + public String getGeneration() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Generation); + } + + /** + * Sets the generation. + * + * @param value the new generation + * @throws Exception the exception + */ + public void setGeneration(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Generation, value); + } + + /** + * Gets an indexed list of Instant Messaging addresses for the contact. For + * example, to set the first IM address, use the following syntax: + * ImAddresses[ImAddressKey.ImAddress1] = "john.doe@contoso.com" + * + * @return the im addresses + * @throws ServiceLocalException the service local exception + */ + public ImAddressDictionary getImAddresses() throws ServiceLocalException { + return (ImAddressDictionary) getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.ImAddresses); + } + + /** + * Gets the contact's job title. + * + * @return the job title + * @throws ServiceLocalException the service local exception + */ + public String getJobTitle() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.JobTitle); + } + + /** + * Sets the job title. + * + * @param value the new job title + * @throws Exception the exception + */ + public void setJobTitle(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.JobTitle, value); + } + + /** + * Gets the name of the contact's manager. + * + * @return the manager + * @throws ServiceLocalException the service local exception + */ + public String getManager() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Manager); + } + + /** + * Sets the manager. + * + * @param value the new manager + * @throws Exception the exception + */ + public void setManager(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Manager, value); + } + + /** + * Gets the mileage for the contact. + * + * @return the mileage + * @throws ServiceLocalException the service local exception + */ + public String getMileage() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Mileage); + } + + /** + * Sets the mileage. + * + * @param value the new mileage + * @throws Exception the exception + */ + public void setMileage(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Mileage, value); + } + + /** + * Gets the location of the contact's office. + * + * @return the office location + * @throws ServiceLocalException the service local exception + */ + public String getOfficeLocation() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.OfficeLocation); + } + + /** + * Sets the office location. + * + * @param value the new office location + * @throws Exception the exception + */ + public void setOfficeLocation(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.OfficeLocation, value); + } + + /** + * Gets the index of the contact's postal address. When set, + * PostalAddressIndex refers to an entry in the PhysicalAddresses indexed + * list. + * + * @return the postal address index + * @throws ServiceLocalException the service local exception + */ + public PhysicalAddressIndex getPostalAddressIndex() + throws ServiceLocalException { + return (PhysicalAddressIndex) getPropertyBag() + .getObjectFromPropertyDefinition( + ContactSchema.PostalAddressIndex); + } + + /** + * Sets the postal address index. + * + * @param value the new postal address index + * @throws Exception the exception + */ + public void setPostalAddressIndex(PhysicalAddressIndex value) + throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.PostalAddressIndex, value); + } + + /** + * Gets the contact's profession. + * + * @return the profession + * @throws ServiceLocalException the service local exception + */ + public String getProfession() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Profession); + } + + /** + * Sets the profession. + * + * @param value the new profession + * @throws Exception the exception + */ + public void setProfession(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Profession, value); + } + + /** + * Gets the name of the contact's spouse. + * + * @return the spouse name + * @throws ServiceLocalException the service local exception + */ + public String getSpouseName() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.SpouseName); + } + + /** + * Sets the spouse name. + * + * @param value the new spouse name + * @throws Exception the exception + */ + public void setSpouseName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.SpouseName, value); + } + + /** + * Gets the surname of the contact. + * + * @return the surname + * @throws ServiceLocalException the service local exception + */ + public String getSurname() throws ServiceLocalException { + return (String) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.Surname); + } + + /** + * Sets the surname. + * + * @param value the new surname + * @throws Exception the exception + */ + public void setSurname(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.Surname, value); + } + + /** + * Gets the date of the contact's wedding anniversary. + * + * @return the wedding anniversary + * @throws ServiceLocalException the service local exception + */ + public Date getWeddingAnniversary() throws ServiceLocalException { + return (Date) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.WeddingAnniversary); + } + + /** + * Sets the wedding anniversary. + * + * @param value the new wedding anniversary + * @throws Exception the exception + */ + public void setWeddingAnniversary(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.WeddingAnniversary, value); + } + + /** + * Gets a value indicating whether this contact has a picture associated + * with it. + * + * @return the checks for picture + * @throws ServiceLocalException the service local exception + */ + public Boolean getHasPicture() throws ServiceLocalException { + return (Boolean) getPropertyBag().getObjectFromPropertyDefinition( + ContactSchema.HasPicture); + } + + /** + * Gets the funn phonetic name from the directory + */ + public String getPhoneticFullName() throws Exception { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticFullName); + } + + /** + * Gets the funn phonetic name from the directory + */ + public String getPhoneticFirstName() throws Exception { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticFirstName); + } + + /** + * Gets the phonetic last name from the directory + * + * @throws ServiceLocalException + */ + public String getPhoneticLastName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.PhoneticLastName); + } + + /** + * Gets the Alias from the directory + * + * @throws ServiceLocalException + */ + public String getAlias() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Alias); + } + + /** + * Get the Notes from the directory + * + * @throws ServiceLocalException + */ + public String getNotes() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Notes); + } + + /** + * Gets the Photo from the directory + * + * @throws ServiceLocalException + */ + public byte[] getDirectoryPhoto() throws ServiceLocalException { + return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.Photo); + } + + /** + * Gets the User SMIME certificate from the directory + * + * @throws ServiceLocalException + */ + public byte[][] getUserSMIMECertificate() throws ServiceLocalException { + { - return (EmailAddress)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.ManagerMailbox); + ByteArrayArray array = (ByteArrayArray) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.UserSMIMECertificate); + return array.getContent(); } + } + + /** + * Gets the MSExchange certificate from the directory + * + * @throws ServiceLocalException + */ + public byte[][] getMSExchangeCertificate() throws ServiceLocalException { - /** - * Get the direct reports mailbox information - * @throws ServiceLocalException - */ - public EmailAddressCollection getDirectReports() throws ServiceLocalException { - return (EmailAddressCollection)this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.DirectReports); + ByteArrayArray array = (ByteArrayArray) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.MSExchangeCertificate); + return array.getContent(); } + } + + /** + * Gets the DirectoryID as Guid or DN string + * + * @throws ServiceLocalException + */ + public String getDirectoryId() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.DirectoryId); + } + + /** + * Gets the manager mailbox information + * + * @throws ServiceLocalException + */ + public EmailAddress getManagerMailbox() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag().getObjectFromPropertyDefinition(ContactSchema.ManagerMailbox); + } + + /** + * Get the direct reports mailbox information + * + * @throws ServiceLocalException + */ + public EmailAddressCollection getDirectReports() throws ServiceLocalException { + return (EmailAddressCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition(ContactSchema.DirectReports); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java index beff48f06..4cc58a362 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java @@ -13,163 +13,144 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a Contact Group. Properties available on contact groups are * defined in the ContactGroupSchema class. - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.DistributionList, returnedByServer = true) public class ContactGroup extends Item { - /** - * Initializes an unsaved local instance of the class. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public ContactGroup(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of the class. + * + * @param service the service + * @throws Exception the exception + */ + public ContactGroup(ExchangeService service) throws Exception { + super(service); + } - /** - * Initializes an new instance of the class. - * - * @param parentAttachment - * the parent attachment - * @throws Exception - * the exception - */ - protected ContactGroup(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } + /** + * Initializes an new instance of the class. + * + * @param parentAttachment the parent attachment + * @throws Exception the exception + */ + protected ContactGroup(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } - /** - * Gets the name under which this contact group is filed as. - * - * @return the file as - * @throws Exception - * the exception - */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - public String getFileAs() throws Exception { - return (String)this - .getObjectFromPropertyDefinition(ContactSchema.FileAs); - } + /** + * Gets the name under which this contact group is filed as. + * + * @return the file as + * @throws Exception the exception + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + public String getFileAs() throws Exception { + return (String) this + .getObjectFromPropertyDefinition(ContactSchema.FileAs); + } - /** - * Gets the display name of the contact group. - * - * @return the display name - * @throws Exception - * the exception - */ - public String getDisplayName() throws Exception { - return (String)this - .getObjectFromPropertyDefinition(ContactSchema.DisplayName); - } + /** + * Gets the display name of the contact group. + * + * @return the display name + * @throws Exception the exception + */ + public String getDisplayName() throws Exception { + return (String) this + .getObjectFromPropertyDefinition(ContactSchema.DisplayName); + } - /** - * Sets the display name. - * - * @param value - * the new display name - * @throws Exception - * the exception - */ - public void setDisplayName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ContactSchema.DisplayName, value); - } + /** + * Sets the display name. + * + * @param value the new display name + * @throws Exception the exception + */ + public void setDisplayName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ContactSchema.DisplayName, value); + } - /** - * Gets the members of the contact group. - * - * @return the members - * @throws Exception - * the exception - */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - public GroupMemberCollection getMembers() throws Exception { - return (GroupMemberCollection)this - .getObjectFromPropertyDefinition(ContactGroupSchema.Members); + /** + * Gets the members of the contact group. + * + * @return the members + * @throws Exception the exception + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + public GroupMemberCollection getMembers() throws Exception { + return (GroupMemberCollection) this + .getObjectFromPropertyDefinition(ContactGroupSchema.Members); - } + } - /** - * Binds to an existing contact group and loads the specified set of - * properties.Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A ContactGroup instance representing the contact group - * corresponding to the specified Id - * @throws Exception - * the exception - */ - public static ContactGroup bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(ContactGroup.class, id, propertySet); - } + /** + * Binds to an existing contact group and loads the specified set of + * properties.Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A ContactGroup instance representing the contact group + * corresponding to the specified Id + * @throws Exception the exception + */ + public static ContactGroup bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(ContactGroup.class, id, propertySet); + } - /** - * Binds to an existing contact group and loads the specified set of - * properties.Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A ContactGroup instance representing the contact group - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static ContactGroup bind(ExchangeService service, ItemId id) - throws Exception { - return ContactGroup.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing contact group and loads the specified set of + * properties.Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A ContactGroup instance representing the contact group + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static ContactGroup bind(ExchangeService service, ItemId id) + throws Exception { + return ContactGroup.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ContactGroupSchema.Instance; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ContactGroupSchema.Instance; + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Sets the subject. - * - * @param subject - * the new subject - * @throws ServiceObjectPropertyException - * the service object property exception - */ - @Override - protected void setSubject(String subject) - throws ServiceObjectPropertyException { - // Set is disabled in client API even though it is implemented in - // protocol for Item.Subject. - // Setting Subject out of sync with DisplayName breaks interop with OLK. - // See E14:70417, 65663, 6529. - throw new ServiceObjectPropertyException(Strings.PropertyIsReadOnly, - ContactGroupSchema.Subject); - } + /** + * Sets the subject. + * + * @param subject the new subject + * @throws ServiceObjectPropertyException the service object property exception + */ + @Override + protected void setSubject(String subject) + throws ServiceObjectPropertyException { + // Set is disabled in client API even though it is implemented in + // protocol for Item.Subject. + // Setting Subject out of sync with DisplayName breaks interop with OLK. + // See E14:70417, 65663, 6529. + throw new ServiceObjectPropertyException(Strings.PropertyIsReadOnly, + ContactGroupSchema.Subject); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java index 59cfbca58..0ad075fbf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java @@ -14,86 +14,97 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for contact groups. - * */ @Schema public class ContactGroupSchema extends ItemSchema { - - // Defines the DisplayName property. - /** The Constant DisplayName. */ - public static final PropertyDefinition DisplayName = - ContactSchema.DisplayName; - - - // Defines the FileAs property. - /** The Constant FileAs. */ - public static final PropertyDefinition FileAs = ContactSchema.FileAs; - - - // Defines the Members property. - /** The Constant Members. */ - public static final PropertyDefinition Members = - new ComplexPropertyDefinition( - GroupMemberCollection.class, - XmlElementNames.Members, - FieldUris.Members, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2010, - new ICreateComplexPropertyDelegate - () { - @Override - public GroupMemberCollection createComplexProperty() { - return new GroupMemberCollection(); - } - }); - - - //This must be declared after the property definitions. - /** The Constant Instance. */ - protected static final ContactGroupSchema Instance = - new ContactGroupSchema(); - - - // Initializes a new instance of the - // class. - /** - * Instantiates a new contact group schema. - */ - protected ContactGroupSchema() { - super(); - } - - //Registers properties. - // IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. - // the same order as they are defined in types.xsd) - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(DisplayName); - this.registerProperty(FileAs); - this.registerProperty(Members); - } - - - // Field URIs for Members. - /** - * The Interface FieldUris. - */ - private static interface FieldUris { - /** - * FieldUri for members. - */ - String Members = "distributionlist:Members"; - } - -} \ No newline at end of file + + // Defines the DisplayName property. + /** + * The Constant DisplayName. + */ + public static final PropertyDefinition DisplayName = + ContactSchema.DisplayName; + + + // Defines the FileAs property. + /** + * The Constant FileAs. + */ + public static final PropertyDefinition FileAs = ContactSchema.FileAs; + + + // Defines the Members property. + /** + * The Constant Members. + */ + public static final PropertyDefinition Members = + new ComplexPropertyDefinition( + GroupMemberCollection.class, + XmlElementNames.Members, + FieldUris.Members, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2010, + new ICreateComplexPropertyDelegate + () { + @Override + public GroupMemberCollection createComplexProperty() { + return new GroupMemberCollection(); + } + }); + + + //This must be declared after the property definitions. + /** + * The Constant Instance. + */ + protected static final ContactGroupSchema Instance = + new ContactGroupSchema(); + + + // Initializes a new instance of the + // class. + + /** + * Instantiates a new contact group schema. + */ + protected ContactGroupSchema() { + super(); + } + + //Registers properties. + // IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. + // the same order as they are defined in types.xsd) + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(DisplayName); + this.registerProperty(FileAs); + this.registerProperty(Members); + } + + + // Field URIs for Members. + + + /** + * The Interface FieldUris. + */ + private static interface FieldUris { + /** + * FieldUri for members. + */ + String Members = "distributionlist:Members"; + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java index c37d04af2..49cacf4c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java @@ -18,1112 +18,1239 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Schema public class ContactSchema extends ItemSchema { - /** - * FieldURIs for contacts. - */ - private static interface FieldUris { - - /** The File as. */ - String FileAs = "contacts:FileAs"; - - /** The File as mapping. */ - String FileAsMapping = "contacts:FileAsMapping"; - - /** The Display name. */ - String DisplayName = "contacts:DisplayName"; - - /** The Given name. */ - String GivenName = "contacts:GivenName"; - - /** The Initials. */ - String Initials = "contacts:Initials"; - - /** The Middle name. */ - String MiddleName = "contacts:MiddleName"; - - /** The Nick name. */ - String NickName = "contacts:Nickname"; - - /** The Complete name. */ - String CompleteName = "contacts:CompleteName"; - - /** The Company name. */ - String CompanyName = "contacts:CompanyName"; - - /** The Email address. */ - String EmailAddress = "contacts:EmailAddress"; - - /** The Email addresses. */ - String EmailAddresses = "contacts:EmailAddresses"; - - /** The Physical addresses. */ - String PhysicalAddresses = "contacts:PhysicalAddresses"; - - /** The Phone number. */ - String PhoneNumber = "contacts:PhoneNumber"; - - /** The Phone numbers. */ - String PhoneNumbers = "contacts:PhoneNumbers"; - - /** The Assistant name. */ - String AssistantName = "contacts:AssistantName"; - - /** The Birthday. */ - String Birthday = "contacts:Birthday"; - - /** The Business home page. */ - String BusinessHomePage = "contacts:BusinessHomePage"; - - /** The Children. */ - String Children = "contacts:Children"; - - /** The Companies. */ - String Companies = "contacts:Companies"; - - /** The Contact source. */ - String ContactSource = "contacts:ContactSource"; - - /** The Department. */ - String Department = "contacts:Department"; - - /** The Generation. */ - String Generation = "contacts:Generation"; - - /** The Im address. */ - String ImAddress = "contacts:ImAddress"; - - /** The Im addresses. */ - String ImAddresses = "contacts:ImAddresses"; - - /** The Job title. */ - String JobTitle = "contacts:JobTitle"; - - /** The Manager. */ - String Manager = "contacts:Manager"; - - /** The Mileage. */ - String Mileage = "contacts:Mileage"; - - /** The Office location. */ - String OfficeLocation = "contacts:OfficeLocation"; - - /** The Physical address city. */ - String PhysicalAddressCity = "contacts:PhysicalAddress:City"; - - /** The Physical address country or region. */ - String PhysicalAddressCountryOrRegion = - "contacts:PhysicalAddress:CountryOrRegion"; - - /** The Physical address state. */ - String PhysicalAddressState = "contacts:PhysicalAddress:State"; - - /** The Physical address street. */ - String PhysicalAddressStreet = "contacts:PhysicalAddress:Street"; - - /** The Physical address postal code. */ - String PhysicalAddressPostalCode = - "contacts:PhysicalAddress:PostalCode"; - - /** The Postal address index. */ - String PostalAddressIndex = "contacts:PostalAddressIndex"; - - /** The Profession. */ - String Profession = "contacts:Profession"; - - /** The Spouse name. */ - String SpouseName = "contacts:SpouseName"; - - /** The Surname. */ - String Surname = "contacts:Surname"; - - /** The Wedding anniversary. */ - String WeddingAnniversary = "contacts:WeddingAnniversary"; - - /** The Has picture. */ - String HasPicture = "contacts:HasPicture"; - - /** The PhoneticFullName. */ - - String PhoneticFullName = "contacts:PhoneticFullName"; - - /** The PhoneticFirstName. */ - - String PhoneticFirstName = "contacts:PhonetiFirstName"; - - /** The PhoneticFirstName. */ - - String PhoneticLastName = "contacts:PhonetiLastName"; - - /** The Aias. */ - - String Alias = "contacts:Alias"; - - /** The Notes. */ - - String Notes = "contacts:Notes"; - - /** The Photo. */ - - String Photo = "contacts:Photo"; - - /** The UserSMIMECertificate. */ - - String UserSMIMECertificate = "contacts:UserSMIMECertificate"; - - /** The MSExchangeCertificate. */ - - String MSExchangeCertificate = "contacts:MSExchageCertificate"; - - /** The DirectoryId. */ - - String DirectoryId = "contacts:DirectoryId"; - - /** The ManagerMailbox. */ - - String ManagerMailbox = "contacts:ManagerMailbox"; - - /** The DirectReports. */ - - String DirectReports = "contacts:DirectReports"; - } - - /** - * Defines the FileAs property. - */ - public static final PropertyDefinition FileAs = - new StringPropertyDefinition( - XmlElementNames.FileAs, FieldUris.FileAs, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the FileAsMapping property. - */ - public static final PropertyDefinition FileAsMapping = - new GenericPropertyDefinition( - FileAsMapping.class, - XmlElementNames.FileAsMapping, FieldUris.FileAsMapping, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DisplayName property. - */ - public static final PropertyDefinition DisplayName = - new StringPropertyDefinition( - XmlElementNames.DisplayName, FieldUris.DisplayName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the GivenName property. - */ - public static final PropertyDefinition GivenName = - new StringPropertyDefinition( - XmlElementNames.GivenName, FieldUris.GivenName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Initials property. - */ - public static final PropertyDefinition Initials = - new StringPropertyDefinition( - XmlElementNames.Initials, FieldUris.Initials, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the MiddleName property. - */ - public static final PropertyDefinition MiddleName = - new StringPropertyDefinition( - XmlElementNames.MiddleName, FieldUris.MiddleName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the NickName property. - */ - public static final PropertyDefinition NickName = - new StringPropertyDefinition( - XmlElementNames.NickName, FieldUris.NickName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the CompleteName property. - */ - public static final PropertyDefinition CompleteName = - new ComplexPropertyDefinition( - CompleteName.class, - XmlElementNames.CompleteName, FieldUris.CompleteName, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public CompleteName createComplexProperty() { - return new CompleteName(); - } - }); - - /** - * Defines the CompanyName property. - */ - public static final PropertyDefinition CompanyName = - new StringPropertyDefinition( - XmlElementNames.CompanyName, FieldUris.CompanyName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the EmailAddresses property. - */ - public static final PropertyDefinition EmailAddresses = - new ComplexPropertyDefinition( - EmailAddressDictionary.class, - XmlElementNames.EmailAddresses, - FieldUris.EmailAddresses, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public EmailAddressDictionary createComplexProperty() { - return new EmailAddressDictionary(); - } - }); - - /** - * Defines the PhysicalAddresses property. - */ - public static final PropertyDefinition PhysicalAddresses = - new ComplexPropertyDefinition( - PhysicalAddressDictionary.class, - XmlElementNames.PhysicalAddresses, - FieldUris.PhysicalAddresses, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public PhysicalAddressDictionary createComplexProperty() { - return new PhysicalAddressDictionary(); - } - }); - - /** - * Defines the PhoneNumbers property. - */ - public static final PropertyDefinition PhoneNumbers = - new ComplexPropertyDefinition( - PhoneNumberDictionary.class, - XmlElementNames.PhoneNumbers, - FieldUris.PhoneNumbers, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public PhoneNumberDictionary createComplexProperty() { - return new PhoneNumberDictionary(); - } - }); - - /** - * Defines the AssistantName property. - */ - public static final PropertyDefinition AssistantName = - new StringPropertyDefinition( - XmlElementNames.AssistantName, FieldUris.AssistantName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Birthday property. - */ - public static final PropertyDefinition Birthday = - new DateTimePropertyDefinition( - XmlElementNames.Birthday, FieldUris.Birthday, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the BusinessHomePage property. - * - * Defined as anyURI in the EWS schema. String is fine here. - */ - public static final PropertyDefinition BusinessHomePage = - new StringPropertyDefinition( - XmlElementNames.BusinessHomePage, FieldUris.BusinessHomePage, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Children property. - */ - public static final PropertyDefinition Children = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Children, FieldUris.Children, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the Companies property. - */ - public static final PropertyDefinition Companies = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Companies, FieldUris.Companies, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the ContactSource property. - */ - public static final PropertyDefinition ContactSource = - new GenericPropertyDefinition( - ContactSource.class, - XmlElementNames.ContactSource, FieldUris.ContactSource, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Department property. - */ - public static final PropertyDefinition Department = - new StringPropertyDefinition( - XmlElementNames.Department, FieldUris.Department, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Generation property. - */ - public static final PropertyDefinition Generation = - new StringPropertyDefinition( - XmlElementNames.Generation, FieldUris.Generation, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ImAddresses property. - */ - public static final PropertyDefinition ImAddresses = - new ComplexPropertyDefinition( - ImAddressDictionary.class, - XmlElementNames.ImAddresses, FieldUris.ImAddresses, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public ImAddressDictionary createComplexProperty() { - return new ImAddressDictionary(); - } - }); - - /** - * Defines the JobTitle property. - */ - public static final PropertyDefinition JobTitle = - new StringPropertyDefinition( - XmlElementNames.JobTitle, FieldUris.JobTitle, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Manager property. - */ - public static final PropertyDefinition Manager = - new StringPropertyDefinition( - XmlElementNames.Manager, FieldUris.Manager, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Mileage property. - */ - public static final PropertyDefinition Mileage = - new StringPropertyDefinition( - XmlElementNames.Mileage, FieldUris.Mileage, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the OfficeLocation property. - */ - public static final PropertyDefinition OfficeLocation = - new StringPropertyDefinition( - XmlElementNames.OfficeLocation, FieldUris.OfficeLocation, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the PostalAddressIndex property. - */ - public static final PropertyDefinition PostalAddressIndex = - new GenericPropertyDefinition( - PhysicalAddressIndex.class, - XmlElementNames.PostalAddressIndex, FieldUris.PostalAddressIndex, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Profession property. - */ - public static final PropertyDefinition Profession = - new StringPropertyDefinition( - XmlElementNames.Profession, FieldUris.Profession, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the SpouseName property. - */ - public static final PropertyDefinition SpouseName = - new StringPropertyDefinition( - XmlElementNames.SpouseName, FieldUris.SpouseName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Surname property. - */ - public static final PropertyDefinition Surname = - new StringPropertyDefinition( - XmlElementNames.Surname, FieldUris.Surname, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the WeddingAnniversary property. - */ - public static final PropertyDefinition WeddingAnniversary = - new DateTimePropertyDefinition( - XmlElementNames.WeddingAnniversary, FieldUris.WeddingAnniversary, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the HasPicture property. - */ - public static final PropertyDefinition HasPicture = - new BoolPropertyDefinition( - XmlElementNames.HasPicture, FieldUris.HasPicture, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010); - /** Defines PhoeniticFullName property ***/ - - public static final PropertyDefinition PhoneticFullName = - new StringPropertyDefinition( - XmlElementNames.PhoneticFullName, - FieldUris.PhoneticFullName, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines PhoenticFirstName property ***/ - - public static final PropertyDefinition PhoneticFirstName = - new StringPropertyDefinition( - XmlElementNames.PhoneticFirstName, - FieldUris.PhoneticFirstName, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines PhoneticLastName Property ***/ - - public static final PropertyDefinition PhoneticLastName = - new StringPropertyDefinition( - XmlElementNames.PhoneticLastName, - FieldUris.PhoneticLastName, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines the Alias Property ***/ - - public static final PropertyDefinition Alias = - new StringPropertyDefinition( - XmlElementNames.Alias, - FieldUris.Alias, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - - /*** Defines the Notes Property ***/ - - public static final PropertyDefinition Notes = - new StringPropertyDefinition( - XmlElementNames.Notes, - FieldUris.Notes, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines Photo Property ***/ - - public static final PropertyDefinition Photo = - new ByteArrayPropertyDefinition( - XmlElementNames.Photo, - FieldUris.Photo, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines UserSMIMECertificate Property ***/ - - public static final PropertyDefinition UserSMIMECertificate = - new ComplexPropertyDefinition( - ByteArrayArray.class, - XmlElementNames.UserSMIMECertificate, - FieldUris.UserSMIMECertificate, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public ByteArrayArray createComplexProperty() { - return new ByteArrayArray(); - } - }); - - /*** Defines MSExchangeCertificate Property ***/ - - public static PropertyDefinition MSExchangeCertificate = - new ComplexPropertyDefinition( - ByteArrayArray.class, - XmlElementNames.MSExchangeCertificate, - FieldUris.MSExchangeCertificate, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public ByteArrayArray createComplexProperty() { - return new ByteArrayArray(); - } - }); - - - /*** Defines DirectoryId Property ***/ - - public static PropertyDefinition DirectoryId = - new StringPropertyDefinition( - XmlElementNames.DirectoryId, - FieldUris.DirectoryId, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /*** Defines ManagerMailbox Property ***/ - - public static PropertyDefinition ManagerMailbox = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.ManagerMailbox, - FieldUris.ManagerMailbox, - XmlElementNames.Mailbox, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate (){ - @Override - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - /*** Defines DirectReports Property ***/ - - public static PropertyDefinition DirectReports = - new ComplexPropertyDefinition( - EmailAddressCollection.class, - XmlElementNames.DirectReports, - FieldUris.DirectReports, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate(){ - @Override - public EmailAddressCollection createComplexProperty() - - { return new EmailAddressCollection(); }}); - - - - - /** - * Defines the EmailAddress1 property. - */ - public static final IndexedPropertyDefinition EmailAddress1 = - new IndexedPropertyDefinition( - FieldUris.EmailAddress, "EmailAddress1"); - - /** - * Defines the EmailAddress2 property. - */ - public static final IndexedPropertyDefinition EmailAddress2 = - new IndexedPropertyDefinition( - FieldUris.EmailAddress, "EmailAddress2"); - - /** - * Defines the EmailAddress3 property. - */ - public static final IndexedPropertyDefinition EmailAddress3 = - new IndexedPropertyDefinition( - FieldUris.EmailAddress, "EmailAddress3"); - - /** - * Defines the ImAddress1 property. - */ - public static final IndexedPropertyDefinition ImAddress1 = - new IndexedPropertyDefinition( - FieldUris.ImAddress, "ImAddress1"); - - /** - * Defines the ImAddress2 property. - */ - public static final IndexedPropertyDefinition ImAddress2 = - new IndexedPropertyDefinition( - FieldUris.ImAddress, "ImAddress2"); - - /** - * Defines the ImAddress3 property. - */ - public static final IndexedPropertyDefinition ImAddress3 = - new IndexedPropertyDefinition( - FieldUris.ImAddress, "ImAddress3"); - - /** - * Defines the AssistentPhone property. - */ - public static final IndexedPropertyDefinition AssistantPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "AssistantPhone"); - - /** - * Defines the BusinessFax property. - */ - public static final IndexedPropertyDefinition BusinessFax = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "BusinessFax"); - - /** - * Defines the BusinessPhone property. - */ - public static final IndexedPropertyDefinition BusinessPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "BusinessPhone"); - - /** - * Defines the BusinessPhone2 property. - */ - public static final IndexedPropertyDefinition BusinessPhone2 = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "BusinessPhone2"); - - /** - * Defines the Callback property. - */ - public static final IndexedPropertyDefinition Callback = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "Callback"); - - /** - * Defines the CarPhone property. - */ - public static final IndexedPropertyDefinition CarPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "CarPhone"); - - /** - * Defines the CompanyMainPhone property. - */ - public static final IndexedPropertyDefinition CompanyMainPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "CompanyMainPhone"); - - /** - * Defines the HomeFax property. - */ - public static final IndexedPropertyDefinition HomeFax = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "HomeFax"); - - /** - * Defines the HomePhone property. - */ - public static final IndexedPropertyDefinition HomePhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "HomePhone"); - - /** - * Defines the HomePhone2 property. - */ - public static final IndexedPropertyDefinition HomePhone2 = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "HomePhone2"); - - /** - * Defines the Isdn property. - */ - public static final IndexedPropertyDefinition Isdn = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "Isdn"); - - /** - * Defines the MobilePhone property. - */ - public static final IndexedPropertyDefinition MobilePhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "MobilePhone"); - - /** - * Defines the OtherFax property. - */ - public static final IndexedPropertyDefinition OtherFax = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "OtherFax"); - - /** - * Defines the OtherTelephone property. - */ - public static final IndexedPropertyDefinition OtherTelephone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "OtherTelephone"); - - /** - * Defines the Pager property. - */ - public static final IndexedPropertyDefinition Pager = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "Pager"); - - /** - * Defines the PrimaryPhone property. - */ - public static final IndexedPropertyDefinition PrimaryPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "PrimaryPhone"); - - /** - * Defines the RadioPhone property. - */ - public static final IndexedPropertyDefinition RadioPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "RadioPhone"); - - /** - * Defines the Telex property. - */ - public static final IndexedPropertyDefinition Telex = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "Telex"); - - /** - * Defines the TtyTddPhone property. - */ - public static final IndexedPropertyDefinition TtyTddPhone = - new IndexedPropertyDefinition( - FieldUris.PhoneNumber, "TtyTddPhone"); - - /** - * Defines the BusinessAddressStreet property. - */ - public static final IndexedPropertyDefinition BusinessAddressStreet = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressStreet, "Business"); - - /** - * Defines the BusinessAddressCity property. - */ - public static final IndexedPropertyDefinition BusinessAddressCity = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCity, "Business"); - - /** - * Defines the BusinessAddressState property. - */ - public static final IndexedPropertyDefinition BusinessAddressState = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressState, "Business"); - - /** - * Defines the BusinessAddressCountryOrRegion property. - */ - public static final IndexedPropertyDefinition - BusinessAddressCountryOrRegion = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCountryOrRegion, "Business"); - - /** - * Defines the BusinessAddressPostalCode property. - */ - public static final IndexedPropertyDefinition BusinessAddressPostalCode = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressPostalCode, "Business"); - - /** - * Defines the HomeAddressStreet property. - */ - public static final IndexedPropertyDefinition HomeAddressStreet = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressStreet, "Home"); - - /** - * Defines the HomeAddressCity property. - */ - public static final IndexedPropertyDefinition HomeAddressCity = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCity, "Home"); - - /** - * Defines the HomeAddressState property. - */ - public static final IndexedPropertyDefinition HomeAddressState = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressState, "Home"); - - /** - * Defines the HomeAddressCountryOrRegion property. - */ - public static final IndexedPropertyDefinition HomeAddressCountryOrRegion = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCountryOrRegion, "Home"); - - /** - * Defines the HomeAddressPostalCode property. - */ - public static final IndexedPropertyDefinition HomeAddressPostalCode = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressPostalCode, "Home"); - - /** - * Defines the OtherAddressStreet property. - */ - public static final IndexedPropertyDefinition OtherAddressStreet = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressStreet, "Other"); - - /** - * Defines the OtherAddressCity property. - */ - public static final IndexedPropertyDefinition OtherAddressCity = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCity, "Other"); - - /** - * Defines the OtherAddressState property. - */ - public static final IndexedPropertyDefinition OtherAddressState = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressState, "Other"); - - /** - * Defines the OtherAddressCountryOrRegion property. - */ - public static final IndexedPropertyDefinition OtherAddressCountryOrRegion = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressCountryOrRegion, "Other"); - - /** - * Defines the OtherAddressPostalCode property. - */ - public static final IndexedPropertyDefinition OtherAddressPostalCode = - new IndexedPropertyDefinition( - FieldUris.PhysicalAddressPostalCode, "Other"); - - // This must be declared after the property definitions - /** The Constant Instance. */ - protected static final ContactSchema Instance = new ContactSchema(); - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(FileAs); - this.registerProperty(FileAsMapping); - this.registerProperty(DisplayName); - this.registerProperty(GivenName); - this.registerProperty(Initials); - this.registerProperty(MiddleName); - this.registerProperty(NickName); - this.registerProperty(CompleteName); - this.registerProperty(CompanyName); - this.registerProperty(EmailAddresses); - this.registerProperty(PhysicalAddresses); - this.registerProperty(PhoneNumbers); - this.registerProperty(AssistantName); - this.registerProperty(Birthday); - this.registerProperty(BusinessHomePage); - this.registerProperty(Children); - this.registerProperty(Companies); - this.registerProperty(ContactSource); - this.registerProperty(Department); - this.registerProperty(Generation); - this.registerProperty(ImAddresses); - this.registerProperty(JobTitle); - this.registerProperty(Manager); - this.registerProperty(Mileage); - this.registerProperty(OfficeLocation); - this.registerProperty(PostalAddressIndex); - this.registerProperty(Profession); - this.registerProperty(SpouseName); - this.registerProperty(Surname); - this.registerProperty(WeddingAnniversary); - this.registerProperty(HasPicture); - this.registerProperty(PhoneticFullName); - this.registerProperty(PhoneticFirstName); - this.registerProperty(PhoneticLastName); - this.registerProperty(Alias); - this.registerProperty(Notes); - this.registerProperty(Photo); - this.registerProperty(UserSMIMECertificate); - this.registerProperty(MSExchangeCertificate); - this.registerProperty(DirectoryId); - this.registerProperty(ManagerMailbox); - this.registerProperty(DirectReports); - - this.registerIndexedProperty(EmailAddress1); - this.registerIndexedProperty(EmailAddress2); - this.registerIndexedProperty(EmailAddress3); - this.registerIndexedProperty(ImAddress1); - this.registerIndexedProperty(ImAddress2); - this.registerIndexedProperty(ImAddress3); - this.registerIndexedProperty(AssistantPhone); - this.registerIndexedProperty(BusinessFax); - this.registerIndexedProperty(BusinessPhone); - this.registerIndexedProperty(BusinessPhone2); - this.registerIndexedProperty(Callback); - this.registerIndexedProperty(CarPhone); - this.registerIndexedProperty(CompanyMainPhone); - this.registerIndexedProperty(HomeFax); - this.registerIndexedProperty(HomePhone); - this.registerIndexedProperty(HomePhone2); - this.registerIndexedProperty(Isdn); - this.registerIndexedProperty(MobilePhone); - this.registerIndexedProperty(OtherFax); - this.registerIndexedProperty(OtherTelephone); - this.registerIndexedProperty(Pager); - this.registerIndexedProperty(PrimaryPhone); - this.registerIndexedProperty(RadioPhone); - this.registerIndexedProperty(Telex); - this.registerIndexedProperty(TtyTddPhone); - this.registerIndexedProperty(BusinessAddressStreet); - this.registerIndexedProperty(BusinessAddressCity); - this.registerIndexedProperty(BusinessAddressState); - this.registerIndexedProperty(BusinessAddressCountryOrRegion); - this.registerIndexedProperty(BusinessAddressPostalCode); - this.registerIndexedProperty(HomeAddressStreet); - this.registerIndexedProperty(HomeAddressCity); - this.registerIndexedProperty(HomeAddressState); - this.registerIndexedProperty(HomeAddressCountryOrRegion); - this.registerIndexedProperty(HomeAddressPostalCode); - this.registerIndexedProperty(OtherAddressStreet); - this.registerIndexedProperty(OtherAddressCity); - this.registerIndexedProperty(OtherAddressState); - this.registerIndexedProperty(OtherAddressCountryOrRegion); - this.registerIndexedProperty(OtherAddressPostalCode); - - } - - /** - * Instantiates a new contact schema. - */ - ContactSchema() { - super(); - } -} \ No newline at end of file + /** + * FieldURIs for contacts. + */ + private static interface FieldUris { + + /** + * The File as. + */ + String FileAs = "contacts:FileAs"; + + /** + * The File as mapping. + */ + String FileAsMapping = "contacts:FileAsMapping"; + + /** + * The Display name. + */ + String DisplayName = "contacts:DisplayName"; + + /** + * The Given name. + */ + String GivenName = "contacts:GivenName"; + + /** + * The Initials. + */ + String Initials = "contacts:Initials"; + + /** + * The Middle name. + */ + String MiddleName = "contacts:MiddleName"; + + /** + * The Nick name. + */ + String NickName = "contacts:Nickname"; + + /** + * The Complete name. + */ + String CompleteName = "contacts:CompleteName"; + + /** + * The Company name. + */ + String CompanyName = "contacts:CompanyName"; + + /** + * The Email address. + */ + String EmailAddress = "contacts:EmailAddress"; + + /** + * The Email addresses. + */ + String EmailAddresses = "contacts:EmailAddresses"; + + /** + * The Physical addresses. + */ + String PhysicalAddresses = "contacts:PhysicalAddresses"; + + /** + * The Phone number. + */ + String PhoneNumber = "contacts:PhoneNumber"; + + /** + * The Phone numbers. + */ + String PhoneNumbers = "contacts:PhoneNumbers"; + + /** + * The Assistant name. + */ + String AssistantName = "contacts:AssistantName"; + + /** + * The Birthday. + */ + String Birthday = "contacts:Birthday"; + + /** + * The Business home page. + */ + String BusinessHomePage = "contacts:BusinessHomePage"; + + /** + * The Children. + */ + String Children = "contacts:Children"; + + /** + * The Companies. + */ + String Companies = "contacts:Companies"; + + /** + * The Contact source. + */ + String ContactSource = "contacts:ContactSource"; + + /** + * The Department. + */ + String Department = "contacts:Department"; + + /** + * The Generation. + */ + String Generation = "contacts:Generation"; + + /** + * The Im address. + */ + String ImAddress = "contacts:ImAddress"; + + /** + * The Im addresses. + */ + String ImAddresses = "contacts:ImAddresses"; + + /** + * The Job title. + */ + String JobTitle = "contacts:JobTitle"; + + /** + * The Manager. + */ + String Manager = "contacts:Manager"; + + /** + * The Mileage. + */ + String Mileage = "contacts:Mileage"; + + /** + * The Office location. + */ + String OfficeLocation = "contacts:OfficeLocation"; + + /** + * The Physical address city. + */ + String PhysicalAddressCity = "contacts:PhysicalAddress:City"; + + /** + * The Physical address country or region. + */ + String PhysicalAddressCountryOrRegion = + "contacts:PhysicalAddress:CountryOrRegion"; + + /** + * The Physical address state. + */ + String PhysicalAddressState = "contacts:PhysicalAddress:State"; + + /** + * The Physical address street. + */ + String PhysicalAddressStreet = "contacts:PhysicalAddress:Street"; + + /** + * The Physical address postal code. + */ + String PhysicalAddressPostalCode = + "contacts:PhysicalAddress:PostalCode"; + + /** + * The Postal address index. + */ + String PostalAddressIndex = "contacts:PostalAddressIndex"; + + /** + * The Profession. + */ + String Profession = "contacts:Profession"; + + /** + * The Spouse name. + */ + String SpouseName = "contacts:SpouseName"; + + /** + * The Surname. + */ + String Surname = "contacts:Surname"; + + /** + * The Wedding anniversary. + */ + String WeddingAnniversary = "contacts:WeddingAnniversary"; + + /** + * The Has picture. + */ + String HasPicture = "contacts:HasPicture"; + + /** + * The PhoneticFullName. + */ + + String PhoneticFullName = "contacts:PhoneticFullName"; + + /** + * The PhoneticFirstName. + */ + + String PhoneticFirstName = "contacts:PhonetiFirstName"; + + /** + * The PhoneticFirstName. + */ + + String PhoneticLastName = "contacts:PhonetiLastName"; + + /** + * The Aias. + */ + + String Alias = "contacts:Alias"; + + /** + * The Notes. + */ + + String Notes = "contacts:Notes"; + + /** + * The Photo. + */ + + String Photo = "contacts:Photo"; + + /** + * The UserSMIMECertificate. + */ + + String UserSMIMECertificate = "contacts:UserSMIMECertificate"; + + /** + * The MSExchangeCertificate. + */ + + String MSExchangeCertificate = "contacts:MSExchageCertificate"; + + /** + * The DirectoryId. + */ + + String DirectoryId = "contacts:DirectoryId"; + + /** + * The ManagerMailbox. + */ + + String ManagerMailbox = "contacts:ManagerMailbox"; + + /** + * The DirectReports. + */ + + String DirectReports = "contacts:DirectReports"; + } + + + /** + * Defines the FileAs property. + */ + public static final PropertyDefinition FileAs = + new StringPropertyDefinition( + XmlElementNames.FileAs, FieldUris.FileAs, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the FileAsMapping property. + */ + public static final PropertyDefinition FileAsMapping = + new GenericPropertyDefinition( + FileAsMapping.class, + XmlElementNames.FileAsMapping, FieldUris.FileAsMapping, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DisplayName property. + */ + public static final PropertyDefinition DisplayName = + new StringPropertyDefinition( + XmlElementNames.DisplayName, FieldUris.DisplayName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the GivenName property. + */ + public static final PropertyDefinition GivenName = + new StringPropertyDefinition( + XmlElementNames.GivenName, FieldUris.GivenName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Initials property. + */ + public static final PropertyDefinition Initials = + new StringPropertyDefinition( + XmlElementNames.Initials, FieldUris.Initials, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the MiddleName property. + */ + public static final PropertyDefinition MiddleName = + new StringPropertyDefinition( + XmlElementNames.MiddleName, FieldUris.MiddleName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the NickName property. + */ + public static final PropertyDefinition NickName = + new StringPropertyDefinition( + XmlElementNames.NickName, FieldUris.NickName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the CompleteName property. + */ + public static final PropertyDefinition CompleteName = + new ComplexPropertyDefinition( + CompleteName.class, + XmlElementNames.CompleteName, FieldUris.CompleteName, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public CompleteName createComplexProperty() { + return new CompleteName(); + } + }); + + /** + * Defines the CompanyName property. + */ + public static final PropertyDefinition CompanyName = + new StringPropertyDefinition( + XmlElementNames.CompanyName, FieldUris.CompanyName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the EmailAddresses property. + */ + public static final PropertyDefinition EmailAddresses = + new ComplexPropertyDefinition( + EmailAddressDictionary.class, + XmlElementNames.EmailAddresses, + FieldUris.EmailAddresses, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public EmailAddressDictionary createComplexProperty() { + return new EmailAddressDictionary(); + } + }); + + /** + * Defines the PhysicalAddresses property. + */ + public static final PropertyDefinition PhysicalAddresses = + new ComplexPropertyDefinition( + PhysicalAddressDictionary.class, + XmlElementNames.PhysicalAddresses, + FieldUris.PhysicalAddresses, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public PhysicalAddressDictionary createComplexProperty() { + return new PhysicalAddressDictionary(); + } + }); + + /** + * Defines the PhoneNumbers property. + */ + public static final PropertyDefinition PhoneNumbers = + new ComplexPropertyDefinition( + PhoneNumberDictionary.class, + XmlElementNames.PhoneNumbers, + FieldUris.PhoneNumbers, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public PhoneNumberDictionary createComplexProperty() { + return new PhoneNumberDictionary(); + } + }); + + /** + * Defines the AssistantName property. + */ + public static final PropertyDefinition AssistantName = + new StringPropertyDefinition( + XmlElementNames.AssistantName, FieldUris.AssistantName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Birthday property. + */ + public static final PropertyDefinition Birthday = + new DateTimePropertyDefinition( + XmlElementNames.Birthday, FieldUris.Birthday, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the BusinessHomePage property. + *

+ * Defined as anyURI in the EWS schema. String is fine here. + */ + public static final PropertyDefinition BusinessHomePage = + new StringPropertyDefinition( + XmlElementNames.BusinessHomePage, FieldUris.BusinessHomePage, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Children property. + */ + public static final PropertyDefinition Children = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Children, FieldUris.Children, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the Companies property. + */ + public static final PropertyDefinition Companies = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Companies, FieldUris.Companies, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the ContactSource property. + */ + public static final PropertyDefinition ContactSource = + new GenericPropertyDefinition( + ContactSource.class, + XmlElementNames.ContactSource, FieldUris.ContactSource, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Department property. + */ + public static final PropertyDefinition Department = + new StringPropertyDefinition( + XmlElementNames.Department, FieldUris.Department, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Generation property. + */ + public static final PropertyDefinition Generation = + new StringPropertyDefinition( + XmlElementNames.Generation, FieldUris.Generation, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ImAddresses property. + */ + public static final PropertyDefinition ImAddresses = + new ComplexPropertyDefinition( + ImAddressDictionary.class, + XmlElementNames.ImAddresses, FieldUris.ImAddresses, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public ImAddressDictionary createComplexProperty() { + return new ImAddressDictionary(); + } + }); + + /** + * Defines the JobTitle property. + */ + public static final PropertyDefinition JobTitle = + new StringPropertyDefinition( + XmlElementNames.JobTitle, FieldUris.JobTitle, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Manager property. + */ + public static final PropertyDefinition Manager = + new StringPropertyDefinition( + XmlElementNames.Manager, FieldUris.Manager, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Mileage property. + */ + public static final PropertyDefinition Mileage = + new StringPropertyDefinition( + XmlElementNames.Mileage, FieldUris.Mileage, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the OfficeLocation property. + */ + public static final PropertyDefinition OfficeLocation = + new StringPropertyDefinition( + XmlElementNames.OfficeLocation, FieldUris.OfficeLocation, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the PostalAddressIndex property. + */ + public static final PropertyDefinition PostalAddressIndex = + new GenericPropertyDefinition( + PhysicalAddressIndex.class, + XmlElementNames.PostalAddressIndex, FieldUris.PostalAddressIndex, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Profession property. + */ + public static final PropertyDefinition Profession = + new StringPropertyDefinition( + XmlElementNames.Profession, FieldUris.Profession, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the SpouseName property. + */ + public static final PropertyDefinition SpouseName = + new StringPropertyDefinition( + XmlElementNames.SpouseName, FieldUris.SpouseName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Surname property. + */ + public static final PropertyDefinition Surname = + new StringPropertyDefinition( + XmlElementNames.Surname, FieldUris.Surname, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the WeddingAnniversary property. + */ + public static final PropertyDefinition WeddingAnniversary = + new DateTimePropertyDefinition( + XmlElementNames.WeddingAnniversary, FieldUris.WeddingAnniversary, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the HasPicture property. + */ + public static final PropertyDefinition HasPicture = + new BoolPropertyDefinition( + XmlElementNames.HasPicture, FieldUris.HasPicture, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010); + /** + * Defines PhoeniticFullName property ** + */ + + public static final PropertyDefinition PhoneticFullName = + new StringPropertyDefinition( + XmlElementNames.PhoneticFullName, + FieldUris.PhoneticFullName, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines PhoenticFirstName property ** + */ + + public static final PropertyDefinition PhoneticFirstName = + new StringPropertyDefinition( + XmlElementNames.PhoneticFirstName, + FieldUris.PhoneticFirstName, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines PhoneticLastName Property ** + */ + + public static final PropertyDefinition PhoneticLastName = + new StringPropertyDefinition( + XmlElementNames.PhoneticLastName, + FieldUris.PhoneticLastName, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the Alias Property ** + */ + + public static final PropertyDefinition Alias = + new StringPropertyDefinition( + XmlElementNames.Alias, + FieldUris.Alias, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + + /** + * Defines the Notes Property ** + */ + + public static final PropertyDefinition Notes = + new StringPropertyDefinition( + XmlElementNames.Notes, + FieldUris.Notes, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines Photo Property ** + */ + + public static final PropertyDefinition Photo = + new ByteArrayPropertyDefinition( + XmlElementNames.Photo, + FieldUris.Photo, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines UserSMIMECertificate Property ** + */ + + public static final PropertyDefinition UserSMIMECertificate = + new ComplexPropertyDefinition( + ByteArrayArray.class, + XmlElementNames.UserSMIMECertificate, + FieldUris.UserSMIMECertificate, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public ByteArrayArray createComplexProperty() { + return new ByteArrayArray(); + } + }); + + /** + * Defines MSExchangeCertificate Property ** + */ + + public static PropertyDefinition MSExchangeCertificate = + new ComplexPropertyDefinition( + ByteArrayArray.class, + XmlElementNames.MSExchangeCertificate, + FieldUris.MSExchangeCertificate, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public ByteArrayArray createComplexProperty() { + return new ByteArrayArray(); + } + }); + + + /** + * Defines DirectoryId Property ** + */ + + public static PropertyDefinition DirectoryId = + new StringPropertyDefinition( + XmlElementNames.DirectoryId, + FieldUris.DirectoryId, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines ManagerMailbox Property ** + */ + + public static PropertyDefinition ManagerMailbox = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.ManagerMailbox, + FieldUris.ManagerMailbox, + XmlElementNames.Mailbox, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + /** + * Defines DirectReports Property ** + */ + + public static PropertyDefinition DirectReports = + new ComplexPropertyDefinition( + EmailAddressCollection.class, + XmlElementNames.DirectReports, + FieldUris.DirectReports, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddressCollection createComplexProperty() + + { + return new EmailAddressCollection(); + } + }); + + + + /** + * Defines the EmailAddress1 property. + */ + public static final IndexedPropertyDefinition EmailAddress1 = + new IndexedPropertyDefinition( + FieldUris.EmailAddress, "EmailAddress1"); + + /** + * Defines the EmailAddress2 property. + */ + public static final IndexedPropertyDefinition EmailAddress2 = + new IndexedPropertyDefinition( + FieldUris.EmailAddress, "EmailAddress2"); + + /** + * Defines the EmailAddress3 property. + */ + public static final IndexedPropertyDefinition EmailAddress3 = + new IndexedPropertyDefinition( + FieldUris.EmailAddress, "EmailAddress3"); + + /** + * Defines the ImAddress1 property. + */ + public static final IndexedPropertyDefinition ImAddress1 = + new IndexedPropertyDefinition( + FieldUris.ImAddress, "ImAddress1"); + + /** + * Defines the ImAddress2 property. + */ + public static final IndexedPropertyDefinition ImAddress2 = + new IndexedPropertyDefinition( + FieldUris.ImAddress, "ImAddress2"); + + /** + * Defines the ImAddress3 property. + */ + public static final IndexedPropertyDefinition ImAddress3 = + new IndexedPropertyDefinition( + FieldUris.ImAddress, "ImAddress3"); + + /** + * Defines the AssistentPhone property. + */ + public static final IndexedPropertyDefinition AssistantPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "AssistantPhone"); + + /** + * Defines the BusinessFax property. + */ + public static final IndexedPropertyDefinition BusinessFax = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "BusinessFax"); + + /** + * Defines the BusinessPhone property. + */ + public static final IndexedPropertyDefinition BusinessPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "BusinessPhone"); + + /** + * Defines the BusinessPhone2 property. + */ + public static final IndexedPropertyDefinition BusinessPhone2 = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "BusinessPhone2"); + + /** + * Defines the Callback property. + */ + public static final IndexedPropertyDefinition Callback = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "Callback"); + + /** + * Defines the CarPhone property. + */ + public static final IndexedPropertyDefinition CarPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "CarPhone"); + + /** + * Defines the CompanyMainPhone property. + */ + public static final IndexedPropertyDefinition CompanyMainPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "CompanyMainPhone"); + + /** + * Defines the HomeFax property. + */ + public static final IndexedPropertyDefinition HomeFax = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "HomeFax"); + + /** + * Defines the HomePhone property. + */ + public static final IndexedPropertyDefinition HomePhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "HomePhone"); + + /** + * Defines the HomePhone2 property. + */ + public static final IndexedPropertyDefinition HomePhone2 = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "HomePhone2"); + + /** + * Defines the Isdn property. + */ + public static final IndexedPropertyDefinition Isdn = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "Isdn"); + + /** + * Defines the MobilePhone property. + */ + public static final IndexedPropertyDefinition MobilePhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "MobilePhone"); + + /** + * Defines the OtherFax property. + */ + public static final IndexedPropertyDefinition OtherFax = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "OtherFax"); + + /** + * Defines the OtherTelephone property. + */ + public static final IndexedPropertyDefinition OtherTelephone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "OtherTelephone"); + + /** + * Defines the Pager property. + */ + public static final IndexedPropertyDefinition Pager = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "Pager"); + + /** + * Defines the PrimaryPhone property. + */ + public static final IndexedPropertyDefinition PrimaryPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "PrimaryPhone"); + + /** + * Defines the RadioPhone property. + */ + public static final IndexedPropertyDefinition RadioPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "RadioPhone"); + + /** + * Defines the Telex property. + */ + public static final IndexedPropertyDefinition Telex = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "Telex"); + + /** + * Defines the TtyTddPhone property. + */ + public static final IndexedPropertyDefinition TtyTddPhone = + new IndexedPropertyDefinition( + FieldUris.PhoneNumber, "TtyTddPhone"); + + /** + * Defines the BusinessAddressStreet property. + */ + public static final IndexedPropertyDefinition BusinessAddressStreet = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressStreet, "Business"); + + /** + * Defines the BusinessAddressCity property. + */ + public static final IndexedPropertyDefinition BusinessAddressCity = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCity, "Business"); + + /** + * Defines the BusinessAddressState property. + */ + public static final IndexedPropertyDefinition BusinessAddressState = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressState, "Business"); + + /** + * Defines the BusinessAddressCountryOrRegion property. + */ + public static final IndexedPropertyDefinition + BusinessAddressCountryOrRegion = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCountryOrRegion, "Business"); + + /** + * Defines the BusinessAddressPostalCode property. + */ + public static final IndexedPropertyDefinition BusinessAddressPostalCode = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressPostalCode, "Business"); + + /** + * Defines the HomeAddressStreet property. + */ + public static final IndexedPropertyDefinition HomeAddressStreet = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressStreet, "Home"); + + /** + * Defines the HomeAddressCity property. + */ + public static final IndexedPropertyDefinition HomeAddressCity = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCity, "Home"); + + /** + * Defines the HomeAddressState property. + */ + public static final IndexedPropertyDefinition HomeAddressState = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressState, "Home"); + + /** + * Defines the HomeAddressCountryOrRegion property. + */ + public static final IndexedPropertyDefinition HomeAddressCountryOrRegion = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCountryOrRegion, "Home"); + + /** + * Defines the HomeAddressPostalCode property. + */ + public static final IndexedPropertyDefinition HomeAddressPostalCode = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressPostalCode, "Home"); + + /** + * Defines the OtherAddressStreet property. + */ + public static final IndexedPropertyDefinition OtherAddressStreet = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressStreet, "Other"); + + /** + * Defines the OtherAddressCity property. + */ + public static final IndexedPropertyDefinition OtherAddressCity = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCity, "Other"); + + /** + * Defines the OtherAddressState property. + */ + public static final IndexedPropertyDefinition OtherAddressState = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressState, "Other"); + + /** + * Defines the OtherAddressCountryOrRegion property. + */ + public static final IndexedPropertyDefinition OtherAddressCountryOrRegion = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressCountryOrRegion, "Other"); + + /** + * Defines the OtherAddressPostalCode property. + */ + public static final IndexedPropertyDefinition OtherAddressPostalCode = + new IndexedPropertyDefinition( + FieldUris.PhysicalAddressPostalCode, "Other"); + + // This must be declared after the property definitions + /** + * The Constant Instance. + */ + protected static final ContactSchema Instance = new ContactSchema(); + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(FileAs); + this.registerProperty(FileAsMapping); + this.registerProperty(DisplayName); + this.registerProperty(GivenName); + this.registerProperty(Initials); + this.registerProperty(MiddleName); + this.registerProperty(NickName); + this.registerProperty(CompleteName); + this.registerProperty(CompanyName); + this.registerProperty(EmailAddresses); + this.registerProperty(PhysicalAddresses); + this.registerProperty(PhoneNumbers); + this.registerProperty(AssistantName); + this.registerProperty(Birthday); + this.registerProperty(BusinessHomePage); + this.registerProperty(Children); + this.registerProperty(Companies); + this.registerProperty(ContactSource); + this.registerProperty(Department); + this.registerProperty(Generation); + this.registerProperty(ImAddresses); + this.registerProperty(JobTitle); + this.registerProperty(Manager); + this.registerProperty(Mileage); + this.registerProperty(OfficeLocation); + this.registerProperty(PostalAddressIndex); + this.registerProperty(Profession); + this.registerProperty(SpouseName); + this.registerProperty(Surname); + this.registerProperty(WeddingAnniversary); + this.registerProperty(HasPicture); + this.registerProperty(PhoneticFullName); + this.registerProperty(PhoneticFirstName); + this.registerProperty(PhoneticLastName); + this.registerProperty(Alias); + this.registerProperty(Notes); + this.registerProperty(Photo); + this.registerProperty(UserSMIMECertificate); + this.registerProperty(MSExchangeCertificate); + this.registerProperty(DirectoryId); + this.registerProperty(ManagerMailbox); + this.registerProperty(DirectReports); + + this.registerIndexedProperty(EmailAddress1); + this.registerIndexedProperty(EmailAddress2); + this.registerIndexedProperty(EmailAddress3); + this.registerIndexedProperty(ImAddress1); + this.registerIndexedProperty(ImAddress2); + this.registerIndexedProperty(ImAddress3); + this.registerIndexedProperty(AssistantPhone); + this.registerIndexedProperty(BusinessFax); + this.registerIndexedProperty(BusinessPhone); + this.registerIndexedProperty(BusinessPhone2); + this.registerIndexedProperty(Callback); + this.registerIndexedProperty(CarPhone); + this.registerIndexedProperty(CompanyMainPhone); + this.registerIndexedProperty(HomeFax); + this.registerIndexedProperty(HomePhone); + this.registerIndexedProperty(HomePhone2); + this.registerIndexedProperty(Isdn); + this.registerIndexedProperty(MobilePhone); + this.registerIndexedProperty(OtherFax); + this.registerIndexedProperty(OtherTelephone); + this.registerIndexedProperty(Pager); + this.registerIndexedProperty(PrimaryPhone); + this.registerIndexedProperty(RadioPhone); + this.registerIndexedProperty(Telex); + this.registerIndexedProperty(TtyTddPhone); + this.registerIndexedProperty(BusinessAddressStreet); + this.registerIndexedProperty(BusinessAddressCity); + this.registerIndexedProperty(BusinessAddressState); + this.registerIndexedProperty(BusinessAddressCountryOrRegion); + this.registerIndexedProperty(BusinessAddressPostalCode); + this.registerIndexedProperty(HomeAddressStreet); + this.registerIndexedProperty(HomeAddressCity); + this.registerIndexedProperty(HomeAddressState); + this.registerIndexedProperty(HomeAddressCountryOrRegion); + this.registerIndexedProperty(HomeAddressPostalCode); + this.registerIndexedProperty(OtherAddressStreet); + this.registerIndexedProperty(OtherAddressCity); + this.registerIndexedProperty(OtherAddressState); + this.registerIndexedProperty(OtherAddressCountryOrRegion); + this.registerIndexedProperty(OtherAddressPostalCode); + + } + + /** + * Instantiates a new contact schema. + */ + ContactSchema() { + super(); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java index ec137465f..a03be07ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java @@ -14,12 +14,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the source of a contact or group. */ public enum ContactSource { - // The contact or group is stored in the Global Address List - /** The Active directory. */ - ActiveDirectory, + // The contact or group is stored in the Global Address List + /** + * The Active directory. + */ + ActiveDirectory, - // The contact or group is stored in Exchange. - /** The Store. */ - Store + // The contact or group is stored in Exchange. + /** + * The Store. + */ + Store } diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java index 181751563..2801e864d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java @@ -11,111 +11,95 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a folder containing contacts. + * Represents a folder containing contacts. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.ContactsFolder) public class ContactsFolder extends Folder { - /** - * Initializes an unsaved local instance of the class.To bind to an - * existing contacts folder, use ContactsFolder.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public ContactsFolder(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of the class.To bind to an + * existing contacts folder, use ContactsFolder.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + public ContactsFolder(ExchangeService service) throws Exception { + super(service); + } - /** - * Binds to an existing contacts folder and loads the specified set of - * properties. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A ContactsFolder instance representing the contacts folder - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static ContactsFolder bind(ExchangeService service, FolderId id, - PropertySet propertySet) throws Exception { - return service.bindToFolder(ContactsFolder.class, id, propertySet); - } + /** + * Binds to an existing contacts folder and loads the specified set of + * properties. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A ContactsFolder instance representing the contacts folder + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static ContactsFolder bind(ExchangeService service, FolderId id, + PropertySet propertySet) throws Exception { + return service.bindToFolder(ContactsFolder.class, id, propertySet); + } - /** - * Binds to an existing contacts folder and loads its first class - * properties. - * - * @param service - * the service - * @param id - * the id - * @return A ContactsFolder instance representing the contacts folder - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static ContactsFolder bind(ExchangeService service, FolderId id) - throws Exception { - return ContactsFolder.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing contacts folder and loads its first class + * properties. + * + * @param service the service + * @param id the id + * @return A ContactsFolder instance representing the contacts folder + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static ContactsFolder bind(ExchangeService service, FolderId id) + throws Exception { + return ContactsFolder.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Binds to an existing contacts folder and loads the specified set of - * properties. - * - * @param service - * the service - * @param name - * the name - * @param propertySet - * the property set - * @return A ContactsFolder instance representing the contacts folder - * corresponding to the specified name. - * @throws Exception - * the exception - */ - public static ContactsFolder bind(ExchangeService service, - WellKnownFolderName name, PropertySet propertySet) - throws Exception { - return ContactsFolder.bind(service, new FolderId(name), propertySet); - } + /** + * Binds to an existing contacts folder and loads the specified set of + * properties. + * + * @param service the service + * @param name the name + * @param propertySet the property set + * @return A ContactsFolder instance representing the contacts folder + * corresponding to the specified name. + * @throws Exception the exception + */ + public static ContactsFolder bind(ExchangeService service, + WellKnownFolderName name, PropertySet propertySet) + throws Exception { + return ContactsFolder.bind(service, new FolderId(name), propertySet); + } - /** - * Binds to an existing contacts folder and loads its first class - * properties. - * - * @param service - * the service - * @param name - * the name - * @return A ContactsFolder instance representing the contacts folder - * corresponding to the specified name. - * @throws Exception - * the exception - */ - public static ContactsFolder bind(ExchangeService service, - WellKnownFolderName name) throws Exception { - return ContactsFolder.bind(service, new FolderId(name), PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing contacts folder and loads its first class + * properties. + * + * @param service the service + * @param name the name + * @return A ContactsFolder instance representing the contacts folder + * corresponding to the specified name. + * @throws Exception the exception + */ + public static ContactsFolder bind(ExchangeService service, + WellKnownFolderName name) throws Exception { + return ContactsFolder.bind(service, new FolderId(name), PropertySet + .getFirstClassProperties()); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index 3e0a575ce..5a90ef1f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -14,92 +14,79 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents contained property definition. - * - * - * @param - * The type of the complex property. + * + * @param The type of the complex property. */ class ContainedPropertyDefinition - extends ComplexPropertyDefinition { + extends ComplexPropertyDefinition { - private Class instance; - /** The contained xml element name. */ - private String containedXmlElementName; + private Class instance; + /** + * The contained xml element name. + */ + private String containedXmlElementName; - /** - * Initializes a new instance of. ContainedPropertyDefinition - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param containedXmlElementName - * Name of the contained XML element. - * @param flags - * The flags. - * @param version - * The version. - * @param propertyCreationDelegate - * Delegate used to create instances of ComplexProperty. - */ - protected ContainedPropertyDefinition( - Class cls, - String xmlElementName, - String uri, - String containedXmlElementName, - EnumSet flags, - ExchangeVersion version, - ICreateComplexPropertyDelegate - propertyCreationDelegate) { - super(cls, xmlElementName, uri, flags, version, - propertyCreationDelegate); - this.containedXmlElementName = containedXmlElementName; - } + /** + * Initializes a new instance of. ContainedPropertyDefinition + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param containedXmlElementName Name of the contained XML element. + * @param flags The flags. + * @param version The version. + * @param propertyCreationDelegate Delegate used to create instances of ComplexProperty. + */ + protected ContainedPropertyDefinition( + Class cls, + String xmlElementName, + String uri, + String containedXmlElementName, + EnumSet flags, + ExchangeVersion version, + ICreateComplexPropertyDelegate + propertyCreationDelegate) { + super(cls, xmlElementName, uri, flags, version, + propertyCreationDelegate); + this.containedXmlElementName = containedXmlElementName; + } - /** - * Load from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - @Override - protected void internalLoadFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - reader.readStartElement(XmlNamespace.Types, - this.containedXmlElementName); - super.internalLoadFromXml(reader, propertyBag); - reader.readEndElementIfNecessary(XmlNamespace.Types, - this.containedXmlElementName); + /** + * Load from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + @Override + protected void internalLoadFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + reader.readStartElement(XmlNamespace.Types, + this.containedXmlElementName); + super.internalLoadFromXml(reader, propertyBag); + reader.readEndElementIfNecessary(XmlNamespace.Types, + this.containedXmlElementName); - } + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - * @throws Exception - * the exception - */ - @Override - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + * @throws Exception the exception + */ + @Override + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { - Object o = propertyBag.getObjectFromPropertyDefinition(this); - if (o instanceof ComplexProperty) { - ComplexProperty complexProperty = (ComplexProperty)o; - writer.writeStartElement(XmlNamespace.Types, this.getXmlElement()); - complexProperty.writeToXml(writer, this.containedXmlElementName); - writer.writeEndElement(); // this.XmlElementName - } - } + Object o = propertyBag.getObjectFromPropertyDefinition(this); + if (o instanceof ComplexProperty) { + ComplexProperty complexProperty = (ComplexProperty) o; + writer.writeStartElement(XmlNamespace.Types, this.getXmlElement()); + complexProperty.writeToXml(writer, this.containedXmlElementName); + writer.writeEndElement(); // this.XmlElementName + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java index 511679be6..e2aa2a5b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java @@ -15,25 +15,35 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ContainmentMode { - // The comparison is between the full string and the constant. The property - // value and the supplied constant are precisely the same. - /** The Full string. */ - FullString, + // The comparison is between the full string and the constant. The property + // value and the supplied constant are precisely the same. + /** + * The Full string. + */ + FullString, - // The comparison is between the string prefix and the constant. - /** The Prefixed. */ - Prefixed, + // The comparison is between the string prefix and the constant. + /** + * The Prefixed. + */ + Prefixed, - // The comparison is between a substring of the string and the constant. - /** The Substring. */ - Substring, + // The comparison is between a substring of the string and the constant. + /** + * The Substring. + */ + Substring, - // The comparison is between a prefix on individual words in the string and - // the constant. - /** The Prefix on words. */ - PrefixOnWords, + // The comparison is between a prefix on individual words in the string and + // the constant. + /** + * The Prefix on words. + */ + PrefixOnWords, - // The comparison is between an exact phrase in the string and the constant. - /** The Exact phrase. */ - ExactPhrase + // The comparison is between an exact phrase in the string and the constant. + /** + * The Exact phrase. + */ + ExactPhrase } diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index 0cae94fc4..57f5063fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -17,819 +17,869 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of Conversation related properties. - * Properties available on this object are defined + * Properties available on this object are defined * in the ConversationSchema class. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.Conversation) public class Conversation extends ServiceObject { - /** - * Initializes an unsaved local instance of Conversation. - * @param service The service - * The ExchangeService object to which the item will be bound. - * @throws Exception - */ - protected Conversation(ExchangeService service) throws Exception { - super(service); - } - - /** - * Internal method to return the schema associated with this type of object - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema(){ - return ConversationSchema.Instance; - } - - /** - * Gets the minimum required server version. - * @return Earliest Exchange version in which - * this service object type is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion(){ - return ExchangeVersion.Exchange2010_SP1; - } - - /** - * The property definition for the Id of this object. - * @return A PropertyDefinition instance. - */ - @Override - protected PropertyDefinition getIdPropertyDefinition(){ - return ConversationSchema.Id; - } - - /** - * This method is not supported in this object. - * Loads the specified set of properties on the object. - * @param propertySet The propertySet - * The properties to load. - */ - @Override - protected void internalLoad(PropertySet propertySet) { - throw new UnsupportedOperationException(); - } - - /** - * This is not supported in this object. - * Deletes the object. - * @param deleteMode The deleteMode - * The deletion mode. - * @param sendCancellationsMode The sendCancellationsMode - * Indicates whether meeting cancellation messages should be sent. - * @param affectedTaskOccurrences The affectedTaskOccurrences - * Indicate which occurrence of a recurring task should be deleted. - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) { - throw new UnsupportedOperationException(); - } - - /** - * This method is not supported in this object. - * Gets the name of the change XML element. - * @return XML element name - */ - @Override - protected String getChangeXmlElementName() { - throw new UnsupportedOperationException(); - } - - /** - * This method is not supported in this object. - * Gets the name of the delete field XML element. - * @return XML element name - */ - @Override - protected String getDeleteFieldXmlElementName(){ - throw new UnsupportedOperationException(); - } - - /** - * This method is not supported in this object. - * Gets the name of the set field XML element. - * @return XML element name - */ - @Override - protected String getSetFieldXmlElementName(){ - throw new UnsupportedOperationException(); - } - - /** - * This method is not supported in this object. - * Gets a value indicating whether a time zone - * SOAP header should be emitted in a CreateItem - * or UpdateItem request so this item can be property saved or updated. - * @param isUpdateOperation Indicates whether - * the operation being petrformed is an update operation. - * @return true if a time zone SOAP header - * should be emitted; otherwise, false. - */ - @Override - protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation){ - throw new UnsupportedOperationException(); - } - - /** - * This method is not supported in this object. - * Gets the extended properties collection. - * @return Extended properties collection. - */ - @Override - protected ExtendedPropertyCollection getExtendedProperties(){ - throw new UnsupportedOperationException(); - } - - /** Sets up a conversation so that any item - * received within that conversation is always categorized. - * Calling this method results in a call to EWS. - *@param categories The categories that should be stamped on items in the conversation. - *@param processSynchronously Indicates whether the method should - *return only once enabling this rule and stamping existing items - * in the conversation is completely done. - * If processSynchronously is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void enableAlwaysCategorizeItems(Iterable categories, - boolean processSynchronously) throws ServiceResponseException, - IndexOutOfBoundsException, Exception { - - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - - this.getService().enableAlwaysCategorizeItemsInConversations( - convArry, - categories, - processSynchronously).getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Sets up a conversation so that any item - * received within that conversation is no longer categorized. - * Calling this method results in a call to EWS. - * @param processSynchronously Indicates whether the method should - * return only once disabling this rule and - * removing the categories from existing items - * in the conversation is completely done. If processSynchronously - * is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void disableAlwaysCategorizeItems(boolean processSynchronously) - throws ServiceResponseException, IndexOutOfBoundsException, Exception { - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - this.getService().disableAlwaysCategorizeItemsInConversations( - convArry,processSynchronously). - getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Sets up a conversation so that any item received - * within that conversation is always moved to Deleted Items folder. - * Calling this method results in a call to EWS. - * @param processSynchronously Indicates whether the method should - * return only once enabling this rule and deleting existing items - * in the conversation is completely done. If processSynchronously - * is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void enableAlwaysDeleteItems(boolean processSynchronously) - throws ServiceResponseException, IndexOutOfBoundsException, Exception { - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - this.getService().enableAlwaysDeleteItemsInConversations( - convArry, - processSynchronously).getResponseAtIndex(0).throwIfNecessary(); - } - /** - * Sets up a conversation so that any item received within that - * conversation is no longer moved to Deleted Items folder. - * Calling this method results in a call to EWS. - * @param processSynchronously Indicates whether the method should return - * only once disabling this rule and restoring the items - * in the conversation is completely done. If processSynchronously - * is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void disableAlwaysDeleteItems(boolean processSynchronously) - throws ServiceResponseException, IndexOutOfBoundsException, Exception { - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - this.getService().disableAlwaysDeleteItemsInConversations( - convArry, - processSynchronously).getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Sets up a conversation so that any item received within - * that conversation is always moved to a specific folder. - * Calling this method results in a call to EWS. - * @param destinationFolderId The Id of the folder to which conversation items should be moved. - * @param processSynchronously Indicates whether the method should return only - * once enabling this rule - * and moving existing items in the conversation is completely done. - * If processSynchronously is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void enableAlwaysMoveItems(FolderId destinationFolderId, - boolean processSynchronously) throws ServiceResponseException, - IndexOutOfBoundsException, Exception { - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - this.getService().enableAlwaysMoveItemsInConversations( - convArry, - destinationFolderId, - processSynchronously).getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Sets up a conversation so that any item received within - * that conversation is no longer moved to a specific - * folder. Calling this method results in a call to EWS. - * @param processSynchronously Indicates whether the method should return only - * once disabling this - * rule is completely done. If processSynchronously - * is false, the method returns immediately. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void disableAlwaysMoveItemsInConversation(boolean processSynchronously) - throws ServiceResponseException, IndexOutOfBoundsException, Exception { - ArrayList convArry = new ArrayList(); - convArry.add(this.getId()); - this.getService().disableAlwaysMoveItemsInConversations( - convArry, - processSynchronously).getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Deletes items in the specified conversation. - * Calling this method results in a call to EWS. - * @param contextFolderId The Id of the folder items must belong - * to in order to be deleted. If contextFolderId is - * null, items across the entire mailbox are deleted. - * @param deleteMode The deletion mode. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void deleteItems(FolderId contextFolderId,DeleteMode deleteMode) - throws ServiceResponseException, IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); - m.put(this.getId(),this.getGlobalLastDeliveryTime()); - - List f = new ArrayList>(); - f.add(m); - - this.getService().deleteItemsInConversations( - f, - contextFolderId, - deleteMode).getResponseAtIndex(0).throwIfNecessary(); - } - - - /** - * Moves items in the specified conversation to a specific folder. - * Calling this method results in a call to EWS. - * @param contextFolderId The Id of the folder items must belong to - * in order to be moved. If contextFolderId is null, - * items across the entire mailbox are moved. - * @param destinationFolderId The Id of the destination folder. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void moveItemsInConversation( - FolderId contextFolderId, - FolderId destinationFolderId) throws ServiceResponseException, - IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); - m.put(this.getId(),this.getGlobalLastDeliveryTime()); - - List f = new ArrayList>(); - f.add(m); - - this.getService().moveItemsInConversations( - f,contextFolderId,destinationFolderId). - getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Copies items in the specified conversation to a specific folder. - * Calling this method results in a call to EWS. - * @param contextFolderId The Id of the folder items must belong to in - * order to be copied. If contextFolderId - * is null, items across the entire mailbox are copied. - * @param destinationFolderId The Id of the destination folder. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void copyItemsInConversation( - FolderId contextFolderId, - FolderId destinationFolderId) throws ServiceResponseException, - IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); - m.put(this.getId(),this.getGlobalLastDeliveryTime()); - - List f = new ArrayList>(); - f.add(m); - - this.getService().copyItemsInConversations( - f,contextFolderId, destinationFolderId). - getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Sets the read state of items in the specified conversation. - * Calling this method results in a call to EWS. - * @param contextFolderId The Id of the folder items must - * belong to in order for their read state to - * be set. If contextFolderId is null, the read states of - * items across the entire mailbox are set. - * @param isRead if set to true, conversation items are marked as read; - * otherwise they are marked as unread. - * @throws Exception - * @throws IndexOutOfBoundsException - * @throws ServiceResponseException - */ - public void setReadStateForItemsInConversation( - FolderId contextFolderId, - boolean isRead) throws ServiceResponseException, - IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); - m.put(this.getId(),this.getGlobalLastDeliveryTime()); - - List f = new ArrayList>(); - f.add(m); - - this.getService().setReadStateForItemsInConversations( - f,contextFolderId,isRead). - getResponseAtIndex(0).throwIfNecessary(); - } - - /** - * Gets the Id of this Conversation. - * @return Id - * @throws ServiceLocalException - */ - public ConversationId getId() throws ServiceLocalException { - return (ConversationId)this.getPropertyBag(). - getObjectFromPropertyDefinition(this.getIdPropertyDefinition()); - - } - - /** - * Gets the topic of this Conversation. - * @return value - * @throws ArgumentException - */ - public String getTopic() throws ArgumentException { - String returnValue = ""; - - /**This property need not be present hence the - * property bag may not contain it. - *Check for the presence of this property before accessing it. - */ - if (this.getPropertyBag().contains(ConversationSchema.Topic)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(String.class, - ConversationSchema.Topic, - out); - returnValue = out.getParam(); - } - - return returnValue; - } - - /** - * Gets a list of all the people who have received - * messages in this conversation in the current folder only. - * @return String - * @throws Exception - */ - public StringList getUniqueRecipients() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema.UniqueRecipients); - } - - /** - * Gets a list of all the people who have received - * messages in this conversation across all folders in the mailbox. - * @return String - * @throws Exception - */ - public StringList getGlobalUniqueRecipients() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema. - GlobalUniqueRecipients); - - } - - /** - * Gets a list of all the people who have sent messages - * that are currently unread in this conversation in - * the current folder only. - * @return unreadSenders - * @throws ArgumentException - */ - public StringList getUniqueUnreadSenders() throws ArgumentException { - StringList unreadSenders = null; - - /**This property need not be present hence - * the property bag may not contain it. - *Check for the presence of this property before accessing it. - */ - if (this.getPropertyBag().contains(ConversationSchema.UniqueUnreadSenders)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(StringList.class, - ConversationSchema.UniqueUnreadSenders, - out); - unreadSenders = out.getParam(); - } - - return unreadSenders; - } - - - /** - * Gets a list of all the people who have sent - * messages that are currently unread in this - * conversation across all folders in the mailbox. - * @return unreadSenders - * @throws ArgumentException - */ - public StringList getGlobalUniqueUnreadSenders() throws ArgumentException { - StringList unreadSenders = null; - - // This property need not be present hence - //the property bag may not contain it. - // Check for the presence of this property before accessing it. - if (this.getPropertyBag().contains(ConversationSchema.GlobalUniqueUnreadSenders)) - { - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(StringList.class, - ConversationSchema.GlobalUniqueUnreadSenders, - out); - unreadSenders = out.getParam(); - } - - return unreadSenders; - } - - /** - * Gets a list of all the people who have sent - * messages in this conversation in the current folder only. - * @return String - * @throws Exception - */ - public StringList getUniqueSenders() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema.UniqueSenders); - - } - - /** - * Gets a list of all the people who have sent messages - * in this conversation across all folders in the mailbox. - * @return String - * @throws Exception - */ - public StringList getGlobalUniqueSenders() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema.GlobalUniqueSenders); - } - - /** - * Gets the delivery time of the message that was last - * received in this conversation in the current folder only. - * @return Date - * @throws Exception - */ - public Date getLastDeliveryTime() throws Exception { - return (Date)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema.LastDeliveryTime); - - } - - /** - * Gets the delivery time of the message that was last - * received in this conversation across all folders in the mailbox. - * @return Date - * @throws Exception - */ - public Date getGlobalLastDeliveryTime() throws Exception { - - return (Date)this.getPropertyBag(). - getObjectFromPropertyDefinition(ConversationSchema. - GlobalLastDeliveryTime); - - } - - /** - * Gets a list summarizing the categories stamped on - * messages in this conversation, in the current folder only. - * @return value - * @throws ArgumentException - */ - public StringList getCategories() throws ArgumentException { - StringList returnValue = null; - - /**This property need not be present hence - * the property bag may not contain it. - * Check for the presence of this property before accessing it. - */ - if (this.getPropertyBag().contains(ConversationSchema.Categories)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(StringList.class, - ConversationSchema.Categories, - out); - returnValue = out.getParam(); - } - return returnValue; - } - - /** - * Gets a list summarizing the categories stamped on - * messages in this conversation, across all folders in the mailbox. - * @return returnValue - * @throws ArgumentException - */ - public StringList getGlobalCategories() throws ArgumentException { - StringList returnValue = null; - - // This property need not be present hence the - //property bag may not contain it. - // Check for the presence of this property before accessing it. - if (this.getPropertyBag().contains(ConversationSchema.GlobalCategories)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(StringList.class, - ConversationSchema.GlobalCategories, - out); - returnValue = out.getParam(); - } - return returnValue; - } - - /** - * Gets the flag status for this conversation, calculated - * by aggregating individual messages flag status in the current folder. - * @return returnValue - * @throws ArgumentException - */ - public ConversationFlagStatus getFlagStatus() throws ArgumentException { - ConversationFlagStatus returnValue = ConversationFlagStatus.NotFlagged; - - // This property need not be present hence the - //property bag may not contain it. - // Check for the presence of this property before accessing it. - if (this.getPropertyBag().contains(ConversationSchema.FlagStatus)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType( - ConversationFlagStatus.class, - ConversationSchema.FlagStatus, - out); - returnValue = out.getParam(); - } - - return returnValue; - } - - /** - * Gets the flag status for this conversation, calculated by aggregating - * individual messages flag status across all folders in the mailbox. - * @return returnValue - * @throws ArgumentException - */ - public ConversationFlagStatus getGlobalFlagStatus() - throws ArgumentException { - ConversationFlagStatus returnValue = ConversationFlagStatus.NotFlagged; - - // This property need not be present hence the - //property bag may not contain it. - // Check for the presence of this property before accessing it. - if (this.getPropertyBag().contains(ConversationSchema.GlobalFlagStatus)){ - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType( - ConversationFlagStatus.class, - ConversationSchema.GlobalFlagStatus, - out); - returnValue = out.getParam(); - } - - return returnValue; - } - - /** - * Gets a value indicating if at least one message in this - * conversation, in the current folder only, has an attachment. - * @return Value - * @throws ServiceLocalException - */ - public boolean getHasAttachments() throws ServiceLocalException { - return ((Boolean)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.HasAttachments)).booleanValue(); - } - - /** - * Gets a value indicating if at least one message - * in this conversation, across all folders in the mailbox, - * has an attachment. - * @return boolean - * @throws ServiceLocalException - */ - public boolean getGlobalHasAttachments() throws ServiceLocalException { - return ((Boolean)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalHasAttachments)).booleanValue(); - - } - - /** - * Gets the total number of messages in this conversation - * in the current folder only. - * @return integer - * @throws ServiceLocalException - */ - public int getMessageCount() throws ServiceLocalException { - return ((Integer)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.MessageCount)).intValue(); - } - - /** - * Gets the total number of messages in this - * conversation across all folders in the mailbox. - * @return integer - * @throws ServiceLocalException - */ - public int getGlobalMessageCount() throws ServiceLocalException { - - return ((Integer)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalMessageCount)).intValue(); - - } - - /** - * Gets the total number of unread messages in this - * conversation in the current folder only. - * @return returnValue - * @throws ArgumentException - */ - public int getUnreadCount() throws ArgumentException { - int returnValue = 0; - - /**This property need not be present hence the - * property bag may not contain it. - * Check for the presence of this property before accessing it. - */ - if (this.getPropertyBag().contains(ConversationSchema.UnreadCount)) { - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(Integer.class, - ConversationSchema.UnreadCount, - out); - returnValue = out.getParam().intValue(); - } - - return returnValue; - } - - /** - * Gets the total number of unread messages in this - * conversation across all folders in the mailbox. - * @return returnValue - * @throws ArgumentException - */ - public int getGlobalUnreadCount() throws ArgumentException { - int returnValue = 0; - - if (this.getPropertyBag().contains(ConversationSchema.GlobalUnreadCount)) { - OutParam out = new OutParam(); - this.getPropertyBag().tryGetPropertyType(Integer.class, - ConversationSchema.GlobalUnreadCount, - out); - returnValue = out.getParam().intValue(); - } - return returnValue; - - } - - - /** - * Gets the size of this conversation, calculated by - * adding the sizes of all messages in the conversation in - * the current folder only. - * @return integer - * @throws ServiceLocalException - */ - public int getSize() throws ServiceLocalException { - return ((Integer)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.Size)).intValue(); - } - - /** - * Gets the size of this conversation, calculated by - * adding the sizes of all messages in the conversation - * across all folders in the mailbox. - * @return integer - * @throws ServiceLocalException - */ - public int getGlobalSize() throws ServiceLocalException { - return ((Integer)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalSize)).intValue(); - } - - /** - * Gets a list summarizing the classes of the items - * in this conversation, in the current folder only. - * @return string - * @throws Exception - */ - public StringList getItemClasses() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.ItemClasses); - } - - /** - * Gets a list summarizing the classes of the items - * in this conversation, across all folders in the mailbox. - * @return string - * @throws Exception - */ - public StringList getGlobalItemClasses() throws Exception { - return (StringList)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalItemClasses); - - } - - /** - * Gets the importance of this conversation, calculated by - * aggregating individual messages importance in the current folder only. - * @return important - * @throws Exception - */ - public Importance getImportance() throws Exception { - return (Importance)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.Importance); - } - - /** - * Gets the importance of this conversation, calculated by - * aggregating individual messages importance across all - * folders in the mailbox. - * @return important - * @throws Exception - */ - public Importance getGlobalImportance() throws Exception { - return (Importance)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalImportance); - } - - /** - * Gets the Ids of the messages in this conversation, - * in the current folder only. - * @return Id - * @throws Exception - */ - public ItemIdCollection getItemIds() throws Exception { - return (ItemIdCollection)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.ItemIds); - } - - /** - * Gets the Ids of the messages in this conversation, - * across all folders in the mailbox. - * @return Id - * @throws Exception - */ - public ItemIdCollection getGlobalItemIds() throws Exception { - return (ItemIdCollection)this.getPropertyBag(). - getObjectFromPropertyDefinition( - ConversationSchema.GlobalItemIds); - } + /** + * Initializes an unsaved local instance of Conversation. + * + * @param service The service + * The ExchangeService object to which the item will be bound. + * @throws Exception + */ + protected Conversation(ExchangeService service) throws Exception { + super(service); + } + + /** + * Internal method to return the schema associated with this type of object + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ConversationSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which + * this service object type is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * The property definition for the Id of this object. + * + * @return A PropertyDefinition instance. + */ + @Override + protected PropertyDefinition getIdPropertyDefinition() { + return ConversationSchema.Id; + } + + /** + * This method is not supported in this object. + * Loads the specified set of properties on the object. + * + * @param propertySet The propertySet + * The properties to load. + */ + @Override + protected void internalLoad(PropertySet propertySet) { + throw new UnsupportedOperationException(); + } + + /** + * This is not supported in this object. + * Deletes the object. + * + * @param deleteMode The deleteMode + * The deletion mode. + * @param sendCancellationsMode The sendCancellationsMode + * Indicates whether meeting cancellation messages should be sent. + * @param affectedTaskOccurrences The affectedTaskOccurrences + * Indicate which occurrence of a recurring task should be deleted. + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) { + throw new UnsupportedOperationException(); + } + + /** + * This method is not supported in this object. + * Gets the name of the change XML element. + * + * @return XML element name + */ + @Override + protected String getChangeXmlElementName() { + throw new UnsupportedOperationException(); + } + + /** + * This method is not supported in this object. + * Gets the name of the delete field XML element. + * + * @return XML element name + */ + @Override + protected String getDeleteFieldXmlElementName() { + throw new UnsupportedOperationException(); + } + + /** + * This method is not supported in this object. + * Gets the name of the set field XML element. + * + * @return XML element name + */ + @Override + protected String getSetFieldXmlElementName() { + throw new UnsupportedOperationException(); + } + + /** + * This method is not supported in this object. + * Gets a value indicating whether a time zone + * SOAP header should be emitted in a CreateItem + * or UpdateItem request so this item can be property saved or updated. + * + * @param isUpdateOperation Indicates whether + * the operation being petrformed is an update operation. + * @return true if a time zone SOAP header + * should be emitted; otherwise, false. + */ + @Override + protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) { + throw new UnsupportedOperationException(); + } + + /** + * This method is not supported in this object. + * Gets the extended properties collection. + * + * @return Extended properties collection. + */ + @Override + protected ExtendedPropertyCollection getExtendedProperties() { + throw new UnsupportedOperationException(); + } + + /** + * Sets up a conversation so that any item + * received within that conversation is always categorized. + * Calling this method results in a call to EWS. + * + * @param categories The categories that should be stamped on items in the conversation. + * @param processSynchronously Indicates whether the method should + * return only once enabling this rule and stamping existing items + * in the conversation is completely done. + * If processSynchronously is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void enableAlwaysCategorizeItems(Iterable categories, + boolean processSynchronously) throws ServiceResponseException, + IndexOutOfBoundsException, Exception { + + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + + this.getService().enableAlwaysCategorizeItemsInConversations( + convArry, + categories, + processSynchronously).getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets up a conversation so that any item + * received within that conversation is no longer categorized. + * Calling this method results in a call to EWS. + * + * @param processSynchronously Indicates whether the method should + * return only once disabling this rule and + * removing the categories from existing items + * in the conversation is completely done. If processSynchronously + * is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void disableAlwaysCategorizeItems(boolean processSynchronously) + throws ServiceResponseException, IndexOutOfBoundsException, Exception { + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + this.getService().disableAlwaysCategorizeItemsInConversations( + convArry, processSynchronously). + getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets up a conversation so that any item received + * within that conversation is always moved to Deleted Items folder. + * Calling this method results in a call to EWS. + * + * @param processSynchronously Indicates whether the method should + * return only once enabling this rule and deleting existing items + * in the conversation is completely done. If processSynchronously + * is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void enableAlwaysDeleteItems(boolean processSynchronously) + throws ServiceResponseException, IndexOutOfBoundsException, Exception { + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + this.getService().enableAlwaysDeleteItemsInConversations( + convArry, + processSynchronously).getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets up a conversation so that any item received within that + * conversation is no longer moved to Deleted Items folder. + * Calling this method results in a call to EWS. + * + * @param processSynchronously Indicates whether the method should return + * only once disabling this rule and restoring the items + * in the conversation is completely done. If processSynchronously + * is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void disableAlwaysDeleteItems(boolean processSynchronously) + throws ServiceResponseException, IndexOutOfBoundsException, Exception { + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + this.getService().disableAlwaysDeleteItemsInConversations( + convArry, + processSynchronously).getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets up a conversation so that any item received within + * that conversation is always moved to a specific folder. + * Calling this method results in a call to EWS. + * + * @param destinationFolderId The Id of the folder to which conversation items should be moved. + * @param processSynchronously Indicates whether the method should return only + * once enabling this rule + * and moving existing items in the conversation is completely done. + * If processSynchronously is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void enableAlwaysMoveItems(FolderId destinationFolderId, + boolean processSynchronously) throws ServiceResponseException, + IndexOutOfBoundsException, Exception { + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + this.getService().enableAlwaysMoveItemsInConversations( + convArry, + destinationFolderId, + processSynchronously).getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets up a conversation so that any item received within + * that conversation is no longer moved to a specific + * folder. Calling this method results in a call to EWS. + * + * @param processSynchronously Indicates whether the method should return only + * once disabling this + * rule is completely done. If processSynchronously + * is false, the method returns immediately. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void disableAlwaysMoveItemsInConversation(boolean processSynchronously) + throws ServiceResponseException, IndexOutOfBoundsException, Exception { + ArrayList convArry = new ArrayList(); + convArry.add(this.getId()); + this.getService().disableAlwaysMoveItemsInConversations( + convArry, + processSynchronously).getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Deletes items in the specified conversation. + * Calling this method results in a call to EWS. + * + * @param contextFolderId The Id of the folder items must belong + * to in order to be deleted. If contextFolderId is + * null, items across the entire mailbox are deleted. + * @param deleteMode The deletion mode. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void deleteItems(FolderId contextFolderId, DeleteMode deleteMode) + throws ServiceResponseException, IndexOutOfBoundsException, Exception { + HashMap m = new HashMap(); + m.put(this.getId(), this.getGlobalLastDeliveryTime()); + + List f = new ArrayList>(); + f.add(m); + + this.getService().deleteItemsInConversations( + f, + contextFolderId, + deleteMode).getResponseAtIndex(0).throwIfNecessary(); + } + + + /** + * Moves items in the specified conversation to a specific folder. + * Calling this method results in a call to EWS. + * + * @param contextFolderId The Id of the folder items must belong to + * in order to be moved. If contextFolderId is null, + * items across the entire mailbox are moved. + * @param destinationFolderId The Id of the destination folder. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void moveItemsInConversation( + FolderId contextFolderId, + FolderId destinationFolderId) throws ServiceResponseException, + IndexOutOfBoundsException, Exception { + HashMap m = new HashMap(); + m.put(this.getId(), this.getGlobalLastDeliveryTime()); + + List f = new ArrayList>(); + f.add(m); + + this.getService().moveItemsInConversations( + f, contextFolderId, destinationFolderId). + getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Copies items in the specified conversation to a specific folder. + * Calling this method results in a call to EWS. + * + * @param contextFolderId The Id of the folder items must belong to in + * order to be copied. If contextFolderId + * is null, items across the entire mailbox are copied. + * @param destinationFolderId The Id of the destination folder. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void copyItemsInConversation( + FolderId contextFolderId, + FolderId destinationFolderId) throws ServiceResponseException, + IndexOutOfBoundsException, Exception { + HashMap m = new HashMap(); + m.put(this.getId(), this.getGlobalLastDeliveryTime()); + + List f = new ArrayList>(); + f.add(m); + + this.getService().copyItemsInConversations( + f, contextFolderId, destinationFolderId). + getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Sets the read state of items in the specified conversation. + * Calling this method results in a call to EWS. + * + * @param contextFolderId The Id of the folder items must + * belong to in order for their read state to + * be set. If contextFolderId is null, the read states of + * items across the entire mailbox are set. + * @param isRead if set to true, conversation items are marked as read; + * otherwise they are marked as unread. + * @throws Exception + * @throws IndexOutOfBoundsException + * @throws ServiceResponseException + */ + public void setReadStateForItemsInConversation( + FolderId contextFolderId, + boolean isRead) throws ServiceResponseException, + IndexOutOfBoundsException, Exception { + HashMap m = new HashMap(); + m.put(this.getId(), this.getGlobalLastDeliveryTime()); + + List f = new ArrayList>(); + f.add(m); + + this.getService().setReadStateForItemsInConversations( + f, contextFolderId, isRead). + getResponseAtIndex(0).throwIfNecessary(); + } + + /** + * Gets the Id of this Conversation. + * + * @return Id + * @throws ServiceLocalException + */ + public ConversationId getId() throws ServiceLocalException { + return (ConversationId) this.getPropertyBag(). + getObjectFromPropertyDefinition(this.getIdPropertyDefinition()); + + } + + /** + * Gets the topic of this Conversation. + * + * @return value + * @throws ArgumentException + */ + public String getTopic() throws ArgumentException { + String returnValue = ""; + + /**This property need not be present hence the + * property bag may not contain it. + *Check for the presence of this property before accessing it. + */ + if (this.getPropertyBag().contains(ConversationSchema.Topic)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(String.class, + ConversationSchema.Topic, + out); + returnValue = out.getParam(); + } + + return returnValue; + } + + /** + * Gets a list of all the people who have received + * messages in this conversation in the current folder only. + * + * @return String + * @throws Exception + */ + public StringList getUniqueRecipients() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema.UniqueRecipients); + } + + /** + * Gets a list of all the people who have received + * messages in this conversation across all folders in the mailbox. + * + * @return String + * @throws Exception + */ + public StringList getGlobalUniqueRecipients() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema. + GlobalUniqueRecipients); + + } + + /** + * Gets a list of all the people who have sent messages + * that are currently unread in this conversation in + * the current folder only. + * + * @return unreadSenders + * @throws ArgumentException + */ + public StringList getUniqueUnreadSenders() throws ArgumentException { + StringList unreadSenders = null; + + /**This property need not be present hence + * the property bag may not contain it. + *Check for the presence of this property before accessing it. + */ + if (this.getPropertyBag().contains(ConversationSchema.UniqueUnreadSenders)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(StringList.class, + ConversationSchema.UniqueUnreadSenders, + out); + unreadSenders = out.getParam(); + } + + return unreadSenders; + } + + + /** + * Gets a list of all the people who have sent + * messages that are currently unread in this + * conversation across all folders in the mailbox. + * + * @return unreadSenders + * @throws ArgumentException + */ + public StringList getGlobalUniqueUnreadSenders() throws ArgumentException { + StringList unreadSenders = null; + + // This property need not be present hence + //the property bag may not contain it. + // Check for the presence of this property before accessing it. + if (this.getPropertyBag().contains(ConversationSchema.GlobalUniqueUnreadSenders)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(StringList.class, + ConversationSchema.GlobalUniqueUnreadSenders, + out); + unreadSenders = out.getParam(); + } + + return unreadSenders; + } + + /** + * Gets a list of all the people who have sent + * messages in this conversation in the current folder only. + * + * @return String + * @throws Exception + */ + public StringList getUniqueSenders() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema.UniqueSenders); + + } + + /** + * Gets a list of all the people who have sent messages + * in this conversation across all folders in the mailbox. + * + * @return String + * @throws Exception + */ + public StringList getGlobalUniqueSenders() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema.GlobalUniqueSenders); + } + + /** + * Gets the delivery time of the message that was last + * received in this conversation in the current folder only. + * + * @return Date + * @throws Exception + */ + public Date getLastDeliveryTime() throws Exception { + return (Date) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema.LastDeliveryTime); + + } + + /** + * Gets the delivery time of the message that was last + * received in this conversation across all folders in the mailbox. + * + * @return Date + * @throws Exception + */ + public Date getGlobalLastDeliveryTime() throws Exception { + + return (Date) this.getPropertyBag(). + getObjectFromPropertyDefinition(ConversationSchema. + GlobalLastDeliveryTime); + + } + + /** + * Gets a list summarizing the categories stamped on + * messages in this conversation, in the current folder only. + * + * @return value + * @throws ArgumentException + */ + public StringList getCategories() throws ArgumentException { + StringList returnValue = null; + + /**This property need not be present hence + * the property bag may not contain it. + * Check for the presence of this property before accessing it. + */ + if (this.getPropertyBag().contains(ConversationSchema.Categories)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(StringList.class, + ConversationSchema.Categories, + out); + returnValue = out.getParam(); + } + return returnValue; + } + + /** + * Gets a list summarizing the categories stamped on + * messages in this conversation, across all folders in the mailbox. + * + * @return returnValue + * @throws ArgumentException + */ + public StringList getGlobalCategories() throws ArgumentException { + StringList returnValue = null; + + // This property need not be present hence the + //property bag may not contain it. + // Check for the presence of this property before accessing it. + if (this.getPropertyBag().contains(ConversationSchema.GlobalCategories)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(StringList.class, + ConversationSchema.GlobalCategories, + out); + returnValue = out.getParam(); + } + return returnValue; + } + + /** + * Gets the flag status for this conversation, calculated + * by aggregating individual messages flag status in the current folder. + * + * @return returnValue + * @throws ArgumentException + */ + public ConversationFlagStatus getFlagStatus() throws ArgumentException { + ConversationFlagStatus returnValue = ConversationFlagStatus.NotFlagged; + + // This property need not be present hence the + //property bag may not contain it. + // Check for the presence of this property before accessing it. + if (this.getPropertyBag().contains(ConversationSchema.FlagStatus)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType( + ConversationFlagStatus.class, + ConversationSchema.FlagStatus, + out); + returnValue = out.getParam(); + } + + return returnValue; + } + + /** + * Gets the flag status for this conversation, calculated by aggregating + * individual messages flag status across all folders in the mailbox. + * + * @return returnValue + * @throws ArgumentException + */ + public ConversationFlagStatus getGlobalFlagStatus() + throws ArgumentException { + ConversationFlagStatus returnValue = ConversationFlagStatus.NotFlagged; + + // This property need not be present hence the + //property bag may not contain it. + // Check for the presence of this property before accessing it. + if (this.getPropertyBag().contains(ConversationSchema.GlobalFlagStatus)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType( + ConversationFlagStatus.class, + ConversationSchema.GlobalFlagStatus, + out); + returnValue = out.getParam(); + } + + return returnValue; + } + + /** + * Gets a value indicating if at least one message in this + * conversation, in the current folder only, has an attachment. + * + * @return Value + * @throws ServiceLocalException + */ + public boolean getHasAttachments() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.HasAttachments)).booleanValue(); + } + + /** + * Gets a value indicating if at least one message + * in this conversation, across all folders in the mailbox, + * has an attachment. + * + * @return boolean + * @throws ServiceLocalException + */ + public boolean getGlobalHasAttachments() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalHasAttachments)).booleanValue(); + + } + + /** + * Gets the total number of messages in this conversation + * in the current folder only. + * + * @return integer + * @throws ServiceLocalException + */ + public int getMessageCount() throws ServiceLocalException { + return ((Integer) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.MessageCount)).intValue(); + } + + /** + * Gets the total number of messages in this + * conversation across all folders in the mailbox. + * + * @return integer + * @throws ServiceLocalException + */ + public int getGlobalMessageCount() throws ServiceLocalException { + + return ((Integer) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalMessageCount)).intValue(); + + } + + /** + * Gets the total number of unread messages in this + * conversation in the current folder only. + * + * @return returnValue + * @throws ArgumentException + */ + public int getUnreadCount() throws ArgumentException { + int returnValue = 0; + + /**This property need not be present hence the + * property bag may not contain it. + * Check for the presence of this property before accessing it. + */ + if (this.getPropertyBag().contains(ConversationSchema.UnreadCount)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(Integer.class, + ConversationSchema.UnreadCount, + out); + returnValue = out.getParam().intValue(); + } + + return returnValue; + } + + /** + * Gets the total number of unread messages in this + * conversation across all folders in the mailbox. + * + * @return returnValue + * @throws ArgumentException + */ + public int getGlobalUnreadCount() throws ArgumentException { + int returnValue = 0; + + if (this.getPropertyBag().contains(ConversationSchema.GlobalUnreadCount)) { + OutParam out = new OutParam(); + this.getPropertyBag().tryGetPropertyType(Integer.class, + ConversationSchema.GlobalUnreadCount, + out); + returnValue = out.getParam().intValue(); + } + return returnValue; + + } + + + /** + * Gets the size of this conversation, calculated by + * adding the sizes of all messages in the conversation in + * the current folder only. + * + * @return integer + * @throws ServiceLocalException + */ + public int getSize() throws ServiceLocalException { + return ((Integer) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.Size)).intValue(); + } + + /** + * Gets the size of this conversation, calculated by + * adding the sizes of all messages in the conversation + * across all folders in the mailbox. + * + * @return integer + * @throws ServiceLocalException + */ + public int getGlobalSize() throws ServiceLocalException { + return ((Integer) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalSize)).intValue(); + } + + /** + * Gets a list summarizing the classes of the items + * in this conversation, in the current folder only. + * + * @return string + * @throws Exception + */ + public StringList getItemClasses() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.ItemClasses); + } + + /** + * Gets a list summarizing the classes of the items + * in this conversation, across all folders in the mailbox. + * + * @return string + * @throws Exception + */ + public StringList getGlobalItemClasses() throws Exception { + return (StringList) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalItemClasses); + + } + + /** + * Gets the importance of this conversation, calculated by + * aggregating individual messages importance in the current folder only. + * + * @return important + * @throws Exception + */ + public Importance getImportance() throws Exception { + return (Importance) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.Importance); + } + + /** + * Gets the importance of this conversation, calculated by + * aggregating individual messages importance across all + * folders in the mailbox. + * + * @return important + * @throws Exception + */ + public Importance getGlobalImportance() throws Exception { + return (Importance) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalImportance); + } + + /** + * Gets the Ids of the messages in this conversation, + * in the current folder only. + * + * @return Id + * @throws Exception + */ + public ItemIdCollection getItemIds() throws Exception { + return (ItemIdCollection) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.ItemIds); + } + + /** + * Gets the Ids of the messages in this conversation, + * across all folders in the mailbox. + * + * @return Id + * @throws Exception + */ + public ItemIdCollection getGlobalItemIds() throws Exception { + return (ItemIdCollection) this.getPropertyBag(). + getObjectFromPropertyDefinition( + ConversationSchema.GlobalItemIds); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java index 48dde52b9..7c332d46b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java @@ -13,358 +13,356 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; /** - * ConversationAction class that represents + * ConversationAction class that represents * ConversationActionType in the request XML. - * This class really is meant for representing + * This class really is meant for representing * single ConversationAction that needs to * be taken on a conversation. */ class ConversationAction { - private ConversationActionType action; - private ConversationId conversationId; - private boolean processRightAway; - - private boolean enableAlwaysDelete; - private StringList categories; - private FolderIdWrapper moveFolderId; - private FolderIdWrapper contextFolderId; - private DeleteMode deleteType; - private Boolean isRead; - private Date conversationLastSyncTime; - - /** - * Gets conversation action - * @return action - */ - protected ConversationActionType getAction() { - return this.action; - } - - /** - * Sets conversation action - */ - protected void setAction(ConversationActionType value ) { - this.action = value; - } - - /** - * Gets conversation id - * @return conversationId - */ - protected ConversationId getConversationId() { - return this.conversationId; - } - - /** - * Sets conversation id - */ - protected void setConversationId(ConversationId value) { - this.conversationId = value; - } - - /** - * Gets ProcessRightAway - * @return processRightAway - */ - protected boolean getProcessRightAway() { - return this.processRightAway; - } - - /** - * Sets ProcessRightAway - */ - protected void setProcessRightAway(boolean value) { - this.processRightAway = value; - } - - - /** - * Gets conversation categories for Always Categorize action - * @return categories - */ - protected StringList getCategories() { - return this.categories; - } - - /** - * Sets conversation categories for Always Categorize actions - */ - protected void setCategories(StringList value) { - this.categories = value; - } - - /** - * Gets Enable Always Delete value for Always Delete action - * @return enableAlwaysDelete - */ - protected boolean getEnableAlwaysDelete() { - return this.enableAlwaysDelete; - } - - /** - * Sets Enable Always Delete value for Always Delete action - */ - protected void setEnableAlwaysDelete(boolean value) { - this.enableAlwaysDelete = value; - } - - /** - * IsRead - * @return isRead - */ - protected Boolean getIsRead() { - return this.isRead; - } - - /** - * IsRead - */ - protected void setIsRead(Boolean value) { - this.isRead = value; - } - - /** - * DeleteType - * @return deleteType - */ - protected DeleteMode getDeleteType() { - return this.deleteType; - } - - /** - * DeleteType - */ - protected void setDeleteType(DeleteMode value) { - this.deleteType = value; - } - - /** - * ConversationLastSyncTime is used in one - * time action to determine the items - * on which to take the action. - * @return conversationLastSyncTime - */ - protected Date getConversationLastSyncTime() { - return this.conversationLastSyncTime; - } - - /** - * ConversationLastSyncTime is used in - * one time action to determine the items - * on which to take the action. - */ - protected void setConversationLastSyncTime(Date value) { - this.conversationLastSyncTime = value; - } - - /** - * Gets folder id ContextFolder - * @return contextFolderId - */ - protected FolderIdWrapper getContextFolderId() { - return this.contextFolderId; - } - - /** - * Sets folder id ContextFolder - */ - protected void setContextFolderId(FolderIdWrapper value) { - this.contextFolderId = value; - } - - /** - * Gets folder id for Move action - * @return moveFolderId - */ - protected FolderIdWrapper getDestinationFolderId() { - return this.moveFolderId; - } - - /** - * Sets folder id for Move action - */ - protected void setDestinationFolderId(FolderIdWrapper value) { - this.moveFolderId = value; - } - - /** - * Gets the name of the XML element. - * @return XML element name. - */ - protected String getXmlElementName() { - return XmlElementNames.ApplyConversationAction; - } - - /** - * Validate request. - * @throws Exception - */ - protected void validate() throws Exception { - EwsUtilities.validateParam(this.conversationId, "conversationId"); - } - - /** - * Writes XML elements. - * @param writer The writer. - * @throws Exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement( - XmlNamespace.Types, - XmlElementNames.ConversationAction); - try { - String actionValue = null; - if(this.getAction() == ConversationActionType.AlwaysCategorize) { - actionValue = XmlElementNames.AlwaysCategorize; - } - else if(this.getAction() == ConversationActionType.AlwaysDelete) { - actionValue = XmlElementNames.AlwaysDelete; - } - else if(this.getAction() == ConversationActionType.AlwaysMove) { - actionValue = XmlElementNames.AlwaysMove; - } - else if(this.getAction() == ConversationActionType.Delete) { - actionValue = XmlElementNames.Delete; - } - else if(this.getAction() == ConversationActionType.Copy) { - actionValue = XmlElementNames.Copy; - } - else if(this.getAction() == ConversationActionType.Move) { - actionValue = XmlElementNames.Move; - } - else if(this.getAction() == ConversationActionType.SetReadState) { - actionValue = XmlElementNames.SetReadState; - } - else { - throw new ArgumentException("ConversationAction"); - } - - // Emit the action element - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Action, - actionValue); - - // Emit the conversation id element - this.getConversationId().writeToXml( - writer, - XmlNamespace.Types, - XmlElementNames.ConversationId); - - if (this.getAction() == ConversationActionType.AlwaysCategorize || - this.getAction() == ConversationActionType.AlwaysDelete || - this.getAction() == ConversationActionType.AlwaysMove) { - // Emit the ProcessRightAway element - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.ProcessRightAway, - EwsUtilities.boolToXSBool(this.getProcessRightAway())); - } - - if (this.getAction() == ConversationActionType.AlwaysCategorize) { - // Emit the categories element - if (this.getCategories() != null && this.getCategories().getSize() > 0) { - this.getCategories().writeToXml( - writer, - XmlNamespace.Types, - XmlElementNames.Categories); - } - } - else if (this.getAction() == ConversationActionType.AlwaysDelete) { - // Emit the EnableAlwaysDelete element - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.EnableAlwaysDelete, - EwsUtilities.boolToXSBool(this. - getEnableAlwaysDelete())); - } - else if (this.getAction() == ConversationActionType.AlwaysMove) { - // Emit the Move Folder Id - if (this.getDestinationFolderId() != null) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.DestinationFolderId); - this.getDestinationFolderId().writeToXml(writer); - writer.writeEndElement(); - } - } - else { - if (this.getContextFolderId() != null) { - writer.writeStartElement( - XmlNamespace.Types, - XmlElementNames.ContextFolderId); - - this.getContextFolderId().writeToXml(writer); - - writer.writeEndElement(); - } - - if (this.getConversationLastSyncTime()!=null) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.ConversationLastSyncTime, - this.getConversationLastSyncTime()); - } - - if (this.getAction() == ConversationActionType.Copy) { - EwsUtilities.EwsAssert( - this.getDestinationFolderId() != null, - "ApplyconversationActionRequest", - "DestinationFolderId should be set " + - "when performing copy action"); - - writer.writeStartElement( - XmlNamespace.Types, - XmlElementNames.DestinationFolderId); - this.getDestinationFolderId().writeToXml(writer); - writer.writeEndElement(); - } - else if (this.getAction() == ConversationActionType.Move) { - EwsUtilities.EwsAssert( - this.getDestinationFolderId() != null, - "ApplyconversationActionRequest", - "DestinationFolderId should be " + - "set when performing move action"); - - writer.writeStartElement( - XmlNamespace.Types, - XmlElementNames.DestinationFolderId); - this.getDestinationFolderId().writeToXml(writer); - writer.writeEndElement(); - } - else if (this.getAction() == ConversationActionType.Delete) { - EwsUtilities.EwsAssert( - this.getDeleteType()!=null, - "ApplyconversationActionRequest", - "DeleteType should be specified " + - "when deleting a conversation."); - - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.DeleteType, - this.getDeleteType()); - } - else if (this.getAction() == ConversationActionType.SetReadState) { - EwsUtilities.EwsAssert( - this.getIsRead()!=null, - "ApplyconversationActionRequest", - "IsRead should be specified when " + - "marking/unmarking a conversation as read."); - - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsRead, - this.getIsRead()); - } - } - } - catch(Exception e){ - e.printStackTrace(); - } - finally { - writer.writeEndElement(); - } - } + private ConversationActionType action; + private ConversationId conversationId; + private boolean processRightAway; + + private boolean enableAlwaysDelete; + private StringList categories; + private FolderIdWrapper moveFolderId; + private FolderIdWrapper contextFolderId; + private DeleteMode deleteType; + private Boolean isRead; + private Date conversationLastSyncTime; + + /** + * Gets conversation action + * + * @return action + */ + protected ConversationActionType getAction() { + return this.action; + } + + /** + * Sets conversation action + */ + protected void setAction(ConversationActionType value) { + this.action = value; + } + + /** + * Gets conversation id + * + * @return conversationId + */ + protected ConversationId getConversationId() { + return this.conversationId; + } + + /** + * Sets conversation id + */ + protected void setConversationId(ConversationId value) { + this.conversationId = value; + } + + /** + * Gets ProcessRightAway + * + * @return processRightAway + */ + protected boolean getProcessRightAway() { + return this.processRightAway; + } + + /** + * Sets ProcessRightAway + */ + protected void setProcessRightAway(boolean value) { + this.processRightAway = value; + } + + + /** + * Gets conversation categories for Always Categorize action + * + * @return categories + */ + protected StringList getCategories() { + return this.categories; + } + + /** + * Sets conversation categories for Always Categorize actions + */ + protected void setCategories(StringList value) { + this.categories = value; + } + + /** + * Gets Enable Always Delete value for Always Delete action + * + * @return enableAlwaysDelete + */ + protected boolean getEnableAlwaysDelete() { + return this.enableAlwaysDelete; + } + + /** + * Sets Enable Always Delete value for Always Delete action + */ + protected void setEnableAlwaysDelete(boolean value) { + this.enableAlwaysDelete = value; + } + + /** + * IsRead + * + * @return isRead + */ + protected Boolean getIsRead() { + return this.isRead; + } + + /** + * IsRead + */ + protected void setIsRead(Boolean value) { + this.isRead = value; + } + + /** + * DeleteType + * + * @return deleteType + */ + protected DeleteMode getDeleteType() { + return this.deleteType; + } + + /** + * DeleteType + */ + protected void setDeleteType(DeleteMode value) { + this.deleteType = value; + } + + /** + * ConversationLastSyncTime is used in one + * time action to determine the items + * on which to take the action. + * + * @return conversationLastSyncTime + */ + protected Date getConversationLastSyncTime() { + return this.conversationLastSyncTime; + } + + /** + * ConversationLastSyncTime is used in + * one time action to determine the items + * on which to take the action. + */ + protected void setConversationLastSyncTime(Date value) { + this.conversationLastSyncTime = value; + } + + /** + * Gets folder id ContextFolder + * + * @return contextFolderId + */ + protected FolderIdWrapper getContextFolderId() { + return this.contextFolderId; + } + + /** + * Sets folder id ContextFolder + */ + protected void setContextFolderId(FolderIdWrapper value) { + this.contextFolderId = value; + } + + /** + * Gets folder id for Move action + * + * @return moveFolderId + */ + protected FolderIdWrapper getDestinationFolderId() { + return this.moveFolderId; + } + + /** + * Sets folder id for Move action + */ + protected void setDestinationFolderId(FolderIdWrapper value) { + this.moveFolderId = value; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + protected String getXmlElementName() { + return XmlElementNames.ApplyConversationAction; + } + + /** + * Validate request. + * + * @throws Exception + */ + protected void validate() throws Exception { + EwsUtilities.validateParam(this.conversationId, "conversationId"); + } + + /** + * Writes XML elements. + * + * @param writer The writer. + * @throws Exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement( + XmlNamespace.Types, + XmlElementNames.ConversationAction); + try { + String actionValue = null; + if (this.getAction() == ConversationActionType.AlwaysCategorize) { + actionValue = XmlElementNames.AlwaysCategorize; + } else if (this.getAction() == ConversationActionType.AlwaysDelete) { + actionValue = XmlElementNames.AlwaysDelete; + } else if (this.getAction() == ConversationActionType.AlwaysMove) { + actionValue = XmlElementNames.AlwaysMove; + } else if (this.getAction() == ConversationActionType.Delete) { + actionValue = XmlElementNames.Delete; + } else if (this.getAction() == ConversationActionType.Copy) { + actionValue = XmlElementNames.Copy; + } else if (this.getAction() == ConversationActionType.Move) { + actionValue = XmlElementNames.Move; + } else if (this.getAction() == ConversationActionType.SetReadState) { + actionValue = XmlElementNames.SetReadState; + } else { + throw new ArgumentException("ConversationAction"); + } + + // Emit the action element + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Action, + actionValue); + + // Emit the conversation id element + this.getConversationId().writeToXml( + writer, + XmlNamespace.Types, + XmlElementNames.ConversationId); + + if (this.getAction() == ConversationActionType.AlwaysCategorize || + this.getAction() == ConversationActionType.AlwaysDelete || + this.getAction() == ConversationActionType.AlwaysMove) { + // Emit the ProcessRightAway element + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.ProcessRightAway, + EwsUtilities.boolToXSBool(this.getProcessRightAway())); + } + + if (this.getAction() == ConversationActionType.AlwaysCategorize) { + // Emit the categories element + if (this.getCategories() != null && this.getCategories().getSize() > 0) { + this.getCategories().writeToXml( + writer, + XmlNamespace.Types, + XmlElementNames.Categories); + } + } else if (this.getAction() == ConversationActionType.AlwaysDelete) { + // Emit the EnableAlwaysDelete element + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.EnableAlwaysDelete, + EwsUtilities.boolToXSBool(this. + getEnableAlwaysDelete())); + } else if (this.getAction() == ConversationActionType.AlwaysMove) { + // Emit the Move Folder Id + if (this.getDestinationFolderId() != null) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.DestinationFolderId); + this.getDestinationFolderId().writeToXml(writer); + writer.writeEndElement(); + } + } else { + if (this.getContextFolderId() != null) { + writer.writeStartElement( + XmlNamespace.Types, + XmlElementNames.ContextFolderId); + + this.getContextFolderId().writeToXml(writer); + + writer.writeEndElement(); + } + + if (this.getConversationLastSyncTime() != null) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.ConversationLastSyncTime, + this.getConversationLastSyncTime()); + } + + if (this.getAction() == ConversationActionType.Copy) { + EwsUtilities.EwsAssert( + this.getDestinationFolderId() != null, + "ApplyconversationActionRequest", + "DestinationFolderId should be set " + + "when performing copy action"); + + writer.writeStartElement( + XmlNamespace.Types, + XmlElementNames.DestinationFolderId); + this.getDestinationFolderId().writeToXml(writer); + writer.writeEndElement(); + } else if (this.getAction() == ConversationActionType.Move) { + EwsUtilities.EwsAssert( + this.getDestinationFolderId() != null, + "ApplyconversationActionRequest", + "DestinationFolderId should be " + + "set when performing move action"); + + writer.writeStartElement( + XmlNamespace.Types, + XmlElementNames.DestinationFolderId); + this.getDestinationFolderId().writeToXml(writer); + writer.writeEndElement(); + } else if (this.getAction() == ConversationActionType.Delete) { + EwsUtilities.EwsAssert( + this.getDeleteType() != null, + "ApplyconversationActionRequest", + "DeleteType should be specified " + + "when deleting a conversation."); + + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.DeleteType, + this.getDeleteType()); + } else if (this.getAction() == ConversationActionType.SetReadState) { + EwsUtilities.EwsAssert( + this.getIsRead() != null, + "ApplyconversationActionRequest", + "IsRead should be specified when " + + "marking/unmarking a conversation as read."); + + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsRead, + this.getIsRead()); + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + writer.writeEndElement(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java index 0b22d9817..67df3b10b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java @@ -14,41 +14,41 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines actions applicable to Conversation. */ public enum ConversationActionType { - - /** - * Categorizes every current and future message in the conversation - */ - AlwaysCategorize, - - /** - * Deletes every current and future message in the conversation - */ - AlwaysDelete, - - /** - * Moves every current and future message in the conversation - */ - AlwaysMove, - - /** - * Deletes current item in context folder in the conversation - */ - Delete, - - /** - * Moves current item in context folder in the conversation - */ - Move, - - /** - * Copies current item in context folder in the conversation - */ - Copy, - - /** - * Marks current item in context folder in the conversation with - * provided read state - */ - SetReadState, + + /** + * Categorizes every current and future message in the conversation + */ + AlwaysCategorize, + + /** + * Deletes every current and future message in the conversation + */ + AlwaysDelete, + + /** + * Moves every current and future message in the conversation + */ + AlwaysMove, + + /** + * Deletes current item in context folder in the conversation + */ + Delete, + + /** + * Moves current item in context folder in the conversation + */ + Move, + + /** + * Copies current item in context folder in the conversation + */ + Copy, + + /** + * Marks current item in context folder in the conversation with + * provided read state + */ + SetReadState, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java index ac9a5acae..dfb810b39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java @@ -14,20 +14,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the flag status of a Conversation. */ public enum ConversationFlagStatus { - - /** - * Not Flagged. - */ - NotFlagged, - /** - * Flagged. - */ - Flagged, + /** + * Not Flagged. + */ + NotFlagged, - /** - * Complete. - */ - Complete + /** + * Flagged. + */ + Flagged, + + /** + * Complete. + */ + Complete } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java index 0e5f2ebce..01158cdc7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java @@ -15,81 +15,75 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ConversationId extends ServiceId { - /** - * Initializes a new instance of the ConversationId class. - */ - ConversationId() { - super(); - } + /** + * Initializes a new instance of the ConversationId class. + */ + ConversationId() { + super(); + } - /** - * Defines an implicit conversion between string and ConversationId. - * - * @param uniqueId - * the unique id - * @return A ConversationId initialized with the specified unique Id. - * @throws Exception - * the exception - */ - public static ConversationId getConversationIdFromUniqueId(String uniqueId) - throws Exception { - return new ConversationId(uniqueId); - } + /** + * Defines an implicit conversion between string and ConversationId. + * + * @param uniqueId the unique id + * @return A ConversationId initialized with the specified unique Id. + * @throws Exception the exception + */ + public static ConversationId getConversationIdFromUniqueId(String uniqueId) + throws Exception { + return new ConversationId(uniqueId); + } - /** - * Defines an implicit conversion between ConversationId and String. - * - * @param conversationId - * the conversation id - * @return A ConversationId initialized with the specified unique Id. - * @throws ArgumentNullException - * the argument null exception - */ - public static String getStringFromConversationId( - ConversationId conversationId) throws ArgumentNullException { - if (conversationId == null) { - throw new ArgumentNullException("conversationId"); - } + /** + * Defines an implicit conversion between ConversationId and String. + * + * @param conversationId the conversation id + * @return A ConversationId initialized with the specified unique Id. + * @throws ArgumentNullException the argument null exception + */ + public static String getStringFromConversationId( + ConversationId conversationId) throws ArgumentNullException { + if (conversationId == null) { + throw new ArgumentNullException("conversationId"); + } - if (null == conversationId.getUniqueId() - || conversationId.getUniqueId().isEmpty()) { - return ""; - } else { - // Ignoring the change key info - return conversationId.getUniqueId(); - } - } + if (null == conversationId.getUniqueId() + || conversationId.getUniqueId().isEmpty()) { + return ""; + } else { + // Ignoring the change key info + return conversationId.getUniqueId(); + } + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ConversationId; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ConversationId; + } - /** - * Initializes a new instance of ConversationId. - * - * @param uniqueId - * the unique id - * @throws Exception - * the exception - */ - public ConversationId(String uniqueId) throws Exception { - super(uniqueId); - } + /** + * Initializes a new instance of ConversationId. + * + * @param uniqueId the unique id + * @throws Exception the exception + */ + public ConversationId(String uniqueId) throws Exception { + super(uniqueId); + } - /** - * Gets a string representation of the Conversation Id. - * - * @return The string representation of the conversation id. - */ - @Override - public String toString() { - // We have ignored the change key portion - return this.getUniqueId(); - } + /** + * Gets a string representation of the Conversation Id. + * + * @return The string representation of the conversation id. + */ + @Override + public String toString() { + // We have ignored the change key portion + return this.getUniqueId(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java index 2c51ca545..9431db525 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java @@ -17,117 +17,127 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ConversationIndexedItemView extends PagedView { - private OrderByCollection orderBy = new OrderByCollection(); - - - /** - * Gets the type of service object this view applies to. - * @return A ServiceObjectType value. - */ - @Override - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Conversation; - } - - /** - * Writes the attributes to XML. - * @param writer The writer. - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) { - // Do nothing - } - - /** - * Gets the name of the view XML element. - * @return XML element name. - */ - @Override - protected String getViewXmlElementName() { - return XmlElementNames.IndexedPageItemView; - } - - /** - * Validates this view. - * @param request The request using this view. - */ - @Override - protected void internalValidate(ServiceRequestBase request) - throws ServiceVersionException, ServiceValidationException { - super.internalValidate(request); - } - - /** - * Internals the write search settings to XML. - * @param writer The writer. - * @param groupBy The group by. - */ - @Override - protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, - Grouping groupBy) throws ServiceXmlSerializationException, - XMLStreamException { - super.internalWriteSearchSettingsToXml(writer, groupBy); - } - - /** - * Writes OrderBy property to XML. - * @param writer The writer - */ - @Override - protected void writeOrderByToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - this.orderBy.writeToXml(writer, XmlElementNames.SortOrder); - } - - /** - * Writes to XML. - * @param writer The writer - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - writer.writeStartElement(XmlNamespace.Messages, - this.getViewXmlElementName()); - - this.internalWriteViewToXml(writer); - - writer.writeEndElement(); // this.GetViewXmlElementName() - } - - /** - * Initializes a new instance of the class. - * @param pageSize The maximum number of elements the search operation should return. - */ - public ConversationIndexedItemView(int pageSize) { - super(pageSize); - } - - /** - * Initializes a new instance of the ItemView class. - * @param pageSize The maximum number of elements the search operation should return. - * @param offset The offset of the view from the base point. - */ - public ConversationIndexedItemView(int pageSize, int offset) { - super(pageSize, offset); - this.setOffset(offset); - } - - /** - * Initializes a new instance of the ItemView class. - * @param pageSize The maximum number of elements the search operation should return. - * @param offset The offset of the view from the base point. - * @param offsetBasePoint The base point of the offset. - */ - public ConversationIndexedItemView( - int pageSize, - int offset, - OffsetBasePoint offsetBasePoint) { - super(pageSize, offset, offsetBasePoint); - - } - - /** - * Gets the properties against which the returned items should be ordered. - */ - public OrderByCollection getOrderBy() { - return this.orderBy; - } + private OrderByCollection orderBy = new OrderByCollection(); + + + /** + * Gets the type of service object this view applies to. + * + * @return A ServiceObjectType value. + */ + @Override + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Conversation; + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) { + // Do nothing + } + + /** + * Gets the name of the view XML element. + * + * @return XML element name. + */ + @Override + protected String getViewXmlElementName() { + return XmlElementNames.IndexedPageItemView; + } + + /** + * Validates this view. + * + * @param request The request using this view. + */ + @Override + protected void internalValidate(ServiceRequestBase request) + throws ServiceVersionException, ServiceValidationException { + super.internalValidate(request); + } + + /** + * Internals the write search settings to XML. + * + * @param writer The writer. + * @param groupBy The group by. + */ + @Override + protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, + Grouping groupBy) throws ServiceXmlSerializationException, + XMLStreamException { + super.internalWriteSearchSettingsToXml(writer, groupBy); + } + + /** + * Writes OrderBy property to XML. + * + * @param writer The writer + */ + @Override + protected void writeOrderByToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + this.orderBy.writeToXml(writer, XmlElementNames.SortOrder); + } + + /** + * Writes to XML. + * + * @param writer The writer + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + writer.writeStartElement(XmlNamespace.Messages, + this.getViewXmlElementName()); + + this.internalWriteViewToXml(writer); + + writer.writeEndElement(); // this.GetViewXmlElementName() + } + + /** + * Initializes a new instance of the class. + * + * @param pageSize The maximum number of elements the search operation should return. + */ + public ConversationIndexedItemView(int pageSize) { + super(pageSize); + } + + /** + * Initializes a new instance of the ItemView class. + * + * @param pageSize The maximum number of elements the search operation should return. + * @param offset The offset of the view from the base point. + */ + public ConversationIndexedItemView(int pageSize, int offset) { + super(pageSize, offset); + this.setOffset(offset); + } + + /** + * Initializes a new instance of the ItemView class. + * + * @param pageSize The maximum number of elements the search operation should return. + * @param offset The offset of the view from the base point. + * @param offsetBasePoint The base point of the offset. + */ + public ConversationIndexedItemView( + int pageSize, + int offset, + OffsetBasePoint offsetBasePoint) { + super(pageSize, offset, offsetBasePoint); + + } + + /** + * Gets the properties against which the returned items should be ordered. + */ + public OrderByCollection getOrderBy() { + return this.orderBy; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index 200675232..ce3de7e9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -17,556 +17,613 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @Schema public class ConversationSchema extends ServiceObjectSchema { - - /** - * Field URIs for Item. - */ - private static class FieldUris { - /** The Constant ConversationId. */ - public static final String ConversationId = - "conversation:ConversationId"; - - /** The Constant ConversationTopic. */ - public static final String ConversationTopic = - "conversation:ConversationTopic"; - - /** The Constant UniqueRecipients. */ - public static final String UniqueRecipients = - "conversation:UniqueRecipients"; - - /** The Constant GlobalUniqueRecipients. */ - public static final String GlobalUniqueRecipients = - "conversation:GlobalUniqueRecipients"; - - /** The Constant UniqueUnreadSenders. */ - public static final String UniqueUnreadSenders = - "conversation:UniqueUnreadSenders"; - - /** The Constant GlobalUniqueUnreadSenders. */ - public static final String GlobalUniqueUnreadSenders = - "conversation:GlobalUniqueUnreadSenders"; - - /** The Constant UniqueSenders. */ - public static final String UniqueSenders = "conversation:UniqueSenders"; - - /** The Constant GlobalUniqueSenders. */ - public static final String GlobalUniqueSenders = - "conversation:GlobalUniqueSenders"; - - /** The Constant LastDeliveryTime. */ - public static final String LastDeliveryTime = - "conversation:LastDeliveryTime"; - - /** The Constant GlobalLastDeliveryTime. */ - public static final String GlobalLastDeliveryTime = - "conversation:GlobalLastDeliveryTime"; - - /** The Constant Categories. */ - public static final String Categories = "conversation:Categories"; - - /** The Constant GlobalCategories. */ - public static final String GlobalCategories = - "conversation:GlobalCategories"; - - /** The Constant FlagStatus. */ - public static final String FlagStatus = "conversation:FlagStatus"; - - /** The Constant GlobalFlagStatus. */ - public static final String GlobalFlagStatus = - "conversation:GlobalFlagStatus"; - - /** The Constant HasAttachments. */ - public static final String HasAttachments = - "conversation:HasAttachments"; - - /** The Constant GlobalHasAttachments. */ - public static final String GlobalHasAttachments = - "conversation:GlobalHasAttachments"; - - /** The Constant MessageCount. */ - public static final String MessageCount = "conversation:MessageCount"; - - /** The Constant GlobalMessageCount. */ - public static final String GlobalMessageCount = - "conversation:GlobalMessageCount"; - - /** The Constant UnreadCount. */ - public static final String UnreadCount = "conversation:UnreadCount"; - - /** The Constant GlobalUnreadCount. */ - public static final String GlobalUnreadCount = - "conversation:GlobalUnreadCount"; - - /** The Constant Size. */ - public static final String Size = "conversation:Size"; - - /** The Constant GlobalSize. */ - public static final String GlobalSize = "conversation:GlobalSize"; - - /** The Constant ItemClasses. */ - public static final String ItemClasses = "conversation:ItemClasses"; - - /** The Constant GlobalItemClasses. */ - public static final String GlobalItemClasses = - "conversation:GlobalItemClasses"; - - /** The Constant Importance. */ - public static final String Importance = "conversation:Importance"; - - /** The Constant GlobalImportance. */ - public static final String GlobalImportance = - "conversation:GlobalImportance"; - - /** The Constant ItemIds. */ - public static final String ItemIds = "conversation:ItemIds"; - - /** The Constant GlobalItemIds. */ - public static final String GlobalItemIds = "conversation:GlobalItemIds"; - - public static String ItemId; - } - + + /** + * Field URIs for Item. + */ + private static class FieldUris { + /** + * The Constant ConversationId. + */ + public static final String ConversationId = + "conversation:ConversationId"; + + /** + * The Constant ConversationTopic. + */ + public static final String ConversationTopic = + "conversation:ConversationTopic"; + + /** + * The Constant UniqueRecipients. + */ + public static final String UniqueRecipients = + "conversation:UniqueRecipients"; + + /** + * The Constant GlobalUniqueRecipients. + */ + public static final String GlobalUniqueRecipients = + "conversation:GlobalUniqueRecipients"; + + /** + * The Constant UniqueUnreadSenders. + */ + public static final String UniqueUnreadSenders = + "conversation:UniqueUnreadSenders"; + + /** + * The Constant GlobalUniqueUnreadSenders. + */ + public static final String GlobalUniqueUnreadSenders = + "conversation:GlobalUniqueUnreadSenders"; + + /** + * The Constant UniqueSenders. + */ + public static final String UniqueSenders = "conversation:UniqueSenders"; + + /** + * The Constant GlobalUniqueSenders. + */ + public static final String GlobalUniqueSenders = + "conversation:GlobalUniqueSenders"; + + /** + * The Constant LastDeliveryTime. + */ + public static final String LastDeliveryTime = + "conversation:LastDeliveryTime"; + + /** + * The Constant GlobalLastDeliveryTime. + */ + public static final String GlobalLastDeliveryTime = + "conversation:GlobalLastDeliveryTime"; + + /** + * The Constant Categories. + */ + public static final String Categories = "conversation:Categories"; + + /** + * The Constant GlobalCategories. + */ + public static final String GlobalCategories = + "conversation:GlobalCategories"; + + /** + * The Constant FlagStatus. + */ + public static final String FlagStatus = "conversation:FlagStatus"; + + /** + * The Constant GlobalFlagStatus. + */ + public static final String GlobalFlagStatus = + "conversation:GlobalFlagStatus"; + + /** + * The Constant HasAttachments. + */ + public static final String HasAttachments = + "conversation:HasAttachments"; + + /** + * The Constant GlobalHasAttachments. + */ + public static final String GlobalHasAttachments = + "conversation:GlobalHasAttachments"; + + /** + * The Constant MessageCount. + */ + public static final String MessageCount = "conversation:MessageCount"; + + /** + * The Constant GlobalMessageCount. + */ + public static final String GlobalMessageCount = + "conversation:GlobalMessageCount"; + + /** + * The Constant UnreadCount. + */ + public static final String UnreadCount = "conversation:UnreadCount"; + + /** + * The Constant GlobalUnreadCount. + */ + public static final String GlobalUnreadCount = + "conversation:GlobalUnreadCount"; + + /** + * The Constant Size. + */ + public static final String Size = "conversation:Size"; + + /** + * The Constant GlobalSize. + */ + public static final String GlobalSize = "conversation:GlobalSize"; + + /** + * The Constant ItemClasses. + */ + public static final String ItemClasses = "conversation:ItemClasses"; + + /** + * The Constant GlobalItemClasses. + */ + public static final String GlobalItemClasses = + "conversation:GlobalItemClasses"; + + /** + * The Constant Importance. + */ + public static final String Importance = "conversation:Importance"; + + /** + * The Constant GlobalImportance. + */ + public static final String GlobalImportance = + "conversation:GlobalImportance"; + /** - * Defines the Id property. + * The Constant ItemIds. */ - public static final PropertyDefinition Id = new - ComplexPropertyDefinition( - ConversationId.class, - XmlElementNames.ConversationId, FieldUris.ConversationId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public ConversationId createComplexProperty() { - return new ConversationId(); - } - }); - - /** - * Defines the Topic property. - */ - public static final PropertyDefinition Topic = - new StringPropertyDefinition( - XmlElementNames.ConversationTopic, - FieldUris.ConversationTopic, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the UniqueRecipients property. - */ - public static final PropertyDefinition UniqueRecipients = new - ComplexPropertyDefinition( - StringList.class, - XmlElementNames.UniqueRecipients, - FieldUris.UniqueRecipients, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - - /** - * Defines the GlobalUniqueRecipients property. - */ - public static final PropertyDefinition GlobalUniqueRecipients = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.GlobalUniqueRecipients, - FieldUris.GlobalUniqueRecipients, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the UniqueUnreadSenders property. - */ - public static final PropertyDefinition UniqueUnreadSenders = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.UniqueUnreadSenders, - FieldUris.UniqueUnreadSenders, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the GlobalUniqueUnreadSenders property. - */ - public static final PropertyDefinition GlobalUniqueUnreadSenders = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.GlobalUniqueUnreadSenders, - FieldUris.GlobalUniqueUnreadSenders, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the UniqueSenders property. - */ - public static final PropertyDefinition UniqueSenders = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.UniqueSenders, - FieldUris.UniqueSenders, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the GlobalUniqueSenders property. - */ - public static final PropertyDefinition GlobalUniqueSenders = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.GlobalUniqueSenders, - FieldUris.GlobalUniqueSenders, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the LastDeliveryTime property. - */ - public static final PropertyDefinition LastDeliveryTime = - new DateTimePropertyDefinition( - XmlElementNames.LastDeliveryTime, - FieldUris.LastDeliveryTime, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalLastDeliveryTime property. - */ - public static final PropertyDefinition GlobalLastDeliveryTime = - new DateTimePropertyDefinition( - XmlElementNames.GlobalLastDeliveryTime, - FieldUris.GlobalLastDeliveryTime, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the Categories property. - */ - public static final PropertyDefinition Categories = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Categories, - FieldUris.Categories, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the GlobalCategories property. - */ - public static final PropertyDefinition GlobalCategories = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.GlobalCategories, - FieldUris.GlobalCategories, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the FlagStatus property. - */ - public static final PropertyDefinition FlagStatus = - new GenericPropertyDefinition( - ConversationFlagStatus.class, - XmlElementNames.FlagStatus, - FieldUris.FlagStatus, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalFlagStatus property. - */ - public static final PropertyDefinition GlobalFlagStatus = - new GenericPropertyDefinition( - ConversationFlagStatus.class, - XmlElementNames.GlobalFlagStatus, - FieldUris.GlobalFlagStatus, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the HasAttachments property. - */ - public static final PropertyDefinition HasAttachments = - new BoolPropertyDefinition( - XmlElementNames.HasAttachments, - FieldUris.HasAttachments, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalHasAttachments property. - */ - public static final PropertyDefinition GlobalHasAttachments = - new BoolPropertyDefinition( - XmlElementNames.GlobalHasAttachments, - FieldUris.GlobalHasAttachments, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the MessageCount property. - */ - public static final PropertyDefinition MessageCount = - new IntPropertyDefinition( - XmlElementNames.MessageCount, - FieldUris.MessageCount, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalMessageCount property. - */ - public static final PropertyDefinition GlobalMessageCount = - new IntPropertyDefinition( - XmlElementNames.GlobalMessageCount, - FieldUris.GlobalMessageCount, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the UnreadCount property. - */ - public static final PropertyDefinition UnreadCount = - new IntPropertyDefinition( - XmlElementNames.UnreadCount, - FieldUris.UnreadCount, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalUnreadCount property. - */ - public static final PropertyDefinition GlobalUnreadCount = - new IntPropertyDefinition( - XmlElementNames.GlobalUnreadCount, - FieldUris.GlobalUnreadCount, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the Size property. - */ - public static final PropertyDefinition Size = - new IntPropertyDefinition( - XmlElementNames.Size, - FieldUris.Size, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalSize property. - */ - public static final PropertyDefinition GlobalSize = - new IntPropertyDefinition( - XmlElementNames.GlobalSize, - FieldUris.GlobalSize, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the ItemClasses property. - */ - public static final PropertyDefinition ItemClasses = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.ItemClasses, - FieldUris.ItemClasses, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(XmlElementNames. - ItemClass); - } - }); - - /** - * Defines the GlobalItemClasses property. - */ - public static final PropertyDefinition GlobalItemClasses = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.GlobalItemClasses, - FieldUris.GlobalItemClasses, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(XmlElementNames. - ItemClass); - } - }); - - /** - * Defines the Importance property. - */ - public static final PropertyDefinition Importance = - new GenericPropertyDefinition( - Importance.class, - XmlElementNames.Importance, - FieldUris.Importance, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the GlobalImportance property. - */ - public static final PropertyDefinition GlobalImportance = - new GenericPropertyDefinition( - Importance.class, - XmlElementNames.GlobalImportance, - FieldUris.GlobalImportance, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1); - - /** - * Defines the ItemIds property. - */ - public static final PropertyDefinition ItemIds = - new ComplexPropertyDefinition( - ItemIdCollection.class, - XmlElementNames.ItemIds, - FieldUris.ItemIds, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public ItemIdCollection createComplexProperty() { - return new ItemIdCollection(); - } - }); - - /** - * Defines the GlobalItemIds property. - */ - public static final PropertyDefinition GlobalItemIds = - new ComplexPropertyDefinition( - ItemIdCollection.class, - XmlElementNames.GlobalItemIds, - FieldUris.GlobalItemIds, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP1, - new ICreateComplexPropertyDelegate() { - public ItemIdCollection createComplexProperty() { - return new ItemIdCollection(); - } - }); - - /** - * This must be declared after the property definitions - */ - protected static final ConversationSchema Instance = - new ConversationSchema(); - - /** - * Registers properties. - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(Id); - this.registerProperty(Topic); - this.registerProperty(UniqueRecipients); - this.registerProperty(GlobalUniqueRecipients); - this.registerProperty(UniqueUnreadSenders); - this.registerProperty(GlobalUniqueUnreadSenders); - this.registerProperty(UniqueSenders); - this.registerProperty(GlobalUniqueSenders); - this.registerProperty(LastDeliveryTime); - this.registerProperty(GlobalLastDeliveryTime); - this.registerProperty(Categories); - this.registerProperty(GlobalCategories); - this.registerProperty(FlagStatus); - this.registerProperty(GlobalFlagStatus); - this.registerProperty(HasAttachments); - this.registerProperty(GlobalHasAttachments); - this.registerProperty(MessageCount); - this.registerProperty(GlobalMessageCount); - this.registerProperty(UnreadCount); - this.registerProperty(GlobalUnreadCount); - this.registerProperty(Size); - this.registerProperty(GlobalSize); - this.registerProperty(ItemClasses); - this.registerProperty(GlobalItemClasses); - this.registerProperty(Importance); - this.registerProperty(GlobalImportance); - this.registerProperty(ItemIds); - this.registerProperty(GlobalItemIds); - } - - /** - * Initializes a new instance of - * the ConversationSchema class. - */ - protected ConversationSchema() { - super(); - } - - - + public static final String ItemIds = "conversation:ItemIds"; + + /** + * The Constant GlobalItemIds. + */ + public static final String GlobalItemIds = "conversation:GlobalItemIds"; + + public static String ItemId; + } + + + /** + * Defines the Id property. + */ + public static final PropertyDefinition Id = new + ComplexPropertyDefinition( + ConversationId.class, + XmlElementNames.ConversationId, FieldUris.ConversationId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public ConversationId createComplexProperty() { + return new ConversationId(); + } + }); + + /** + * Defines the Topic property. + */ + public static final PropertyDefinition Topic = + new StringPropertyDefinition( + XmlElementNames.ConversationTopic, + FieldUris.ConversationTopic, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the UniqueRecipients property. + */ + public static final PropertyDefinition UniqueRecipients = new + ComplexPropertyDefinition( + StringList.class, + XmlElementNames.UniqueRecipients, + FieldUris.UniqueRecipients, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + + /** + * Defines the GlobalUniqueRecipients property. + */ + public static final PropertyDefinition GlobalUniqueRecipients = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.GlobalUniqueRecipients, + FieldUris.GlobalUniqueRecipients, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the UniqueUnreadSenders property. + */ + public static final PropertyDefinition UniqueUnreadSenders = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.UniqueUnreadSenders, + FieldUris.UniqueUnreadSenders, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the GlobalUniqueUnreadSenders property. + */ + public static final PropertyDefinition GlobalUniqueUnreadSenders = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.GlobalUniqueUnreadSenders, + FieldUris.GlobalUniqueUnreadSenders, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the UniqueSenders property. + */ + public static final PropertyDefinition UniqueSenders = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.UniqueSenders, + FieldUris.UniqueSenders, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the GlobalUniqueSenders property. + */ + public static final PropertyDefinition GlobalUniqueSenders = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.GlobalUniqueSenders, + FieldUris.GlobalUniqueSenders, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the LastDeliveryTime property. + */ + public static final PropertyDefinition LastDeliveryTime = + new DateTimePropertyDefinition( + XmlElementNames.LastDeliveryTime, + FieldUris.LastDeliveryTime, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalLastDeliveryTime property. + */ + public static final PropertyDefinition GlobalLastDeliveryTime = + new DateTimePropertyDefinition( + XmlElementNames.GlobalLastDeliveryTime, + FieldUris.GlobalLastDeliveryTime, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the Categories property. + */ + public static final PropertyDefinition Categories = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Categories, + FieldUris.Categories, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the GlobalCategories property. + */ + public static final PropertyDefinition GlobalCategories = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.GlobalCategories, + FieldUris.GlobalCategories, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the FlagStatus property. + */ + public static final PropertyDefinition FlagStatus = + new GenericPropertyDefinition( + ConversationFlagStatus.class, + XmlElementNames.FlagStatus, + FieldUris.FlagStatus, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalFlagStatus property. + */ + public static final PropertyDefinition GlobalFlagStatus = + new GenericPropertyDefinition( + ConversationFlagStatus.class, + XmlElementNames.GlobalFlagStatus, + FieldUris.GlobalFlagStatus, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the HasAttachments property. + */ + public static final PropertyDefinition HasAttachments = + new BoolPropertyDefinition( + XmlElementNames.HasAttachments, + FieldUris.HasAttachments, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalHasAttachments property. + */ + public static final PropertyDefinition GlobalHasAttachments = + new BoolPropertyDefinition( + XmlElementNames.GlobalHasAttachments, + FieldUris.GlobalHasAttachments, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the MessageCount property. + */ + public static final PropertyDefinition MessageCount = + new IntPropertyDefinition( + XmlElementNames.MessageCount, + FieldUris.MessageCount, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalMessageCount property. + */ + public static final PropertyDefinition GlobalMessageCount = + new IntPropertyDefinition( + XmlElementNames.GlobalMessageCount, + FieldUris.GlobalMessageCount, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the UnreadCount property. + */ + public static final PropertyDefinition UnreadCount = + new IntPropertyDefinition( + XmlElementNames.UnreadCount, + FieldUris.UnreadCount, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalUnreadCount property. + */ + public static final PropertyDefinition GlobalUnreadCount = + new IntPropertyDefinition( + XmlElementNames.GlobalUnreadCount, + FieldUris.GlobalUnreadCount, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the Size property. + */ + public static final PropertyDefinition Size = + new IntPropertyDefinition( + XmlElementNames.Size, + FieldUris.Size, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalSize property. + */ + public static final PropertyDefinition GlobalSize = + new IntPropertyDefinition( + XmlElementNames.GlobalSize, + FieldUris.GlobalSize, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the ItemClasses property. + */ + public static final PropertyDefinition ItemClasses = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.ItemClasses, + FieldUris.ItemClasses, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(XmlElementNames. + ItemClass); + } + }); + + /** + * Defines the GlobalItemClasses property. + */ + public static final PropertyDefinition GlobalItemClasses = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.GlobalItemClasses, + FieldUris.GlobalItemClasses, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(XmlElementNames. + ItemClass); + } + }); + + /** + * Defines the Importance property. + */ + public static final PropertyDefinition Importance = + new GenericPropertyDefinition( + Importance.class, + XmlElementNames.Importance, + FieldUris.Importance, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the GlobalImportance property. + */ + public static final PropertyDefinition GlobalImportance = + new GenericPropertyDefinition( + Importance.class, + XmlElementNames.GlobalImportance, + FieldUris.GlobalImportance, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1); + + /** + * Defines the ItemIds property. + */ + public static final PropertyDefinition ItemIds = + new ComplexPropertyDefinition( + ItemIdCollection.class, + XmlElementNames.ItemIds, + FieldUris.ItemIds, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public ItemIdCollection createComplexProperty() { + return new ItemIdCollection(); + } + }); + + /** + * Defines the GlobalItemIds property. + */ + public static final PropertyDefinition GlobalItemIds = + new ComplexPropertyDefinition( + ItemIdCollection.class, + XmlElementNames.GlobalItemIds, + FieldUris.GlobalItemIds, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP1, + new ICreateComplexPropertyDelegate() { + public ItemIdCollection createComplexProperty() { + return new ItemIdCollection(); + } + }); + + /** + * This must be declared after the property definitions + */ + protected static final ConversationSchema Instance = + new ConversationSchema(); + + /** + * Registers properties. + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(Id); + this.registerProperty(Topic); + this.registerProperty(UniqueRecipients); + this.registerProperty(GlobalUniqueRecipients); + this.registerProperty(UniqueUnreadSenders); + this.registerProperty(GlobalUniqueUnreadSenders); + this.registerProperty(UniqueSenders); + this.registerProperty(GlobalUniqueSenders); + this.registerProperty(LastDeliveryTime); + this.registerProperty(GlobalLastDeliveryTime); + this.registerProperty(Categories); + this.registerProperty(GlobalCategories); + this.registerProperty(FlagStatus); + this.registerProperty(GlobalFlagStatus); + this.registerProperty(HasAttachments); + this.registerProperty(GlobalHasAttachments); + this.registerProperty(MessageCount); + this.registerProperty(GlobalMessageCount); + this.registerProperty(UnreadCount); + this.registerProperty(GlobalUnreadCount); + this.registerProperty(Size); + this.registerProperty(GlobalSize); + this.registerProperty(ItemClasses); + this.registerProperty(GlobalItemClasses); + this.registerProperty(Importance); + this.registerProperty(GlobalImportance); + this.registerProperty(ItemIds); + this.registerProperty(GlobalItemIds); + } + + /** + * Initializes a new instance of + * the ConversationSchema class. + */ + protected ConversationSchema() { + super(); + } + + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java index 8a983ff6c..2514f2cd6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java @@ -10,165 +10,159 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a ConvertId request. */ final class ConvertIdRequest extends - MultiResponseServiceRequest { - - /** The destination format. */ - private IdFormat destinationFormat = IdFormat.EwsId; - - /** The ids. */ - private List ids = new ArrayList(); - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected ConvertIdRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return the convert id response - */ - @Override - protected ConvertIdResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ConvertIdResponse(); - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.ConvertIdResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.ConvertIdResponseMessage; - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.ids.size(); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ConvertId; - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.ids.iterator(), "Ids"); - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.DestinationFormat, - this.destinationFormat); - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SourceIds); - for (AlternateIdBase alternateId : this.ids) { - alternateId.writeToXml(writer); - } - - writer.writeEndElement(); // SourceIds - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the destination format. The destination - * format. - * - * @return the destination format - */ - public IdFormat getDestinationFormat() { - return this.destinationFormat; - } - - /** - * Sets the destination format. - * - * @param destinationFormat - * the new destination format - */ - public void setDestinationFormat(IdFormat destinationFormat) { - this.destinationFormat = destinationFormat; - } - - /** - * Gets the ids. The ids. - * - * @return the ids - */ - public List getIds() { - return this.ids; - } + MultiResponseServiceRequest { + + /** + * The destination format. + */ + private IdFormat destinationFormat = IdFormat.EwsId; + + /** + * The ids. + */ + private List ids = new ArrayList(); + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected ConvertIdRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param responseIndex the response index + * @return the convert id response + */ + @Override + protected ConvertIdResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ConvertIdResponse(); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.ConvertIdResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.ConvertIdResponseMessage; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.ids.size(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ConvertId; + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.ids.iterator(), "Ids"); + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.DestinationFormat, + this.destinationFormat); + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SourceIds); + for (AlternateIdBase alternateId : this.ids) { + alternateId.writeToXml(writer); + } + + writer.writeEndElement(); // SourceIds + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the destination format. The destination + * format. + * + * @return the destination format + */ + public IdFormat getDestinationFormat() { + return this.destinationFormat; + } + + /** + * Sets the destination format. + * + * @param destinationFormat the new destination format + */ + public void setDestinationFormat(IdFormat destinationFormat) { + this.destinationFormat = destinationFormat; + } + + /** + * Gets the ids. The ids. + * + * @return the ids + */ + public List getIds() { + return this.ids; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java index 7454f2b17..53bacd6a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java @@ -15,76 +15,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ConvertIdResponse extends ServiceResponse { - /** The converted id. */ - private AlternateIdBase convertedId; + /** + * The converted id. + */ + private AlternateIdBase convertedId; - /** - * Initializes a new instance of the class. - */ - protected ConvertIdResponse() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected ConvertIdResponse() { + super(); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws InstantiationException, IllegalAccessException, - ServiceLocalException, Exception { - super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.AlternateId); - String alternateIdClass = reader.readAttributeValue( - XmlNamespace.XmlSchemaInstance, XmlAttributeNames.Type); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws InstantiationException, IllegalAccessException, + ServiceLocalException, Exception { + super.readElementsFromXml(reader); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.AlternateId); + String alternateIdClass = reader.readAttributeValue( + XmlNamespace.XmlSchemaInstance, XmlAttributeNames.Type); - int aliasSeparatorIndex = alternateIdClass.indexOf(':'); + int aliasSeparatorIndex = alternateIdClass.indexOf(':'); - if (aliasSeparatorIndex > -1) { - alternateIdClass = alternateIdClass - .substring(aliasSeparatorIndex + 1); - } + if (aliasSeparatorIndex > -1) { + alternateIdClass = alternateIdClass + .substring(aliasSeparatorIndex + 1); + } - // Alternate Id classes are responsible fro reading the AlternateId end - // element when necessary - if (alternateIdClass.equals(AlternateId.SchemaTypeName)) { - this.convertedId = new AlternateId(); - } else if (alternateIdClass - .equals(AlternatePublicFolderId.SchemaTypeName)) { - this.convertedId = new AlternatePublicFolderId(); - } else if (alternateIdClass - .equals(AlternatePublicFolderItemId.SchemaTypeName)) { - this.convertedId = new AlternatePublicFolderItemId(); - } else { - EwsUtilities - .EwsAssert(false, "ConvertIdResponse.ReadElementsFromXml", - String.format("Unknown alternate Id class: %s", - alternateIdClass)); - } + // Alternate Id classes are responsible fro reading the AlternateId end + // element when necessary + if (alternateIdClass.equals(AlternateId.SchemaTypeName)) { + this.convertedId = new AlternateId(); + } else if (alternateIdClass + .equals(AlternatePublicFolderId.SchemaTypeName)) { + this.convertedId = new AlternatePublicFolderId(); + } else if (alternateIdClass + .equals(AlternatePublicFolderItemId.SchemaTypeName)) { + this.convertedId = new AlternatePublicFolderItemId(); + } else { + EwsUtilities + .EwsAssert(false, "ConvertIdResponse.ReadElementsFromXml", + String.format("Unknown alternate Id class: %s", + alternateIdClass)); + } - this.convertedId.loadAttributesFromXml(reader); - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.AlternateId); - } + this.convertedId.loadAttributesFromXml(reader); + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.AlternateId); + } - /** - * Reads response elements from XML. - * - * @return the converted id - */ - public AlternateIdBase getConvertedId() { - return this.convertedId; - } + /** + * Reads response elements from XML. + * + * @return the converted id + */ + public AlternateIdBase getConvertedId() { + return this.convertedId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java index 4db92b49b..47f0d04f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java @@ -12,80 +12,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a CopyFolder request. - * - * */ class CopyFolderRequest extends MoveCopyFolderRequest { - /** - * Initializes a new instance of the CopyFolderRequest class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected CopyFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the CopyFolderRequest class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected CopyFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * The Service - * @param responseIndex - * Index of the response. - * @return Service response. - * - */ - @Override - protected MoveCopyFolderResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new MoveCopyFolderResponse(); - } + /** + * Creates the service response. + * + * @param service The Service + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected MoveCopyFolderResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new MoveCopyFolderResponse(); + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CopyFolder; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CopyFolder; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CopyFolderResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CopyFolderResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CopyFolderResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CopyFolderResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java index c05583b6a..79643e93d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java @@ -15,72 +15,68 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class CopyItemRequest extends MoveCopyItemRequest { - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected CopyItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected CopyItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected MoveCopyItemResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new MoveCopyItemResponse(); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected MoveCopyItemResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new MoveCopyItemResponse(); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CopyItem; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CopyItem; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CopyItemResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CopyItemResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CopyItemResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CopyItemResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index c58304734..87fc0ab3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -13,56 +13,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an error that occurs when a call to the CreateAttachment web * method fails. - * */ -public final class CreateAttachmentException extends -ServiceRemoteException {// extends -// BatchServiceResponseException +public final class CreateAttachmentException extends + ServiceRemoteException {// extends + // BatchServiceResponseException - /** The responses. */ - private ServiceResponseCollection responses; + /** + * The responses. + */ + private ServiceResponseCollection responses; - /** - * Initializes a new instance of CreateAttachmentException. - * - * @param serviceResponses - * the service responses - * @param message - * the message - */ - protected CreateAttachmentException( - ServiceResponseCollection - serviceResponses, - String message) { - // super(serviceResponses,message); - super(message); - EwsUtilities.EwsAssert(serviceResponses != null, - "MultiServiceResponseException.ctor", - "serviceResponses is null"); + /** + * Initializes a new instance of CreateAttachmentException. + * + * @param serviceResponses the service responses + * @param message the message + */ + protected CreateAttachmentException( + ServiceResponseCollection + serviceResponses, + String message) { + // super(serviceResponses,message); + super(message); + EwsUtilities.EwsAssert(serviceResponses != null, + "MultiServiceResponseException.ctor", + "serviceResponses is null"); - this.responses = serviceResponses; - } + this.responses = serviceResponses; + } - /** - * Initializes a new instance of CreateAttachmentException. - * - * @param serviceResponses - * the service responses - * @param message - * the message - * @param innerException - * the inner exception - */ - protected CreateAttachmentException( - ServiceResponseCollection - serviceResponses, - String message, Exception innerException) { - // super(serviceResponses, message, innerException); - super(message, innerException); - EwsUtilities.EwsAssert(serviceResponses != null, - "MultiServiceResponseException.ctor", - "serviceResponses is null"); + /** + * Initializes a new instance of CreateAttachmentException. + * + * @param serviceResponses the service responses + * @param message the message + * @param innerException the inner exception + */ + protected CreateAttachmentException( + ServiceResponseCollection + serviceResponses, + String message, Exception innerException) { + // super(serviceResponses, message, innerException); + super(message, innerException); + EwsUtilities.EwsAssert(serviceResponses != null, + "MultiServiceResponseException.ctor", + "serviceResponses is null"); - this.responses = serviceResponses; - } + this.responses = serviceResponses; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java index 1ce93fc97..fe068cd28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java @@ -11,197 +11,190 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; import java.util.ArrayList; -import java.util.List; import java.util.ListIterator; /** * Represents a CreateAttachment request. - * */ final class CreateAttachmentRequest extends - MultiResponseServiceRequest { - - /** The parent item id. */ - private String parentItemId; - - /** The attachments. */ - private ArrayList attachments = new ArrayList(); - - /** - * Gets the attachments. - * - * @return attachments - */ - public ArrayList getAttachments() { - return attachments; - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected CreateAttachmentRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request.. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.parentItemId, "ParentItemId"); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.attachments.size(); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CreateAttachment; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CreateAttachmentResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CreateAttachmentResponseMessage; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * - * Gets a value indicating whether the TimeZoneContext SOAP header should be - * emitted. - */ - protected boolean emitTimeZoneHeader() throws ServiceLocalException ,Exception{ - { - - ListIterator items = this.getAttachments() - .listIterator(); - - while (items.hasNext()) - - { - - ItemAttachment itemAttachment = (ItemAttachment) items.next(); - - if ((itemAttachment.getItem() != null) - && itemAttachment - .getItem() - .getIsTimeZoneHeaderRequired(false /* isUpdateOperation */)) { - return true; - } - } - - return false; - } - } - - /** - * Gets the parent item id. - * - * @return parentItemId - */ - public String getParentItemId() { - return parentItemId; - } - - /** - * Sets the parent item id. - * - * @param parentItemId - * the new parent item id - */ - public void setParentItemId(String parentItemId) { - this.parentItemId = parentItemId; - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.ParentItemId); - writer.writeAttributeValue(XmlAttributeNames.Id, this.parentItemId); - writer.writeEndElement(); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.Attachments); - for (Attachment attachment : this.attachments) { - attachment.writeToXml(writer, attachment.getXmlElementName()); - } - writer.writeEndElement(); - - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return the creates the attachment response - */ - @Override - protected CreateAttachmentResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new CreateAttachmentResponse( - this.attachments.get(responseIndex)); - } + MultiResponseServiceRequest { + + /** + * The parent item id. + */ + private String parentItemId; + + /** + * The attachments. + */ + private ArrayList attachments = new ArrayList(); + + /** + * Gets the attachments. + * + * @return attachments + */ + public ArrayList getAttachments() { + return attachments; + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected CreateAttachmentRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request.. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.parentItemId, "ParentItemId"); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.attachments.size(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CreateAttachment; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CreateAttachmentResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CreateAttachmentResponseMessage; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets a value indicating whether the TimeZoneContext SOAP header should be + * emitted. + */ + protected boolean emitTimeZoneHeader() throws ServiceLocalException, Exception { + { + + ListIterator items = this.getAttachments() + .listIterator(); + + while (items.hasNext()) + + { + + ItemAttachment itemAttachment = (ItemAttachment) items.next(); + + if ((itemAttachment.getItem() != null) + && itemAttachment + .getItem() + .getIsTimeZoneHeaderRequired(false /* isUpdateOperation */)) { + return true; + } + } + + return false; + } + } + + /** + * Gets the parent item id. + * + * @return parentItemId + */ + public String getParentItemId() { + return parentItemId; + } + + /** + * Sets the parent item id. + * + * @param parentItemId the new parent item id + */ + public void setParentItemId(String parentItemId) { + this.parentItemId = parentItemId; + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.ParentItemId); + writer.writeAttributeValue(XmlAttributeNames.Id, this.parentItemId); + writer.writeEndElement(); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.Attachments); + for (Attachment attachment : this.attachments) { + attachment.writeToXml(writer, attachment.getXmlElementName()); + } + writer.writeEndElement(); + + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return the creates the attachment response + */ + @Override + protected CreateAttachmentResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new CreateAttachmentResponse( + this.attachments.get(responseIndex)); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index 67e28ae45..69e4e695d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -12,59 +12,57 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to an individual attachment creation operation. - * */ public final class CreateAttachmentResponse extends ServiceResponse { - /** The attachment. */ - private Attachment attachment; + /** + * The attachment. + */ + private Attachment attachment; - /** - * Initializes a new instance of the CreateAttachmentResponse class. - * - * @param attachment - * the attachment - */ - protected CreateAttachmentResponse(Attachment attachment) { - super(); - EwsUtilities.EwsAssert(attachment != null, - "CreateAttachmentResponse.ctor", "attachment is null"); + /** + * Initializes a new instance of the CreateAttachmentResponse class. + * + * @param attachment the attachment + */ + protected CreateAttachmentResponse(Attachment attachment) { + super(); + EwsUtilities.EwsAssert(attachment != null, + "CreateAttachmentResponse.ctor", "attachment is null"); - this.attachment = attachment; - } + this.attachment = attachment; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.Attachments); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.Attachments); - // reader.read(XmlNodeType.START_ELEMENT); - XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); - reader.read(x); - this.attachment.loadFromXml(reader, reader.getLocalName()); + // reader.read(XmlNodeType.START_ELEMENT); + XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); + reader.read(x); + this.attachment.loadFromXml(reader, reader.getLocalName()); - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.Attachments); - } + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.Attachments); + } - /** - * Gets the attachment that was created. - * - * @return the attachment - */ - protected Attachment getAttachment() { - return this.attachment; - } + /** + * Gets the attachment that was created. + * + * @return the attachment + */ + protected Attachment getAttachment() { + return this.attachment; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java index b34ec400f..355162b47 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java @@ -14,137 +14,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a CreateFolder request. - * - * */ final class CreateFolderRequest extends CreateRequest { - /** - * Initializes a new instance of the CreateFolderRequest class. - * - * @param service - * The service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected CreateFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getFolders(), "Folders"); - - // Validate each folder. - for (Folder folder : this.getFolders()) { - folder.validate(); - } - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new CreateFolderResponse((Folder)EwsUtilities - .getEnumeratedObjectAt(this.getFolders(), responseIndex)); - } - - /** - * Gets the name of the XML element. - * - * @return Xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CreateFolder; - } - - /** - *Gets the name of the response XML element. - * - * @return Xml element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CreateFolderResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return Xml element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CreateFolderResponseMessage; - } - - /** - * Gets the name of the parent folder XML element. - * - * @return Xml element name - */ - @Override - protected String getParentFolderXmlElementName() { - return XmlElementNames.ParentFolderId; - } - - /** - * Gets the name of the object collection XML element. - * - * @return Xml element name - */ - @Override - protected String getObjectCollectionXmlElementName() { - return XmlElementNames.Folders; - } - - /** - * Gets the request version. Earliest Exchange version in which this request - * is supported. - * - * @return the minimum required server version - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the folders. - * - * @return the folders - */ - public Iterable getFolders() { - return this.getObjects(); - } - - /** - * Sets the folders. - * - * @param folder - * the new folders - */ - public void setFolders(Iterable folder) { - this.setObjects((Collection)folder); - } + /** + * Initializes a new instance of the CreateFolderRequest class. + * + * @param service The service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected CreateFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getFolders(), "Folders"); + + // Validate each folder. + for (Folder folder : this.getFolders()) { + folder.validate(); + } + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new CreateFolderResponse((Folder) EwsUtilities + .getEnumeratedObjectAt(this.getFolders(), responseIndex)); + } + + /** + * Gets the name of the XML element. + * + * @return Xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CreateFolder; + } + + /** + * Gets the name of the response XML element. + * + * @return Xml element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CreateFolderResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return Xml element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CreateFolderResponseMessage; + } + + /** + * Gets the name of the parent folder XML element. + * + * @return Xml element name + */ + @Override + protected String getParentFolderXmlElementName() { + return XmlElementNames.ParentFolderId; + } + + /** + * Gets the name of the object collection XML element. + * + * @return Xml element name + */ + @Override + protected String getObjectCollectionXmlElementName() { + return XmlElementNames.Folders; + } + + /** + * Gets the request version. Earliest Exchange version in which this request + * is supported. + * + * @return the minimum required server version + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the folders. + * + * @return the folders + */ + public Iterable getFolders() { + return this.getObjects(); + } + + /** + * Sets the folders. + * + * @param folder the new folders + */ + public void setFolders(Iterable folder) { + this.setObjects((Collection) folder); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java index bc138cafb..70ee18f4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java @@ -14,92 +14,84 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to an individual folder creation operation. - * */ final class CreateFolderResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The folder. */ - private Folder folder; + /** + * The folder. + */ + private Folder folder; - /** - * Initializes a new instance of the CreateFolderResponse class. - * - * @param folder - * The folder. - */ - CreateFolderResponse(Folder folder) { - super(); - this.folder = folder; - } + /** + * Initializes a new instance of the CreateFolderResponse class. + * + * @param folder The folder. + */ + CreateFolderResponse(Folder folder) { + super(); + this.folder = folder; + } - /** - * Gets the object instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return Folder - * @throws Exception - * the exception - */ - private Folder getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - if (this.folder != null) { - return this.folder; - } else { - return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, - service, xmlElementName); - } - } + /** + * Gets the object instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return Folder + * @throws Exception the exception + */ + private Folder getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + if (this.folder != null) { + return this.folder; + } else { + return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, + service, xmlElementName); + } + } - /** - * Reads response elements from XML. - * - * @param reader - * The reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader The reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - List folders = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Folders, this, false, /* clearPropertyBag */ - null, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ + List folders = reader.readServiceObjectsCollectionFromXml( + XmlElementNames.Folders, this, false, /* clearPropertyBag */ + null, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ - this.folder = folders.get(0); - } + this.folder = folders.get(0); + } - /** - * Gets the object instance delegate. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the object instance delegate - * @throws Exception - * the exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service the service + * @param xmlElementName the xml element name + * @return the object instance delegate + * @throws Exception the exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } - /** - * Clears the change log of the created folder if the creation succeeded. - */ - @Override - protected void loaded() { - if (this.getResult() == ServiceResult.Success) { - this.folder.clearChangeLog(); - } - } + /** + * Clears the change log of the created folder if the creation succeeded. + */ + @Override + protected void loaded() { + if (this.getResult() == ServiceResult.Success) { + this.folder.clearChangeLog(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java index e7b0c0465..6d0383bb6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java @@ -12,70 +12,62 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a CreateItem request. - * - * */ final class CreateItemRequest extends - CreateItemRequestBase { + CreateItemRequestBase { - /** - * Initializes a new instance. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected CreateItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected CreateItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return the service response - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new CreateItemResponse((Item)EwsUtilities - .getEnumeratedObjectAt(this.getItems(), responseIndex)); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return the service response + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new CreateItemResponse((Item) EwsUtilities + .getEnumeratedObjectAt(this.getItems(), responseIndex)); + } - /** - * Validate request.. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - // Iterable items = this.getItems(); - // Validate each item. - for (Item item : this.getItems()) { - item.validate(); - } - } + /** + * Validate request.. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + // Iterable items = this.getItems(); + // Validate each item. + for (Item item : this.getItems()) { + item.validate(); + } + } - /** - * Gets the request version. Returns earliest Exchange version in which - * this request is supported. - * - * @return the minimum required server version - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. Returns earliest Exchange version in which + * this request is supported. + * + * @return the minimum required server version + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java index 739481802..bf9893b7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java @@ -14,178 +14,171 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract CreateItem request. - * - * - * @param - * The type of the service object. - * @param - * The type of the response. + * + * @param The type of the service object. + * @param The type of the response. */ -abstract class CreateItemRequestBase - extends CreateRequest { - - /** The message disposition. */ - private MessageDisposition messageDisposition = null; - - /** The send invitations mode. */ - private SendInvitationsMode sendInvitationsMode = null; - - /** - * Initializes a new instance. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected CreateItemRequestBase(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate the request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getItems(), "Items"); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CreateItem; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CreateItemResponse; - } - - /** - * Gets the name of the response message XML element. XML element name. - * - * @return the response message xml element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CreateItemResponseMessage; - } - - /** - * Gets the name of the parent folder XML element. - * - * @return XML element name. - */ - @Override - protected String getParentFolderXmlElementName() { - return XmlElementNames.SavedItemFolderId; - } - - /** - * Gets the name of the object collection XML element. - * - * @return XML element name. - */ - @Override - protected String getObjectCollectionXmlElementName() { - return XmlElementNames.Items; - } - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - if (this.messageDisposition != null) { - writer.writeAttributeValue(XmlAttributeNames.MessageDisposition, - this.getMessageDisposition()); - } - if (this.sendInvitationsMode != null) { - writer.writeAttributeValue( - XmlAttributeNames.SendMeetingInvitations, - this.sendInvitationsMode); - } - } - - /** - * Gets the message disposition. - * - * @return the message disposition - */ - public MessageDisposition getMessageDisposition() { - return messageDisposition; - } - - /** - * Sets the message disposition. - * - * @param value - * the new message disposition - */ - public void setMessageDisposition(MessageDisposition value) { - messageDisposition = value; - } - - /** - * Gets the send invitations mode. - * - * @return the send invitations mode - */ - public SendInvitationsMode getSendInvitationsMode() { - return sendInvitationsMode; - } - - /** - * Sets the send invitations mode. - * - * @param value - * the new send invitations mode - */ - public void setSendInvitationsMode(SendInvitationsMode value) { - sendInvitationsMode = value; - } - - /** - * Gets the items. - * - * @param value - * the new items - */ - public void setItems(Collection value) { - this.setObjects(value); - } - - /** - * Gets the items. - * - * @return the items - */ - public Iterable getItems() { - return this.getObjects(); - } +abstract class CreateItemRequestBase + extends CreateRequest { + + /** + * The message disposition. + */ + private MessageDisposition messageDisposition = null; + + /** + * The send invitations mode. + */ + private SendInvitationsMode sendInvitationsMode = null; + + /** + * Initializes a new instance. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected CreateItemRequestBase(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate the request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getItems(), "Items"); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CreateItem; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CreateItemResponse; + } + + /** + * Gets the name of the response message XML element. XML element name. + * + * @return the response message xml element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CreateItemResponseMessage; + } + + /** + * Gets the name of the parent folder XML element. + * + * @return XML element name. + */ + @Override + protected String getParentFolderXmlElementName() { + return XmlElementNames.SavedItemFolderId; + } + + /** + * Gets the name of the object collection XML element. + * + * @return XML element name. + */ + @Override + protected String getObjectCollectionXmlElementName() { + return XmlElementNames.Items; + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + if (this.messageDisposition != null) { + writer.writeAttributeValue(XmlAttributeNames.MessageDisposition, + this.getMessageDisposition()); + } + if (this.sendInvitationsMode != null) { + writer.writeAttributeValue( + XmlAttributeNames.SendMeetingInvitations, + this.sendInvitationsMode); + } + } + + /** + * Gets the message disposition. + * + * @return the message disposition + */ + public MessageDisposition getMessageDisposition() { + return messageDisposition; + } + + /** + * Sets the message disposition. + * + * @param value the new message disposition + */ + public void setMessageDisposition(MessageDisposition value) { + messageDisposition = value; + } + + /** + * Gets the send invitations mode. + * + * @return the send invitations mode + */ + public SendInvitationsMode getSendInvitationsMode() { + return sendInvitationsMode; + } + + /** + * Sets the send invitations mode. + * + * @param value the new send invitations mode + */ + public void setSendInvitationsMode(SendInvitationsMode value) { + sendInvitationsMode = value; + } + + /** + * Gets the items. + * + * @param value the new items + */ + public void setItems(Collection value) { + this.setObjects(value); + } + + /** + * Gets the items. + * + * @return the items + */ + public Iterable getItems() { + return this.getObjects(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java index 45e007639..51ca6981f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java @@ -12,47 +12,44 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to an individual item creation operation. - * - * */ final class CreateItemResponse extends CreateItemResponseBase { - /** The item. */ - private Item item; + /** + * The item. + */ + private Item item; - /** - * Gets Item instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return the object instance - */ - @Override - protected Item getObjectInstance(ExchangeService service, - String xmlElementName) { - return this.item; - } + /** + * Gets Item instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return the object instance + */ + @Override + protected Item getObjectInstance(ExchangeService service, + String xmlElementName) { + return this.item; + } - /** - * Initializes a new instance. - * - * @param item - * The item. - */ - protected CreateItemResponse(Item item) { - super(); - this.item = item; - } + /** + * Initializes a new instance. + * + * @param item The item. + */ + protected CreateItemResponse(Item item) { + super(); + this.item = item; + } - /** - * Clears the change log of the created folder if the creation succeeded. - */ - @Override - protected void loaded() { - if (this.getResult() == ServiceResult.Success) { - this.item.clearChangeLog(); - } - } + /** + * Clears the change log of the created folder if the creation succeeded. + */ + @Override + protected void loaded() { + if (this.getResult() == ServiceResult.Success) { + this.item.clearChangeLog(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java index 57a1bc43b..cd5310327 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java @@ -14,83 +14,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base response class for item creation operations. - * - * */ @EditorBrowsable(state = EditorBrowsableState.Never) abstract class CreateItemResponseBase extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The items. */ - private List items; + /** + * The items. + */ + private List items; - /** - * Gets Item instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return Item. - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws Exception - * the exception - */ - protected abstract Item getObjectInstance(ExchangeService service, - String xmlElementName) throws InstantiationException, - IllegalAccessException, Exception; + /** + * Gets Item instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return Item. + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws Exception the exception + */ + protected abstract Item getObjectInstance(ExchangeService service, + String xmlElementName) throws InstantiationException, + IllegalAccessException, Exception; - /** - * Gets the object instance delegate. - * - * @param service - * accepts ExchangeService - * @param xmlElementName - * accepts String - * @return object - * @throws Exception - * throws Exception - */ - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service accepts ExchangeService + * @param xmlElementName accepts String + * @return object + * @throws Exception throws Exception + */ + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } - /** - * Initializes a new instance. - */ - protected CreateItemResponseBase() { - super(); - } + /** + * Initializes a new instance. + */ + protected CreateItemResponseBase() { + super(); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - this.items = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Items, this, false, /* clearPropertyBag */ - null, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + this.items = reader.readServiceObjectsCollectionFromXml( + XmlElementNames.Items, this, false, /* clearPropertyBag */ + null, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ + } - /** - * Gets the items. - * - * @return List of items. - */ - public List getItems() { - return items; - } + /** + * Gets the items. + * + * @return List of items. + */ + public List getItems() { + return items; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java index af536c0ef..0a714f726 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java @@ -14,139 +14,136 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Create request. - * - * @param - * The type of the service object. - * @param - * The type of the response. + * + * @param The type of the service object. + * @param The type of the response. */ -abstract class CreateRequest - extends MultiResponseServiceRequest { - - /** The parent folder id. */ - private FolderId parentFolderId; - - /** The objects. */ - private Collection objects; - - /** - * Initializes a new instance. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected CreateRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validates the request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - if (this.getParentFolderId() != null) { - this.getParentFolderId().validate( - this.getService().getRequestedServerVersion()); - } - } - - /** - * Gets the expected response message count. - * - * @return the expected response message count - */ - @Override - protected int getExpectedResponseMessageCount() { - return EwsUtilities.getEnumeratedObjectCount(this.objects.iterator()); - } - - /** - * Gets the name of the parent folder XML element. - * - * @return The name of the parent folder XML element. - */ - protected abstract String getParentFolderXmlElementName(); - - /** - * Gets the name of the object collection XML element. - * - * @return The name of the object collection XML element. - */ - protected abstract String getObjectCollectionXmlElementName(); - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ServiceRequestBase#writeElementsToXml( - * microsoft.exchange.webservices.EwsServiceXmlWriter) - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.parentFolderId != null) { - writer.writeStartElement(XmlNamespace.Messages, this - .getParentFolderXmlElementName()); - this.getParentFolderId().writeToXml(writer); - writer.writeEndElement(); - } - - writer.writeStartElement(XmlNamespace.Messages, this - .getObjectCollectionXmlElementName()); - if (null != this.objects) { - for (ServiceObject obj : this.objects) { - obj.writeToXml(writer); - } - } - writer.writeEndElement(); - - } - - /** - * Gets the service objects. - * - * @return Iterator - */ - protected Iterable getObjects() { - return this.objects; - } - - /** - * Sets the service objects. - * - * @param value - * Iterator - */ - protected void setObjects(Collection value) { - this.objects = value; - } - - /** - * Gets the parent folder id. - * - * @return FolderId. - */ - public FolderId getParentFolderId() { - return this.parentFolderId; - } - - /** - * Sets the parent folder id. - * - * @param value - * FolderId. - */ - public void setParentFolderId(FolderId value) { - this.parentFolderId = value; - } +abstract class CreateRequest + extends MultiResponseServiceRequest { + + /** + * The parent folder id. + */ + private FolderId parentFolderId; + + /** + * The objects. + */ + private Collection objects; + + /** + * Initializes a new instance. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected CreateRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validates the request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + if (this.getParentFolderId() != null) { + this.getParentFolderId().validate( + this.getService().getRequestedServerVersion()); + } + } + + /** + * Gets the expected response message count. + * + * @return the expected response message count + */ + @Override + protected int getExpectedResponseMessageCount() { + return EwsUtilities.getEnumeratedObjectCount(this.objects.iterator()); + } + + /** + * Gets the name of the parent folder XML element. + * + * @return The name of the parent folder XML element. + */ + protected abstract String getParentFolderXmlElementName(); + + /** + * Gets the name of the object collection XML element. + * + * @return The name of the object collection XML element. + */ + protected abstract String getObjectCollectionXmlElementName(); + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ServiceRequestBase#writeElementsToXml( + * microsoft.exchange.webservices.EwsServiceXmlWriter) + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.parentFolderId != null) { + writer.writeStartElement(XmlNamespace.Messages, this + .getParentFolderXmlElementName()); + this.getParentFolderId().writeToXml(writer); + writer.writeEndElement(); + } + + writer.writeStartElement(XmlNamespace.Messages, this + .getObjectCollectionXmlElementName()); + if (null != this.objects) { + for (ServiceObject obj : this.objects) { + obj.writeToXml(writer); + } + } + writer.writeEndElement(); + + } + + /** + * Gets the service objects. + * + * @return Iterator + */ + protected Iterable getObjects() { + return this.objects; + } + + /** + * Sets the service objects. + * + * @param value Iterator + */ + protected void setObjects(Collection value) { + this.objects = value; + } + + /** + * Gets the parent folder id. + * + * @return FolderId. + */ + public FolderId getParentFolderId() { + return this.parentFolderId; + } + + /** + * Sets the parent folder id. + * + * @param value FolderId. + */ + public void setParentFolderId(FolderId value) { + this.parentFolderId = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java index 0a09b5cee..19dcd4eff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java @@ -11,48 +11,44 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a CreateItem request for a response object. + * Represents a CreateItem request for a response object. */ final class CreateResponseObjectRequest extends - CreateItemRequestBase { + CreateItemRequestBase { - /** - * Initializes a new instance of the CreateResponseObjectRequest class. - * - * @param service - * The Service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - CreateResponseObjectRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the CreateResponseObjectRequest class. + * + * @param service The Service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + CreateResponseObjectRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service object. - */ - @Override - protected CreateResponseObjectResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new CreateResponseObjectResponse(); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service object. + */ + @Override + protected CreateResponseObjectResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new CreateResponseObjectResponse(); + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java index 5dd7037c6..04abd40cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java @@ -11,43 +11,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * - *Represents response to generic Create request. + * Represents response to generic Create request. */ @EditorBrowsable(state = EditorBrowsableState.Never) final class CreateResponseObjectResponse extends CreateItemResponseBase { - /** - * Gets Item instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return Item. - * @throws Exception - * the exception - */ - @Override - protected Item getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - try { - return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, - service, xmlElementName); - } catch (InstantiationException e) { - e.printStackTrace(); - return null; - } catch (IllegalAccessException e) { - e.printStackTrace(); - return null; - } - } + /** + * Gets Item instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return Item. + * @throws Exception the exception + */ + @Override + protected Item getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + try { + return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, + service, xmlElementName); + } catch (InstantiationException e) { + e.printStackTrace(); + return null; + } catch (IllegalAccessException e) { + e.printStackTrace(); + return null; + } + } - /** - * Initializes a new instance of the CreateResponseObjectResponse class. - */ - protected CreateResponseObjectResponse() { - super(); - } + /** + * Initializes a new instance of the CreateResponseObjectResponse class. + */ + protected CreateResponseObjectResponse() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java index 459716457..28a1c2f0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java @@ -13,76 +13,79 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an operation to create a new rule. */ -public final class CreateRuleOperation extends RuleOperation{ - - - /** - * Inbox rule to be created. - */ - private Rule rule; - - /** - * Initializes a new instance of the - * class. - */ - public CreateRuleOperation() { - super(); - } - - /** - * Initializes a new instance of the - * class. - * @param rule The inbox rule to create. - */ - public CreateRuleOperation(Rule rule) { - super(); - this.rule = rule; - } - - /** - * Gets or sets the rule to be created. - */ - public Rule getRule() { - - return this.rule; - } - - public void setRule(Rule value) { - - if (this.canSetFieldValue(this.rule, value)) { - this.rule = value; - this.changed(); - - } - } - - /** - * Writes elements to XML. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getRule().writeToXml(writer, XmlElementNames.Rule); - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - EwsUtilities.validateParam(this.rule, "Rule"); - } - - /** - * Gets the Xml element name of the CreateRuleOperation object. - */ - @Override - protected String getXmlElementName() { - - return XmlElementNames.CreateRuleOperation; - } - -} \ No newline at end of file +public final class CreateRuleOperation extends RuleOperation { + + + /** + * Inbox rule to be created. + */ + private Rule rule; + + /** + * Initializes a new instance of the + * class. + */ + public CreateRuleOperation() { + super(); + } + + /** + * Initializes a new instance of the + * class. + * + * @param rule The inbox rule to create. + */ + public CreateRuleOperation(Rule rule) { + super(); + this.rule = rule; + } + + /** + * Gets or sets the rule to be created. + */ + public Rule getRule() { + + return this.rule; + } + + public void setRule(Rule value) { + + if (this.canSetFieldValue(this.rule, value)) { + this.rule = value; + this.changed(); + + } + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getRule().writeToXml(writer, XmlElementNames.Rule); + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + EwsUtilities.validateParam(this.rule, "Rule"); + } + + /** + * Gets the Xml element name of the CreateRuleOperation object. + */ + @Override + protected String getXmlElementName() { + + return XmlElementNames.CreateRuleOperation; + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java index cccb8b02d..0d316dcee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java @@ -12,137 +12,131 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a CreateUserConfiguration request. - * */ class CreateUserConfigurationRequest extends - MultiResponseServiceRequest { + MultiResponseServiceRequest { - /** The user configuration. */ - protected UserConfiguration userConfiguration; + /** + * The user configuration. + */ + protected UserConfiguration userConfiguration; - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); - } + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); + } - /** - * Creates the service response. - * - * @param service - * The service. - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } - /** - * Gets the name of the XML element. - * - * @return XML element name, - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.CreateUserConfiguration; - } + /** + * Gets the name of the XML element. + * + * @return XML element name, + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.CreateUserConfiguration; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.CreateUserConfigurationResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.CreateUserConfigurationResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.CreateUserConfigurationResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.CreateUserConfigurationResponseMessage; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // Write UserConfiguation element - this.userConfiguration.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.UserConfiguration); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // Write UserConfiguation element + this.userConfiguration.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.UserConfiguration); + } - /** - * Initializes a new instance of the class. - * - * @param service - * The service. - * @throws Exception - */ - protected CreateUserConfigurationRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } + /** + * Initializes a new instance of the class. + * + * @param service The service. + * @throws Exception + */ + protected CreateUserConfigurationRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } - /** - * Gets the user configuration. - * - * @return The userConfiguration. - */ - public UserConfiguration getUserConfiguration() { - return this.userConfiguration; + /** + * Gets the user configuration. + * + * @return The userConfiguration. + */ + public UserConfiguration getUserConfiguration() { + return this.userConfiguration; - } + } - /** - * Sets the user configuration. - * - * @param value - * the new user configuration - */ - public void setUserConfiguration(UserConfiguration value) { - this.userConfiguration = value; - } + /** + * Sets the user configuration. + * + * @param value the new user configuration + */ + public void setUserConfiguration(UserConfiguration value) { + this.userConfiguration = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java index 42751ff47..1df41ffb7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java @@ -12,25 +12,25 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of //These constants needs to be defined as per user configurations. public interface CredentialConstants { - String URL = ""; - String USERNAME = ""; - String DOMAIN = ""; - String EMAIL_ID = ""; - String PASSWORD = ""; - String ATTENDEE_EMAIL_ID = ""; - String ATTENDEE_USERNAME = ""; - String ATTENDEE_PASSWORD = ""; - String PROXY_CRED_USERNAME = ""; - String PROXY_CRED_PASSWORD = ""; - String PROXY_CRED_DOMAIN = ""; - String PROXY_HOST = ""; - int PROXY_PORT = 80; - String PATH = ""; - String COPYTOFILEPATH = ""; - String SMTPADDRESS_DISTRIBUTION_GROUP = ""; - String SMTPADDRESS_ROOM = ""; - int THREAD_SLEEP_MILLSEC = 5000; - + String URL = ""; + String USERNAME = ""; + String DOMAIN = ""; + String EMAIL_ID = ""; + String PASSWORD = ""; + String ATTENDEE_EMAIL_ID = ""; + String ATTENDEE_USERNAME = ""; + String ATTENDEE_PASSWORD = ""; + String PROXY_CRED_USERNAME = ""; + String PROXY_CRED_PASSWORD = ""; + String PROXY_CRED_DOMAIN = ""; + String PROXY_HOST = ""; + int PROXY_PORT = 80; + String PATH = ""; + String COPYTOFILEPATH = ""; + String SMTPADDRESS_DISTRIBUTION_GROUP = ""; + String SMTPADDRESS_ROOM = ""; + int THREAD_SLEEP_MILLSEC = 5000; + } diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java index 5e8b2cdec..780f4703c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java @@ -15,14 +15,14 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DateTimePrecision { - // Default value. No SOAP header emitted. - Default, - - // Seconds - - Seconds, + // Default value. No SOAP header emitted. + Default, - // Milliseconds + // Seconds - Milliseconds + Seconds, + + // Milliseconds + + Milliseconds } diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index 414a0f56c..1eb8eb9ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -13,132 +13,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; import java.util.EnumSet; -/*** +/** * Represents DateTime property definition. - * */ class DateTimePropertyDefinition extends PropertyDefinition { - /** The is nullable. */ - private boolean isNullable; + /** + * The is nullable. + */ + private boolean isNullable; - /** - * Initializes a new instance of the DateTimePropertyDefinition class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param version - * the version - */ - protected DateTimePropertyDefinition(String xmlElementName, String uri, - ExchangeVersion version) { - super(xmlElementName, uri, version); - } + /** + * Initializes a new instance of the DateTimePropertyDefinition class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param version the version + */ + protected DateTimePropertyDefinition(String xmlElementName, String uri, + ExchangeVersion version) { + super(xmlElementName, uri, version); + } - /** - * Initializes a new instance of the DateTimePropertyDefinition class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected DateTimePropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the DateTimePropertyDefinition class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected DateTimePropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } - /** - * Initializes a new instance of the DateTimePropertyDefinition class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - * @param isNullable - * the is nullable - */ - protected DateTimePropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version, - boolean isNullable) { - super(xmlElementName, uri, flags, version); - this.isNullable = isNullable; - } + /** + * Initializes a new instance of the DateTimePropertyDefinition class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + * @param isNullable the is nullable + */ + protected DateTimePropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version, + boolean isNullable) { + super(xmlElementName, uri, flags, version); + this.isNullable = isNullable; + } - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - String value = reader.readElementValue(XmlNamespace.Types, - getXmlElement()); - propertyBag.setObjectFromPropertyDefinition(this, reader.getService() - .convertUniversalDateTimeStringToDate(value)); - } + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + String value = reader.readElementValue(XmlNamespace.Types, + getXmlElement()); + propertyBag.setObjectFromPropertyDefinition(this, reader.getService() + .convertUniversalDateTimeStringToDate(value)); + } - /** - * Writes the property value to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @param propertyBag - * accepts PropertyBag - * @param isUpdateOperation - * accepts boolean whether the context is an update operation. - * @throws Exception - * throws Exception - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { - Object value = propertyBag.getObjectFromPropertyDefinition(this); + /** + * Writes the property value to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @param propertyBag accepts PropertyBag + * @param isUpdateOperation accepts boolean whether the context is an update operation. + * @throws Exception throws Exception + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { + Object value = propertyBag.getObjectFromPropertyDefinition(this); - if (value != null) { - writer.writeStartElement(XmlNamespace.Types, getXmlElement()); - // No need of changing the date time zone to UTC as Java takes - // default timezone as UTC - Date dateTime = (Date)value; - writer.writeValue(EwsUtilities.dateTimeToXSDateTime(dateTime), - getName()); + if (value != null) { + writer.writeStartElement(XmlNamespace.Types, getXmlElement()); + // No need of changing the date time zone to UTC as Java takes + // default timezone as UTC + Date dateTime = (Date) value; + writer.writeValue(EwsUtilities.dateTimeToXSDateTime(dateTime), + getName()); - writer.writeEndElement(); - } - } + writer.writeEndElement(); + } + } - /** - * Gets a value indicating whether this property definition is for a - * nullable type (ref, int?, bool?...). - * - * @return true, if is nullable - */ - protected boolean isNullable() { - return isNullable; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return Date.class; - - } + /** + * Gets a value indicating whether this property definition is for a + * nullable type (ref, int?, bool?...). + * + * @return true, if is nullable + */ + protected boolean isNullable() { + return isNullable; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return Date.class; + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index 4d7d02115..2e89ebcbc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -21,64 +21,85 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DayOfTheWeek { - // Sunday - /** The Sunday. */ - Sunday(Calendar.SUNDAY), - - // Monday - /** The Monday. */ - Monday(Calendar.MONDAY), - - // Tuesday - /** The Tuesday. */ - Tuesday(Calendar.TUESDAY), - - // Wednesday - /** The Wednesday. */ - Wednesday(Calendar.WEDNESDAY), - - // Thursday - /** The Thursday. */ - Thursday(Calendar.THURSDAY), - - // Friday - /** The Friday. */ - Friday(Calendar.FRIDAY), - - // Saturday - /** The Saturday. */ - Saturday(Calendar.SATURDAY), - - // Any day of the week - /** The Day. */ - Day(), - - // Any day of the usual business week (Monday-Friday) - /** The Weekday. */ - Weekday(), - - // Any weekend day (Saturday or Sunday) - /** The Weekend day. */ - WeekendDay; - - /** The day of week. */ - @SuppressWarnings("unused") - private int dayOfWeek = 0; - - /** - * Instantiates a new day of the week. - * - * @param dayOfWeek - * the day of week - */ - DayOfTheWeek(int dayOfWeek) { - this.dayOfWeek = dayOfWeek; - } - - /** - * Instantiates a new day of the week. - */ - DayOfTheWeek() { - - } + // Sunday + /** + * The Sunday. + */ + Sunday(Calendar.SUNDAY), + + // Monday + /** + * The Monday. + */ + Monday(Calendar.MONDAY), + + // Tuesday + /** + * The Tuesday. + */ + Tuesday(Calendar.TUESDAY), + + // Wednesday + /** + * The Wednesday. + */ + Wednesday(Calendar.WEDNESDAY), + + // Thursday + /** + * The Thursday. + */ + Thursday(Calendar.THURSDAY), + + // Friday + /** + * The Friday. + */ + Friday(Calendar.FRIDAY), + + // Saturday + /** + * The Saturday. + */ + Saturday(Calendar.SATURDAY), + + // Any day of the week + /** + * The Day. + */ + Day(), + + // Any day of the usual business week (Monday-Friday) + /** + * The Weekday. + */ + Weekday(), + + // Any weekend day (Saturday or Sunday) + /** + * The Weekend day. + */ + WeekendDay; + + /** + * The day of week. + */ + @SuppressWarnings("unused") + private int dayOfWeek = 0; + + /** + * Instantiates a new day of the week. + * + * @param dayOfWeek the day of week + */ + DayOfTheWeek(int dayOfWeek) { + this.dayOfWeek = dayOfWeek; + } + + /** + * Instantiates a new day of the week. + */ + DayOfTheWeek() { + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java index 02bd7c157..5c44d44a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java @@ -10,205 +10,191 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a collection of DayOfTheWeek values. - * */ public final class DayOfTheWeekCollection extends ComplexProperty implements - Iterable { - - /** The items. */ - private List items = new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - protected DayOfTheWeekCollection() { - } - - /** - * Convert to string. - * - * @param separator - * the separator - * @return String representation of collection. - */ - private String toString(String separator) { - if (this.getCount() == 0) { - return ""; - } else { - // String[] daysOfTheWeekArray = new String[this.getCount()]; - StringBuffer daysOfTheWeekstr = new StringBuffer(); - - for (int i = 0; i < this.getCount(); i++) { - // daysOfTheWeekArray[i] = items.get(i).toString(); - if (daysOfTheWeekstr.length() == 0) { - daysOfTheWeekstr.append(items.get(i).toString()); - } else { - daysOfTheWeekstr.append(separator); - daysOfTheWeekstr.append(items.get(i).toString()); - } - } - - return daysOfTheWeekstr.toString(); - } - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String xmlElementName) - throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - xmlElementName); - EwsUtilities.parseEnumValueList(DayOfTheWeek.class, this.items, reader - .readElementValue(), ' '); - } - - /** - * Gets the request version. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - String daysOfWeekAsString = this.toString(" "); - - if (!(daysOfWeekAsString == null || daysOfWeekAsString.isEmpty())) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DaysOfWeek, daysOfWeekAsString); - } - } - - /** - * Builds string representation of the collection. - * - * @return A comma-delimited string representing the collection. - */ - @Override - public String toString() { - return this.toString(","); - } - - /** - * Adds a day to the collection if it is not already present. - * - * @param dayOfTheWeek - * The day to add. - */ - public void add(DayOfTheWeek dayOfTheWeek) { - if (!this.items.contains(dayOfTheWeek)) { - this.items.add(dayOfTheWeek); - this.changed(); - } - } - - /** - * Adds multiple days to the collection if they are not already present. - * - * @param daysOfTheWeek - * The days to add. - */ - public void addRange(Iterator daysOfTheWeek) { - while (daysOfTheWeek.hasNext()) { - this.add(daysOfTheWeek.next()); - } - } - - /** - * Clears the collection. - */ - public void clear() { - if (this.getCount() > 0) { - this.items.clear(); - this.changed(); - } - } - - /** - * Remove a specific day from the collection. - * - * @param dayOfTheWeek - * the day of the week - * @return True if the day was removed from the collection, false otherwise. - */ - public boolean remove(DayOfTheWeek dayOfTheWeek) { - boolean result = this.items.remove(dayOfTheWeek); - - if (result) { - this.changed(); - } - return result; - } - - /** - * Removes the day at a specific index. - * - * @param index - * the index - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public void removeAt(int index) throws ArgumentOutOfRangeException { - if (index < 0 || index >= this.getCount()) { - throw new ArgumentOutOfRangeException("index", - Strings.IndexIsOutOfRange); - } - - this.items.remove(index); - this.changed(); - } - - /** - * Gets the DayOfTheWeek at a specific index in the collection. - * - * @param index - * the index - * @return DayOfTheWeek at index - */ - public DayOfTheWeek getWeekCollectionAtIndex(int index) { - return this.items.get(index); - } - - /** - * Gets the number of days in the collection. - * - * @return the count - */ - public int getCount() { - return this.items.size(); - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - return this.items.iterator(); - } + Iterable { + + /** + * The items. + */ + private List items = new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + protected DayOfTheWeekCollection() { + } + + /** + * Convert to string. + * + * @param separator the separator + * @return String representation of collection. + */ + private String toString(String separator) { + if (this.getCount() == 0) { + return ""; + } else { + // String[] daysOfTheWeekArray = new String[this.getCount()]; + StringBuffer daysOfTheWeekstr = new StringBuffer(); + + for (int i = 0; i < this.getCount(); i++) { + // daysOfTheWeekArray[i] = items.get(i).toString(); + if (daysOfTheWeekstr.length() == 0) { + daysOfTheWeekstr.append(items.get(i).toString()); + } else { + daysOfTheWeekstr.append(separator); + daysOfTheWeekstr.append(items.get(i).toString()); + } + } + + return daysOfTheWeekstr.toString(); + } + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String xmlElementName) + throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + xmlElementName); + EwsUtilities.parseEnumValueList(DayOfTheWeek.class, this.items, reader + .readElementValue(), ' '); + } + + /** + * Gets the request version. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + String daysOfWeekAsString = this.toString(" "); + + if (!(daysOfWeekAsString == null || daysOfWeekAsString.isEmpty())) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DaysOfWeek, daysOfWeekAsString); + } + } + + /** + * Builds string representation of the collection. + * + * @return A comma-delimited string representing the collection. + */ + @Override + public String toString() { + return this.toString(","); + } + + /** + * Adds a day to the collection if it is not already present. + * + * @param dayOfTheWeek The day to add. + */ + public void add(DayOfTheWeek dayOfTheWeek) { + if (!this.items.contains(dayOfTheWeek)) { + this.items.add(dayOfTheWeek); + this.changed(); + } + } + + /** + * Adds multiple days to the collection if they are not already present. + * + * @param daysOfTheWeek The days to add. + */ + public void addRange(Iterator daysOfTheWeek) { + while (daysOfTheWeek.hasNext()) { + this.add(daysOfTheWeek.next()); + } + } + + /** + * Clears the collection. + */ + public void clear() { + if (this.getCount() > 0) { + this.items.clear(); + this.changed(); + } + } + + /** + * Remove a specific day from the collection. + * + * @param dayOfTheWeek the day of the week + * @return True if the day was removed from the collection, false otherwise. + */ + public boolean remove(DayOfTheWeek dayOfTheWeek) { + boolean result = this.items.remove(dayOfTheWeek); + + if (result) { + this.changed(); + } + return result; + } + + /** + * Removes the day at a specific index. + * + * @param index the index + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public void removeAt(int index) throws ArgumentOutOfRangeException { + if (index < 0 || index >= this.getCount()) { + throw new ArgumentOutOfRangeException("index", + Strings.IndexIsOutOfRange); + } + + this.items.remove(index); + this.changed(); + } + + /** + * Gets the DayOfTheWeek at a specific index in the collection. + * + * @param index the index + * @return DayOfTheWeek at index + */ + public DayOfTheWeek getWeekCollectionAtIndex(int index) { + return this.items.get(index); + } + + /** + * Gets the number of days in the collection. + * + * @return the count + */ + public int getCount() { + return this.items.size(); + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + return this.items.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java index b98dc3679..eb1f2d0a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java @@ -15,28 +15,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DayOfTheWeekIndex { - // The first specific day of the week in the month. For example, the first - // Tuesday of the month. - /** The First. */ - First, + // The first specific day of the week in the month. For example, the first + // Tuesday of the month. + /** + * The First. + */ + First, - // The second specific day of the week in the month. For example, the second - // Tuesday of the month. - /** The Second. */ - Second, + // The second specific day of the week in the month. For example, the second + // Tuesday of the month. + /** + * The Second. + */ + Second, - // The third specific day of the week in the month. For example, the third - // Tuesday of the month. - /** The Third. */ - Third, + // The third specific day of the week in the month. For example, the third + // Tuesday of the month. + /** + * The Third. + */ + Third, - // The fourth specific day of the week in the month. For example, the fourth - // Tuesday of the month. - /** The Fourth. */ - Fourth, + // The fourth specific day of the week in the month. For example, the fourth + // Tuesday of the month. + /** + * The Fourth. + */ + Fourth, - // The last specific day of the week in the month. For example, the last - // Tuesday of the month. - /** The Last. */ - Last + // The last specific day of the week in the month. For example, the last + // Tuesday of the month. + /** + * The Last. + */ + Last } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java index fd9f669b2..206ae2b31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java @@ -12,35 +12,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a meeting declination message. - * - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.DeclineItem, returnedByServer = false) public final class DeclineMeetingInvitationMessage extends - CalendarResponseMessage { + CalendarResponseMessage { - /** - * Initializes a new instance of the DeclineMeetingInvitationMessage class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - protected DeclineMeetingInvitationMessage(Item referenceItem) - throws Exception { - super(referenceItem); - } + /** + * Initializes a new instance of the DeclineMeetingInvitationMessage class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + protected DeclineMeetingInvitationMessage(Item referenceItem) + throws Exception { + super(referenceItem); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java index 86199d1b3..668636809 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java @@ -15,40 +15,58 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DefaultExtendedPropertySet { - // The Meeting extended property set. - /** The Meeting. */ - Meeting, + // The Meeting extended property set. + /** + * The Meeting. + */ + Meeting, - // The Appointment extended property set. - /** The Appointment. */ - Appointment, + // The Appointment extended property set. + /** + * The Appointment. + */ + Appointment, - // The Common extended property set. - /** The Common. */ - Common, + // The Common extended property set. + /** + * The Common. + */ + Common, - // The PublicStrings extended property set. - /** The Public strings. */ - PublicStrings, + // The PublicStrings extended property set. + /** + * The Public strings. + */ + PublicStrings, - // The Address extended property set. - /** The Address. */ - Address, + // The Address extended property set. + /** + * The Address. + */ + Address, - // The InternetHeaders extended property set. - /** The Internet headers. */ - InternetHeaders, + // The InternetHeaders extended property set. + /** + * The Internet headers. + */ + InternetHeaders, - // The CalendarAssistants extended property set. - /** The Calendar assistant. */ - CalendarAssistant, + // The CalendarAssistants extended property set. + /** + * The Calendar assistant. + */ + CalendarAssistant, - // The UnifiedMessaging extended property set. - /** The Unified messaging. */ - UnifiedMessaging, + // The UnifiedMessaging extended property set. + /** + * The Unified messaging. + */ + UnifiedMessaging, - // The Task extended property set. - /** The Task. */ - Task + // The Task extended property set. + /** + * The Task. + */ + Task } diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java index d862b2c33..865c55eec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java @@ -15,23 +15,33 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DelegateFolderPermissionLevel { - // The delegate has no permission. - /** The None. */ - None, + // The delegate has no permission. + /** + * The None. + */ + None, - // The delegate has Editor permissions. - /** The Editor. */ - Editor, + // The delegate has Editor permissions. + /** + * The Editor. + */ + Editor, - // The delegate has Reviewer permissions. - /** The Reviewer. */ - Reviewer, + // The delegate has Reviewer permissions. + /** + * The Reviewer. + */ + Reviewer, - // The delegate has Author permissions. - /** The Author. */ - Author, + // The delegate has Author permissions. + /** + * The Author. + */ + Author, - // The delegate has custom permissions. - /** The Custom. */ - Custom + // The delegate has custom permissions. + /** + * The Custom. + */ + Custom } diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java index 98f3dcd35..7ef438384 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java @@ -19,46 +19,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class DelegateInformation { - /** The delegate user responses. */ - private Collection delegateUserResponses; + /** + * The delegate user responses. + */ + private Collection delegateUserResponses; - /** The meeting reqests delivery scope. */ - private MeetingRequestsDeliveryScope meetingReqestsDeliveryScope; + /** + * The meeting reqests delivery scope. + */ + private MeetingRequestsDeliveryScope meetingReqestsDeliveryScope; - /** - * Initializes a DelegateInformation object. - * - * @param delegateUserResponses - * the delegate user responses - * @param meetingReqestsDeliveryScope - * the meeting reqests delivery scope - */ - protected DelegateInformation( - List delegateUserResponses, - MeetingRequestsDeliveryScope meetingReqestsDeliveryScope) { - this.delegateUserResponses = new ArrayList( - delegateUserResponses); - this.meetingReqestsDeliveryScope = meetingReqestsDeliveryScope; - } + /** + * Initializes a DelegateInformation object. + * + * @param delegateUserResponses the delegate user responses + * @param meetingReqestsDeliveryScope the meeting reqests delivery scope + */ + protected DelegateInformation( + List delegateUserResponses, + MeetingRequestsDeliveryScope meetingReqestsDeliveryScope) { + this.delegateUserResponses = new ArrayList( + delegateUserResponses); + this.meetingReqestsDeliveryScope = meetingReqestsDeliveryScope; + } - /** - * Gets a list of responses for each of the delegate users concerned by the - * operation. - * - * @return the delegate user responses - */ - public Collection getDelegateUserResponses() { - return delegateUserResponses; - } + /** + * Gets a list of responses for each of the delegate users concerned by the + * operation. + * + * @return the delegate user responses + */ + public Collection getDelegateUserResponses() { + return delegateUserResponses; + } - /** - * Gets a value indicating if and how meeting requests are delivered to - * delegates. - * - * @return the meeting reqests delivery scope - */ - public MeetingRequestsDeliveryScope getMeetingReqestsDeliveryScope() { - return meetingReqestsDeliveryScope; - } + /** + * Gets a value indicating if and how meeting requests are delivered to + * delegates. + * + * @return the meeting reqests delivery scope + */ + public MeetingRequestsDeliveryScope getMeetingReqestsDeliveryScope() { + return meetingReqestsDeliveryScope; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index d14760231..bf1a75a4c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -12,111 +12,103 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract delegate management request. - * - * @param - * The type of the response. + * + * @param The type of the response. */ abstract class DelegateManagementRequestBase - - extends SimpleServiceRequestBase { + + extends SimpleServiceRequestBase { - /** The mailbox. */ - private Mailbox mailbox; + /** + * The mailbox. + */ + private Mailbox mailbox; - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected DelegateManagementRequestBase(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected DelegateManagementRequestBase(ExchangeService service) + throws Exception { + super(service); + } - /** - * Validate request. - * - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParam(this.getMailbox(), "Mailbox"); - } + /** + * Validate request. + * + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParam(this.getMailbox(), "Mailbox"); + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getMailbox().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.Mailbox); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getMailbox().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.Mailbox); + } - /** - * Creates the response. - * - * @return Response object. - */ - protected abstract TResponse createResponse(); + /** + * Creates the response. + * + * @return Response object. + */ + protected abstract TResponse createResponse(); - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - DelegateManagementResponse response = this.createResponse(); - response.loadFromXml(reader, this.getResponseXmlElementName()); - return response; - } + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + DelegateManagementResponse response = this.createResponse(); + response.loadFromXml(reader, this.getResponseXmlElementName()); + return response; + } - /** - * Executes this request. - * - * @return Response object. - * @throws Exception - * the exception - */ - protected TResponse execute() throws Exception { - TResponse serviceResponse = (TResponse) this.internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Response object. + * @throws Exception the exception + */ + protected TResponse execute() throws Exception { + TResponse serviceResponse = (TResponse) this.internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } - /** - * Gets the mailbox. The mailbox. - * - * @return the mailbox - */ - public Mailbox getMailbox() { - return this.mailbox; - } + /** + * Gets the mailbox. The mailbox. + * + * @return the mailbox + */ + public Mailbox getMailbox() { + return this.mailbox; + } - /** - * Sets the mailbox. - * - * @param mailbox - * the new mailbox - */ - public void setMailbox(Mailbox mailbox) { - this.mailbox = mailbox; - } + /** + * Sets the mailbox. + * + * @param mailbox the new mailbox + */ + public void setMailbox(Mailbox mailbox) { + this.mailbox = mailbox; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java index 93147cd11..421543c14 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java @@ -19,85 +19,87 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class DelegateManagementResponse extends ServiceResponse { - /** The read delegate users. */ - private boolean readDelegateUsers; + /** + * The read delegate users. + */ + private boolean readDelegateUsers; - /** The delegate users. */ - private List delegateUsers; + /** + * The delegate users. + */ + private List delegateUsers; - /** The delegate user responses. */ - private Collection delegateUserResponses; + /** + * The delegate user responses. + */ + private Collection delegateUserResponses; - /** - * Initializes a new instance of the class. - * - * @param readDelegateUsers - * the read delegate users - * @param delegateUsers - * the delegate users - */ - protected DelegateManagementResponse(boolean readDelegateUsers, - List delegateUsers) { - super(); - this.readDelegateUsers = readDelegateUsers; - this.delegateUsers = delegateUsers; - } + /** + * Initializes a new instance of the class. + * + * @param readDelegateUsers the read delegate users + * @param delegateUsers the delegate users + */ + protected DelegateManagementResponse(boolean readDelegateUsers, + List delegateUsers) { + super(); + this.readDelegateUsers = readDelegateUsers; + this.delegateUsers = delegateUsers; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - if (this.getErrorCode() == ServiceError.NoError) { - this.delegateUserResponses = new ArrayList(); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + if (this.getErrorCode() == ServiceError.NoError) { + this.delegateUserResponses = new ArrayList(); - reader.read(); + reader.read(); - if (reader.isStartElement(XmlNamespace.Messages, - XmlElementNames.ResponseMessages)) { - int delegateUserIndex = 0; - do { - reader.read(); - if (reader.isStartElement(XmlNamespace.Messages, - XmlElementNames.DelegateUserResponseMessageType)) { - DelegateUser delegateUser = null; - if (this.readDelegateUsers && - (this.delegateUsers != null)) { - delegateUser = this.delegateUsers - .get(delegateUserIndex); - } + if (reader.isStartElement(XmlNamespace.Messages, + XmlElementNames.ResponseMessages)) { + int delegateUserIndex = 0; + do { + reader.read(); + if (reader.isStartElement(XmlNamespace.Messages, + XmlElementNames.DelegateUserResponseMessageType)) { + DelegateUser delegateUser = null; + if (this.readDelegateUsers && + (this.delegateUsers != null)) { + delegateUser = this.delegateUsers + .get(delegateUserIndex); + } - DelegateUserResponse delegateUserResponse = - new DelegateUserResponse( - readDelegateUsers, delegateUser); - delegateUserResponse - .loadFromXml( - reader, - XmlElementNames. - DelegateUserResponseMessageType); - this.delegateUserResponses.add(delegateUserResponse); + DelegateUserResponse delegateUserResponse = + new DelegateUserResponse( + readDelegateUsers, delegateUser); + delegateUserResponse + .loadFromXml( + reader, + XmlElementNames. + DelegateUserResponseMessageType); + this.delegateUserResponses.add(delegateUserResponse); - delegateUserIndex++; - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.ResponseMessages)); - } - } - } + delegateUserIndex++; + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.ResponseMessages)); + } + } + } - /** - * Gets a collection of responses for each of the delegate users concerned - * by the operation. - * - * @return the delegate user responses - */ - protected Collection getDelegateUserResponses() { - return this.delegateUserResponses; - } + /** + * Gets a collection of responses for each of the delegate users concerned + * by the operation. + * + * @return the delegate user responses + */ + protected Collection getDelegateUserResponses() { + return this.delegateUserResponses; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 57aaa8e26..875cb7834 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -10,364 +10,356 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.HashMap; import java.util.Map; -import javax.xml.stream.XMLStreamException; - /** * Represents the permissions of a delegate user. */ public final class DelegatePermissions extends ComplexProperty { - private Map delegateFolderPermissions; - - /** - * Initializes a new instance of the class. - */ - - protected DelegatePermissions() { - super(); - this.delegateFolderPermissions = new HashMap(); - - delegateFolderPermissions.put( - XmlElementNames.CalendarFolderPermissionLevel, - new DelegateFolderPermission()); - delegateFolderPermissions.put( - XmlElementNames.TasksFolderPermissionLevel, - new DelegateFolderPermission()); - delegateFolderPermissions.put( - XmlElementNames.InboxFolderPermissionLevel, - new DelegateFolderPermission()); - delegateFolderPermissions.put( - XmlElementNames.ContactsFolderPermissionLevel, - new DelegateFolderPermission()); - delegateFolderPermissions.put( - XmlElementNames.NotesFolderPermissionLevel, - new DelegateFolderPermission()); - delegateFolderPermissions.put( - XmlElementNames.JournalFolderPermissionLevel, - new DelegateFolderPermission()); - } - - /** - * Gets the delegate user's permission on the principal's calendar. - * - * @return the calendar folder permission level - */ - public DelegateFolderPermissionLevel getCalendarFolderPermissionLevel() { - return this.delegateFolderPermissions.get(XmlElementNames. - CalendarFolderPermissionLevel).getPermissionLevel(); - - } - - /** - * sets the delegate user's permission on the principal's calendar. - * - * @param value - * the new calendar folder permission level - */ - public void setCalendarFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - this.delegateFolderPermissions.get(XmlElementNames. - CalendarFolderPermissionLevel).setPermissionLevel(value); - } - - /** - * Gets the delegate user's permission on the principal's tasks - * folder. - * - * @return the tasks folder permission level - */ - public DelegateFolderPermissionLevel getTasksFolderPermissionLevel() { - return this.delegateFolderPermissions.get(XmlElementNames. - TasksFolderPermissionLevel).getPermissionLevel(); - - } - - /** - * Sets the tasks folder permission level. - * - * @param value - * the new tasks folder permission level - */ - public void setTasksFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - - this.delegateFolderPermissions.get(XmlElementNames. - TasksFolderPermissionLevel).setPermissionLevel(value); - } - - /** - * Gets the delegate user's permission on the principal's inbox. - * - * @return the inbox folder permission level - */ - public DelegateFolderPermissionLevel getInboxFolderPermissionLevel() { - return this.delegateFolderPermissions.get(XmlElementNames. - InboxFolderPermissionLevel). - getPermissionLevel(); - } - - /** - * Sets the inbox folder permission level. - * - * @param value - * the new inbox folder permission level - */ - public void setInboxFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - this.delegateFolderPermissions.get(XmlElementNames. - InboxFolderPermissionLevel). - setPermissionLevel(value); - } - - /** - * Gets the delegate user's permission on the principal's contacts - * folder. - * - * @return the contacts folder permission level - */ - public DelegateFolderPermissionLevel getContactsFolderPermissionLevel() { - return this.delegateFolderPermissions.get( - XmlElementNames.ContactsFolderPermissionLevel). - getPermissionLevel(); - } - - /** - * Sets the contacts folder permission level. - * - * @param value - * the new contacts folder permission level - */ - public void setContactsFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - this.delegateFolderPermissions.get( - XmlElementNames.ContactsFolderPermissionLevel). - setPermissionLevel(value); - } - - /** - * Gets the delegate user's permission on the principal's notes - * folder. - * - * @return the notes folder permission level - */ - public DelegateFolderPermissionLevel getNotesFolderPermissionLevel() { - return this.delegateFolderPermissions.get(XmlElementNames. - NotesFolderPermissionLevel). - getPermissionLevel(); - } - - /** - * Sets the notes folder permission level. - * - * @param value - * the new notes folder permission level - */ - public void setNotesFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - this.delegateFolderPermissions.get(XmlElementNames. - NotesFolderPermissionLevel). - setPermissionLevel(value); - } - - /** - * Gets the delegate user's permission on the principal's journal - * folder. - * - * @return the journal folder permission level - */ - public DelegateFolderPermissionLevel getJournalFolderPermissionLevel() { - return this.delegateFolderPermissions.get(XmlElementNames. - JournalFolderPermissionLevel). - getPermissionLevel(); - } - - /** - * Sets the journal folder permission level. - * - * @param value - * the new journal folder permission level - */ - public void setJournalFolderPermissionLevel( - DelegateFolderPermissionLevel value) { - this.delegateFolderPermissions.get(XmlElementNames. - JournalFolderPermissionLevel). - setPermissionLevel(value); - } - - /** - * Reset. - */ - protected void reset() { - for(DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) - { - delegateFolderPermission.reset(); - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return Returns true if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - DelegateFolderPermission delegateFolderPermission = null; - - if (this.delegateFolderPermissions.containsKey(reader.getLocalName())) { - delegateFolderPermission = this.delegateFolderPermissions. - get(reader.getLocalName()); - delegateFolderPermission.initialize(reader. - readElementValue(DelegateFolderPermissionLevel.class)); - } - - - return delegateFolderPermission != null; - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.writePermissionToXml(writer, - XmlElementNames.CalendarFolderPermissionLevel); - - this.writePermissionToXml(writer, - XmlElementNames.TasksFolderPermissionLevel); - - this.writePermissionToXml(writer, - XmlElementNames.InboxFolderPermissionLevel); - - this.writePermissionToXml(writer, - XmlElementNames.ContactsFolderPermissionLevel); - - this.writePermissionToXml(writer, - XmlElementNames.NotesFolderPermissionLevel); - - this.writePermissionToXml(writer, - XmlElementNames.JournalFolderPermissionLevel); - } - - /** - * Write permission to Xml. - * @param writer The writer. - * @param xmlElementName The element name. - */ - private void writePermissionToXml( - EwsServiceXmlWriter writer, - String xmlElementName) throws ServiceXmlSerializationException, - XMLStreamException { - DelegateFolderPermissionLevel delegateFolderPermissionLevel = - this.delegateFolderPermissions. - get(xmlElementName).getPermissionLevel(); - // E14 Bug 298307: UpdateDelegate fails if - //Custom permission level is round tripped - // - if (delegateFolderPermissionLevel != DelegateFolderPermissionLevel.Custom) { - writer.writeElementValue( - XmlNamespace.Types, - xmlElementName, - delegateFolderPermissionLevel); - } - } - - /** - * Validates this instance for AddDelegate. - * @throws ServiceValidationException - */ - protected void validateAddDelegate() throws ServiceValidationException { - for (DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) { - if(delegateFolderPermission.getPermissionLevel() == DelegateFolderPermissionLevel.Custom) { - throw new ServiceValidationException(Strings. - CannotSetDelegateFolderPermissionLevelToCustom); - } - } - } - - /** - * Validates this instance for UpdateDelegate. - * @throws ServiceValidationException - */ - protected void validateUpdateDelegate() throws ServiceValidationException { - for (DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) { - if(delegateFolderPermission.getPermissionLevel() == DelegateFolderPermissionLevel.Custom && - !delegateFolderPermission.isExistingPermissionLevelCustom) { - throw new ServiceValidationException(Strings. - CannotSetDelegateFolderPermissionLevelToCustom); - } - } - } - - /** - * Represents a folder's DelegateFolderPermissionLevel - */ - private static class DelegateFolderPermission { - - /** - * Initializes this DelegateFolderPermission. - * @param permissionLevel The DelegateFolderPermissionLevel - */ - protected void initialize( - DelegateFolderPermissionLevel permissionLevel) { - this.setPermissionLevel(permissionLevel); - this.setIsExistingPermissionLevelCustom(permissionLevel== - DelegateFolderPermissionLevel.Custom); - } - - /** - * Resets this DelegateFolderPermission. - */ - protected void reset() { - this.initialize(DelegateFolderPermissionLevel.None); - } - - - private DelegateFolderPermissionLevel permissionLevel = DelegateFolderPermissionLevel.None; - - /** - * Gets the delegate user's permission on a principal's folder. - */ - protected DelegateFolderPermissionLevel getPermissionLevel() { - return this.permissionLevel; - } - - /** - * Sets the delegate user's permission on a principal's folder. - */ - protected void setPermissionLevel( - DelegateFolderPermissionLevel value) { - this.permissionLevel = value; - } - - - private boolean isExistingPermissionLevelCustom; - - /** - * Gets IsExistingPermissionLevelCustom. - */ - protected boolean getIsExistingPermissionLevelCustom() { - return this.isExistingPermissionLevelCustom; - } - - /** - * Sets IsExistingPermissionLevelCustom. - */ - private void setIsExistingPermissionLevelCustom(Boolean value) { - this.isExistingPermissionLevelCustom = value; - } - - } -} \ No newline at end of file + private Map delegateFolderPermissions; + + /** + * Initializes a new instance of the class. + */ + + protected DelegatePermissions() { + super(); + this.delegateFolderPermissions = new HashMap(); + + delegateFolderPermissions.put( + XmlElementNames.CalendarFolderPermissionLevel, + new DelegateFolderPermission()); + delegateFolderPermissions.put( + XmlElementNames.TasksFolderPermissionLevel, + new DelegateFolderPermission()); + delegateFolderPermissions.put( + XmlElementNames.InboxFolderPermissionLevel, + new DelegateFolderPermission()); + delegateFolderPermissions.put( + XmlElementNames.ContactsFolderPermissionLevel, + new DelegateFolderPermission()); + delegateFolderPermissions.put( + XmlElementNames.NotesFolderPermissionLevel, + new DelegateFolderPermission()); + delegateFolderPermissions.put( + XmlElementNames.JournalFolderPermissionLevel, + new DelegateFolderPermission()); + } + + /** + * Gets the delegate user's permission on the principal's calendar. + * + * @return the calendar folder permission level + */ + public DelegateFolderPermissionLevel getCalendarFolderPermissionLevel() { + return this.delegateFolderPermissions.get(XmlElementNames. + CalendarFolderPermissionLevel).getPermissionLevel(); + + } + + /** + * sets the delegate user's permission on the principal's calendar. + * + * @param value the new calendar folder permission level + */ + public void setCalendarFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + this.delegateFolderPermissions.get(XmlElementNames. + CalendarFolderPermissionLevel).setPermissionLevel(value); + } + + /** + * Gets the delegate user's permission on the principal's tasks + * folder. + * + * @return the tasks folder permission level + */ + public DelegateFolderPermissionLevel getTasksFolderPermissionLevel() { + return this.delegateFolderPermissions.get(XmlElementNames. + TasksFolderPermissionLevel).getPermissionLevel(); + + } + + /** + * Sets the tasks folder permission level. + * + * @param value the new tasks folder permission level + */ + public void setTasksFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + + this.delegateFolderPermissions.get(XmlElementNames. + TasksFolderPermissionLevel).setPermissionLevel(value); + } + + /** + * Gets the delegate user's permission on the principal's inbox. + * + * @return the inbox folder permission level + */ + public DelegateFolderPermissionLevel getInboxFolderPermissionLevel() { + return this.delegateFolderPermissions.get(XmlElementNames. + InboxFolderPermissionLevel). + getPermissionLevel(); + } + + /** + * Sets the inbox folder permission level. + * + * @param value the new inbox folder permission level + */ + public void setInboxFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + this.delegateFolderPermissions.get(XmlElementNames. + InboxFolderPermissionLevel). + setPermissionLevel(value); + } + + /** + * Gets the delegate user's permission on the principal's contacts + * folder. + * + * @return the contacts folder permission level + */ + public DelegateFolderPermissionLevel getContactsFolderPermissionLevel() { + return this.delegateFolderPermissions.get( + XmlElementNames.ContactsFolderPermissionLevel). + getPermissionLevel(); + } + + /** + * Sets the contacts folder permission level. + * + * @param value the new contacts folder permission level + */ + public void setContactsFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + this.delegateFolderPermissions.get( + XmlElementNames.ContactsFolderPermissionLevel). + setPermissionLevel(value); + } + + /** + * Gets the delegate user's permission on the principal's notes + * folder. + * + * @return the notes folder permission level + */ + public DelegateFolderPermissionLevel getNotesFolderPermissionLevel() { + return this.delegateFolderPermissions.get(XmlElementNames. + NotesFolderPermissionLevel). + getPermissionLevel(); + } + + /** + * Sets the notes folder permission level. + * + * @param value the new notes folder permission level + */ + public void setNotesFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + this.delegateFolderPermissions.get(XmlElementNames. + NotesFolderPermissionLevel). + setPermissionLevel(value); + } + + /** + * Gets the delegate user's permission on the principal's journal + * folder. + * + * @return the journal folder permission level + */ + public DelegateFolderPermissionLevel getJournalFolderPermissionLevel() { + return this.delegateFolderPermissions.get(XmlElementNames. + JournalFolderPermissionLevel). + getPermissionLevel(); + } + + /** + * Sets the journal folder permission level. + * + * @param value the new journal folder permission level + */ + public void setJournalFolderPermissionLevel( + DelegateFolderPermissionLevel value) { + this.delegateFolderPermissions.get(XmlElementNames. + JournalFolderPermissionLevel). + setPermissionLevel(value); + } + + /** + * Reset. + */ + protected void reset() { + for (DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) { + delegateFolderPermission.reset(); + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return Returns true if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + DelegateFolderPermission delegateFolderPermission = null; + + if (this.delegateFolderPermissions.containsKey(reader.getLocalName())) { + delegateFolderPermission = this.delegateFolderPermissions. + get(reader.getLocalName()); + delegateFolderPermission.initialize(reader. + readElementValue(DelegateFolderPermissionLevel.class)); + } + + + return delegateFolderPermission != null; + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.writePermissionToXml(writer, + XmlElementNames.CalendarFolderPermissionLevel); + + this.writePermissionToXml(writer, + XmlElementNames.TasksFolderPermissionLevel); + + this.writePermissionToXml(writer, + XmlElementNames.InboxFolderPermissionLevel); + + this.writePermissionToXml(writer, + XmlElementNames.ContactsFolderPermissionLevel); + + this.writePermissionToXml(writer, + XmlElementNames.NotesFolderPermissionLevel); + + this.writePermissionToXml(writer, + XmlElementNames.JournalFolderPermissionLevel); + } + + /** + * Write permission to Xml. + * + * @param writer The writer. + * @param xmlElementName The element name. + */ + private void writePermissionToXml( + EwsServiceXmlWriter writer, + String xmlElementName) throws ServiceXmlSerializationException, + XMLStreamException { + DelegateFolderPermissionLevel delegateFolderPermissionLevel = + this.delegateFolderPermissions. + get(xmlElementName).getPermissionLevel(); + // E14 Bug 298307: UpdateDelegate fails if + //Custom permission level is round tripped + // + if (delegateFolderPermissionLevel != DelegateFolderPermissionLevel.Custom) { + writer.writeElementValue( + XmlNamespace.Types, + xmlElementName, + delegateFolderPermissionLevel); + } + } + + /** + * Validates this instance for AddDelegate. + * + * @throws ServiceValidationException + */ + protected void validateAddDelegate() throws ServiceValidationException { + for (DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) { + if (delegateFolderPermission.getPermissionLevel() == DelegateFolderPermissionLevel.Custom) { + throw new ServiceValidationException(Strings. + CannotSetDelegateFolderPermissionLevelToCustom); + } + } + } + + /** + * Validates this instance for UpdateDelegate. + * + * @throws ServiceValidationException + */ + protected void validateUpdateDelegate() throws ServiceValidationException { + for (DelegateFolderPermission delegateFolderPermission : this.delegateFolderPermissions.values()) { + if (delegateFolderPermission.getPermissionLevel() == DelegateFolderPermissionLevel.Custom && + !delegateFolderPermission.isExistingPermissionLevelCustom) { + throw new ServiceValidationException(Strings. + CannotSetDelegateFolderPermissionLevelToCustom); + } + } + } + + /** + * Represents a folder's DelegateFolderPermissionLevel + */ + private static class DelegateFolderPermission { + + /** + * Initializes this DelegateFolderPermission. + * + * @param permissionLevel The DelegateFolderPermissionLevel + */ + protected void initialize( + DelegateFolderPermissionLevel permissionLevel) { + this.setPermissionLevel(permissionLevel); + this.setIsExistingPermissionLevelCustom(permissionLevel == + DelegateFolderPermissionLevel.Custom); + } + + /** + * Resets this DelegateFolderPermission. + */ + protected void reset() { + this.initialize(DelegateFolderPermissionLevel.None); + } + + + private DelegateFolderPermissionLevel permissionLevel = DelegateFolderPermissionLevel.None; + + /** + * Gets the delegate user's permission on a principal's folder. + */ + protected DelegateFolderPermissionLevel getPermissionLevel() { + return this.permissionLevel; + } + + /** + * Sets the delegate user's permission on a principal's folder. + */ + protected void setPermissionLevel( + DelegateFolderPermissionLevel value) { + this.permissionLevel = value; + } + + + private boolean isExistingPermissionLevelCustom; + + /** + * Gets IsExistingPermissionLevelCustom. + */ + protected boolean getIsExistingPermissionLevelCustom() { + return this.isExistingPermissionLevelCustom; + } + + /** + * Sets IsExistingPermissionLevelCustom. + */ + private void setIsExistingPermissionLevelCustom(Boolean value) { + this.isExistingPermissionLevelCustom = value; + } + + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java index 8c5768684..5554403dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java @@ -15,207 +15,206 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class DelegateUser extends ComplexProperty { - /** The user id. */ - private UserId userId = new UserId(); - - /** The permissions. */ - private DelegatePermissions permissions = new DelegatePermissions(); - - /** The receive copies of meeting messages. */ - private boolean receiveCopiesOfMeetingMessages; - - /** The view private items. */ - private boolean viewPrivateItems; - - /** - * Initializes a new instance of the class. - * - */ - public DelegateUser() { - super(); - this.receiveCopiesOfMeetingMessages = false; - this.viewPrivateItems = false; - } - - /** - * Initializes a new instance of the class. - * - * @param primarySmtpAddress - * the primary smtp address - */ - public DelegateUser(String primarySmtpAddress) { - this(); - this.userId.setPrimarySmtpAddress(primarySmtpAddress); - } - - /** - * Initializes a new instance of the class. - * - * @param standardUser - * the standard user - */ - public DelegateUser(StandardUser standardUser) { - this(); - - this.userId.setStandardUser(standardUser); - } - - /** - * Gets the user Id of the delegate user. - * - * @return the user id - */ - public UserId getUserId() { - return this.userId; - } - - /** - * Gets the list of delegate user's permissions. - * - * @return the permissions - */ - public DelegatePermissions getPermissions() { - return this.permissions; - } - - /** - * Gets a value indicating if the delegate user should receive - * copies of meeting requests. - * - * @return the receive copies of meeting messages - */ - public boolean getReceiveCopiesOfMeetingMessages() { - return this.receiveCopiesOfMeetingMessages; - - } - - /** - * Sets the receive copies of meeting messages. - * - * @param value - * the new receive copies of meeting messages - */ - public void setReceiveCopiesOfMeetingMessages(boolean value) { - this.receiveCopiesOfMeetingMessages = value; - } - - /** - * Gets a value indicating if the delegate user should be - * able to view the principal's private items. - * - * @return the view private items - */ - public boolean getViewPrivateItems() { - return this.viewPrivateItems; - - } - - /** - * Gets a value indicating if the delegate user should be able to - * view the principal's private items. - * - * @param value - * the new view private items - */ - public void setViewPrivateItems(boolean value) { - - this.viewPrivateItems = value; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.UserId)) { - - this.userId = new UserId(); - this.userId.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.UserId)) { - - this.permissions.reset(); - this.permissions.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.ReceiveCopiesOfMeetingMessages)) { - - this.receiveCopiesOfMeetingMessages = reader - .readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.ViewPrivateItems)) { - - this.viewPrivateItems = reader.readElementValue(Boolean.class); - return true; - } else { - - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getUserId().writeToXml(writer, XmlElementNames.UserId); - this.getPermissions().writeToXml(writer, - XmlElementNames.DelegatePermissions); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ReceiveCopiesOfMeetingMessages, - this.receiveCopiesOfMeetingMessages); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ViewPrivateItems, this.viewPrivateItems); - } - - /** - * Validates this instance. - * - * @throws ServiceValidationException - * the service validation exception - */ - protected void internalValidate() throws ServiceValidationException { - if (this.getUserId() == null) { - throw new ServiceValidationException( - Strings.UserIdForDelegateUserNotSpecified); - } else if (!this.getUserId().isValid()) { - throw new ServiceValidationException( - Strings.DelegateUserHasInvalidUserId); - } - } - - /** - * Validates this instance for AddDelegate. - * @throws Exception - * @throws ServiceValidationException - */ - protected void validateAddDelegate() throws ServiceValidationException, - Exception { - { - this.permissions.validateAddDelegate(); - } - } - - /** - * Validates this instance for UpdateDelegate. - */ - protected void validateUpdateDelegate() throws Exception { - { - this.permissions.validateUpdateDelegate(); - } - } -} \ No newline at end of file + /** + * The user id. + */ + private UserId userId = new UserId(); + + /** + * The permissions. + */ + private DelegatePermissions permissions = new DelegatePermissions(); + + /** + * The receive copies of meeting messages. + */ + private boolean receiveCopiesOfMeetingMessages; + + /** + * The view private items. + */ + private boolean viewPrivateItems; + + /** + * Initializes a new instance of the class. + */ + public DelegateUser() { + super(); + this.receiveCopiesOfMeetingMessages = false; + this.viewPrivateItems = false; + } + + /** + * Initializes a new instance of the class. + * + * @param primarySmtpAddress the primary smtp address + */ + public DelegateUser(String primarySmtpAddress) { + this(); + this.userId.setPrimarySmtpAddress(primarySmtpAddress); + } + + /** + * Initializes a new instance of the class. + * + * @param standardUser the standard user + */ + public DelegateUser(StandardUser standardUser) { + this(); + + this.userId.setStandardUser(standardUser); + } + + /** + * Gets the user Id of the delegate user. + * + * @return the user id + */ + public UserId getUserId() { + return this.userId; + } + + /** + * Gets the list of delegate user's permissions. + * + * @return the permissions + */ + public DelegatePermissions getPermissions() { + return this.permissions; + } + + /** + * Gets a value indicating if the delegate user should receive + * copies of meeting requests. + * + * @return the receive copies of meeting messages + */ + public boolean getReceiveCopiesOfMeetingMessages() { + return this.receiveCopiesOfMeetingMessages; + + } + + /** + * Sets the receive copies of meeting messages. + * + * @param value the new receive copies of meeting messages + */ + public void setReceiveCopiesOfMeetingMessages(boolean value) { + this.receiveCopiesOfMeetingMessages = value; + } + + /** + * Gets a value indicating if the delegate user should be + * able to view the principal's private items. + * + * @return the view private items + */ + public boolean getViewPrivateItems() { + return this.viewPrivateItems; + + } + + /** + * Gets a value indicating if the delegate user should be able to + * view the principal's private items. + * + * @param value the new view private items + */ + public void setViewPrivateItems(boolean value) { + + this.viewPrivateItems = value; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.UserId)) { + + this.userId = new UserId(); + this.userId.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.UserId)) { + + this.permissions.reset(); + this.permissions.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.ReceiveCopiesOfMeetingMessages)) { + + this.receiveCopiesOfMeetingMessages = reader + .readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.ViewPrivateItems)) { + + this.viewPrivateItems = reader.readElementValue(Boolean.class); + return true; + } else { + + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getUserId().writeToXml(writer, XmlElementNames.UserId); + this.getPermissions().writeToXml(writer, + XmlElementNames.DelegatePermissions); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ReceiveCopiesOfMeetingMessages, + this.receiveCopiesOfMeetingMessages); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ViewPrivateItems, this.viewPrivateItems); + } + + /** + * Validates this instance. + * + * @throws ServiceValidationException the service validation exception + */ + protected void internalValidate() throws ServiceValidationException { + if (this.getUserId() == null) { + throw new ServiceValidationException( + Strings.UserIdForDelegateUserNotSpecified); + } else if (!this.getUserId().isValid()) { + throw new ServiceValidationException( + Strings.DelegateUserHasInvalidUserId); + } + } + + /** + * Validates this instance for AddDelegate. + * + * @throws Exception + * @throws ServiceValidationException + */ + protected void validateAddDelegate() throws ServiceValidationException, + Exception { + { + this.permissions.validateAddDelegate(); + } + } + + /** + * Validates this instance for UpdateDelegate. + */ + protected void validateUpdateDelegate() throws Exception { + { + this.permissions.validateUpdateDelegate(); + } + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java index 3e530f059..2b7c25000 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java @@ -16,57 +16,57 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class DelegateUserResponse extends ServiceResponse { - /** The read delegate user. */ - private boolean readDelegateUser; + /** + * The read delegate user. + */ + private boolean readDelegateUser; - /** The delegate user. */ - private DelegateUser delegateUser; + /** + * The delegate user. + */ + private DelegateUser delegateUser; - /** - * Initializes a new instance of the class. - * - * @param readDelegateUser - * the read delegate user - * @param delegateUser - * the delegate user - */ - protected DelegateUserResponse(boolean readDelegateUser, - DelegateUser delegateUser) { - super(); - this.readDelegateUser = readDelegateUser; - this.delegateUser = delegateUser; - } + /** + * Initializes a new instance of the class. + * + * @param readDelegateUser the read delegate user + * @param delegateUser the delegate user + */ + protected DelegateUserResponse(boolean readDelegateUser, + DelegateUser delegateUser) { + super(); + this.readDelegateUser = readDelegateUser; + this.delegateUser = delegateUser; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - if (this.readDelegateUser) { - if (this.delegateUser == null) { - this.delegateUser = new DelegateUser(); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + if (this.readDelegateUser) { + if (this.delegateUser == null) { + this.delegateUser = new DelegateUser(); + } - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.DelegateUser); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.DelegateUser); - this.delegateUser.loadFromXml(reader, XmlNamespace.Messages, reader - .getLocalName()); - } - } + this.delegateUser.loadFromXml(reader, XmlNamespace.Messages, reader + .getLocalName()); + } + } - /** - * The delegate user that was involved in the operation. - * - * @return the delegate user - */ - public DelegateUser getDelegateUser() { - return this.delegateUser; - } + /** + * The delegate user that was involved in the operation. + * + * @return the delegate user + */ + public DelegateUser getDelegateUser() { + return this.delegateUser; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index f66aa1a2d..fe23de4bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -13,57 +13,53 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an error that occurs when a call to the DeleteAttachment web * method fails. - * */ -public final class DeleteAttachmentException extends - ServiceRemoteException {// extends -// BatchServiceResponseException +public final class DeleteAttachmentException extends + ServiceRemoteException {// extends + // BatchServiceResponseException - /** The responses. */ - private ServiceResponseCollection responses; + /** + * The responses. + */ + private ServiceResponseCollection responses; - /** - * Initializes a new instance of DeleteAttachmentException. - * - * @param serviceResponses - * The list of responses to be associated with this exception. - * @param message - * The message that describes the error. - */ - protected DeleteAttachmentException( - ServiceResponseCollection - serviceResponses, - String message) { - // super(serviceResponses, message); - super(message); - EwsUtilities.EwsAssert(serviceResponses != null, - "MultiServiceResponseException.ctor", - "serviceResponses is null"); + /** + * Initializes a new instance of DeleteAttachmentException. + * + * @param serviceResponses The list of responses to be associated with this exception. + * @param message The message that describes the error. + */ + protected DeleteAttachmentException( + ServiceResponseCollection + serviceResponses, + String message) { + // super(serviceResponses, message); + super(message); + EwsUtilities.EwsAssert(serviceResponses != null, + "MultiServiceResponseException.ctor", + "serviceResponses is null"); - this.responses = serviceResponses; - } + this.responses = serviceResponses; + } - /** - * Initializes a new instance of DeleteAttachmentException. - * - * @param serviceResponses - * The list of responses to be associated with this exception. - * @param message - * The message that describes the error. - * @param innerException - * The exception that is the cause of the current exception. - */ - protected DeleteAttachmentException( - ServiceResponseCollection - serviceResponses, - String message, Exception innerException) { - // super(serviceResponses, message, innerException); - super(message, innerException); - EwsUtilities.EwsAssert(serviceResponses != null, - "MultiServiceResponseException.ctor", - "serviceResponses is null"); + /** + * Initializes a new instance of DeleteAttachmentException. + * + * @param serviceResponses The list of responses to be associated with this exception. + * @param message The message that describes the error. + * @param innerException The exception that is the cause of the current exception. + */ + protected DeleteAttachmentException( + ServiceResponseCollection + serviceResponses, + String message, Exception innerException) { + // super(serviceResponses, message, innerException); + super(message, innerException); + EwsUtilities.EwsAssert(serviceResponses != null, + "MultiServiceResponseException.ctor", + "serviceResponses is null"); - this.responses = serviceResponses; - } + this.responses = serviceResponses; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java index 3a51c66af..f6f7b3d8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java @@ -20,145 +20,140 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class DeleteAttachmentRequest. */ final class DeleteAttachmentRequest extends - MultiResponseServiceRequest { - - /** The attachments. */ - private List attachments = new ArrayList(); - - /** - * Initializes a new instance of the DeleteAttachmentRequest class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected DeleteAttachmentRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request. - */ - @Override - protected void validate() { - try { - super.validate(); - EwsUtilities.validateParamCollection(this.getAttachments() - .iterator(), "Attachments"); - for (int i = 0; i < this.attachments.size(); i++) { - EwsUtilities.validateParam(this.attachments.get(i).getId(), - String.format("Attachment[%d].Id ", i)); - } - } catch (ServiceLocalException e) { - e.printStackTrace(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service object. - */ - @Override - protected DeleteAttachmentResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new DeleteAttachmentResponse( - this.attachments.get(responseIndex)); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.attachments.size(); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DeleteAttachment; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.DeleteAttachmentResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.DeleteAttachmentResponseMessage; - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.AttachmentIds); - - for (Attachment attachment : this.attachments) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.AttachmentId); - writer - .writeAttributeValue(XmlAttributeNames.Id, attachment - .getId()); - writer.writeEndElement(); - } - - writer.writeEndElement(); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the attachments. - * - * @return the attachments - */ - public List getAttachments() { - return this.attachments; - } + MultiResponseServiceRequest { + + /** + * The attachments. + */ + private List attachments = new ArrayList(); + + /** + * Initializes a new instance of the DeleteAttachmentRequest class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected DeleteAttachmentRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request. + */ + @Override + protected void validate() { + try { + super.validate(); + EwsUtilities.validateParamCollection(this.getAttachments() + .iterator(), "Attachments"); + for (int i = 0; i < this.attachments.size(); i++) { + EwsUtilities.validateParam(this.attachments.get(i).getId(), + String.format("Attachment[%d].Id ", i)); + } + } catch (ServiceLocalException e) { + e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service object. + */ + @Override + protected DeleteAttachmentResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new DeleteAttachmentResponse( + this.attachments.get(responseIndex)); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.attachments.size(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DeleteAttachment; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.DeleteAttachmentResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.DeleteAttachmentResponseMessage; + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.AttachmentIds); + + for (Attachment attachment : this.attachments) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.AttachmentId); + writer + .writeAttributeValue(XmlAttributeNames.Id, attachment + .getId()); + writer.writeEndElement(); + } + + writer.writeEndElement(); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the attachments. + * + * @return the attachments + */ + public List getAttachments() { + return this.attachments; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java index b3439510c..5ca3ca374 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java @@ -11,61 +11,58 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents the response to an individual attachment deletion operation. - * + * Represents the response to an individual attachment deletion operation. */ public final class DeleteAttachmentResponse extends ServiceResponse { - /** The attachment. */ - private Attachment attachment; + /** + * The attachment. + */ + private Attachment attachment; - /** - * Initializes a new instance of the DeleteAttachmentResponse class. - * - * @param attachment - * the attachment - */ - protected DeleteAttachmentResponse(Attachment attachment) { - super(); - EwsUtilities.EwsAssert(attachment != null, - "DeleteAttachmentResponse.ctor", "attachment is null"); + /** + * Initializes a new instance of the DeleteAttachmentResponse class. + * + * @param attachment the attachment + */ + protected DeleteAttachmentResponse(Attachment attachment) { + super(); + EwsUtilities.EwsAssert(attachment != null, + "DeleteAttachmentResponse.ctor", "attachment is null"); - this.attachment = attachment; - } + this.attachment = attachment; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceLocalException, Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceLocalException, Exception { + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.RootItemId); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.RootItemId); - String changeKey = reader - .readAttributeValue(XmlAttributeNames.RootItemChangeKey); - if (!(null == changeKey || changeKey.isEmpty())) { - this.attachment.getOwner().getRootItemId().setChangeKey(changeKey); - } - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.RootItemId); - } + String changeKey = reader + .readAttributeValue(XmlAttributeNames.RootItemChangeKey); + if (!(null == changeKey || changeKey.isEmpty())) { + this.attachment.getOwner().getRootItemId().setChangeKey(changeKey); + } + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.RootItemId); + } - /** - * Gets the attachment that was deleted. - * - * @return the attachment - */ - protected Attachment getAttachment() { - return this.attachment; - } + /** + * Gets the attachment that was deleted. + * + * @return the attachment + */ + protected Attachment getAttachment() { + return this.attachment; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java index ca15a7e1f..4c41ae785 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java @@ -12,130 +12,125 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a DeleteFolder request. - * */ final class DeleteFolderRequest extends DeleteRequest { - /** The folder ids. */ - private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + /** + * The folder ids. + */ + private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - /** - * Initializes a new instance of the DeleteFolderRequest class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected DeleteFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the DeleteFolderRequest class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected DeleteFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); - this.getFolderIds().validate( - this.getService().getRequestedServerVersion()); - } + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); + this.getFolderIds().validate( + this.getService().getRequestedServerVersion()); + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getFolderIds().getCount(); - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getFolderIds().getCount(); + } - /** - * Creates the service response. - * - * @param service - * The service. - * @param responseIndex - * Index of the response. - * @return Service object. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service object. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } - /** - * Gets the name of the XML element. - * - * @return Xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DeleteFolder; - } + /** + * Gets the name of the XML element. + * + * @return Xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DeleteFolder; + } - /** - *Gets the name of the response XML element. - * - * @return Xml element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.DeleteFolderResponse; - } + /** + * Gets the name of the response XML element. + * + * @return Xml element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.DeleteFolderResponse; + } - /** - *Gets the name of the response message XML element. - * - * @return Xml element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.DeleteFolderResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return Xml element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.DeleteFolderResponseMessage; + } - /** - * Writes XML elements. - * - * @param writer - * The writer - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) { - try { - this.getFolderIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.FolderIds); - } catch (Exception e) { - e.printStackTrace(); - } - } + /** + * Writes XML elements. + * + * @param writer The writer + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) { + try { + this.getFolderIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.FolderIds); + } catch (Exception e) { + e.printStackTrace(); + } + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the folder ids. - * - * @return The folder ids. - */ - protected FolderIdWrapperList getFolderIds() { - return this.folderIds; - } + /** + * Gets the folder ids. + * + * @return The folder ids. + */ + protected FolderIdWrapperList getFolderIds() { + return this.folderIds; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java index f083a583b..a64521f2b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java @@ -15,194 +15,189 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class DeleteItemRequest extends DeleteRequest { - /** The item ids. */ - private ItemIdWrapperList itemIds = new ItemIdWrapperList(); - - /** The affected task occurrences. */ - private AffectedTaskOccurrence affectedTaskOccurrences; - - /** The send cancellations mode. */ - private SendCancellationsMode sendCancellationsMode; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - DeleteItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.itemIds, "ItemIds"); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.itemIds.getCount(); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DeleteItem; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.DeleteItemResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.DeleteItemResponseMessage; - } - - /** - * Writes XML attributes. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - - if (this.affectedTaskOccurrences != null) { - writer.writeAttributeValue( - XmlAttributeNames.AffectedTaskOccurrences, this - .getAffectedTaskOccurrences()); - } - - if (this.sendCancellationsMode != null) { - writer.writeAttributeValue( - XmlAttributeNames.SendMeetingCancellations, this - .getSendCancellationsMode()); - } - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.itemIds.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ItemIds); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the item ids. - * - * @return the item ids - */ - ItemIdWrapperList getItemIds() { - return this.itemIds; - } - - /** - * Gets the affected task occurrences. - * - * @return the affected task occurrences - */ - AffectedTaskOccurrence getAffectedTaskOccurrences() { - return this.affectedTaskOccurrences; - } - - /** - * Sets the affected task occurrences. - * - * @param affectedTaskOccurrences - * the new affected task occurrences - */ - void setAffectedTaskOccurrences( - AffectedTaskOccurrence affectedTaskOccurrences) { - this.affectedTaskOccurrences = affectedTaskOccurrences; - } - - /** - * Gets the send cancellations. - * - * @return the send cancellations mode - */ - SendCancellationsMode getSendCancellationsMode() { - return this.sendCancellationsMode; - } - - /** - * Sets the send cancellations mode. - * - * @param sendCancellationsMode - * the new send cancellations mode - */ - void setSendCancellationsMode(SendCancellationsMode sendCancellationsMode) { - this.sendCancellationsMode = sendCancellationsMode; - } + /** + * The item ids. + */ + private ItemIdWrapperList itemIds = new ItemIdWrapperList(); + + /** + * The affected task occurrences. + */ + private AffectedTaskOccurrence affectedTaskOccurrences; + + /** + * The send cancellations mode. + */ + private SendCancellationsMode sendCancellationsMode; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + DeleteItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.itemIds, "ItemIds"); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.itemIds.getCount(); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DeleteItem; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.DeleteItemResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.DeleteItemResponseMessage; + } + + /** + * Writes XML attributes. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + + if (this.affectedTaskOccurrences != null) { + writer.writeAttributeValue( + XmlAttributeNames.AffectedTaskOccurrences, this + .getAffectedTaskOccurrences()); + } + + if (this.sendCancellationsMode != null) { + writer.writeAttributeValue( + XmlAttributeNames.SendMeetingCancellations, this + .getSendCancellationsMode()); + } + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.itemIds.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ItemIds); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the item ids. + * + * @return the item ids + */ + ItemIdWrapperList getItemIds() { + return this.itemIds; + } + + /** + * Gets the affected task occurrences. + * + * @return the affected task occurrences + */ + AffectedTaskOccurrence getAffectedTaskOccurrences() { + return this.affectedTaskOccurrences; + } + + /** + * Sets the affected task occurrences. + * + * @param affectedTaskOccurrences the new affected task occurrences + */ + void setAffectedTaskOccurrences( + AffectedTaskOccurrence affectedTaskOccurrences) { + this.affectedTaskOccurrences = affectedTaskOccurrences; + } + + /** + * Gets the send cancellations. + * + * @return the send cancellations mode + */ + SendCancellationsMode getSendCancellationsMode() { + return this.sendCancellationsMode; + } + + /** + * Sets the send cancellations mode. + * + * @param sendCancellationsMode the new send cancellations mode + */ + void setSendCancellationsMode(SendCancellationsMode sendCancellationsMode) { + this.sendCancellationsMode = sendCancellationsMode; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java index adae92af5..889a805d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java @@ -15,17 +15,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DeleteMode { - // The item or folder will be permanently deleted. - /** The Hard delete. */ - HardDelete, + // The item or folder will be permanently deleted. + /** + * The Hard delete. + */ + HardDelete, - // The item or folder will be moved to the dumpster. Items and folders in - // the dumpster can be recovered. - /** The Soft delete. */ - SoftDelete, + // The item or folder will be moved to the dumpster. Items and folders in + // the dumpster can be recovered. + /** + * The Soft delete. + */ + SoftDelete, - // The item or folder will be moved to the mailbox' Deleted Items folder. - /** The Move to deleted items. */ - MoveToDeletedItems + // The item or folder will be moved to the mailbox' Deleted Items folder. + /** + * The Move to deleted items. + */ + MoveToDeletedItems } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java index d2f519a6c..c1fda3be4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java @@ -12,71 +12,65 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Delete request. - * - * @param - * The type of the response. + * + * @param The type of the response. */ abstract class DeleteRequest extends - MultiResponseServiceRequest { + MultiResponseServiceRequest { - /** - * Delete mode. Default is SoftDelete. - */ - private DeleteMode deleteMode = DeleteMode.SoftDelete; + /** + * Delete mode. Default is SoftDelete. + */ + private DeleteMode deleteMode = DeleteMode.SoftDelete; - /** - * Initializes a new instance of the DeleteRequest class. - * - * @param service - * The Servcie - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected DeleteRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the DeleteRequest class. + * + * @param service The Servcie + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected DeleteRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Writes XML attributes. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); + /** + * Writes XML attributes. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); - try { - writer.writeAttributeValue(XmlAttributeNames.DeleteType, this - .getDeleteMode()); - } catch (ServiceXmlSerializationException e) { - e.printStackTrace(); - } - } + try { + writer.writeAttributeValue(XmlAttributeNames.DeleteType, this + .getDeleteMode()); + } catch (ServiceXmlSerializationException e) { + e.printStackTrace(); + } + } - /** - * Gets the delete mode. - * - * @return the delete mode - */ - public DeleteMode getDeleteMode() { - return this.deleteMode; - } + /** + * Gets the delete mode. + * + * @return the delete mode + */ + public DeleteMode getDeleteMode() { + return this.deleteMode; + } - /** - * Gets the delete mode.e - * - * @param deleteMode - * the new delete mode - */ - public void setDeleteMode(DeleteMode deleteMode) { - this.deleteMode = deleteMode; - } + /** + * Gets the delete mode.e + * + * @param deleteMode the new delete mode + */ + public void setDeleteMode(DeleteMode deleteMode) { + this.deleteMode = deleteMode; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java index 4267dd8e9..b684fb689 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java @@ -16,67 +16,70 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an operation to delete an existing rule. */ public final class DeleteRuleOperation extends RuleOperation { - /** - * Id of the inbox rule to delete. - */ - private String ruleId; + /** + * Id of the inbox rule to delete. + */ + private String ruleId; - /** - * Initializes a new instance of the - * class. - */ - public DeleteRuleOperation() { - super(); - } + /** + * Initializes a new instance of the + * class. + */ + public DeleteRuleOperation() { + super(); + } - /** - * Initializes a new instance of the - * class. - * @param ruleId The Id of the inbox rule to delete. - */ - public DeleteRuleOperation(String ruleId) { - super(); - this.ruleId = ruleId; - } + /** + * Initializes a new instance of the + * class. + * + * @param ruleId The Id of the inbox rule to delete. + */ + public DeleteRuleOperation(String ruleId) { + super(); + this.ruleId = ruleId; + } - /** - * Gets or sets the Id of the rule to delete. - */ - public String getRuleId() { - return this.ruleId; - } - public void setRuleId(String value) { - if (this.canSetFieldValue(this.ruleId, value)) { - this.ruleId = value; - this.changed(); - } - } + /** + * Gets or sets the Id of the rule to delete. + */ + public String getRuleId() { + return this.ruleId; + } - /** - * Writes elements to XML. - * @param writer The writer. - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.RuleId, this.getRuleId()); - } + public void setRuleId(String value) { + if (this.canSetFieldValue(this.ruleId, value)) { + this.ruleId = value; + this.changed(); + } + } - /** - * Validates this instance. - */ - @Override - protected void internalValidate() throws Exception { - EwsUtilities.validateParam(this.ruleId, "RuleId"); - } + /** + * Writes elements to XML. + * + * @param writer The writer. + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.RuleId, this.getRuleId()); + } - /** - * Gets the Xml element name of the DeleteRuleOperation object. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DeleteRuleOperation; + /** + * Validates this instance. + */ + @Override + protected void internalValidate() throws Exception { + EwsUtilities.validateParam(this.ruleId, "RuleId"); + } - } -} \ No newline at end of file + /** + * Gets the Xml element name of the DeleteRuleOperation object. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DeleteRuleOperation; + + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java index 7b19eed6d..70937c2ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java @@ -14,158 +14,154 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a DeleteUserConfiguration request. */ class DeleteUserConfigurationRequest extends - MultiResponseServiceRequest { - - /** The name. */ - private String name; - - /** The parent folder id. */ - private FolderId parentFolderId; - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.name, "name"); - EwsUtilities.validateParam(this.parentFolderId, "parentFolderId"); - this.getParentFolderId().validate( - this.getService().getRequestedServerVersion()); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DeleteUserConfiguration; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.DeleteUserConfigurationResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.DeleteUserConfigurationResponseMessage; - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // Write UserConfiguationName element - UserConfiguration.writeUserConfigurationNameToXml(writer, - XmlNamespace.Messages, this.name, this.parentFolderId); - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected DeleteUserConfigurationRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Gets the name. The name. - * - * @return the name - */ - protected String getName() { - return this.name; - } - - /** - * Sets the name. - * - * @param name - * the new name - */ - protected void setName(String name) { - this.name = name; - } - - /** - * Gets the parent folThe parent folder Id. The parent folder - * Id. - * - * @return the parent folder id - */ - protected FolderId getParentFolderId() { - return this.parentFolderId; - } - - /** - * Sets the parent folder id. - * - * @param parentFolderId - * the new parent folder id - */ - protected void setParentFolderId(FolderId parentFolderId) { - this.parentFolderId = parentFolderId; - } + MultiResponseServiceRequest { + + /** + * The name. + */ + private String name; + + /** + * The parent folder id. + */ + private FolderId parentFolderId; + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.name, "name"); + EwsUtilities.validateParam(this.parentFolderId, "parentFolderId"); + this.getParentFolderId().validate( + this.getService().getRequestedServerVersion()); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DeleteUserConfiguration; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.DeleteUserConfigurationResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.DeleteUserConfigurationResponseMessage; + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // Write UserConfiguationName element + UserConfiguration.writeUserConfigurationNameToXml(writer, + XmlNamespace.Messages, this.name, this.parentFolderId); + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected DeleteUserConfigurationRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Gets the name. The name. + * + * @return the name + */ + protected String getName() { + return this.name; + } + + /** + * Sets the name. + * + * @param name the new name + */ + protected void setName(String name) { + this.name = name; + } + + /** + * Gets the parent folThe parent folder Id. The parent folder + * Id. + * + * @return the parent folder id + */ + protected FolderId getParentFolderId() { + return this.parentFolderId; + } + + /** + * Sets the parent folder id. + * + * @param parentFolderId the new parent folder id + */ + protected void setParentFolderId(FolderId parentFolderId) { + this.parentFolderId = parentFolderId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java index 20b4ee70f..1f467dcc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java @@ -10,61 +10,58 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.Date; - import javax.xml.stream.XMLStreamException; +import java.util.Date; /** * Encapsulates information on the deleted occurrence of a recurring * appointment. */ public class DeletedOccurrenceInfo extends ComplexProperty { - /** - * The original start date and time of the deleted occurrence. The EWS - * schema contains a Start property for deleted occurrences but it's really - * the original start date and time of the occurrence. - */ - private Date originalStart; + /** + * The original start date and time of the deleted occurrence. The EWS + * schema contains a Start property for deleted occurrences but it's really + * the original start date and time of the occurrence. + */ + private Date originalStart; - /** - * Initializes a new instance of the "DeletedOccurrenceInfo" class. - */ - protected DeletedOccurrenceInfo() { - } + /** + * Initializes a new instance of the "DeletedOccurrenceInfo" class. + */ + protected DeletedOccurrenceInfo() { + } - /** - * Tries to read element from XML. - * - * @param reader - * The reader. - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Start)) { - try { - this.originalStart = reader.readElementValueAsDateTime(); - } catch (ServiceXmlDeserializationException e) { - e.printStackTrace(); - } catch (XMLStreamException e) { - e.printStackTrace(); - } - return true; - } else { - return false; - } - } + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Start)) { + try { + this.originalStart = reader.readElementValueAsDateTime(); + } catch (ServiceXmlDeserializationException e) { + e.printStackTrace(); + } catch (XMLStreamException e) { + e.printStackTrace(); + } + return true; + } else { + return false; + } + } - /** - * Gets the original start date and time of the deleted occurrence. - * - * @return the original start - */ - public Date getOriginalStart() { - return this.originalStart; - } + /** + * Gets the original start date and time of the deleted occurrence. + * + * @return the original start + */ + public Date getOriginalStart() { + return this.originalStart; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java index ab195f33a..6744cbdf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java @@ -15,41 +15,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class DeletedOccurrenceInfoCollection extends - ComplexPropertyCollection { + ComplexPropertyCollection { - /** - * Initializes a new instance of the OccurrenceInfoCollection class. - */ - protected DeletedOccurrenceInfoCollection() { - } + /** + * Initializes a new instance of the OccurrenceInfoCollection class. + */ + protected DeletedOccurrenceInfoCollection() { + } - /** - * Creates the complex property. - * - * @param xmlElementName - * the xml element name - * @return OccurenceInfo instance. - */ - @Override - protected DeletedOccurrenceInfo createComplexProperty( - String xmlElementName) { - if (xmlElementName.equalsIgnoreCase(XmlElementNames.DeletedOccurrence)) { - return new DeletedOccurrenceInfo(); - } else { - return null; - } - } + /** + * Creates the complex property. + * + * @param xmlElementName the xml element name + * @return OccurenceInfo instance. + */ + @Override + protected DeletedOccurrenceInfo createComplexProperty( + String xmlElementName) { + if (xmlElementName.equalsIgnoreCase(XmlElementNames.DeletedOccurrence)) { + return new DeletedOccurrenceInfo(); + } else { + return null; + } + } - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * the complex property - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName( - DeletedOccurrenceInfo complexProperty) { - return XmlElementNames.Occurrence; - } + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty the complex property + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName( + DeletedOccurrenceInfo complexProperty) { + return XmlElementNames.Occurrence; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java index 43dbfd937..ec2c73279 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java @@ -14,129 +14,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an entry of a DictionaryProperty object. - * + *

* All descendants of DictionaryEntryProperty must implement a parameterless * constructor. That constructor does not have to be public. That constructor * does not have to be public. - * - * @param - * the generic type + * + * @param the generic type */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class DictionaryEntryProperty extends ComplexProperty { - /** The key. */ - private TKey key; - private Class instance; + /** + * The key. + */ + private TKey key; + private Class instance; - /** - * Initializes a new instance of the "DictionaryEntryProperty<TKey>" - * class. - * - */ - protected DictionaryEntryProperty(Class cls) { - this.instance = cls; - } + /** + * Initializes a new instance of the "DictionaryEntryProperty<TKey>" + * class. + */ + protected DictionaryEntryProperty(Class cls) { + this.instance = cls; + } - /** - * Initializes a new instance of the "DictionaryEntryProperty<TKey>" - * class. - * - * @param key - * The key. - */ - protected DictionaryEntryProperty(Class cls,TKey key) { - super(); - this.key = key; - this.instance = cls; - } + /** + * Initializes a new instance of the "DictionaryEntryProperty<TKey>" + * class. + * + * @param key The key. + */ + protected DictionaryEntryProperty(Class cls, TKey key) { + super(); + this.key = key; + this.instance = cls; + } - /** - * Gets the key. - * - * @return the key - */ - protected TKey getKey() { - return key; - } + /** + * Gets the key. + * + * @return the key + */ + protected TKey getKey() { + return key; + } - /** - * Sets the key. - * - * @param value - * the value to set - */ - protected void setKey(TKey value) { - this.key = value; - } + /** + * Sets the key. + * + * @param value the value to set + */ + protected void setKey(TKey value) { + this.key = value; + } - /** - * Reads the attributes from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws Exception - * throws Exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.key = reader.readAttributeValue(instance, - XmlAttributeNames.Key); - } + /** + * Reads the attributes from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws Exception throws Exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.key = reader.readAttributeValue(instance, + XmlAttributeNames.Key); + } - /** - * Writes the attributes to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws ServiceXmlSerializationException - * throws ServiceXmlSerializationException - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Key, this.getKey()); - } + /** + * Writes the attributes to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws ServiceXmlSerializationException throws ServiceXmlSerializationException + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Key, this.getKey()); + } - /** - * Writes the set update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @param ownerDictionaryXmlElementName - * Name of the owner dictionary XML element. - * @return True if update XML was written. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, String ownerDictionaryXmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - return false; - } + /** + * Writes the set update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @param ownerDictionaryXmlElementName Name of the owner dictionary XML element. + * @return True if update XML was written. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, String ownerDictionaryXmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + return false; + } - /** - * Writes the delete update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @return True if update XML was written. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) throws XMLStreamException, - ServiceXmlSerializationException { - return false; - } + /** + * Writes the delete update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @return True if update XML was written. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) throws XMLStreamException, + ServiceXmlSerializationException { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java index d6b55417b..d1a2942a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java @@ -19,366 +19,350 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a generic dictionary that can be sent to or retrieved from EWS. * TKey The type of key. TEntry The type of entry. - * - * @param - * the generic type - * @param - * the generic type + * + * @param the generic type + * @param the generic type */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class DictionaryProperty - > - extends ComplexProperty implements ICustomXmlUpdateSerializer, - IComplexPropertyChangedDelegate { - - /** The entries. */ - private Map entries = new HashMap(); - - /** The removed entries. */ - private Map removedEntries = new HashMap(); - - /** The added entries. */ - private List addedEntries = new ArrayList(); - - /** The modified entries. */ - private List modifiedEntries = new ArrayList(); - - /** - * Entry was changed. - * - * @param complexProperty - * the complex property - */ - private void entryChanged(ComplexProperty complexProperty) { - TKey key = ((TEntry)complexProperty).getKey(); - - if (!this.addedEntries.contains(key) && !this.modifiedEntries.contains(key)) { - this.modifiedEntries.add(key); - this.changed(); - } - } - - /** - * Writes the URI to XML. - * - * @param writer - * the writer - * @param key - * the key - * @throws Exception - * the exception - */ - private void writeUriToXml(EwsServiceXmlWriter writer, TKey key) - throws Exception { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.IndexedFieldURI); - writer.writeAttributeValue(XmlAttributeNames.FieldURI, this - .getFieldURI()); - writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this - .getFieldIndex(key)); - writer.writeEndElement(); - } - - /** - * Gets the index of the field. - * - * @param key - * the key - * @return Key index. - */ - protected String getFieldIndex(TKey key) { - return key.toString(); - } - - /** - * Gets the field URI. - * - * @return Field URI. - */ - protected String getFieldURI() { - return null; - } - - /** - * Creates the entry. - * - * @param reader - * the reader - * @return Dictionary entry. - */ - protected TEntry createEntry(EwsServiceXmlReader reader) { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Entry)) { - return this.createEntryInstance(); - } else { - return null; - } - } - - /** - * Creates instance of dictionary entry. - * - * @return New instance. - */ - protected abstract TEntry createEntryInstance(); - - /** - * Gets the name of the entry XML element. - * - * @param entry - * the entry - * @return XML element name. - */ - protected String getEntryXmlElementName(TEntry entry) { - return XmlElementNames.Entry; - } - - /** - * Clears the change log. - */ - protected void clearChangeLog() { - this.addedEntries.clear(); - this.removedEntries.clear(); - this.modifiedEntries.clear(); - - for (TEntry entry : this.entries.values()) { - entry.clearChangeLog(); - } - } - - /** - * Add entry. - * - * @param entry - * the entry - */ - protected void internalAdd(TEntry entry) { - entry.addOnChangeEvent(this); - - this.entries.put(entry.getKey(), entry); - this.addedEntries.add(entry.getKey()); - this.removedEntries.remove(entry.getKey()); - - this.changed(); - } - - /** - * Complex property changed. - * - * @param complexProperty - * accepts ComplexProperty - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.entryChanged(complexProperty); - } - - /** - * Add or replace entry. - * - * @param entry - * the entry - */ - protected void internalAddOrReplace(TEntry entry) { - TEntry oldEntry; - if (this.entries.containsKey(entry.getKey())) { - oldEntry = this.entries.get(entry.getKey()); - oldEntry.removeChangeEvent(this); - - entry.addOnChangeEvent(this); - - if (!this.addedEntries.contains(entry.getKey())) { - if (!this.modifiedEntries.contains(entry.getKey())) { - this.modifiedEntries.add(entry.getKey()); - } - } - - this.changed(); - } else { - this.internalAdd(entry); - } - } - - /** - * Remove entry based on key. - * - * @param key - * the key - */ - protected void internalRemove(TKey key) { - TEntry entry; - if (this.entries.containsKey(key)) { - entry = this.entries.get(key); - entry.removeChangeEvent(this); - - this.entries.remove(key); - this.removedEntries.put(key, entry); - - this.changed(); - } - - this.addedEntries.remove(key); - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param localElementName - * the local element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String localElementName) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - localElementName); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - TEntry entry = this.createEntry(reader); - - if (entry != null) { - entry.loadFromXml(reader, reader.getLocalName()); - this.internalAdd(entry); - } else { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(XmlNamespace.Types, - localElementName)); - } else { - reader.read(); - } - } - - /** - * Writes to XML. - * @param writer The writer - * @param xmlNamespace The XML namespace. - * @param xmlElementName Name of the XML element. - * @throws Exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace xmlNamespace, - String xmlElementName) throws Exception { - // Only write collection if it has at least one element. - if (this.entries.size() > 0) { - super.writeToXml( - writer, - xmlNamespace, - xmlElementName); - } + > + extends ComplexProperty implements ICustomXmlUpdateSerializer, + IComplexPropertyChangedDelegate { + + /** + * The entries. + */ + private Map entries = new HashMap(); + + /** + * The removed entries. + */ + private Map removedEntries = new HashMap(); + + /** + * The added entries. + */ + private List addedEntries = new ArrayList(); + + /** + * The modified entries. + */ + private List modifiedEntries = new ArrayList(); + + /** + * Entry was changed. + * + * @param complexProperty the complex property + */ + private void entryChanged(ComplexProperty complexProperty) { + TKey key = ((TEntry) complexProperty).getKey(); + + if (!this.addedEntries.contains(key) && !this.modifiedEntries.contains(key)) { + this.modifiedEntries.add(key); + this.changed(); + } + } + + /** + * Writes the URI to XML. + * + * @param writer the writer + * @param key the key + * @throws Exception the exception + */ + private void writeUriToXml(EwsServiceXmlWriter writer, TKey key) + throws Exception { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.IndexedFieldURI); + writer.writeAttributeValue(XmlAttributeNames.FieldURI, this + .getFieldURI()); + writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this + .getFieldIndex(key)); + writer.writeEndElement(); + } + + /** + * Gets the index of the field. + * + * @param key the key + * @return Key index. + */ + protected String getFieldIndex(TKey key) { + return key.toString(); + } + + /** + * Gets the field URI. + * + * @return Field URI. + */ + protected String getFieldURI() { + return null; + } + + /** + * Creates the entry. + * + * @param reader the reader + * @return Dictionary entry. + */ + protected TEntry createEntry(EwsServiceXmlReader reader) { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Entry)) { + return this.createEntryInstance(); + } else { + return null; + } + } + + /** + * Creates instance of dictionary entry. + * + * @return New instance. + */ + protected abstract TEntry createEntryInstance(); + + /** + * Gets the name of the entry XML element. + * + * @param entry the entry + * @return XML element name. + */ + protected String getEntryXmlElementName(TEntry entry) { + return XmlElementNames.Entry; + } + + /** + * Clears the change log. + */ + protected void clearChangeLog() { + this.addedEntries.clear(); + this.removedEntries.clear(); + this.modifiedEntries.clear(); + + for (TEntry entry : this.entries.values()) { + entry.clearChangeLog(); + } + } + + /** + * Add entry. + * + * @param entry the entry + */ + protected void internalAdd(TEntry entry) { + entry.addOnChangeEvent(this); + + this.entries.put(entry.getKey(), entry); + this.addedEntries.add(entry.getKey()); + this.removedEntries.remove(entry.getKey()); + + this.changed(); + } + + /** + * Complex property changed. + * + * @param complexProperty accepts ComplexProperty + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.entryChanged(complexProperty); + } + + /** + * Add or replace entry. + * + * @param entry the entry + */ + protected void internalAddOrReplace(TEntry entry) { + TEntry oldEntry; + if (this.entries.containsKey(entry.getKey())) { + oldEntry = this.entries.get(entry.getKey()); + oldEntry.removeChangeEvent(this); + + entry.addOnChangeEvent(this); + + if (!this.addedEntries.contains(entry.getKey())) { + if (!this.modifiedEntries.contains(entry.getKey())) { + this.modifiedEntries.add(entry.getKey()); } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - for (Entry keyValuePair : this.entries.entrySet()) { - keyValuePair.getValue().writeToXml(writer, - this.getEntryXmlElementName(keyValuePair.getValue())); - } - } - - /** - * Gets the entries. - * - * @return The entries. - */ - protected Map getEntries() { - return entries; - } - - /** - * Determines whether this instance contains the specified key. - * - * @param key - * the key - * @return true if this instance contains the specified key; otherwise, - * false. - */ - public boolean contains(TKey key) { - return this.entries.containsKey(key); - } - - /** - * Writes updates to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @param propertyDefinition - * the property definition - * @return True if property generated serialization. - * @throws Exception - * the exception - */ - public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, PropertyDefinition propertyDefinition) - throws Exception { - List tempEntries = new ArrayList(); - - for (TKey key : this.addedEntries) { - tempEntries.add(this.entries.get(key)); - } - for (TKey key : this.modifiedEntries) { - tempEntries.add(this.entries.get(key)); - } - for (TEntry entry : tempEntries) { - - if (!entry.writeSetUpdateToXml(writer, ewsObject, - propertyDefinition.getXmlElement())) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getSetFieldXmlElementName()); - this.writeUriToXml(writer, entry.getKey()); - - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getXmlElementName()); - //writer.writeStartElement(XmlNamespace.Types, propertyDefinition.getXmlElementName()); - writer.writeStartElement(XmlNamespace.Types, propertyDefinition.getXmlElement()); - entry.writeToXml(writer, this.getEntryXmlElementName(entry)); - writer.writeEndElement(); - writer.writeEndElement(); - - writer.writeEndElement(); - } - } - - for (TEntry entry : this.removedEntries.values()) { - if (!entry.writeDeleteUpdateToXml(writer, ewsObject)) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getDeleteFieldXmlElementName()); - this.writeUriToXml(writer, entry.getKey()); - writer.writeEndElement(); - } - } - - return true; - } - - /** - * Writes deletion update to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @return True if property generated serialization. - */ - public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) { - return false; - } + } + + this.changed(); + } else { + this.internalAdd(entry); + } + } + + /** + * Remove entry based on key. + * + * @param key the key + */ + protected void internalRemove(TKey key) { + TEntry entry; + if (this.entries.containsKey(key)) { + entry = this.entries.get(key); + entry.removeChangeEvent(this); + + this.entries.remove(key); + this.removedEntries.put(key, entry); + + this.changed(); + } + + this.addedEntries.remove(key); + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param localElementName the local element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String localElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + localElementName); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + TEntry entry = this.createEntry(reader); + + if (entry != null) { + entry.loadFromXml(reader, reader.getLocalName()); + this.internalAdd(entry); + } else { + reader.skipCurrentElement(); + } + } + } while (!reader.isEndElement(XmlNamespace.Types, + localElementName)); + } else { + reader.read(); + } + } + + /** + * Writes to XML. + * + * @param writer The writer + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + * @throws Exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace xmlNamespace, + String xmlElementName) throws Exception { + // Only write collection if it has at least one element. + if (this.entries.size() > 0) { + super.writeToXml( + writer, + xmlNamespace, + xmlElementName); + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + for (Entry keyValuePair : this.entries.entrySet()) { + keyValuePair.getValue().writeToXml(writer, + this.getEntryXmlElementName(keyValuePair.getValue())); + } + } + + /** + * Gets the entries. + * + * @return The entries. + */ + protected Map getEntries() { + return entries; + } + + /** + * Determines whether this instance contains the specified key. + * + * @param key the key + * @return true if this instance contains the specified key; otherwise, + * false. + */ + public boolean contains(TKey key) { + return this.entries.containsKey(key); + } + + /** + * Writes updates to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @param propertyDefinition the property definition + * @return True if property generated serialization. + * @throws Exception the exception + */ + public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, PropertyDefinition propertyDefinition) + throws Exception { + List tempEntries = new ArrayList(); + + for (TKey key : this.addedEntries) { + tempEntries.add(this.entries.get(key)); + } + for (TKey key : this.modifiedEntries) { + tempEntries.add(this.entries.get(key)); + } + for (TEntry entry : tempEntries) { + + if (!entry.writeSetUpdateToXml(writer, ewsObject, + propertyDefinition.getXmlElement())) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getSetFieldXmlElementName()); + this.writeUriToXml(writer, entry.getKey()); + + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getXmlElementName()); + //writer.writeStartElement(XmlNamespace.Types, propertyDefinition.getXmlElementName()); + writer.writeStartElement(XmlNamespace.Types, propertyDefinition.getXmlElement()); + entry.writeToXml(writer, this.getEntryXmlElementName(entry)); + writer.writeEndElement(); + writer.writeEndElement(); + + writer.writeEndElement(); + } + } + + for (TEntry entry : this.removedEntries.values()) { + if (!entry.writeDeleteUpdateToXml(writer, ewsObject)) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getDeleteFieldXmlElementName()); + this.writeUriToXml(writer, entry.getKey()); + writer.writeEndElement(); + } + } + + return true; + } + + /** + * Writes deletion update to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @return True if property generated serialization. + */ + public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index 83f731faf..bc49079c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -12,119 +12,113 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a DisconnectPhoneCall request. - * */ final class DisconnectPhoneCallRequest extends SimpleServiceRequestBase { - /** The id. */ - private PhoneCallId id; + /** + * The id. + */ + private PhoneCallId id; - /** - * Initializes a new instance of the DisconnectPhoneCallRequest class. - * - * @param service - * the service - * @throws Exception - */ - protected DisconnectPhoneCallRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the DisconnectPhoneCallRequest class. + * + * @param service the service + * @throws Exception + */ + protected DisconnectPhoneCallRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DisconnectPhoneCall; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DisconnectPhoneCall; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.id.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.PhoneCallId); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.id.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.PhoneCallId); + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.DisconnectPhoneCallResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.DisconnectPhoneCallResponse; + } - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - ServiceResponse serviceResponse = new ServiceResponse(); - serviceResponse.loadFromXml(reader, - XmlElementNames.DisconnectPhoneCallResponse); - return serviceResponse; - } + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + ServiceResponse serviceResponse = new ServiceResponse(); + serviceResponse.loadFromXml(reader, + XmlElementNames.DisconnectPhoneCallResponse); + return serviceResponse; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected ServiceResponse execute() throws Exception { - ServiceResponse serviceResponse = (ServiceResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected ServiceResponse execute() throws Exception { + ServiceResponse serviceResponse = (ServiceResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } - /** - * Gets the Id of the phone call. - * - * @return the id - */ - protected PhoneCallId getId() { - return this.id; - } + /** + * Gets the Id of the phone call. + * + * @return the id + */ + protected PhoneCallId getId() { + return this.id; + } - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(PhoneCallId id) { - this.id = id; - } + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(PhoneCallId id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java index f80b076e3..e777006e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java @@ -10,79 +10,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.Hashtable; -import java.util.List; - import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.directory.DirContext; import javax.naming.directory.InitialDirContext; +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.List; /** * Class that represents DNS Query client. */ class DnsClient { - /** - * Performs Dns query. - * - * @param - * the generic type - * @param cls - * DnsRecord Type - * @param domain - * the domain - * @param dnsServerAddress - * IPAddress of DNS server to use (may be null) - * @return DnsRecord The DNS record list (never null but may be empty) - * @throws DnsException - * the dns exception - */ + /** + * Performs Dns query. + * + * @param the generic type + * @param cls DnsRecord Type + * @param domain the domain + * @param dnsServerAddress IPAddress of DNS server to use (may be null) + * @return DnsRecord The DNS record list (never null but may be empty) + * @throws DnsException the dns exception + */ - protected static List dnsQuery(Class cls, - String domain, String dnsServerAddress) throws DnsException { + protected static List dnsQuery(Class cls, + String domain, String dnsServerAddress) throws DnsException { - List dnsRecordList = new ArrayList(); - try { + List dnsRecordList = new ArrayList(); + try { - // Set up environment for creating initial context - Hashtable env = new Hashtable(); - env.put("java.naming.factory.initial", - "com.sun.jndi.dns.DnsContextFactory"); - env.put("java.naming.provider.url", "dns://" + dnsServerAddress); + // Set up environment for creating initial context + Hashtable env = new Hashtable(); + env.put("java.naming.factory.initial", + "com.sun.jndi.dns.DnsContextFactory"); + env.put("java.naming.provider.url", "dns://" + dnsServerAddress); - // Create initial context - DirContext ictx = new InitialDirContext(env); + // Create initial context + DirContext ictx = new InitialDirContext(env); - // Retrieve SRV record context attributes for the specified domain - Attributes contextAttributes = ictx.getAttributes(domain, - new String[] { EWSConstants.SRVRECORD }); - if (contextAttributes != null) { - NamingEnumeration attributes = contextAttributes.getAll(); - if (attributes != null) { - while (attributes.hasMore()) { - Attribute attr = (Attribute) attributes.next(); - NamingEnumeration srvValues = attr.getAll(); - if (srvValues != null) { - while (srvValues.hasMore()) { - T dnsRecord = cls.newInstance(); + // Retrieve SRV record context attributes for the specified domain + Attributes contextAttributes = ictx.getAttributes(domain, + new String[] {EWSConstants.SRVRECORD}); + if (contextAttributes != null) { + NamingEnumeration attributes = contextAttributes.getAll(); + if (attributes != null) { + while (attributes.hasMore()) { + Attribute attr = (Attribute) attributes.next(); + NamingEnumeration srvValues = attr.getAll(); + if (srvValues != null) { + while (srvValues.hasMore()) { + T dnsRecord = cls.newInstance(); - // Loads the DNS SRV record - dnsRecord.load((String) srvValues.next()); - dnsRecordList.add(dnsRecord); - } - } - } - } - } - } catch (NamingException ne) { - throw new DnsException(ne.getMessage()); - } catch (Exception e) { - throw new DnsException(e.getMessage()); - } - return dnsRecordList; - } + // Loads the DNS SRV record + dnsRecord.load((String) srvValues.next()); + dnsRecordList.add(dnsRecord); + } + } + } + } + } + } catch (NamingException ne) { + throw new DnsException(ne.getMessage()); + } catch (Exception e) { + throw new DnsException(e.getMessage()); + } + return dnsRecordList; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index ce7237bc6..e6b8edf98 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -14,16 +14,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines DnsException class. */ class DnsException extends Exception { - /** The Constant serialVersionUID. */ - private static final long serialVersionUID = 1L; + /** + * The Constant serialVersionUID. + */ + private static final long serialVersionUID = 1L; - /** - * Instantiates a new dns exception. - * - * @param exceptionMessage - * the exception message - */ - protected DnsException(String exceptionMessage) { - super(exceptionMessage); - } + /** + * Instantiates a new dns exception. + * + * @param exceptionMessage the exception message + */ + protected DnsException(String exceptionMessage) { + super(exceptionMessage); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index ac598d124..35b44ff8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -14,44 +14,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a DnsRecord. */ abstract class DnsRecord { - /* + /* * Name field of this DNS Record */ - /** The name. */ - private String name; + /** + * The name. + */ + private String name; /* * The suggested time for this dnsRecord to be valid */ - /** The time to live. */ - private int timeToLive; + /** + * The time to live. + */ + private int timeToLive; - /** - * Retrieves the value of the name property. - * - * @return name - */ - public String getName() { - return name; - } + /** + * Retrieves the value of the name property. + * + * @return name + */ + public String getName() { + return name; + } - /** - * Retrieves the value of the timeToLive property. - * - * @return timeToLive - */ - public int getTimeToLive() { - return timeToLive; - } + /** + * Retrieves the value of the timeToLive property. + * + * @return timeToLive + */ + public int getTimeToLive() { + return timeToLive; + } - /** - * loads the DNS Record. - * - * @param value - * the value - * @throws DnsException - * the dns exception - */ - protected void load(String value) throws DnsException { + /** + * loads the DNS Record. + * + * @param value the value + * @throws DnsException the dns exception + */ + protected void load(String value) throws DnsException { - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index 24047c49d..13650ba40 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -14,49 +14,66 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * DNS record types. */ enum DnsRecordType { - // RFC 1034/1035 Address Record - /** The A. */ - A(0x0001), - - // Canonical Name Record - /** The CNAME. */ - CNAME(0x0005), - - // / Start of Authority Record - /** The SOA. */ - SOA(0x0006), - - // / Pointer Record - /** The PTR. */ - PTR(0x000c), - - // / Mail Exchange Record - /** The MX. */ - MX(0x000f), - - // / Text Record - /** The TXT. */ - TXT(0x0010), - - // / RFC 1886 (IPv6 Address) - /** The AAAA. */ - AAAA(0x001c), - - // / Service location - RFC 2052 - /** The SRV. */ - SRV(0x0021); - - /** The dns record. */ - @SuppressWarnings("unused") - private final int dnsRecord; - - /** - * Instantiates a new dns record type. - * - * @param dnsRecord - * the dns record - */ - DnsRecordType(int dnsRecord) { - this.dnsRecord = dnsRecord; - } + // RFC 1034/1035 Address Record + /** + * The A. + */ + A(0x0001), + + // Canonical Name Record + /** + * The CNAME. + */ + CNAME(0x0005), + + // / Start of Authority Record + /** + * The SOA. + */ + SOA(0x0006), + + // / Pointer Record + /** + * The PTR. + */ + PTR(0x000c), + + // / Mail Exchange Record + /** + * The MX. + */ + MX(0x000f), + + // / Text Record + /** + * The TXT. + */ + TXT(0x0010), + + // / RFC 1886 (IPv6 Address) + /** + * The AAAA. + */ + AAAA(0x001c), + + // / Service location - RFC 2052 + /** + * The SRV. + */ + SRV(0x0021); + + /** + * The dns record. + */ + @SuppressWarnings("unused") + private final int dnsRecord; + + /** + * Instantiates a new dns record type. + * + * @param dnsRecord the dns record + */ + DnsRecordType(int dnsRecord) { + this.dnsRecord = dnsRecord; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index 63759ed06..90fa4dffb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -17,94 +17,100 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a DNS SRV Record. */ class DnsSrvRecord extends DnsRecord { - /* + /* * The string representing the target host */ - /** The target. */ - private String target; + /** + * The target. + */ + private String target; /* * priority of the target host specified in the owner name. */ - /** The priority. */ - private int priority; + /** + * The priority. + */ + private int priority; /* * weight of the target host */ - /** The weight. */ - private int weight; + /** + * The weight. + */ + private int weight; /* * port used on the target for the service */ - /** The port. */ - private int port; + /** + * The port. + */ + private int port; - /** - * Retrieves the value of the target property. - * - * @return target - */ - protected String getNameTarget() { - return this.target; - } + /** + * Retrieves the value of the target property. + * + * @return target + */ + protected String getNameTarget() { + return this.target; + } - /** - * Retrieves the value of the priority property. - * - * @return priority - */ - protected int getPriority() { - return priority; - } + /** + * Retrieves the value of the priority property. + * + * @return priority + */ + protected int getPriority() { + return priority; + } - /** - * Retrieves the value of the weight property. - * - * @return weight - */ - protected int getWeight() { - return weight; - } + /** + * Retrieves the value of the weight property. + * + * @return weight + */ + protected int getWeight() { + return weight; + } - /** - * Retrieves the value of the port property. - * - * @return port - */ - protected int getPort() { - return port; - } + /** + * Retrieves the value of the port property. + * + * @return port + */ + protected int getPort() { + return port; + } - /** - * Initializes a new instance of the DnsSrvRecord class. - * - * @param srvRecord - * srvRecord that is fetched from JNDI - * @throws microsoft.exchange.webservices.data.DnsException - * the dns exception - */ - protected void load(String srvRecord) throws DnsException { - super.load(null); - StringTokenizer strTokens = new StringTokenizer(srvRecord); - try { - while (strTokens.hasMoreTokens()) { - String priority = strTokens.nextToken(); - this.priority = Integer.parseInt(priority); + /** + * Initializes a new instance of the DnsSrvRecord class. + * + * @param srvRecord srvRecord that is fetched from JNDI + * @throws microsoft.exchange.webservices.data.DnsException the dns exception + */ + protected void load(String srvRecord) throws DnsException { + super.load(null); + StringTokenizer strTokens = new StringTokenizer(srvRecord); + try { + while (strTokens.hasMoreTokens()) { + String priority = strTokens.nextToken(); + this.priority = Integer.parseInt(priority); - String weight = strTokens.nextToken(); - this.weight = Integer.parseInt(weight); + String weight = strTokens.nextToken(); + this.weight = Integer.parseInt(weight); - String port = strTokens.nextToken(); - this.port = Integer.parseInt(port); + String port = strTokens.nextToken(); + this.port = Integer.parseInt(port); - String target = strTokens.nextToken(); - this.target = target; - } - } catch (NumberFormatException ne) { - throw new DnsException("NumberFormatException " + ne.getMessage()); - } catch (NoSuchElementException ne) { - throw new DnsException("NoSuchElementException " + ne.getMessage()); - } + String target = strTokens.nextToken(); + this.target = target; + } + } catch (NumberFormatException ne) { + throw new DnsException("NumberFormatException " + ne.getMessage()); + } catch (NoSuchElementException ne) { + throw new DnsException("NoSuchElementException " + ne.getMessage()); + } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index 5d3b52b5d..227a1aaaa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -12,81 +12,84 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an error from a GetDomainSettings request. - * */ public final class DomainSettingError { - /** The error code. */ - private AutodiscoverErrorCode errorCode; + /** + * The error code. + */ + private AutodiscoverErrorCode errorCode; - /** The error message. */ - private String errorMessage; + /** + * The error message. + */ + private String errorMessage; - /** The setting name. */ - private String settingName; + /** + * The setting name. + */ + private String settingName; - /** - * Initializes a new instance of the class. - */ + /** + * Initializes a new instance of the class. + */ - DomainSettingError() { - } + DomainSettingError() { + } - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - void loadFromXml(EwsXmlReader reader) throws Exception { - do { - reader.read(); + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + void loadFromXml(EwsXmlReader reader) throws Exception { + do { + reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { - this.errorCode = reader - .readElementValue(AutodiscoverErrorCode.class); - } else if (reader.getLocalName().equals( - XmlElementNames.ErrorMessage)) { - this.errorMessage = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.SettingName)) { - this.settingName = reader.readElementValue(); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.DomainSettingError)); - } + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { + this.errorCode = reader + .readElementValue(AutodiscoverErrorCode.class); + } else if (reader.getLocalName().equals( + XmlElementNames.ErrorMessage)) { + this.errorMessage = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.SettingName)) { + this.settingName = reader.readElementValue(); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.DomainSettingError)); + } - /** - * Gets the error code. - * - * @return The error code. - */ + /** + * Gets the error code. + * + * @return The error code. + */ - public AutodiscoverErrorCode getErrorCode() { - return this.errorCode; - } + public AutodiscoverErrorCode getErrorCode() { + return this.errorCode; + } - /** - * Gets the error message. - * - * @return The error message. - */ + /** + * Gets the error message. + * + * @return The error message. + */ - public String getErrorMessage() { - return this.errorMessage; - } + public String getErrorMessage() { + return this.errorMessage; + } - /** - * Gets the name of the setting. - * - * @return The name of the setting. - */ - public String getSettingName() { - return this.settingName; - } + /** + * Gets the name of the setting. + * + * @return The name of the setting. + */ + public String getSettingName() { + return this.settingName; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java index 187c50321..70bae751c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java @@ -15,14 +15,18 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum DomainSettingName { - // The external URL of the Exchange Web Services. - /** The External ews url. */ - ExternalEwsUrl, - - /// The version of the Exchange server hosting - /// the URL of the Exchange Web Services. - /** The External ews version. */ - ExternalEwsVersion, + // The external URL of the Exchange Web Services. + /** + * The External ews url. + */ + ExternalEwsUrl, + + /// The version of the Exchange server hosting + /// the URL of the Exchange Web Services. + /** + * The External ews version. + */ + ExternalEwsVersion, } diff --git a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java index 7c73544db..9ca33676d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java @@ -15,24 +15,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents double-precision floating point property definition. */ -final class DoublePropertyDefinition extends -GenericPropertyDefinition { +final class DoublePropertyDefinition extends + GenericPropertyDefinition { + + /** + * Initializes a new instance of the "DoublePropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected DoublePropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(Double.class, xmlElementName, uri, flags, version); + } - /** - * Initializes a new instance of the "DoublePropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected DoublePropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(Double.class, xmlElementName, uri, flags, version); - } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index 2e5bb1d01..eb728612d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -14,31 +14,43 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Class that holds all constants. */ class EWSConstants { - /* + /* * Represents SRV record. */ - /** The Constant SRVRECORD. */ - public static final String SRVRECORD = "SRV"; + /** + * The Constant SRVRECORD. + */ + public static final String SRVRECORD = "SRV"; /* * Represents the name of the domain */ - /** The Constant DOMAIN. */ - public static final String DOMAIN = "domain"; + /** + * The Constant DOMAIN. + */ + public static final String DOMAIN = "domain"; /* * Represents the domain server IP address */ - /** The Constant DNSSERVERADDRESS. */ - public static final String DNSSERVERADDRESS = "dnsServerAddress"; + /** + * The Constant DNSSERVERADDRESS. + */ + public static final String DNSSERVERADDRESS = "dnsServerAddress"; /* * Represents the name of the properties file */ - /** The Constant EWS_PROP_FILE. */ - public static final String EWS_PROP_FILE = "ews.properties"; + /** + * The Constant EWS_PROP_FILE. + */ + public static final String EWS_PROP_FILE = "ews.properties"; - /** The Constant HTTP_SCHEME. */ - public static final String HTTP_SCHEME = "http"; + /** + * The Constant HTTP_SCHEME. + */ + public static final String HTTP_SCHEME = "http"; - /** The Constant HTTPS_SCHEME. */ - public static final String HTTPS_SCHEME = "https"; + /** + * The Constant HTTPS_SCHEME. + */ + public static final String HTTPS_SCHEME = "https"; } diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index f8b0b783e..eb9baf1df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -15,47 +15,43 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class EWSHttpException extends Exception { - /** - * Instantiates a new eWS http exception. - */ - public EWSHttpException() { - super(); - - } - - /** - * Instantiates a new eWS http exception. - * - * @param arg0 - * the arg0 - * @param arg1 - * the arg1 - */ - public EWSHttpException(String arg0, Throwable arg1) { - super(arg0, arg1); - - } - - /** - * Instantiates a new eWS http exception. - * - * @param arg0 - * the arg0 - */ - public EWSHttpException(String arg0) { - super(arg0); - - } - - /** - * Instantiates a new eWS http exception. - * - * @param arg0 - * the arg0 - */ - public EWSHttpException(Throwable arg0) { - super(arg0); - - } + /** + * Instantiates a new eWS http exception. + */ + public EWSHttpException() { + super(); + + } + + /** + * Instantiates a new eWS http exception. + * + * @param arg0 the arg0 + * @param arg1 the arg1 + */ + public EWSHttpException(String arg0, Throwable arg1) { + super(arg0, arg1); + + } + + /** + * Instantiates a new eWS http exception. + * + * @param arg0 the arg0 + */ + public EWSHttpException(String arg0) { + super(arg0); + + } + + /** + * Instantiates a new eWS http exception. + * + * @param arg0 the arg0 + */ + public EWSHttpException(Throwable arg0) { + super(arg0); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java index 99a4d48fc..a396c4b2f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java @@ -18,14 +18,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface EditorBrowsable. */ -@Target( { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD }) -@Retention(RetentionPolicy.RUNTIME) -@interface EditorBrowsable { +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) @interface EditorBrowsable { - /** - * State. - * - * @return the editor browsable state - */ - EditorBrowsableState state(); -} \ No newline at end of file + /** + * State. + * + * @return the editor browsable state + */ + EditorBrowsableState state(); +} diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java index 1d9cd4519..9b2686ed2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java @@ -13,21 +13,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Enum EditorBrowsableState. */ - enum EditorBrowsableState { +enum EditorBrowsableState { - // Summary: - // The property or method is always browsable from within an editor. - /** The Always. */ - Always, - // - // Summary: - // The property or method is never browsable from within an editor. - /** The Never. */ - Never, - // - // Summary: - // The property or method is a feature that only advanced users should see. - // An editor can either show or hide such properties. - /** The Advanced. */ - Advanced, + // Summary: + // The property or method is always browsable from within an editor. + /** + * The Always. + */ + Always, + // + // Summary: + // The property or method is never browsable from within an editor. + /** + * The Never. + */ + Never, + // + // Summary: + // The property or method is a feature that only advanced users should see. + // An editor can either show or hide such properties. + /** + * The Advanced. + */ + Advanced, } diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index bbd78510d..33bdf4211 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -15,52 +15,69 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum EffectiveRights { - // The user has no acces right on the item or folder. - /** The None. */ - None(0), + // The user has no acces right on the item or folder. + /** + * The None. + */ + None(0), - // The user can create associated items (FAI) - /** The Create associated. */ - CreateAssociated(1), + // The user can create associated items (FAI) + /** + * The Create associated. + */ + CreateAssociated(1), - // The user can create items. - /** The Create contents. */ - CreateContents(2), + // The user can create items. + /** + * The Create contents. + */ + CreateContents(2), - // The user can create sub-folders. + // The user can create sub-folders. - /** The Create hierarchy. */ - CreateHierarchy(4), + /** + * The Create hierarchy. + */ + CreateHierarchy(4), - // The user can delete items and/or folders. - /** The Delete. */ - Delete(8), + // The user can delete items and/or folders. + /** + * The Delete. + */ + Delete(8), - // The user can modify the properties of items and/or folders. - /** The Modify. */ - Modify(16), + // The user can modify the properties of items and/or folders. + /** + * The Modify. + */ + Modify(16), - // The user can read the contents of items. - /** The Read. */ - Read(32), - - /// The user can view private items. - /** The View Private Items. */ - ViewPrivateItems(64); - + // The user can read the contents of items. + /** + * The Read. + */ + Read(32), - /** The effective rights. */ - @SuppressWarnings("unused") - private final int effectiveRights; + /// The user can view private items. + /** + * The View Private Items. + */ + ViewPrivateItems(64); - /** - * Instantiates a new effective rights. - * - * @param effectiveRights - * the effective rights - */ - EffectiveRights(int effectiveRights) { - this.effectiveRights = effectiveRights; - } + + /** + * The effective rights. + */ + @SuppressWarnings("unused") + private final int effectiveRights; + + /** + * Instantiates a new effective rights. + * + * @param effectiveRights the effective rights + */ + EffectiveRights(int effectiveRights) { + this.effectiveRights = effectiveRights; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index a594c526e..d3d3896ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -17,117 +17,107 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class EffectiveRightsPropertyDefinition extends PropertyDefinition { - /** - * Initializes a new instance of the EffectiveRightsPropertyDefinition. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected EffectiveRightsPropertyDefinition(String xmlElementName, - String uri, EnumSet flags, - ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - EnumSet value = EnumSet.noneOf(EffectiveRights.class); - value.add(EffectiveRights.None); - - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this - .getXmlElement()); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - - if (reader.getLocalName().equals( - XmlElementNames.CreateAssociated)) { - - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.CreateAssociated); - } - } else if (reader.getLocalName().equals( - XmlElementNames.CreateContents)) { - - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.CreateContents); - } - } else if (reader.getLocalName().equals( - XmlElementNames.CreateHierarchy)) { - - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.CreateHierarchy); - } - } else if (reader.getLocalName().equals( - XmlElementNames.Delete)) { - - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.Delete); - } - } else if (reader.getLocalName().equals( - XmlElementNames.Modify)) { - - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.Modify); - } - } else if (reader.getLocalName().equals(XmlElementNames.Read)) { - if (reader.readElementValue(Boolean.class)) { - value.add(EffectiveRights.Read); - }else if(reader.getLocalName().equals(XmlElementNames.ViewPrivateItems)){ - if (reader.readElementValue(Boolean.class)){ - value.add(EffectiveRights.ViewPrivateItems); - } - } - - } - } - - } while (!reader.isEndElement(XmlNamespace.Types, this - .getXmlElement())); - } - propertyBag.setObjectFromPropertyDefinition(this, value); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) { - // EffectiveRights is a read-only property, no need to implement this. - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return EffectiveRights.class; - } + /** + * Initializes a new instance of the EffectiveRightsPropertyDefinition. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected EffectiveRightsPropertyDefinition(String xmlElementName, + String uri, EnumSet flags, + ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + EnumSet value = EnumSet.noneOf(EffectiveRights.class); + value.add(EffectiveRights.None); + + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this + .getXmlElement()); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + + if (reader.getLocalName().equals( + XmlElementNames.CreateAssociated)) { + + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.CreateAssociated); + } + } else if (reader.getLocalName().equals( + XmlElementNames.CreateContents)) { + + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.CreateContents); + } + } else if (reader.getLocalName().equals( + XmlElementNames.CreateHierarchy)) { + + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.CreateHierarchy); + } + } else if (reader.getLocalName().equals( + XmlElementNames.Delete)) { + + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.Delete); + } + } else if (reader.getLocalName().equals( + XmlElementNames.Modify)) { + + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.Modify); + } + } else if (reader.getLocalName().equals(XmlElementNames.Read)) { + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.Read); + } else if (reader.getLocalName().equals(XmlElementNames.ViewPrivateItems)) { + if (reader.readElementValue(Boolean.class)) { + value.add(EffectiveRights.ViewPrivateItems); + } + } + + } + } + + } while (!reader.isEndElement(XmlNamespace.Types, this + .getXmlElement())); + } + propertyBag.setObjectFromPropertyDefinition(this, value); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) { + // EffectiveRights is a read-only property, no need to implement this. + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return EffectiveRights.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 67234a315..305860b39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -11,377 +11,362 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents an e-mail address. + * Represents an e-mail address. */ public class EmailAddress extends ComplexProperty implements - ISearchStringProvider { - - // SMTP routing type. - /** The Constant SmtpRoutingType. */ - protected final static String SmtpRoutingType = "SMTP"; - - // / Display name. - /** The name. */ - private String name; - - // / Email address. - /** The address. */ - private String address; - - // / Routing type. - /** The routing type. */ - private String routingType; - - // / Mailbox type. - /** The mailbox type. */ - private MailboxType mailboxType; - - // / ItemId - Contact or PDL. - /** The id. */ - private ItemId id; - - /** - * Initializes a new instance. - */ - public EmailAddress() { - super(); - } - - /** - * Initializes a new instance. - * - * @param smtpAddress - * The SMTP address used to initialize the EmailAddress. - */ - public EmailAddress(String smtpAddress) { - this(); - this.address = smtpAddress; - } - - /** - * Initializes a new instance. - * - * @param name - * The name used to initialize the EmailAddress. - * @param smtpAddress - * The SMTP address used to initialize the EmailAddress. - */ - public EmailAddress(String name, String smtpAddress) { - this(smtpAddress); - this.name = name; - } - - /** - * Initializes a new instance. - * - * @param name - * The name used to initialize the EmailAddress. - * @param address - * The address used to initialize the EmailAddress. - * @param routingType - * The routing type used to initialize the EmailAddress. - */ - public EmailAddress(String name, String address, String routingType) { - this(name, address); - this.routingType = routingType; - } - - /** - * Initializes a new instance. - * - * @param name - * The name used to initialize the EmailAddress. - * @param address - * The address used to initialize the EmailAddress. - * @param routingType - * The routing type used to initialize the EmailAddress. - * @param mailboxType - * Mailbox type of the participant. - */ - protected EmailAddress(String name, String address, String routingType, - MailboxType mailboxType) { - this(name, address, routingType); - this.mailboxType = mailboxType; - } - - /** - * Initializes a new instance. - * - * @param name - * The name used to initialize the EmailAddress. - * @param address - * The address used to initialize the EmailAddress. - * @param routingType - * The routing type used to initialize the EmailAddress. - * @param mailboxType - * Mailbox type of the participant. - * @param id - * ItemId of a Contact or PDL. - */ - protected EmailAddress(String name, String address, String routingType, - MailboxType mailboxType, ItemId id) { - this(name, address, routingType); - this.mailboxType = mailboxType; - this.id = id; - } - - /** - * Initializes a new instance from another EmailAddress instance. - * - * @param mailbox - * EMailAddress instance to copy. - * @throws Exception - * the exception - */ - protected EmailAddress(EmailAddress mailbox) throws Exception { - this(); - EwsUtilities.validateParam(mailbox, "mailbox"); - this.name = mailbox.getName(); - this.address = mailbox.getAddress(); - this.routingType = mailbox.getRoutingType(); - this.mailboxType = mailbox.getMailboxType(); - this.setId(mailbox.getId()); - - } - - /** - * Gets the name associated with the e-mail address. - * - * @return the name - */ - public String getName() { - return name; - } - - /** - * Sets the name associated with the e-mail address. - * - * @param name - * the new name - */ - public void setName(String name) { - if (this.canSetFieldValue(this.name, name)) { - this.name = name; - this.changed(); - } - } - - /** - * Gets the actual address associated with the e-mail address. - * - * @return address associated with the e-mail address. - */ - public String getAddress() { - return address; - } - - /** - * Sets the actual address associated with the e-mail address. The type of - * the Address property must match the specified routing type. If - * RoutingType is not set, Address is assumed to be an SMTP address. - * - * @param address - * address associated with the e-mail address. - */ - public void setAddress(String address) { - - if (this.canSetFieldValue(this.address, address)) { - this.address = address; - this.changed(); - } - - } - - /** - * Gets the routing type associated with the e-mail address. - * - * @return the routing type - */ - public String getRoutingType() { - return routingType; - } - - /** - * Sets the routing type associated with the e-mail address. If RoutingType - * is not set, Address is assumed to be an SMTP address. - * - * @param routingType - * routing type associated with the e-mail address. - */ - public void setRoutingType(String routingType) { - if (this.canSetFieldValue(this.routingType, routingType)) { - this.routingType = routingType; - this.changed(); - } - } - - /** - * Gets the type of the e-mail address. - * - * @return type of the e-mail address. - */ - public MailboxType getMailboxType() { - return mailboxType; - } - - /** - * Sets the type of the e-mail address. - * - * @param mailboxType - * the new mailbox type - */ - public void setMailboxType(MailboxType mailboxType) { - if (this.canSetFieldValue(this.mailboxType, mailboxType)) { - this.mailboxType = mailboxType; - this.changed(); - } - } - - /** - * Gets the Id of the contact the e-mail address represents. - * - * @return the id - */ - public ItemId getId() { - return id; - } - - /** - * Sets the Id of the contact the e-mail address represents. When Id is - * specified, Address should be set to null. - * - * @param id - * the new id - */ - public void setId(ItemId id) { - - if (this.canSetFieldValue(this.id, id)) { - this.id = id; - this.changed(); - } - } - - /** - * Defines an implicit conversion between a string representing an SMTP - * address and EmailAddress. - * - * @param smtpAddress - * The SMTP address to convert to EmailAddress. - * @return An EmailAddress initialized with the specified SMTP address. - */ - public static EmailAddress getEmailAddressFromString(String smtpAddress) { - return new EmailAddress(smtpAddress); - } - - /** - * Try read element from xml. - * - * @param reader - * accepts EwsServiceXmlReader - * @return true - * @throws Exception - * throws Exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - try { - if (reader.getLocalName().equals(XmlElementNames.Name)) { - this.name = reader.readElementValue(); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.EmailAddress)) { - this.address = reader.readElementValue(); - return true; - } else if (reader.getLocalName() - .equals(XmlElementNames.RoutingType)) { - this.routingType = reader.readElementValue(); - return true; - } else if (reader.getLocalName() - .equals(XmlElementNames.MailboxType)) { - this.mailboxType = reader.readElementValue(MailboxType.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.ItemId)) { - this.id = new ItemId(); - this.id.loadFromXml(reader, reader.getLocalName()); - return true; - } else { - return false; - } - } catch (Exception e) { - e.printStackTrace(); - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Name, this - .getName()); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.EmailAddress, this.getAddress()); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.RoutingType, this.getRoutingType()); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MailboxType, this.getMailboxType()); - - if (this.getId() != null) { - this.getId().writeToXml(writer, XmlElementNames.ItemId); - } - - } - - /** - * Get a string representation for using this instance in a search filter. - * - * @return String representation of instance. - */ - @Override - public String getSearchString() { - return this.getAddress(); - } - - /** - * Returns string that represents the current instance. - * - * @return String representation of instance. - */ - @Override - public String toString() { - String addressPart; - - if (null == this.getAddress() || this.getAddress().isEmpty()) { - return ""; - } - - if (null != this.getRoutingType() && this.getRoutingType().isEmpty()) { - addressPart = this.getRoutingType() + ":" + this.getAddress(); - } else { - addressPart = this.getAddress(); - } - - if (null != this.getName() && this.getName().isEmpty()) { - return this.getName() + " <" + addressPart + ">"; - } else { - return addressPart; - } - } - - /** - * Gets the routing type. - * - * @return SMTP Routing type - */ - protected String getSmtpRoutingType() { - return SmtpRoutingType; - } + ISearchStringProvider { + + // SMTP routing type. + /** + * The Constant SmtpRoutingType. + */ + protected final static String SmtpRoutingType = "SMTP"; + + // / Display name. + /** + * The name. + */ + private String name; + + // / Email address. + /** + * The address. + */ + private String address; + + // / Routing type. + /** + * The routing type. + */ + private String routingType; + + // / Mailbox type. + /** + * The mailbox type. + */ + private MailboxType mailboxType; + + // / ItemId - Contact or PDL. + /** + * The id. + */ + private ItemId id; + + /** + * Initializes a new instance. + */ + public EmailAddress() { + super(); + } + + /** + * Initializes a new instance. + * + * @param smtpAddress The SMTP address used to initialize the EmailAddress. + */ + public EmailAddress(String smtpAddress) { + this(); + this.address = smtpAddress; + } + + /** + * Initializes a new instance. + * + * @param name The name used to initialize the EmailAddress. + * @param smtpAddress The SMTP address used to initialize the EmailAddress. + */ + public EmailAddress(String name, String smtpAddress) { + this(smtpAddress); + this.name = name; + } + + /** + * Initializes a new instance. + * + * @param name The name used to initialize the EmailAddress. + * @param address The address used to initialize the EmailAddress. + * @param routingType The routing type used to initialize the EmailAddress. + */ + public EmailAddress(String name, String address, String routingType) { + this(name, address); + this.routingType = routingType; + } + + /** + * Initializes a new instance. + * + * @param name The name used to initialize the EmailAddress. + * @param address The address used to initialize the EmailAddress. + * @param routingType The routing type used to initialize the EmailAddress. + * @param mailboxType Mailbox type of the participant. + */ + protected EmailAddress(String name, String address, String routingType, + MailboxType mailboxType) { + this(name, address, routingType); + this.mailboxType = mailboxType; + } + + /** + * Initializes a new instance. + * + * @param name The name used to initialize the EmailAddress. + * @param address The address used to initialize the EmailAddress. + * @param routingType The routing type used to initialize the EmailAddress. + * @param mailboxType Mailbox type of the participant. + * @param id ItemId of a Contact or PDL. + */ + protected EmailAddress(String name, String address, String routingType, + MailboxType mailboxType, ItemId id) { + this(name, address, routingType); + this.mailboxType = mailboxType; + this.id = id; + } + + /** + * Initializes a new instance from another EmailAddress instance. + * + * @param mailbox EMailAddress instance to copy. + * @throws Exception the exception + */ + protected EmailAddress(EmailAddress mailbox) throws Exception { + this(); + EwsUtilities.validateParam(mailbox, "mailbox"); + this.name = mailbox.getName(); + this.address = mailbox.getAddress(); + this.routingType = mailbox.getRoutingType(); + this.mailboxType = mailbox.getMailboxType(); + this.setId(mailbox.getId()); + + } + + /** + * Gets the name associated with the e-mail address. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Sets the name associated with the e-mail address. + * + * @param name the new name + */ + public void setName(String name) { + if (this.canSetFieldValue(this.name, name)) { + this.name = name; + this.changed(); + } + } + + /** + * Gets the actual address associated with the e-mail address. + * + * @return address associated with the e-mail address. + */ + public String getAddress() { + return address; + } + + /** + * Sets the actual address associated with the e-mail address. The type of + * the Address property must match the specified routing type. If + * RoutingType is not set, Address is assumed to be an SMTP address. + * + * @param address address associated with the e-mail address. + */ + public void setAddress(String address) { + + if (this.canSetFieldValue(this.address, address)) { + this.address = address; + this.changed(); + } + + } + + /** + * Gets the routing type associated with the e-mail address. + * + * @return the routing type + */ + public String getRoutingType() { + return routingType; + } + + /** + * Sets the routing type associated with the e-mail address. If RoutingType + * is not set, Address is assumed to be an SMTP address. + * + * @param routingType routing type associated with the e-mail address. + */ + public void setRoutingType(String routingType) { + if (this.canSetFieldValue(this.routingType, routingType)) { + this.routingType = routingType; + this.changed(); + } + } + + /** + * Gets the type of the e-mail address. + * + * @return type of the e-mail address. + */ + public MailboxType getMailboxType() { + return mailboxType; + } + + /** + * Sets the type of the e-mail address. + * + * @param mailboxType the new mailbox type + */ + public void setMailboxType(MailboxType mailboxType) { + if (this.canSetFieldValue(this.mailboxType, mailboxType)) { + this.mailboxType = mailboxType; + this.changed(); + } + } + + /** + * Gets the Id of the contact the e-mail address represents. + * + * @return the id + */ + public ItemId getId() { + return id; + } + + /** + * Sets the Id of the contact the e-mail address represents. When Id is + * specified, Address should be set to null. + * + * @param id the new id + */ + public void setId(ItemId id) { + + if (this.canSetFieldValue(this.id, id)) { + this.id = id; + this.changed(); + } + } + + /** + * Defines an implicit conversion between a string representing an SMTP + * address and EmailAddress. + * + * @param smtpAddress The SMTP address to convert to EmailAddress. + * @return An EmailAddress initialized with the specified SMTP address. + */ + public static EmailAddress getEmailAddressFromString(String smtpAddress) { + return new EmailAddress(smtpAddress); + } + + /** + * Try read element from xml. + * + * @param reader accepts EwsServiceXmlReader + * @return true + * @throws Exception throws Exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + try { + if (reader.getLocalName().equals(XmlElementNames.Name)) { + this.name = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.EmailAddress)) { + this.address = reader.readElementValue(); + return true; + } else if (reader.getLocalName() + .equals(XmlElementNames.RoutingType)) { + this.routingType = reader.readElementValue(); + return true; + } else if (reader.getLocalName() + .equals(XmlElementNames.MailboxType)) { + this.mailboxType = reader.readElementValue(MailboxType.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ItemId)) { + this.id = new ItemId(); + this.id.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Name, this + .getName()); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.EmailAddress, this.getAddress()); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.RoutingType, this.getRoutingType()); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MailboxType, this.getMailboxType()); + + if (this.getId() != null) { + this.getId().writeToXml(writer, XmlElementNames.ItemId); + } + + } + + /** + * Get a string representation for using this instance in a search filter. + * + * @return String representation of instance. + */ + @Override + public String getSearchString() { + return this.getAddress(); + } + + /** + * Returns string that represents the current instance. + * + * @return String representation of instance. + */ + @Override + public String toString() { + String addressPart; + + if (null == this.getAddress() || this.getAddress().isEmpty()) { + return ""; + } + + if (null != this.getRoutingType() && this.getRoutingType().isEmpty()) { + addressPart = this.getRoutingType() + ":" + this.getAddress(); + } else { + addressPart = this.getAddress(); + } + + if (null != this.getName() && this.getName().isEmpty()) { + return this.getName() + " <" + addressPart + ">"; + } else { + return addressPart; + } + } + + /** + * Gets the routing type. + * + * @return SMTP Routing type + */ + protected String getSmtpRoutingType() { + return SmtpRoutingType; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java index e859d8b6d..0060cb097 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java @@ -14,173 +14,163 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of e-mail addresses. - * */ public final class EmailAddressCollection extends -ComplexPropertyCollection { - - //XML element name - private String collectionItemXmlElementName; - - /** - * Initializes a new instance. - */ - protected EmailAddressCollection() { - this(XmlElementNames.Mailbox); - } - - /** - * Initializes a new instance of the EmailAddressCollection class. - * @param collectionItemXmlElementName Name of the collection item XML element. - */ - protected EmailAddressCollection(String collectionItemXmlElementName) { - super(); - this.collectionItemXmlElementName = collectionItemXmlElementName; - } - - /** - * Adds an e-mail address to the collection. - * - * @param emailAddress - * The e-mail address to add. - */ - public void add(EmailAddress emailAddress) { - this.internalAdd(emailAddress); - } - - /** - * Adds multiple e-mail addresses to the collection. - * - * @param emailAddresses - * The e-mail addresses to add. - */ - public void addEmailRange(Iterator emailAddresses) { - if (null != emailAddresses) { - while (emailAddresses.hasNext()) { - this.add(emailAddresses.next()); - } - } - } - - /** - * Adds an e-mail address to the collection. - * - * @param smtpAddress - * The SMTP address used to initialize the e-mail address. - * @return An EmailAddress object initialized with the provided SMTP - * address. - */ - public EmailAddress add(String smtpAddress) { - EmailAddress emailAddress = new EmailAddress(smtpAddress); - this.add(emailAddress); - return emailAddress; - } - - /** - * Adds multiple e-mail addresses to the collection. - * - * @param smtpAddresses - * The SMTP addresses used to initialize the e-mail addresses. - */ - public void addSmtpAddressRange(Iterator smtpAddresses) { - if (null != smtpAddresses) { - while (smtpAddresses.hasNext()) { - this.add(smtpAddresses.next()); - } - } - } - - /** - * Adds an e-mail address to the collection. - * - * @param name - * The name used to initialize the e-mail address. - * @param smtpAddress - * The SMTP address used to initialize the e-mail address. - * @return An EmailAddress object initialized with the provided SMTP - * address. - */ - public EmailAddress add(String name, String smtpAddress) { - EmailAddress emailAddress = new EmailAddress(name, smtpAddress); - this.add(emailAddress); - return emailAddress; - } - - /** - * Clears the collection. - */ - public void clear() { - this.internalClear(); - } - - /** - * Removes an e-mail address from the collection. - * - * @param index - * The index of the e-mail address to remove. - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("Argument \'index\' : " + - Strings.IndexIsOutOfRange); - } - - this.internalRemoveAt(index); - } - - /** - * Removes an e-mail address from the collection. - * - * @param emailAddress - * The e-mail address to remove. - * @return True if the email address was successfully removed from the - * collection, false otherwise. - * @throws Exception - * the exception - */ - public boolean remove(EmailAddress emailAddress) throws Exception { - EwsUtilities.validateParam(emailAddress, "emailAddress"); - return this.internalRemove(emailAddress); - } - - /** - * Creates an EmailAddress object from an XML element name. - * - * @param xmlElementName - * The XML element name from which to create the e-mail address. - * @return An EmailAddress object. - */ - @Override - protected EmailAddress createComplexProperty(String xmlElementName) { - if (xmlElementName.equals(this.collectionItemXmlElementName)) { - return new EmailAddress(); - } else { - return null; - } - } - - /** - * Retrieves the XML element name corresponding to the provided EmailAddress - * object. - * - * @param complexProperty - * The EmailAddress object from which to determine the XML - * element name. - * @return The XML element name corresponding to the provided EmailAddress - * object. - */ - @Override - protected String getCollectionItemXmlElementName( - EmailAddress complexProperty) { - return this.collectionItemXmlElementName; - } - - /** - * Determine whether we should write collection to XML or not. - * @return Always true, even if the collection is empty. - */ - @Override - protected boolean shouldWriteToXml() { - return true; - } + ComplexPropertyCollection { + + //XML element name + private String collectionItemXmlElementName; + + /** + * Initializes a new instance. + */ + protected EmailAddressCollection() { + this(XmlElementNames.Mailbox); + } + + /** + * Initializes a new instance of the EmailAddressCollection class. + * + * @param collectionItemXmlElementName Name of the collection item XML element. + */ + protected EmailAddressCollection(String collectionItemXmlElementName) { + super(); + this.collectionItemXmlElementName = collectionItemXmlElementName; + } + + /** + * Adds an e-mail address to the collection. + * + * @param emailAddress The e-mail address to add. + */ + public void add(EmailAddress emailAddress) { + this.internalAdd(emailAddress); + } + + /** + * Adds multiple e-mail addresses to the collection. + * + * @param emailAddresses The e-mail addresses to add. + */ + public void addEmailRange(Iterator emailAddresses) { + if (null != emailAddresses) { + while (emailAddresses.hasNext()) { + this.add(emailAddresses.next()); + } + } + } + + /** + * Adds an e-mail address to the collection. + * + * @param smtpAddress The SMTP address used to initialize the e-mail address. + * @return An EmailAddress object initialized with the provided SMTP + * address. + */ + public EmailAddress add(String smtpAddress) { + EmailAddress emailAddress = new EmailAddress(smtpAddress); + this.add(emailAddress); + return emailAddress; + } + + /** + * Adds multiple e-mail addresses to the collection. + * + * @param smtpAddresses The SMTP addresses used to initialize the e-mail addresses. + */ + public void addSmtpAddressRange(Iterator smtpAddresses) { + if (null != smtpAddresses) { + while (smtpAddresses.hasNext()) { + this.add(smtpAddresses.next()); + } + } + } + + /** + * Adds an e-mail address to the collection. + * + * @param name The name used to initialize the e-mail address. + * @param smtpAddress The SMTP address used to initialize the e-mail address. + * @return An EmailAddress object initialized with the provided SMTP + * address. + */ + public EmailAddress add(String name, String smtpAddress) { + EmailAddress emailAddress = new EmailAddress(name, smtpAddress); + this.add(emailAddress); + return emailAddress; + } + + /** + * Clears the collection. + */ + public void clear() { + this.internalClear(); + } + + /** + * Removes an e-mail address from the collection. + * + * @param index The index of the e-mail address to remove. + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("Argument \'index\' : " + + Strings.IndexIsOutOfRange); + } + + this.internalRemoveAt(index); + } + + /** + * Removes an e-mail address from the collection. + * + * @param emailAddress The e-mail address to remove. + * @return True if the email address was successfully removed from the + * collection, false otherwise. + * @throws Exception the exception + */ + public boolean remove(EmailAddress emailAddress) throws Exception { + EwsUtilities.validateParam(emailAddress, "emailAddress"); + return this.internalRemove(emailAddress); + } + + /** + * Creates an EmailAddress object from an XML element name. + * + * @param xmlElementName The XML element name from which to create the e-mail address. + * @return An EmailAddress object. + */ + @Override + protected EmailAddress createComplexProperty(String xmlElementName) { + if (xmlElementName.equals(this.collectionItemXmlElementName)) { + return new EmailAddress(); + } else { + return null; + } + } + + /** + * Retrieves the XML element name corresponding to the provided EmailAddress + * object. + * + * @param complexProperty The EmailAddress object from which to determine the XML + * element name. + * @return The XML element name corresponding to the provided EmailAddress + * object. + */ + @Override + protected String getCollectionItemXmlElementName( + EmailAddress complexProperty) { + return this.collectionItemXmlElementName; + } + + /** + * Determine whether we should write collection to XML or not. + * + * @return Always true, even if the collection is empty. + */ + @Override + protected boolean shouldWriteToXml() { + return true; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java index 210cfbd6c..a79bbf732 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java @@ -12,92 +12,85 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a dictionary of e-mail addresses. - * - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class EmailAddressDictionary extends - DictionaryProperty { + DictionaryProperty { - /** - * Gets the field URI. - * - * @return Field URI. - */ - @Override - protected String getFieldURI() { - return "contacts:EmailAddress"; - } + /** + * Gets the field URI. + * + * @return Field URI. + */ + @Override + protected String getFieldURI() { + return "contacts:EmailAddress"; + } - /** - * Creates instance of dictionary entry. - * - * @return New instance. - */ - @Override - protected EmailAddressEntry createEntryInstance() { - return new EmailAddressEntry(); - } + /** + * Creates instance of dictionary entry. + * + * @return New instance. + */ + @Override + protected EmailAddressEntry createEntryInstance() { + return new EmailAddressEntry(); + } - /** - * Gets the e-mail address at the specified key. - * - * @param key - * the key - * @return The e-mail address at the specified key. - */ - public EmailAddress getEmailAddress(EmailAddressKey key) { - return this.getEntries().get(key).getEmailAddress(); - } + /** + * Gets the e-mail address at the specified key. + * + * @param key the key + * @return The e-mail address at the specified key. + */ + public EmailAddress getEmailAddress(EmailAddressKey key) { + return this.getEntries().get(key).getEmailAddress(); + } - /** - * Sets the email address. - * - * @param key - * the key - * @param value - * the value - */ - public void setEmailAddress(EmailAddressKey key, EmailAddress value) { - if (value == null) { - this.internalRemove(key); - } else { - EmailAddressEntry entry; + /** + * Sets the email address. + * + * @param key the key + * @param value the value + */ + public void setEmailAddress(EmailAddressKey key, EmailAddress value) { + if (value == null) { + this.internalRemove(key); + } else { + EmailAddressEntry entry; - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - entry.setEmailAddress(value); - complexPropertyChanged( entry ); - this.changed(); - } else { - entry = new EmailAddressEntry(key, value); - this.internalAdd(entry); - } - } - } + if (this.getEntries().containsKey(key)) { + entry = this.getEntries().get(key); + entry.setEmailAddress(value); + complexPropertyChanged(entry); + this.changed(); + } else { + entry = new EmailAddressEntry(key, value); + this.internalAdd(entry); + } + } + } - /** - * Tries to get the e-mail address associated with the specified key. - * - * @param key - * the key - * @param outparam - * the outparam - * @return true if the Dictionary contains an e-mail address associated with - * the specified key; otherwise, false. - */ - public boolean tryGetValue(EmailAddressKey key, - OutParam outparam) { - EmailAddressEntry entry = null; + /** + * Tries to get the e-mail address associated with the specified key. + * + * @param key the key + * @param outparam the outparam + * @return true if the Dictionary contains an e-mail address associated with + * the specified key; otherwise, false. + */ + public boolean tryGetValue(EmailAddressKey key, + OutParam outparam) { + EmailAddressEntry entry = null; - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - outparam.setParam(entry.getEmailAddress()); + if (this.getEntries().containsKey(key)) { + entry = this.getEntries().get(key); + outparam.setParam(entry.getEmailAddress()); - return true; - } else { - outparam = null; - return false; - } - } + return true; + } else { + outparam = null; + return false; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index 3a7d64d57..80ce1f46b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -15,166 +15,156 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class EmailAddressEntry extends - DictionaryEntryProperty implements - IComplexPropertyChangedDelegate { - // / The email address. - /** The email address. */ - private EmailAddress emailAddress; + DictionaryEntryProperty implements + IComplexPropertyChangedDelegate { + // / The email address. + /** + * The email address. + */ + private EmailAddress emailAddress; - /** - * Initializes a new instance of the class. - */ - protected EmailAddressEntry() { - super(EmailAddressKey.class); - this.emailAddress = new EmailAddress(); - this.emailAddress.addOnChangeEvent(this); - } + /** + * Initializes a new instance of the class. + */ + protected EmailAddressEntry() { + super(EmailAddressKey.class); + this.emailAddress = new EmailAddress(); + this.emailAddress.addOnChangeEvent(this); + } - /** - * Initializes a new instance of the "EmailAddressEntry" class. - * - * @param key - * The key. - * @param emailAddress - * The email address. - */ - protected EmailAddressEntry(EmailAddressKey key, - EmailAddress emailAddress) { - super(EmailAddressKey.class, key); - this.emailAddress = emailAddress; - } + /** + * Initializes a new instance of the "EmailAddressEntry" class. + * + * @param key The key. + * @param emailAddress The email address. + */ + protected EmailAddressEntry(EmailAddressKey key, + EmailAddress emailAddress) { + super(EmailAddressKey.class, key); + this.emailAddress = emailAddress; + } - /** - * Reads the attributes from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws Exception - * throws Exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readAttributesFromXml(reader); - this.getEmailAddress().setName( - reader.readAttributeValue(XmlAttributeNames.Name)); - this - .getEmailAddress() - .setRoutingType( - reader - .readAttributeValue(XmlAttributeNames. - RoutingType)); - String mailboxTypeString = reader - .readAttributeValue(XmlAttributeNames.MailboxType); - if ((mailboxTypeString != null) && (!mailboxTypeString.isEmpty())) { - this.getEmailAddress().setMailboxType( - EwsUtilities.parse(MailboxType.class, mailboxTypeString)); - } else { - this.getEmailAddress().setMailboxType(null); - } - } + /** + * Reads the attributes from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws Exception throws Exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readAttributesFromXml(reader); + this.getEmailAddress().setName( + reader.readAttributeValue(XmlAttributeNames.Name)); + this + .getEmailAddress() + .setRoutingType( + reader + .readAttributeValue(XmlAttributeNames. + RoutingType)); + String mailboxTypeString = reader + .readAttributeValue(XmlAttributeNames.MailboxType); + if ((mailboxTypeString != null) && (!mailboxTypeString.isEmpty())) { + this.getEmailAddress().setMailboxType( + EwsUtilities.parse(MailboxType.class, mailboxTypeString)); + } else { + this.getEmailAddress().setMailboxType(null); + } + } - /** - * Reads the text value from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws Exception - * the exception - */ - @Override - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws Exception { - this.getEmailAddress().setAddress(reader.readValue()); - } + /** + * Reads the text value from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws Exception the exception + */ + @Override + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws Exception { + this.getEmailAddress().setAddress(reader.readValue()); + } - /** - * Writes the attributes to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws ServiceXmlSerializationException - * throws ServiceXmlSerializationException - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - if (writer.getService().getRequestedServerVersion().ordinal() > - ExchangeVersion.Exchange2007_SP1 - .ordinal()) { - writer.writeAttributeValue(XmlAttributeNames.Name, this - .getEmailAddress().getName()); - writer.writeAttributeValue(XmlAttributeNames.RoutingType, this - .getEmailAddress().getRoutingType()); - if (this.getEmailAddress().getMailboxType() != MailboxType.Unknown) { - writer.writeAttributeValue(XmlAttributeNames.MailboxType, this - .getEmailAddress().getMailboxType()); - } - } - } + /** + * Writes the attributes to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws ServiceXmlSerializationException throws ServiceXmlSerializationException + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + if (writer.getService().getRequestedServerVersion().ordinal() > + ExchangeVersion.Exchange2007_SP1 + .ordinal()) { + writer.writeAttributeValue(XmlAttributeNames.Name, this + .getEmailAddress().getName()); + writer.writeAttributeValue(XmlAttributeNames.RoutingType, this + .getEmailAddress().getRoutingType()); + if (this.getEmailAddress().getMailboxType() != MailboxType.Unknown) { + writer.writeAttributeValue(XmlAttributeNames.MailboxType, this + .getEmailAddress().getMailboxType()); + } + } + } - /** - * Writes elements to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws ServiceXmlSerializationException - * throws ServiceXmlSerializationException - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeValue(this.getEmailAddress().getAddress(), - XmlElementNames.EmailAddress); - } + /** + * Writes elements to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws ServiceXmlSerializationException throws ServiceXmlSerializationException + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeValue(this.getEmailAddress().getAddress(), + XmlElementNames.EmailAddress); + } - /** - * Gets the e-mail address of the entry. - * - * @return the email address - */ - public EmailAddress getEmailAddress() { - return this.emailAddress; - // set { this.SetFieldValue(ref this.emailAddress, value); - // } - } + /** + * Gets the e-mail address of the entry. + * + * @return the email address + */ + public EmailAddress getEmailAddress() { + return this.emailAddress; + // set { this.SetFieldValue(ref this.emailAddress, value); + // } + } - /** - * Sets the e-mail address of the entry. - * - * @param value - * the new email address - */ - public void setEmailAddress(Object value) { - //this.canSetFieldValue((EmailAddress) this.emailAddress, value); - if( this.canSetFieldValue(this.emailAddress, value) ) { - this.emailAddress = (EmailAddress)value; - } - } + /** + * Sets the e-mail address of the entry. + * + * @param value the new email address + */ + public void setEmailAddress(Object value) { + //this.canSetFieldValue((EmailAddress) this.emailAddress, value); + if (this.canSetFieldValue(this.emailAddress, value)) { + this.emailAddress = (EmailAddress) value; + } + } - /** - * E-mail address was changed. - * - * @param complexProperty - * the complex property - */ - @SuppressWarnings("unused") - private void emailAddressChanged(ComplexProperty complexProperty) { - this.changed(); - } + /** + * E-mail address was changed. + * + * @param complexProperty the complex property + */ + @SuppressWarnings("unused") + private void emailAddressChanged(ComplexProperty complexProperty) { + this.changed(); + } - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ComplexPropertyChangedDelegateInterface - * #complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.emailAddressChanged(complexProperty); + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ComplexPropertyChangedDelegateInterface + * #complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.emailAddressChanged(complexProperty); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java index 70e624d42..84da64a7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum EmailAddressKey { - // The first e-mail address. - /** The Email address1. */ - EmailAddress1, + // The first e-mail address. + /** + * The Email address1. + */ + EmailAddress1, - // The second e-mail address. - /** The Email address2. */ - EmailAddress2, + // The second e-mail address. + /** + * The Email address2. + */ + EmailAddress2, - // The third e-mail address. - /** The Email address3. */ - EmailAddress3 + // The third e-mail address. + /** + * The Email address3. + */ + EmailAddress3 } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java index 3a957aa44..28534c1d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java @@ -15,630 +15,563 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an e-mail message. Properties available on e-mail messages are * defined in the EmailMessageSchema class. - * - * */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.Message) public class EmailMessage extends Item { - /** - * Initializes an unsaved local instance of EmailMessage. To bind to an - * existing e-mail message, use EmailMessage.Bind() instead. - * - * @param service - * The ExchangeService object to which the e-mail message will be - * bound. - * @throws Exception - * the exception - */ - public EmailMessage(ExchangeService service) throws Exception { - super(service); - } - - /** - * Initializes a new instance of the "EmailMessage" class. - * - * @param parentAttachment - * The parent attachment. - * @throws Exception - * the exception - */ - protected EmailMessage(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } - - /** - * Binds to an existing e-mail message and loads the specified set of - * properties.Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return An EmailMessage instance representing the e-mail message - * corresponding to the specified Id - * @throws Exception - * the exception - */ - public static EmailMessage bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(EmailMessage.class, id, propertySet); - - } - - /** - * Binds to an existing e-mail message and loads its first class - * properties.Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return An EmailMessage instance representing the e-mail message - * corresponding to the specified Id - * @throws Exception - * the exception - */ - public static EmailMessage bind(ExchangeService service, ItemId id) - throws Exception { - return EmailMessage.bind(service, id, PropertySet - .getFirstClassProperties()); - } - - /** - * Method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return EmailMessageSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Send message. - * - * @param parentFolderId - * The parent folder id. - * @param messageDisposition - * The message disposition. - * @throws Exception - * the exception - */ - private void internalSend(FolderId parentFolderId, - MessageDisposition messageDisposition) throws Exception { - this.throwIfThisIsAttachment(); - - if (this.isNew()) { - if ((this.getAttachments().getCount() == 0) || - (messageDisposition == MessageDisposition.SaveOnly)) { - this.internalCreate(parentFolderId, messageDisposition, null); - } else { - // Bug E14:80316 -- If the message has attachments, save as a - // draft (and add attachments) before sending. - this.internalCreate(null, // null means use the Drafts folder in - // the mailbox of the authenticated - // user. - MessageDisposition.SaveOnly, null); - - this.getService().sendItem(this, parentFolderId); - } - } else if (this.isDirty()) { - // Validate and save attachments before sending. - this.getAttachments().validate(); - this.getAttachments().save(); - - if (this.getPropertyBag().getIsUpdateCallNecessary()) { - this.internalUpdate(parentFolderId, - ConflictResolutionMode.AutoResolve, messageDisposition, - null); - } else { - this.getService().sendItem(this, parentFolderId); - } - } else { - this.getService().sendItem(this, parentFolderId); - } - - // this.internalCreate(parentFolderId, messageDisposition, null); - } - - /** - * Creates a reply response to the message. - * - * @param replyAll - * the reply all - * @return A ResponseMessage representing the reply response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createReply(boolean replyAll) throws Exception { - this.throwIfThisIsNew(); - - return new ResponseMessage(this, - replyAll ? ResponseMessageType.ReplyAll : - ResponseMessageType.Reply); - } - - /** - * Creates a forward response to the message. - * - * @return A ResponseMessage representing the forward response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createForward() throws Exception { - this.throwIfThisIsNew(); - return new ResponseMessage(this, ResponseMessageType.Forward); - } - - /** - * Replies to the message. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param replyAll - * the reply all - * @throws Exception - * the exception - */ - public void reply(MessageBody bodyPrefix, boolean replyAll) - throws Exception { - ResponseMessage responseMessage = this.createReply(replyAll); - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.sendAndSaveCopy(); - } - - /** - * Forwards the message. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) - throws Exception { - if (null != toRecipients) { - ArrayList list = new ArrayList(); - for (EmailAddress email : toRecipients) { - list.add(email); - } - this.forward(bodyPrefix, list); - } - } - - /** - * Forwards the message. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, - Iterable toRecipients) throws Exception { - ResponseMessage responseMessage = this.createForward(); - - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.getToRecipients() - .addEmailRange(toRecipients.iterator()); - - responseMessage.sendAndSaveCopy(); - } - - /** - * Sends this e-mail message. Calling this method results in at least one - * call to EWS. - * - * @throws Exception - * the exception - */ - public void send() throws Exception { - internalSend(null, MessageDisposition.SendOnly); - } - - /** - * Sends this e-mail message and saves a copy of it in the specified - * folder. SendAndSaveCopy does not work if the message has unsaved - * attachments. In that case, the message must first be saved and then sent. - * Calling this method results in a call to EWS. - * - * @param destinationFolderId - * the destination folder id - * @throws Exception - * the exception - */ - public void sendAndSaveCopy(FolderId destinationFolderId) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - this.internalSend(destinationFolderId, - MessageDisposition.SendAndSaveCopy); - } - - /** - * Sends this e-mail message and saves a copy of it in the specified - * folder. SendAndSaveCopy does not work if the message has unsaved - * attachments. In that case, the message must first be saved and then sent. - * Calling this method results in a call to EWS. - * - * @param destinationFolderName - * the destination folder name - * @throws Exception - * the exception - */ - public void sendAndSaveCopy(WellKnownFolderName destinationFolderName) - throws Exception { - this.internalSend(new FolderId(destinationFolderName), - MessageDisposition.SendAndSaveCopy); - } - - /** - * Sends this e-mail message and saves a copy of it in the Sent Items - * folder. SendAndSaveCopy does not work if the message has unsaved - * attachments. In that case, the message must first be saved and then sent. - * Calling this method results in a call to EWS. - * - * @throws Exception - * the exception - */ - public void sendAndSaveCopy() throws Exception { - this.internalSend(new FolderId(WellKnownFolderName.SentItems), - MessageDisposition.SendAndSaveCopy); - } - - /** - * Suppresses the read receipt on the message. Calling this method results - * in a call to EWS. - * - * @throws Exception - * the exception - */ - public void suppressReadReceipt() throws Exception { - this.throwIfThisIsNew(); - new SuppressReadReceipt(this).internalCreate(null, null); - } - - /** - * Gets the list of To recipients for the e-mail message. - * - * @return The list of To recipients for the e-mail message. - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddressCollection getToRecipients() - throws ServiceLocalException { - return (EmailAddressCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - EmailMessageSchema.ToRecipients); - } - - /** - * Gets the list of Bcc recipients for the e-mail message. - * - * @return the bcc recipients - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddressCollection getBccRecipients() - throws ServiceLocalException { - return (EmailAddressCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - EmailMessageSchema.BccRecipients); - } - - /** - * Gets the list of Cc recipients for the e-mail message. - * - * @return the cc recipients - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddressCollection getCcRecipients() - throws ServiceLocalException { - return (EmailAddressCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - EmailMessageSchema.CcRecipients); - } - - /** - * Gets the conversation topic of the e-mail message. - * - * @return the conversation topic - * @throws ServiceLocalException - * the service local exception - */ - public String getConversationTopic() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.ConversationTopic); - } - - /** - * Gets the conversation index of the e-mail message. - * - * @return the conversation index - * @throws ServiceLocalException - * the service local exception - */ - public byte[] getConversationIndex() throws ServiceLocalException { - return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.ConversationIndex); - } - - /** - * Gets the "on behalf" sender of the e-mail message. - * - * @return the from - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getFrom() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(EmailMessageSchema.From); - } - - /** - * Sets the from. - * - * @param value - * the new from - * @throws Exception - * the exception - */ - public void setFrom(EmailAddress value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.From, value); - } - - /** - * Gets a value indicating whether this is an associated message. - * - * @return the checks if is associated - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsAssociated() throws ServiceLocalException { - return super.getIsAssociated(); - } - - // The "new" keyword is used to expose the setter only on Message types, - // because - // EWS only supports creation of FAI Message types. IsAssociated is a - // readonly - // property of the Item type but it is used by the CreateItem web method for - // creating - // associated messages. - /** - * Sets the checks if is associated. - * - * @param value - * the new checks if is associated - * @throws Exception - * the exception - */ - public void setIsAssociated(boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsAssociated, value); - } - - /** - * Gets a value indicating whether a read receipt is requested for - * the e-mail message. - * - * @return the checks if is delivery receipt requested - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsDeliveryReceiptRequested() - throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.IsDeliveryReceiptRequested); - } - - /** - * Sets the checks if is delivery receipt requested. - * - * @param value - * the new checks if is delivery receipt requested - * @throws Exception - * the exception - */ - public void setIsDeliveryReceiptRequested(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsDeliveryReceiptRequested, value); - } - - /** - * Gets a value indicating whether the e-mail message is read. - * - * @return the checks if is read - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsRead() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.IsRead); - } - - /** - * Sets the checks if is read. - * - * @param value - * the new checks if is read - * @throws Exception - * the exception - */ - public void setIsRead(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsRead, value); - } - - /** - * Gets a value indicating whether a read receipt is requested for - * the e-mail message. - * - * @return the checks if is read receipt requested - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsReadReceiptRequested() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.IsReadReceiptRequested); - } - - /** - * Sets the checks if is read receipt requested. - * - * @param value - * the new checks if is read receipt requested - * @throws Exception - * the exception - */ - public void setIsReadReceiptRequested(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsReadReceiptRequested, value); - } - - /** - * Gets a value indicating whether a response is requested for the - * e-mail message. - * - * @return the checks if is response requested - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsResponseRequested() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.IsResponseRequested); - } - - /** - * Sets the checks if is response requested. - * - * @param value - * the new checks if is response requested - * @throws Exception - * the exception - */ - public void setIsResponseRequested(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsResponseRequested, value); - } - - /** - * Gets the Internat Message Id of the e-mail message. - * - * @return the internet message id - * @throws ServiceLocalException - * the service local exception - */ - public String getInternetMessageId() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.InternetMessageId); - } - - /** - * Gets the references of the e-mail message. - * - * @return the references - * @throws ServiceLocalException - * the service local exception - */ - public String getReferences() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.References); - } - - /** - * Sets the references. - * - * @param value - * the new references - * @throws Exception - * the exception - */ - public void setReferences(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.References, value); - } - - /** - * Gets a list of e-mail addresses to which replies should be addressed. - * - * @return the reply to - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddressCollection getReplyTo() throws ServiceLocalException { - return (EmailAddressCollection) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.ReplyTo); - } - - /** - * Gets the sender of the e-mail message. - * - * @return the sender - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getSender() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); - } - - /** - * Sets the sender. - * - * @param value - * the new sender - * @throws Exception - * the exception - */ - public void setSender(EmailAddress value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.Sender, value); - } - - /** - * Gets the ReceivedBy property of the e-mail message. - * - * @return the received by - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getReceivedBy() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(EmailMessageSchema.ReceivedBy); - } - - /** - * Gets the ReceivedRepresenting property of the e-mail message. - * - * @return the received representing - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getReceivedRepresenting() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition( - EmailMessageSchema.ReceivedRepresenting); - } + /** + * Initializes an unsaved local instance of EmailMessage. To bind to an + * existing e-mail message, use EmailMessage.Bind() instead. + * + * @param service The ExchangeService object to which the e-mail message will be + * bound. + * @throws Exception the exception + */ + public EmailMessage(ExchangeService service) throws Exception { + super(service); + } + + /** + * Initializes a new instance of the "EmailMessage" class. + * + * @param parentAttachment The parent attachment. + * @throws Exception the exception + */ + protected EmailMessage(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } + + /** + * Binds to an existing e-mail message and loads the specified set of + * properties.Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return An EmailMessage instance representing the e-mail message + * corresponding to the specified Id + * @throws Exception the exception + */ + public static EmailMessage bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(EmailMessage.class, id, propertySet); + + } + + /** + * Binds to an existing e-mail message and loads its first class + * properties.Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return An EmailMessage instance representing the e-mail message + * corresponding to the specified Id + * @throws Exception the exception + */ + public static EmailMessage bind(ExchangeService service, ItemId id) + throws Exception { + return EmailMessage.bind(service, id, PropertySet + .getFirstClassProperties()); + } + + /** + * Method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return EmailMessageSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Send message. + * + * @param parentFolderId The parent folder id. + * @param messageDisposition The message disposition. + * @throws Exception the exception + */ + private void internalSend(FolderId parentFolderId, + MessageDisposition messageDisposition) throws Exception { + this.throwIfThisIsAttachment(); + + if (this.isNew()) { + if ((this.getAttachments().getCount() == 0) || + (messageDisposition == MessageDisposition.SaveOnly)) { + this.internalCreate(parentFolderId, messageDisposition, null); + } else { + // Bug E14:80316 -- If the message has attachments, save as a + // draft (and add attachments) before sending. + this.internalCreate(null, // null means use the Drafts folder in + // the mailbox of the authenticated + // user. + MessageDisposition.SaveOnly, null); + + this.getService().sendItem(this, parentFolderId); + } + } else if (this.isDirty()) { + // Validate and save attachments before sending. + this.getAttachments().validate(); + this.getAttachments().save(); + + if (this.getPropertyBag().getIsUpdateCallNecessary()) { + this.internalUpdate(parentFolderId, + ConflictResolutionMode.AutoResolve, messageDisposition, + null); + } else { + this.getService().sendItem(this, parentFolderId); + } + } else { + this.getService().sendItem(this, parentFolderId); + } + + // this.internalCreate(parentFolderId, messageDisposition, null); + } + + /** + * Creates a reply response to the message. + * + * @param replyAll the reply all + * @return A ResponseMessage representing the reply response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createReply(boolean replyAll) throws Exception { + this.throwIfThisIsNew(); + + return new ResponseMessage(this, + replyAll ? ResponseMessageType.ReplyAll : + ResponseMessageType.Reply); + } + + /** + * Creates a forward response to the message. + * + * @return A ResponseMessage representing the forward response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createForward() throws Exception { + this.throwIfThisIsNew(); + return new ResponseMessage(this, ResponseMessageType.Forward); + } + + /** + * Replies to the message. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param replyAll the reply all + * @throws Exception the exception + */ + public void reply(MessageBody bodyPrefix, boolean replyAll) + throws Exception { + ResponseMessage responseMessage = this.createReply(replyAll); + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.sendAndSaveCopy(); + } + + /** + * Forwards the message. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) + throws Exception { + if (null != toRecipients) { + ArrayList list = new ArrayList(); + for (EmailAddress email : toRecipients) { + list.add(email); + } + this.forward(bodyPrefix, list); + } + } + + /** + * Forwards the message. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, + Iterable toRecipients) throws Exception { + ResponseMessage responseMessage = this.createForward(); + + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.getToRecipients() + .addEmailRange(toRecipients.iterator()); + + responseMessage.sendAndSaveCopy(); + } + + /** + * Sends this e-mail message. Calling this method results in at least one + * call to EWS. + * + * @throws Exception the exception + */ + public void send() throws Exception { + internalSend(null, MessageDisposition.SendOnly); + } + + /** + * Sends this e-mail message and saves a copy of it in the specified + * folder. SendAndSaveCopy does not work if the message has unsaved + * attachments. In that case, the message must first be saved and then sent. + * Calling this method results in a call to EWS. + * + * @param destinationFolderId the destination folder id + * @throws Exception the exception + */ + public void sendAndSaveCopy(FolderId destinationFolderId) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + this.internalSend(destinationFolderId, + MessageDisposition.SendAndSaveCopy); + } + + /** + * Sends this e-mail message and saves a copy of it in the specified + * folder. SendAndSaveCopy does not work if the message has unsaved + * attachments. In that case, the message must first be saved and then sent. + * Calling this method results in a call to EWS. + * + * @param destinationFolderName the destination folder name + * @throws Exception the exception + */ + public void sendAndSaveCopy(WellKnownFolderName destinationFolderName) + throws Exception { + this.internalSend(new FolderId(destinationFolderName), + MessageDisposition.SendAndSaveCopy); + } + + /** + * Sends this e-mail message and saves a copy of it in the Sent Items + * folder. SendAndSaveCopy does not work if the message has unsaved + * attachments. In that case, the message must first be saved and then sent. + * Calling this method results in a call to EWS. + * + * @throws Exception the exception + */ + public void sendAndSaveCopy() throws Exception { + this.internalSend(new FolderId(WellKnownFolderName.SentItems), + MessageDisposition.SendAndSaveCopy); + } + + /** + * Suppresses the read receipt on the message. Calling this method results + * in a call to EWS. + * + * @throws Exception the exception + */ + public void suppressReadReceipt() throws Exception { + this.throwIfThisIsNew(); + new SuppressReadReceipt(this).internalCreate(null, null); + } + + /** + * Gets the list of To recipients for the e-mail message. + * + * @return The list of To recipients for the e-mail message. + * @throws ServiceLocalException the service local exception + */ + public EmailAddressCollection getToRecipients() + throws ServiceLocalException { + return (EmailAddressCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + EmailMessageSchema.ToRecipients); + } + + /** + * Gets the list of Bcc recipients for the e-mail message. + * + * @return the bcc recipients + * @throws ServiceLocalException the service local exception + */ + public EmailAddressCollection getBccRecipients() + throws ServiceLocalException { + return (EmailAddressCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + EmailMessageSchema.BccRecipients); + } + + /** + * Gets the list of Cc recipients for the e-mail message. + * + * @return the cc recipients + * @throws ServiceLocalException the service local exception + */ + public EmailAddressCollection getCcRecipients() + throws ServiceLocalException { + return (EmailAddressCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + EmailMessageSchema.CcRecipients); + } + + /** + * Gets the conversation topic of the e-mail message. + * + * @return the conversation topic + * @throws ServiceLocalException the service local exception + */ + public String getConversationTopic() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.ConversationTopic); + } + + /** + * Gets the conversation index of the e-mail message. + * + * @return the conversation index + * @throws ServiceLocalException the service local exception + */ + public byte[] getConversationIndex() throws ServiceLocalException { + return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.ConversationIndex); + } + + /** + * Gets the "on behalf" sender of the e-mail message. + * + * @return the from + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getFrom() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(EmailMessageSchema.From); + } + + /** + * Sets the from. + * + * @param value the new from + * @throws Exception the exception + */ + public void setFrom(EmailAddress value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.From, value); + } + + /** + * Gets a value indicating whether this is an associated message. + * + * @return the checks if is associated + * @throws ServiceLocalException the service local exception + */ + public boolean getIsAssociated() throws ServiceLocalException { + return super.getIsAssociated(); + } + + // The "new" keyword is used to expose the setter only on Message types, + // because + // EWS only supports creation of FAI Message types. IsAssociated is a + // readonly + // property of the Item type but it is used by the CreateItem web method for + // creating + // associated messages. + + /** + * Sets the checks if is associated. + * + * @param value the new checks if is associated + * @throws Exception the exception + */ + public void setIsAssociated(boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsAssociated, value); + } + + /** + * Gets a value indicating whether a read receipt is requested for + * the e-mail message. + * + * @return the checks if is delivery receipt requested + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsDeliveryReceiptRequested() + throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.IsDeliveryReceiptRequested); + } + + /** + * Sets the checks if is delivery receipt requested. + * + * @param value the new checks if is delivery receipt requested + * @throws Exception the exception + */ + public void setIsDeliveryReceiptRequested(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsDeliveryReceiptRequested, value); + } + + /** + * Gets a value indicating whether the e-mail message is read. + * + * @return the checks if is read + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsRead() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.IsRead); + } + + /** + * Sets the checks if is read. + * + * @param value the new checks if is read + * @throws Exception the exception + */ + public void setIsRead(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsRead, value); + } + + /** + * Gets a value indicating whether a read receipt is requested for + * the e-mail message. + * + * @return the checks if is read receipt requested + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsReadReceiptRequested() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.IsReadReceiptRequested); + } + + /** + * Sets the checks if is read receipt requested. + * + * @param value the new checks if is read receipt requested + * @throws Exception the exception + */ + public void setIsReadReceiptRequested(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsReadReceiptRequested, value); + } + + /** + * Gets a value indicating whether a response is requested for the + * e-mail message. + * + * @return the checks if is response requested + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsResponseRequested() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.IsResponseRequested); + } + + /** + * Sets the checks if is response requested. + * + * @param value the new checks if is response requested + * @throws Exception the exception + */ + public void setIsResponseRequested(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsResponseRequested, value); + } + + /** + * Gets the Internat Message Id of the e-mail message. + * + * @return the internet message id + * @throws ServiceLocalException the service local exception + */ + public String getInternetMessageId() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.InternetMessageId); + } + + /** + * Gets the references of the e-mail message. + * + * @return the references + * @throws ServiceLocalException the service local exception + */ + public String getReferences() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.References); + } + + /** + * Sets the references. + * + * @param value the new references + * @throws Exception the exception + */ + public void setReferences(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.References, value); + } + + /** + * Gets a list of e-mail addresses to which replies should be addressed. + * + * @return the reply to + * @throws ServiceLocalException the service local exception + */ + public EmailAddressCollection getReplyTo() throws ServiceLocalException { + return (EmailAddressCollection) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.ReplyTo); + } + + /** + * Gets the sender of the e-mail message. + * + * @return the sender + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getSender() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); + } + + /** + * Sets the sender. + * + * @param value the new sender + * @throws Exception the exception + */ + public void setSender(EmailAddress value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.Sender, value); + } + + /** + * Gets the ReceivedBy property of the e-mail message. + * + * @return the received by + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getReceivedBy() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(EmailMessageSchema.ReceivedBy); + } + + /** + * Gets the ReceivedRepresenting property of the e-mail message. + * + * @return the received representing + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getReceivedRepresenting() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition( + EmailMessageSchema.ReceivedRepresenting); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index 4bda4f70e..7272a4bf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -14,349 +14,383 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for e-mail messages. - * */ @Schema public class EmailMessageSchema extends ItemSchema { - /** - * The Interface FieldUris. - */ - private static interface FieldUris { - - /** The Conversation index. */ - String ConversationIndex = "message:ConversationIndex"; - - /** The Conversation topic. */ - String ConversationTopic = "message:ConversationTopic"; - - /** The Internet message id. */ - String InternetMessageId = "message:InternetMessageId"; - - /** The Is read. */ - String IsRead = "message:IsRead"; - - /** The Is response requested. */ - String IsResponseRequested = "message:IsResponseRequested"; - - /** The Is read receipt requested. */ - String IsReadReceiptRequested = "message:IsReadReceiptRequested"; - - /** The Is delivery receipt requested. */ - String IsDeliveryReceiptRequested = - "message:IsDeliveryReceiptRequested"; - - /** The References. */ - String References = "message:References"; - - /** The Reply to. */ - String ReplyTo = "message:ReplyTo"; - - /** The From. */ - String From = "message:From"; - - /** The Sender. */ - String Sender = "message:Sender"; - - /** The To recipients. */ - String ToRecipients = "message:ToRecipients"; - - /** The Cc recipients. */ - String CcRecipients = "message:CcRecipients"; - - /** The Bcc recipients. */ - String BccRecipients = "message:BccRecipients"; - - /** The Received by. */ - String ReceivedBy = "message:ReceivedBy"; - - /** The Received representing. */ - String ReceivedRepresenting = "message:ReceivedRepresenting"; - } - - /** - * Defines the ToRecipients property. - */ - public static final PropertyDefinition ToRecipients = - new ComplexPropertyDefinition( - EmailAddressCollection.class, - XmlElementNames.ToRecipients, - FieldUris.ToRecipients, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public EmailAddressCollection createComplexProperty() { - return new EmailAddressCollection(); - } - }); - - /** - * Defines the BccRecipients property. - */ - public static final PropertyDefinition BccRecipients = - new ComplexPropertyDefinition( - EmailAddressCollection.class, - XmlElementNames.BccRecipients, - FieldUris.BccRecipients, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public EmailAddressCollection createComplexProperty() { - return new EmailAddressCollection(); - } - }); - - /** - * Defines the CcRecipients property. - */ - public static final PropertyDefinition CcRecipients = - new ComplexPropertyDefinition( - EmailAddressCollection.class, - XmlElementNames.CcRecipients, - FieldUris.CcRecipients, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public EmailAddressCollection createComplexProperty() { - return new EmailAddressCollection(); - } - }); - - /** - * Defines the ConversationIndex property. - */ - public static final PropertyDefinition ConversationIndex = - new ByteArrayPropertyDefinition( - XmlElementNames.ConversationIndex, FieldUris.ConversationIndex, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ConversationTopic property. - */ - public static final PropertyDefinition ConversationTopic = - new StringPropertyDefinition( - XmlElementNames.ConversationTopic, FieldUris.ConversationTopic, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the From property. - */ - public static final PropertyDefinition From = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.From, FieldUris.From, XmlElementNames.Mailbox, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - /** - * Defines the IsDeliveryReceiptRequested property. - */ - public static final PropertyDefinition IsDeliveryReceiptRequested = - new BoolPropertyDefinition( - XmlElementNames.IsDeliveryReceiptRequested, - FieldUris.IsDeliveryReceiptRequested, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsRead property. - */ - public static final PropertyDefinition IsRead = new BoolPropertyDefinition( - XmlElementNames.IsRead, FieldUris.IsRead, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsReadReceiptRequested property. - */ - public static final PropertyDefinition IsReadReceiptRequested = - new BoolPropertyDefinition( - XmlElementNames.IsReadReceiptRequested, - FieldUris.IsReadReceiptRequested, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsResponseRequested property. - */ - public static final PropertyDefinition IsResponseRequested = - new BoolPropertyDefinition( - XmlElementNames.IsResponseRequested, FieldUris.IsResponseRequested, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - /** - * Defines the InternetMessageId property. - */ - public static final PropertyDefinition InternetMessageId = - new StringPropertyDefinition( - XmlElementNames.InternetMessageId, FieldUris.InternetMessageId, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the References property. - */ - public static final PropertyDefinition References = - new StringPropertyDefinition( - XmlElementNames.References, FieldUris.References, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ReplyTo property. - */ - public static final PropertyDefinition ReplyTo = - new ComplexPropertyDefinition( - EmailAddressCollection.class, - XmlElementNames.ReplyTo, - FieldUris.ReplyTo, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public EmailAddressCollection createComplexProperty() { - return new EmailAddressCollection(); - } - }); - - /** - * Defines the Sender property. - */ - public static final PropertyDefinition Sender = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.Sender, FieldUris.Sender, XmlElementNames.Mailbox, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - /** - * Defines the ReceivedBy property. - */ - public static final PropertyDefinition ReceivedBy = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.ReceivedBy, FieldUris.ReceivedBy, - XmlElementNames.Mailbox, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - /** - * Defines the ReceivedRepresenting property. - */ - public static final PropertyDefinition ReceivedRepresenting = - new ContainedPropertyDefinition( - EmailAddress.class, - XmlElementNames.ReceivedRepresenting, - FieldUris.ReceivedRepresenting, XmlElementNames.Mailbox, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public EmailAddress createComplexProperty() { - return new EmailAddress(); - } - }); - - /** The Constant Instance. */ - protected static final EmailMessageSchema Instance = - new EmailMessageSchema(); - - /** - * Gets the single instance of EmailMessageSchema. - * - * @return single instance of EmailMessageSchema - */ - public static EmailMessageSchema getInstance() { - return Instance; - } - - /** - * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN - * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - this.registerProperty(Sender); - this.registerProperty(ToRecipients); - this.registerProperty(CcRecipients); - this.registerProperty(BccRecipients); - this.registerProperty(IsReadReceiptRequested); - this.registerProperty(IsDeliveryReceiptRequested); - this.registerProperty(ConversationIndex); - this.registerProperty(ConversationTopic); - this.registerProperty(From); - this.registerProperty(InternetMessageId); - this.registerProperty(IsRead); - this.registerProperty(IsResponseRequested); - this.registerProperty(References); - this.registerProperty(ReplyTo); - this.registerProperty(ReceivedBy); - this.registerProperty(ReceivedRepresenting); - } - - /** - * Initializes a new instance. - */ - protected EmailMessageSchema() { - super(); - } + /** + * The Interface FieldUris. + */ + private static interface FieldUris { + + /** + * The Conversation index. + */ + String ConversationIndex = "message:ConversationIndex"; + + /** + * The Conversation topic. + */ + String ConversationTopic = "message:ConversationTopic"; + + /** + * The Internet message id. + */ + String InternetMessageId = "message:InternetMessageId"; + + /** + * The Is read. + */ + String IsRead = "message:IsRead"; + + /** + * The Is response requested. + */ + String IsResponseRequested = "message:IsResponseRequested"; + + /** + * The Is read receipt requested. + */ + String IsReadReceiptRequested = "message:IsReadReceiptRequested"; + + /** + * The Is delivery receipt requested. + */ + String IsDeliveryReceiptRequested = + "message:IsDeliveryReceiptRequested"; + + /** + * The References. + */ + String References = "message:References"; + + /** + * The Reply to. + */ + String ReplyTo = "message:ReplyTo"; + + /** + * The From. + */ + String From = "message:From"; + + /** + * The Sender. + */ + String Sender = "message:Sender"; + + /** + * The To recipients. + */ + String ToRecipients = "message:ToRecipients"; + + /** + * The Cc recipients. + */ + String CcRecipients = "message:CcRecipients"; + + /** + * The Bcc recipients. + */ + String BccRecipients = "message:BccRecipients"; + + /** + * The Received by. + */ + String ReceivedBy = "message:ReceivedBy"; + + /** + * The Received representing. + */ + String ReceivedRepresenting = "message:ReceivedRepresenting"; + } + + + /** + * Defines the ToRecipients property. + */ + public static final PropertyDefinition ToRecipients = + new ComplexPropertyDefinition( + EmailAddressCollection.class, + XmlElementNames.ToRecipients, + FieldUris.ToRecipients, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public EmailAddressCollection createComplexProperty() { + return new EmailAddressCollection(); + } + }); + + /** + * Defines the BccRecipients property. + */ + public static final PropertyDefinition BccRecipients = + new ComplexPropertyDefinition( + EmailAddressCollection.class, + XmlElementNames.BccRecipients, + FieldUris.BccRecipients, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public EmailAddressCollection createComplexProperty() { + return new EmailAddressCollection(); + } + }); + + /** + * Defines the CcRecipients property. + */ + public static final PropertyDefinition CcRecipients = + new ComplexPropertyDefinition( + EmailAddressCollection.class, + XmlElementNames.CcRecipients, + FieldUris.CcRecipients, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public EmailAddressCollection createComplexProperty() { + return new EmailAddressCollection(); + } + }); + + /** + * Defines the ConversationIndex property. + */ + public static final PropertyDefinition ConversationIndex = + new ByteArrayPropertyDefinition( + XmlElementNames.ConversationIndex, FieldUris.ConversationIndex, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ConversationTopic property. + */ + public static final PropertyDefinition ConversationTopic = + new StringPropertyDefinition( + XmlElementNames.ConversationTopic, FieldUris.ConversationTopic, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the From property. + */ + public static final PropertyDefinition From = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.From, FieldUris.From, XmlElementNames.Mailbox, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + /** + * Defines the IsDeliveryReceiptRequested property. + */ + public static final PropertyDefinition IsDeliveryReceiptRequested = + new BoolPropertyDefinition( + XmlElementNames.IsDeliveryReceiptRequested, + FieldUris.IsDeliveryReceiptRequested, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsRead property. + */ + public static final PropertyDefinition IsRead = new BoolPropertyDefinition( + XmlElementNames.IsRead, FieldUris.IsRead, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsReadReceiptRequested property. + */ + public static final PropertyDefinition IsReadReceiptRequested = + new BoolPropertyDefinition( + XmlElementNames.IsReadReceiptRequested, + FieldUris.IsReadReceiptRequested, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsResponseRequested property. + */ + public static final PropertyDefinition IsResponseRequested = + new BoolPropertyDefinition( + XmlElementNames.IsResponseRequested, FieldUris.IsResponseRequested, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + /** + * Defines the InternetMessageId property. + */ + public static final PropertyDefinition InternetMessageId = + new StringPropertyDefinition( + XmlElementNames.InternetMessageId, FieldUris.InternetMessageId, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the References property. + */ + public static final PropertyDefinition References = + new StringPropertyDefinition( + XmlElementNames.References, FieldUris.References, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ReplyTo property. + */ + public static final PropertyDefinition ReplyTo = + new ComplexPropertyDefinition( + EmailAddressCollection.class, + XmlElementNames.ReplyTo, + FieldUris.ReplyTo, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public EmailAddressCollection createComplexProperty() { + return new EmailAddressCollection(); + } + }); + + /** + * Defines the Sender property. + */ + public static final PropertyDefinition Sender = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.Sender, FieldUris.Sender, XmlElementNames.Mailbox, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + /** + * Defines the ReceivedBy property. + */ + public static final PropertyDefinition ReceivedBy = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.ReceivedBy, FieldUris.ReceivedBy, + XmlElementNames.Mailbox, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + /** + * Defines the ReceivedRepresenting property. + */ + public static final PropertyDefinition ReceivedRepresenting = + new ContainedPropertyDefinition( + EmailAddress.class, + XmlElementNames.ReceivedRepresenting, + FieldUris.ReceivedRepresenting, XmlElementNames.Mailbox, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public EmailAddress createComplexProperty() { + return new EmailAddress(); + } + }); + + /** + * The Constant Instance. + */ + protected static final EmailMessageSchema Instance = + new EmailMessageSchema(); + + /** + * Gets the single instance of EmailMessageSchema. + * + * @return single instance of EmailMessageSchema + */ + public static EmailMessageSchema getInstance() { + return Instance; + } + + /** + * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN + * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + this.registerProperty(Sender); + this.registerProperty(ToRecipients); + this.registerProperty(CcRecipients); + this.registerProperty(BccRecipients); + this.registerProperty(IsReadReceiptRequested); + this.registerProperty(IsDeliveryReceiptRequested); + this.registerProperty(ConversationIndex); + this.registerProperty(ConversationTopic); + this.registerProperty(From); + this.registerProperty(InternetMessageId); + this.registerProperty(IsRead); + this.registerProperty(IsResponseRequested); + this.registerProperty(References); + this.registerProperty(ReplyTo); + this.registerProperty(ReceivedBy); + this.registerProperty(ReceivedRepresenting); + } + + /** + * Initializes a new instance. + */ + protected EmailMessageSchema() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java index 954d9fe0a..b17142776 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java @@ -9,161 +9,164 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of **************************************************************************/ package microsoft.exchange.webservices.data; + /** - * * Represents an EmptyFolder request. - * */ -final class EmptyFolderRequest extends DeleteRequest{ - - private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - private boolean deleteSubFolders; - - /** - * Initializes a new instance of the EmptyFolderRequest class. - * @param service The service. - * @param errorHandlingMode Indicates how errors should be handled. - * @throws Exception - */ - protected EmptyFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validates request. - * @throws Exception - * @throws ServiceLocalException - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); - this.getFolderIds().validate(this.getService(). - getRequestedServerVersion()); - } - - /** - * Gets the expected response message count. - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getFolderIds().getCount(); - } - - /** - * Creates the service response. - * - * @param service - * The service. - * - * @param responseIndex - * Index of the response. - * - * @return Service object - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the name of the XML element. - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.EmptyFolder; - } - - /** - * Gets the name of the response XML element. - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.EmptyFolderResponse; - } - - /** - * Gets the name of the response message XML element. - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.EmptyFolderResponseMessage; - } - - /** - * Writes XML elements. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getFolderIds().writeToXml( - writer, - XmlNamespace.Messages, - XmlElementNames.FolderIds); - } - - /** - * Writes XML attributes. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.DeleteSubFolders, - this.deleteSubFolders); - } - - /** - * Gets the request version. - * @return Earliest Exchange version - * in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } - - /** - * Gets the folder ids. - * @return The folder ids. - */ - protected FolderIdWrapperList getFolderIds() { - return this.folderIds; - } - - /** - * Gets a value indicating whether empty - * folder should also delete sub folders. - * - * @value true if empty folder should also - * delete sub folders, otherwise false. - * - */ - protected boolean getDeleteSubFolders() { - return deleteSubFolders; - } - - /** - * Sets a value indicating whether empty - * folder should also delete sub folders. - * @value true if empty folder should also - * delete sub folders, otherwise false. - */ - protected void setDeleteSubFolders(boolean value) { - this.deleteSubFolders = value; - } - -} \ No newline at end of file +final class EmptyFolderRequest extends DeleteRequest { + + private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + private boolean deleteSubFolders; + + /** + * Initializes a new instance of the EmptyFolderRequest class. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected EmptyFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validates request. + * + * @throws Exception + * @throws ServiceLocalException + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); + this.getFolderIds().validate(this.getService(). + getRequestedServerVersion()); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getFolderIds().getCount(); + } + + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service object + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.EmptyFolder; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.EmptyFolderResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.EmptyFolderResponseMessage; + } + + /** + * Writes XML elements. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getFolderIds().writeToXml( + writer, + XmlNamespace.Messages, + XmlElementNames.FolderIds); + } + + /** + * Writes XML attributes. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.DeleteSubFolders, + this.deleteSubFolders); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version + * in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * Gets the folder ids. + * + * @return The folder ids. + */ + protected FolderIdWrapperList getFolderIds() { + return this.folderIds; + } + + /** + * Gets a value indicating whether empty + * folder should also delete sub folders. + * + * @value true if empty folder should also + * delete sub folders, otherwise false. + */ + protected boolean getDeleteSubFolders() { + return deleteSubFolders; + } + + /** + * Sets a value indicating whether empty + * folder should also delete sub folders. + * + * @value true if empty folder should also + * delete sub folders, otherwise false. + */ + protected void setDeleteSubFolders(boolean value) { + this.deleteSubFolders = value; + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java index 2feb99b48..ad852f355 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java @@ -10,130 +10,120 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; -import javax.xml.stream.XMLStreamException; - /** * Represents recurrent range with an end date. - * */ final class EndDateRecurrenceRange extends RecurrenceRange { - /** The end date. */ - private Date endDate; - - /** - * Initializes a new instance. - */ - public EndDateRecurrenceRange() { - super(); - } - - /** - * Initializes a new instance. - * - * @param startDate - * the start date - * @param endDate - * the end date - */ - public EndDateRecurrenceRange(Date startDate, Date endDate) { - super(startDate); - this.endDate = endDate; - } - - /** - * Gets the name of the XML element. - * - * @return The name of the XML element - */ - protected String getXmlElementName() { - return XmlElementNames.EndDateRecurrence; - } - - /** - * Setups the recurrence. - * - * @param recurrence - * the new up recurrence - * @throws Exception - * the exception - */ - protected void setupRecurrence(Recurrence recurrence) throws Exception { - super.setupRecurrence(recurrence); - recurrence.setEndDate(this.endDate); - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - Date d = this.endDate; - DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); - String formattedString = df.format(d); - - super.writeElementsToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EndDate, - formattedString); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.EndDate)) { - - Date temp = reader.readElementValueAsUnspecifiedDate(); - - if(temp!=null) { - this.endDate = temp; - } - return true; - } else { - return false; - } - } - } - - /** - * Gets the end date. - * - * @return endDate - */ - public Date getEndDate() { - return this.endDate; - } - - /** - * sets the end date. - * - * @param value - * the new end date - */ - public void setEndDate(Date value) { - this.canSetFieldValue(this.endDate, value); - } + /** + * The end date. + */ + private Date endDate; + + /** + * Initializes a new instance. + */ + public EndDateRecurrenceRange() { + super(); + } + + /** + * Initializes a new instance. + * + * @param startDate the start date + * @param endDate the end date + */ + public EndDateRecurrenceRange(Date startDate, Date endDate) { + super(startDate); + this.endDate = endDate; + } + + /** + * Gets the name of the XML element. + * + * @return The name of the XML element + */ + protected String getXmlElementName() { + return XmlElementNames.EndDateRecurrence; + } + + /** + * Setups the recurrence. + * + * @param recurrence the new up recurrence + * @throws Exception the exception + */ + protected void setupRecurrence(Recurrence recurrence) throws Exception { + super.setupRecurrence(recurrence); + recurrence.setEndDate(this.endDate); + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + Date d = this.endDate; + DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + String formattedString = df.format(d); + + super.writeElementsToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EndDate, + formattedString); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.EndDate)) { + + Date temp = reader.readElementValueAsUnspecifiedDate(); + + if (temp != null) { + this.endDate = temp; + } + return true; + } else { + return false; + } + } + } + + /** + * Gets the end date. + * + * @return endDate + */ + public Date getEndDate() { + return this.endDate; + } + + /** + * sets the end date. + * + * @param value the new end date + */ + public void setEndDate(Date value) { + this.canSetFieldValue(this.endDate, value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EventType.java b/src/main/java/microsoft/exchange/webservices/data/EventType.java index 91b6491ce..698ec6472 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EventType.java +++ b/src/main/java/microsoft/exchange/webservices/data/EventType.java @@ -14,47 +14,61 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the types of event that can occur in a folder. */ public enum EventType { - // This event is sent to a client application by push notifications to - // indicate that - // the subscription is still alive. - /** The Status. */ - @EwsEnum(schemaName = "StatusEvent") - Status, - - // This event indicates that a new e-mail message was received. - /** The New mail. */ - @EwsEnum(schemaName = "NewMailEvent") - NewMail, - - // This event indicates that an item or folder has been deleted. - /** The Deleted. */ - @EwsEnum(schemaName = "DeletedEvent") - Deleted, - - // This event indicates that an item or folder has been modified. - /** The Modified. */ - @EwsEnum(schemaName = "ModifiedEvent") - Modified, - - // This event indicates that an item or folder has been moved to another - // folder. - /** The Moved. */ - @EwsEnum(schemaName = "MovedEvent") - Moved, - - // This event indicates that an item or folder has been copied to another - // folder. - /** The Copied. */ - @EwsEnum(schemaName = "CopiedEvent") - Copied, - - // This event indicates that a new item or folder has been created. - /** The Created. */ - @EwsEnum(schemaName = "CreatedEvent") - Created, - - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - @EwsEnum(schemaName = "FreeBusyChangedEvent") - FreeBusyChanged - + // This event is sent to a client application by push notifications to + // indicate that + // the subscription is still alive. + /** + * The Status. + */ + @EwsEnum(schemaName = "StatusEvent") + Status, + + // This event indicates that a new e-mail message was received. + /** + * The New mail. + */ + @EwsEnum(schemaName = "NewMailEvent") + NewMail, + + // This event indicates that an item or folder has been deleted. + /** + * The Deleted. + */ + @EwsEnum(schemaName = "DeletedEvent") + Deleted, + + // This event indicates that an item or folder has been modified. + /** + * The Modified. + */ + @EwsEnum(schemaName = "ModifiedEvent") + Modified, + + // This event indicates that an item or folder has been moved to another + // folder. + /** + * The Moved. + */ + @EwsEnum(schemaName = "MovedEvent") + Moved, + + // This event indicates that an item or folder has been copied to another + // folder. + /** + * The Copied. + */ + @EwsEnum(schemaName = "CopiedEvent") + Copied, + + // This event indicates that a new item or folder has been created. + /** + * The Created. + */ + @EwsEnum(schemaName = "CreatedEvent") + Created, + + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + @EwsEnum(schemaName = "FreeBusyChangedEvent") + FreeBusyChanged + } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java index aaa9b637a..735072bd2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java @@ -19,13 +19,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Interface EwsEnum. */ @Target(ElementType.FIELD) -@Retention(RetentionPolicy.RUNTIME) -@interface EwsEnum { +@Retention(RetentionPolicy.RUNTIME) @interface EwsEnum { - /** - * Schema name. - * - * @return the string - */ - String schemaName(); + /** + * Schema name. + * + * @return the string + */ + String schemaName(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index 818ed6cc0..8d896fd6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -10,32 +10,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.security.KeyManagementException; -import java.security.KeyStoreException; -import java.security.NoSuchAlgorithmException; +import org.apache.http.conn.ssl.SSLConnectionSocketFactory; +import org.apache.http.conn.ssl.SSLContexts; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLException; import javax.net.ssl.TrustManager; - -import org.apache.http.conn.ssl.SSLConnectionSocketFactory; -import org.apache.http.conn.ssl.SSLContexts; +import java.security.KeyManagementException; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; /** *

* EwsSSLProtocolSocketFactory can be used to creats SSL {@link java.net.Socket}s - * that accept self-signed certificates. + * that accept self-signed certificates. *

*

- * This socket factory SHOULD NOT be used for productive systems - * due to security reasons, unless it is a concious decision and - * you are perfectly aware of security implications of accepting + * This socket factory SHOULD NOT be used for productive systems + * due to security reasons, unless it is a concious decision and + * you are perfectly aware of security implications of accepting * self-signed certificates *

- * + *

*

* Example of using custom protocol socket factory for a specific host: - *

+ * 
  *     Protocol easyhttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443);
  *
  *     URI uri = new URI("https://localhost/", true);
@@ -49,7 +48,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
  * 

*

* Example of using custom protocol socket factory per default instead of the standard one: - *

+ * 
  *     Protocol easyhttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443);
  *     Protocol.registerProtocol("https", easyhttps);
  *
@@ -58,7 +57,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
  *     client.executeMethod(httpget);
  *     
*

- * + * *

* DISCLAIMER: HttpClient developers DO NOT actively support this component. * The component is provided as a reference material, which may be inappropriate @@ -68,41 +67,45 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of class EwsSSLProtocolSocketFactory extends SSLConnectionSocketFactory { - /** The SSL Context. */ - private SSLContext sslcontext = null; + /** + * The SSL Context. + */ + private SSLContext sslcontext = null; + + /** + * Constructor for EasySSLProtocolSocketFactory. + * + * @throws SSLException + */ + public EwsSSLProtocolSocketFactory(SSLContext context) { + super(context, SSLConnectionSocketFactory.STRICT_HOSTNAME_VERIFIER); + this.sslcontext = context; + } + + - /** - * Constructor for EasySSLProtocolSocketFactory. - * @throws SSLException - */ - public EwsSSLProtocolSocketFactory(SSLContext context) { - super(context, SSLConnectionSocketFactory.STRICT_HOSTNAME_VERIFIER); - this.sslcontext = context; - } + public SSLContext getContext() { + return this.sslcontext; + } - - - public SSLContext getContext() { - return this.sslcontext; - } - - public static EwsSSLProtocolSocketFactory build( TrustManager trustManager ) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException { - SSLContext sslContext = SSLContexts.createDefault(); - sslContext.init( - null, - new TrustManager[] {new EwsX509TrustManager(null, trustManager)}, - null - ); - return new EwsSSLProtocolSocketFactory(sslContext); - } + public static EwsSSLProtocolSocketFactory build(TrustManager trustManager) + throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException { + SSLContext sslContext = SSLContexts.createDefault(); + sslContext.init( + null, + new TrustManager[] {new EwsX509TrustManager(null, trustManager)}, + null + ); + return new EwsSSLProtocolSocketFactory(sslContext); + } - public boolean equals(Object obj) { - return ((obj != null) && obj.getClass().equals(EwsSSLProtocolSocketFactory.class)); - } + public boolean equals(Object obj) { + return ((obj != null) && obj.getClass().equals(EwsSSLProtocolSocketFactory.class)); + } - public int hashCode() { - return EwsSSLProtocolSocketFactory.class.hashCode(); - } + public int hashCode() { + return EwsSSLProtocolSocketFactory.class.hashCode(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java index 8d03a8c7b..0f50bc342 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java @@ -10,84 +10,87 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; - import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamException; +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; /** - * Represents an xml reader used by the ExchangeService to parse multi-response streams, - * such as GetStreamingEvents. - * - * Necessary because the basic EwsServiceXmlReader does not - * use normalization (see E14:60369), and in order to turn normalization off, it is + * Represents an xml reader used by the ExchangeService to parse multi-response streams, + * such as GetStreamingEvents. + *

+ * Necessary because the basic EwsServiceXmlReader does not + * use normalization (see E14:60369), and in order to turn normalization off, it is * necessary to use an XmlTextReader, which does not allow the ConformanceLevel.Auto that * a multi-response stream requires. * If ever there comes a time we need to deal with multi-response streams with user-generated * content, we will need to tackle that parsing problem separately. */ - class EwsServiceMultiResponseXmlReader extends EwsServiceXmlReader { - - /** - * Initializes a new instance of the - * EwsServiceMultiResponseXmlReader class. - * @param stream The stream. - * @param service The service. - * @throws Exception - */ - private EwsServiceMultiResponseXmlReader(InputStream stream, - ExchangeService service) throws Exception { - super(stream, service); - } - - /** - * Creates a new instance of the EwsServiceMultiResponseXmlReader class. - * @param stream The stream. - * @param service The service. - * @return an instance of EwsServiceMultiResponseXmlReader - * wrapped around the input stream. - * @throws Exception - */ - protected static EwsServiceMultiResponseXmlReader create(InputStream stream, - ExchangeService service) throws Exception { - EwsServiceMultiResponseXmlReader reader = - new EwsServiceMultiResponseXmlReader(stream, service); - return reader; - } - - /** - * Creates the XML reader. - * @param stream The stream. - * @return An XML reader to use. - * @throws javax.xml.stream.XMLStreamException - */ - private static XMLEventReader createXmlReader(InputStream stream) - throws XMLStreamException { - - // E14:240522 The ProhibitDtd property is used to indicate whether XmlReader should process DTDs or not. By default, - // it will do so. EWS doesn't use DTD references so we want to turn this off. Also, the XmlResolver property is - // set to an instance of XmlUrlResolver by default. We don't want XmlTextReader to try to resolve this DTD reference - // so we disable the XmlResolver as well. - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); - InputStreamReader isr = new InputStreamReader (stream); - BufferedReader in = new BufferedReader (isr); - return inputFactory.createXMLEventReader(in); - } - - - /** - * Initializes the XML reader. - * @param stream The stream. - * An XML reader to use. - * @throws Exception - */ - @Override - protected XMLEventReader initializeXmlReader(InputStream stream) - throws Exception { - return createXmlReader(stream); - } +class EwsServiceMultiResponseXmlReader extends EwsServiceXmlReader { + + /** + * Initializes a new instance of the + * EwsServiceMultiResponseXmlReader class. + * + * @param stream The stream. + * @param service The service. + * @throws Exception + */ + private EwsServiceMultiResponseXmlReader(InputStream stream, + ExchangeService service) throws Exception { + super(stream, service); + } + + /** + * Creates a new instance of the EwsServiceMultiResponseXmlReader class. + * + * @param stream The stream. + * @param service The service. + * @return an instance of EwsServiceMultiResponseXmlReader + * wrapped around the input stream. + * @throws Exception + */ + protected static EwsServiceMultiResponseXmlReader create(InputStream stream, + ExchangeService service) throws Exception { + EwsServiceMultiResponseXmlReader reader = + new EwsServiceMultiResponseXmlReader(stream, service); + return reader; + } + + /** + * Creates the XML reader. + * + * @param stream The stream. + * @return An XML reader to use. + * @throws javax.xml.stream.XMLStreamException + */ + private static XMLEventReader createXmlReader(InputStream stream) + throws XMLStreamException { + + // E14:240522 The ProhibitDtd property is used to indicate whether XmlReader should process DTDs or not. By default, + // it will do so. EWS doesn't use DTD references so we want to turn this off. Also, the XmlResolver property is + // set to an instance of XmlUrlResolver by default. We don't want XmlTextReader to try to resolve this DTD reference + // so we disable the XmlResolver as well. + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + InputStreamReader isr = new InputStreamReader(stream); + BufferedReader in = new BufferedReader(isr); + return inputFactory.createXMLEventReader(in); + } + + + /** + * Initializes the XML reader. + * + * @param stream The stream. + * An XML reader to use. + * @throws Exception + */ + @Override + protected XMLEventReader initializeXmlReader(InputStream stream) + throws Exception { + return createXmlReader(stream); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index ecebcd6df..09ac82336 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -21,233 +21,219 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * XML reader. - * */ class EwsServiceXmlReader extends EwsXmlReader { - /** The service. */ - private ExchangeService service; - - /** - * Initializes a new instance of the EwsXmlReader class. - * - * @param stream - * the stream - * @param service - * the service - * @throws Exception - */ - protected EwsServiceXmlReader(InputStream stream, ExchangeService service) - throws Exception { - super(stream); - this.service = service; - } - - /** - * Converts the specified string into a DateTime objects. - * - * @param dateTimeString - * The date time string to convert. - * @return A DateTime representing the converted string. - */ - private Date convertStringToDateTime(String dateTimeString) { - return this.service - .convertUniversalDateTimeStringToDate(dateTimeString); - } - - /** - * Converts the specified string into a - * unspecified Date object, ignoring offset. - * @param dateTimeString - * The date time string to convert. - * @return A DateTime representing the converted string. - * @throws java.text.ParseException - */ - private Date convertStringToUnspecifiedDate(String dateTimeString) throws ParseException { - return this.getService(). + /** + * The service. + */ + private ExchangeService service; + + /** + * Initializes a new instance of the EwsXmlReader class. + * + * @param stream the stream + * @param service the service + * @throws Exception + */ + protected EwsServiceXmlReader(InputStream stream, ExchangeService service) + throws Exception { + super(stream); + this.service = service; + } + + /** + * Converts the specified string into a DateTime objects. + * + * @param dateTimeString The date time string to convert. + * @return A DateTime representing the converted string. + */ + private Date convertStringToDateTime(String dateTimeString) { + return this.service + .convertUniversalDateTimeStringToDate(dateTimeString); + } + + /** + * Converts the specified string into a + * unspecified Date object, ignoring offset. + * + * @param dateTimeString The date time string to convert. + * @return A DateTime representing the converted string. + * @throws java.text.ParseException + */ + private Date convertStringToUnspecifiedDate(String dateTimeString) throws ParseException { + return this.getService(). convertStartDateToUnspecifiedDateTime(dateTimeString); + } + + /** + * Reads the element value as date time. + * + * @return Element value + * @throws Exception the exception + */ + public Date readElementValueAsDateTime() throws Exception { + return this.convertStringToDateTime(this.readElementValue()); + } + + /** + * Reads the element value as unspecified date. + * + * @return Element value + * @throws Exception + */ + public Date readElementValueAsUnspecifiedDate() throws Exception { + return this.convertStringToUnspecifiedDate(this.readElementValue()); + } + + /** + * Reads the element value as date time, assuming it is unbiased (e.g. + * 2009/01/01T08:00) and scoped to service's time zone. + * + * @return Date + * @throws Exception the exception + */ + public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() + throws Exception { + // Convert the element's value to a DateTime with no adjustment. + String date = this.readElementValue(); + Date tempDate = null; + + try { + DateFormat formatter = + new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); + formatter.setTimeZone(TimeZone.getTimeZone("UTC")); + tempDate = formatter.parse(date); + } catch (Exception e) { + //e.printStackTrace(); + DateFormat formatter = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss.SSS"); + formatter.setTimeZone(TimeZone.getTimeZone("UTC")); + tempDate = formatter.parse(date); } - /** - * Reads the element value as date time. - * - * @return Element value - * @throws Exception - * the exception - */ - public Date readElementValueAsDateTime() throws Exception { - return this.convertStringToDateTime(this.readElementValue()); - } - - /** - * Reads the element value as unspecified date. - * @return Element value - * @throws Exception - */ - public Date readElementValueAsUnspecifiedDate() throws Exception { - return this.convertStringToUnspecifiedDate(this.readElementValue()); - } - - /** - * Reads the element value as date time, assuming it is unbiased (e.g. - * 2009/01/01T08:00) and scoped to service's time zone. - * - * @return Date - * @throws Exception - * the exception - */ - public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() - throws Exception { - // Convert the element's value to a DateTime with no adjustment. - String date = this.readElementValue(); - Date tempDate = null; - - try { - DateFormat formatter = - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); - formatter.setTimeZone(TimeZone.getTimeZone("UTC")); - tempDate = formatter.parse(date); - } catch (Exception e) { - //e.printStackTrace(); - DateFormat formatter = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss.SSS"); - formatter.setTimeZone(TimeZone.getTimeZone("UTC")); - tempDate = formatter.parse(date); - } - /* - * TimeZone tz = sdfin.getTimeZone(); Calendar calen = + * TimeZone tz = sdfin.getTimeZone(); Calendar calen = * Calendar.getInstance(); calen.setTime(tempDate); */ - // Set the kind according to the service's time zone - // Since the TimeZone is default UTC so no need to checks for Local and - // other - // if ((this.service.getTimeZone()).equals(TimeZone.getTimeZone("utc"))) - // { + // Set the kind according to the service's time zone + // Since the TimeZone is default UTC so no need to checks for Local and + // other + // if ((this.service.getTimeZone()).equals(TimeZone.getTimeZone("utc"))) + // { /* * calen.setTimeInMillis(calen.getTimeInMillis() - * tz.getOffset(tempDate.getTime())); */ - return tempDate; + return tempDate; /* * } else if (EwsUtilities.isLocalTimeZone(this.service.getTimeZone())) * { calen.setTimeInMillis(calen.getTimeInMillis() + * tz.getOffset(tempDate.getTime())); return calen.getTime(); } else { * return tempDate; } */ - } - - /** - * Reads the element value as date time. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @return the date - * @throws Exception - * the exception - */ - public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, - String localName) throws Exception { - return this.convertStringToDateTime(this.readElementValue(xmlNamespace, - localName)); - } - - /** - * Reads the service objects collection from XML. - * - * @param - * the generic type - * @param collectionXmlElementName - * the collection xml element name - * @param getObjectInstanceDelegate - * the get object instance delegate - * @param clearPropertyBag - * the clear property bag - * @param requestedPropertySet - * the requested property set - * @param summaryPropertiesOnly - * the summary properties only - * @return the list - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - public List - readServiceObjectsCollectionFromXml( - String collectionXmlElementName, - IGetObjectInstanceDelegate - getObjectInstanceDelegate, - boolean clearPropertyBag, PropertySet requestedPropertySet, - boolean summaryPropertiesOnly) throws Exception { - - List serviceObjects = new ArrayList(); - TServiceObject serviceObject = null; - - this.readStartElement(XmlNamespace.Messages, collectionXmlElementName); - - if (!this.isEmptyElement()) { - do { - this.read(); - - if (this.isStartElement()) { - serviceObject = (TServiceObject)getObjectInstanceDelegate - .getObjectInstanceDelegate(this.getService(), this - .getLocalName()); - if (serviceObject == null) { - this.skipCurrentElement(); - } else { - if (!(this.getLocalName()).equals(serviceObject - .getXmlElementName())) { - - throw new ServiceLocalException(String - .format( - "The type of the " + "object in " + - "the store (%s)" + - " does not match that" + - " of the " + - "local object (%s).", - this.getLocalName(), serviceObject - .getXmlElementName())); - } - serviceObject.loadFromXml(this, clearPropertyBag, - requestedPropertySet, summaryPropertiesOnly); - - serviceObjects.add(serviceObject); - } - } - } while (!this.isEndElement(XmlNamespace.Messages, - collectionXmlElementName)); - } else { - // For empty elements read End Element tag - // i.e. position cursor on End Element - this.read(); - } - - return serviceObjects; - - } - - /** - * Gets the service. - * - * @return the service - */ - public ExchangeService getService() { - return service; - } - - /** - * Sets the service. - * - * @param service - * the new service - */ - public void setService(ExchangeService service) { - this.service = service; - } + } + + /** + * Reads the element value as date time. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return the date + * @throws Exception the exception + */ + public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, + String localName) throws Exception { + return this.convertStringToDateTime(this.readElementValue(xmlNamespace, + localName)); + } + + /** + * Reads the service objects collection from XML. + * + * @param the generic type + * @param collectionXmlElementName the collection xml element name + * @param getObjectInstanceDelegate the get object instance delegate + * @param clearPropertyBag the clear property bag + * @param requestedPropertySet the requested property set + * @param summaryPropertiesOnly the summary properties only + * @return the list + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + public List + readServiceObjectsCollectionFromXml( + String collectionXmlElementName, + IGetObjectInstanceDelegate + getObjectInstanceDelegate, + boolean clearPropertyBag, PropertySet requestedPropertySet, + boolean summaryPropertiesOnly) throws Exception { + + List serviceObjects = new ArrayList(); + TServiceObject serviceObject = null; + + this.readStartElement(XmlNamespace.Messages, collectionXmlElementName); + + if (!this.isEmptyElement()) { + do { + this.read(); + + if (this.isStartElement()) { + serviceObject = (TServiceObject) getObjectInstanceDelegate + .getObjectInstanceDelegate(this.getService(), this + .getLocalName()); + if (serviceObject == null) { + this.skipCurrentElement(); + } else { + if (!(this.getLocalName()).equals(serviceObject + .getXmlElementName())) { + + throw new ServiceLocalException(String + .format( + "The type of the " + "object in " + + "the store (%s)" + + " does not match that" + + " of the " + + "local object (%s).", + this.getLocalName(), serviceObject + .getXmlElementName())); + } + serviceObject.loadFromXml(this, clearPropertyBag, + requestedPropertySet, summaryPropertiesOnly); + + serviceObjects.add(serviceObject); + } + } + } while (!this.isEndElement(XmlNamespace.Messages, + collectionXmlElementName)); + } else { + // For empty elements read End Element tag + // i.e. position cursor on End Element + this.read(); + } + + return serviceObjects; + + } + + /** + * Gets the service. + * + * @return the service + */ + public ExchangeService getService() { + return service; + } + + /** + * Sets the service. + * + * @param service the new service + */ + public void setService(ExchangeService service) { + this.service = service; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java index b4f5077ef..72c72e7b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java @@ -10,594 +10,551 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import org.w3c.dom.*; + +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Date; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; - -import org.w3c.dom.CDATASection; -import org.w3c.dom.Comment; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.EntityReference; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.ProcessingInstruction; -import org.w3c.dom.Text; - /** * Stax based XML Writer implementation. */ class EwsServiceXmlWriter implements IDisposable { - /** The is disposed. */ - private boolean isDisposed; - - /** The service. */ - private ExchangeServiceBase service; - - /** The xml writer. */ - private XMLStreamWriter xmlWriter; - - /** The is time zone header emitted. */ - private boolean isTimeZoneHeaderEmitted; - - /** The Buffer size. */ - private static final int BufferSize = 4096; - - /**The requireWSSecurityUtilityNamespace **/ - - protected boolean requireWSSecurityUtilityNamespace; - - /** - * Initializes a new instance. - * - * @param service - * The service. - * @param stream - * The stream. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected EwsServiceXmlWriter(ExchangeServiceBase service, - OutputStream stream) throws XMLStreamException { - this.service = service; - XMLOutputFactory xmlof = XMLOutputFactory.newInstance(); - xmlWriter = xmlof.createXMLStreamWriter(stream, "utf-8"); - - } - - /** - * Try to convert object to a string. - * - * @param value - * The value. - * @param str - * the str - * @return True if object was converted, false otherwise. A null object will - * be "successfully" converted to a null string. - */ - protected boolean tryConvertObjectToString(Object value, - OutParam str) { - boolean converted = true; - str.setParam(null); - if (value != null) { - if (value.getClass().isEnum()) { - str.setParam(EwsUtilities.serializeEnum(value)); - } else if (value.getClass().equals(Boolean.class)) { - str.setParam(EwsUtilities.boolToXSBool((Boolean)value)); - } else if (value instanceof Date) { - str - .setParam(this.service - .convertDateTimeToUniversalDateTimeString( - (Date)value)); - } else if (value.getClass().isPrimitive()) { - str.setParam(value.toString()); - } else if (value instanceof String) { - str.setParam(value.toString()); - } else if (value instanceof ISearchStringProvider) { - ISearchStringProvider searchStringProvider = - (ISearchStringProvider)value; - str.setParam(searchStringProvider.getSearchString()); - } else if (value instanceof Integer) { - str.setParam(value.toString()); - } else { - converted = false; - } - } - return converted; - } - - /** - * Performs application-defined tasks associated with freeing, releasing, or - * resetting unmanaged resources. - */ - @Override - public void dispose() { - if (!this.isDisposed) { - try { - this.xmlWriter.close(); - } catch (XMLStreamException e) { - e.printStackTrace(); - } - this.isDisposed = true; - } - } - - /** - * Flushes this instance. - * - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void flush() throws XMLStreamException { - this.xmlWriter.flush(); - } - - /** - * Writes the start element. - * - * @param xmlNamespace - * The XML namespace. - * @param localName - * The local name of the element. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void writeStartElement(XmlNamespace xmlNamespace, String localName) - throws XMLStreamException { - String strPrefix = EwsUtilities.getNamespacePrefix(xmlNamespace); - String strNameSpace = EwsUtilities.getNamespaceUri(xmlNamespace); - this.xmlWriter.writeStartElement(strPrefix, localName, strNameSpace); - } - - /** - * Writes the end element. - * - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void writeEndElement() throws XMLStreamException { - this.xmlWriter.writeEndElement(); - } - - /** - * Writes the attribute value. - * - * @param localName - * The local name of the attribute. - * @param value - * The value. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - public void writeAttributeValue(String localName, Object value) - throws ServiceXmlSerializationException { - this.writeAttributeValue(localName, - false /* alwaysWriteEmptyString */, value); - } - - /** - * Writes the attribute value. Optionally emits empty string values. - * @param localName The local name of the attribute. - * @param alwaysWriteEmptyString Always emit the empty string as the value. - * @param value The value. - * @throws ServiceXmlSerializationException - */ - public void writeAttributeValue(String localName, - boolean alwaysWriteEmptyString, - Object value) throws ServiceXmlSerializationException { - OutParam stringOut = new OutParam(); - String stringValue = null; - if (this.tryConvertObjectToString(value, stringOut)) { - stringValue = stringOut.getParam(); - if ((null != stringValue) && (alwaysWriteEmptyString || (stringValue.length() != 0))) { - this.writeAttributeString(localName, stringValue); - } - } else { - throw new ServiceXmlSerializationException(String.format( - Strings.AttributeValueCannotBeSerialized, value.getClass() - .getName(), localName)); - } - } - - /** - * Writes the attribute value. - * - * @param namespacePrefix - * The namespace prefix. - * @param localName - * The local name of the attribute. - * @param value - * The value. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - public void writeAttributeValue(String namespacePrefix, String localName, - Object value) throws ServiceXmlSerializationException { - OutParam stringOut = new OutParam(); - String stringValue = null; - if (this.tryConvertObjectToString(value, stringOut)) { - stringValue = stringOut.getParam(); - if (null != stringValue && !stringValue.isEmpty()) { - this.writeAttributeString(namespacePrefix, localName, - stringValue); - } - } else { - throw new ServiceXmlSerializationException(String.format( - Strings.AttributeValueCannotBeSerialized, value.getClass() - .getName(), localName)); - } - } - - /** - * Writes the attribute value. - * - * @param localName - * The local name of the attribute. - * @param stringValue - * The string value. - * @throws ServiceXmlSerializationException - * Thrown if string value isn't valid for XML. - */ - protected void writeAttributeString(String localName, String stringValue) - throws ServiceXmlSerializationException { - try { - this.xmlWriter.writeAttribute(localName, stringValue); - } catch (XMLStreamException e) { - // Bug E14:65046: XmlTextWriter will throw ArgumentException - //if string includes invalid characters. - throw new ServiceXmlSerializationException(String.format( - Strings.InvalidAttributeValue, stringValue, localName), e); - } - } - - /** - * Writes the attribute value. - * - * @param namespacePrefix - * The namespace prefix. - * @param localName - * The local name of the attribute. - * @param stringValue - * The string value. - * @throws ServiceXmlSerializationException - * Thrown if string value isn't valid for XML. - */ - protected void writeAttributeString(String namespacePrefix, - String localName, String stringValue) - throws ServiceXmlSerializationException { - try { - this.xmlWriter.writeAttribute(namespacePrefix, "", localName, - stringValue); - } catch (XMLStreamException e) { - // Bug E14:65046: XmlTextWriter will throw ArgumentException - //if string includes invalid characters. - throw new ServiceXmlSerializationException(String.format( - Strings.InvalidAttributeValue, stringValue, localName), e); - } - } - - /** - * Writes string value. - * - * @param value - * The value. - * @param name - * Element name (used for error handling) - * @throws ServiceXmlSerializationException - * Thrown if string value isn't valid for XML. - */ - public void writeValue(String value, String name) - throws ServiceXmlSerializationException { - try { - this.xmlWriter.writeCharacters(value); - } catch (XMLStreamException e) { - // Bug E14:65046: XmlTextWriter will throw ArgumentException - //if string includes invalid characters. - throw new ServiceXmlSerializationException(String.format( - Strings.InvalidElementStringValue, value, name), e); - } - } - - /** - * Writes the element value. - * - * @param xmlNamespace - * The XML namespace. - * @param localName - * The local name of the element. - * @param displayName - * The name that should appear in the exception message when the - * value can not be serialized. - * @param value - * The value. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementValue(XmlNamespace xmlNamespace, - String localName, String displayName, Object value) - throws XMLStreamException, ServiceXmlSerializationException { - String stringValue = null; - OutParam strOut = new OutParam(); - - if (this.tryConvertObjectToString(value, strOut)) { - stringValue = strOut.getParam(); - if (null != stringValue) { - // allow an empty string to create an empty element (like ). - this.writeStartElement(xmlNamespace, localName); - this.writeValue(stringValue, displayName); - this.writeEndElement(); - } - } else { - throw new ServiceXmlSerializationException(String.format( - Strings.ElementValueCannotBeSerialized, value.getClass() - .getName(), localName)); - } - } - - public void writeNode(Node xmlNode) throws XMLStreamException { - if (xmlNode != null) { - writeNode(xmlNode,this.xmlWriter); - //this.xmlWriter.writeCharacters(xmlNode.); - //this.xmlWriter.writeDTD(xmlNode); - //xmlNode.WriteTo(this.xmlWriter); - } - } - - /** - * @throws javax.xml.stream.XMLStreamException - */ - public static void writeNode(Node xmlNode, XMLStreamWriter xmlStreamWriter) - throws XMLStreamException { - if (xmlNode instanceof Element) { - addElement((Element) xmlNode, xmlStreamWriter); - } else if (xmlNode instanceof Text) { - xmlStreamWriter.writeCharacters(xmlNode.getNodeValue()); - } else if (xmlNode instanceof CDATASection) { - xmlStreamWriter.writeCData(((CDATASection) xmlNode).getData()); - } else if (xmlNode instanceof Comment) { - xmlStreamWriter.writeComment(((Comment) xmlNode).getData()); - } else if (xmlNode instanceof EntityReference) { - xmlStreamWriter.writeEntityRef(xmlNode.getNodeValue()); - } else if (xmlNode instanceof ProcessingInstruction) { - ProcessingInstruction procInst = (ProcessingInstruction) xmlNode; - xmlStreamWriter.writeProcessingInstruction(procInst.getTarget(), - procInst.getData()); - } else if (xmlNode instanceof Document) { - writeToDocument((Document) xmlNode, xmlStreamWriter); - } - } - - /** - * @throws javax.xml.stream.XMLStreamException - */ - public static void writeToDocument(Document document, - XMLStreamWriter xmlStreamWriter) throws XMLStreamException { - - xmlStreamWriter.writeStartDocument(); - Element rootElement = document.getDocumentElement(); - addElement(rootElement, xmlStreamWriter); - xmlStreamWriter.writeEndDocument(); - } - - /** - * @throws javax.xml.stream.XMLStreamException - */ - public static void addElement(Element element, XMLStreamWriter writer) - throws XMLStreamException { - String nameSpace = element.getNamespaceURI(); - String prefix = element.getPrefix(); - String localName = element.getLocalName(); - if (prefix == null) { - prefix = ""; - } - if (localName == null) { - localName = element.getNodeName(); - - if (localName == null) { - throw new IllegalStateException( - "Element's local name cannot be null!"); - } - } - - String decUri = writer.getNamespaceContext().getNamespaceURI(prefix); - boolean declareNamespace = decUri == null || !decUri.equals(nameSpace); - - if (nameSpace == null || nameSpace.length() == 0) { - writer.writeStartElement(localName); - } else { - writer.writeStartElement(prefix, localName, nameSpace); - } - - NamedNodeMap attrs = element.getAttributes(); - for (int i = 0; i < attrs.getLength(); i++) { - Node attr = attrs.item(i); - - String name = attr.getNodeName(); - String attrPrefix = ""; - int prefixIndex = name.indexOf(':'); - if (prefixIndex != -1) { - attrPrefix = name.substring(0, prefixIndex); - name = name.substring(prefixIndex + 1); - } - - if ("xmlns".equals(attrPrefix)) { - writer.writeNamespace(name, attr.getNodeValue()); - if (name.equals(prefix) - && attr.getNodeValue().equals(nameSpace)) { - declareNamespace = false; - } - } else { - if ("xmlns".equals(name) && "".equals(attrPrefix)) { - writer.writeNamespace("", attr.getNodeValue()); - if (attr.getNodeValue().equals(nameSpace)) { - declareNamespace = false; - } - } else { - writer.writeAttribute(attrPrefix, attr.getNamespaceURI(), - name, attr.getNodeValue()); - } - } - } - - if (declareNamespace) { - if (nameSpace == null) { - writer.writeNamespace(prefix, ""); - } else { - writer.writeNamespace(prefix, nameSpace); - } - } - - NodeList nodes = element.getChildNodes(); - for (int i = 0; i < nodes.getLength(); i++) { - Node n = nodes.item(i); - writeNode(n, writer); - } - - - writer.writeEndElement(); - - } - - - - /** - * Writes the element value. - * - * @param xmlNamespace - * The XML namespace. - * @param localName - * The local name of the element. - * @param value - * The value. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - public void writeElementValue(XmlNamespace xmlNamespace, String localName, - Object value) throws XMLStreamException, - ServiceXmlSerializationException { - this.writeElementValue(xmlNamespace, localName, localName, value); - } - - /** - * Writes the base64-encoded element value. - * - * @param buffer - * The buffer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void writeBase64ElementValue(byte[] buffer) - throws XMLStreamException { - - String strValue = Base64.encode(buffer); - this.xmlWriter.writeCharacters(strValue);//Base64.encode(buffer)); - } - - /** - * Writes the base64-encoded element value. - * - * @param stream - * The stream. - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void writeBase64ElementValue(InputStream stream) throws IOException, - XMLStreamException { - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - byte[] buf = new byte[BufferSize]; - try { - for (int readNum; (readNum = stream.read(buf)) != -1;) { - bos.write(buf, 0, readNum); - } - } catch (IOException ex) { - ex.printStackTrace(); - } finally { - bos.close(); - } - byte[] bytes = bos.toByteArray(); - String strValue = Base64.encode(bytes); - this.xmlWriter.writeCharacters(strValue); - - } - /** - * Gets the internal XML writer. - * - * @return the internal writer - */ - public XMLStreamWriter getInternalWriter() { - return xmlWriter; - } - - /** - * Gets the service. - * - * @return The service. - */ - public ExchangeServiceBase getService() { - return service; - } - - /** - * Gets a value indicating whether the SOAP message need WSSecurity Utility namespace. - * - * - */ - public boolean isRequireWSSecurityUtilityNamespace() { - return requireWSSecurityUtilityNamespace; - } - - /** - * Sets a value indicating whether the SOAP message need WSSecurity Utility namespace. - */ - public void setRequireWSSecurityUtilityNamespace(boolean requireWSSecurityUtilityNamespace) { - this.requireWSSecurityUtilityNamespace = requireWSSecurityUtilityNamespace; - } - - /** - * Gets a value indicating whether the time zone SOAP header was emitted - * through this writer. - * - * @return true if the time zone SOAP header was emitted; otherwise false. - */ - public boolean isTimeZoneHeaderEmitted() { - return isTimeZoneHeaderEmitted; - } - - /** - * Sets a value indicating whether the time zone SOAP header was emitted - * through this writer. - * - * @param isTimeZoneHeaderEmitted - * true if the time zone SOAP header was emitted; otherwise - * false. - */ - public void setTimeZoneHeaderEmitted(boolean isTimeZoneHeaderEmitted) { - this.isTimeZoneHeaderEmitted = isTimeZoneHeaderEmitted; - } - - /** - * Write start document. - * - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void writeStartDocument() throws XMLStreamException { - this.xmlWriter.writeStartDocument("utf-8", "1.0"); - } + /** + * The is disposed. + */ + private boolean isDisposed; + + /** + * The service. + */ + private ExchangeServiceBase service; + + /** + * The xml writer. + */ + private XMLStreamWriter xmlWriter; + + /** + * The is time zone header emitted. + */ + private boolean isTimeZoneHeaderEmitted; + + /** + * The Buffer size. + */ + private static final int BufferSize = 4096; + + /** + * The requireWSSecurityUtilityNamespace * + */ + + protected boolean requireWSSecurityUtilityNamespace; + + /** + * Initializes a new instance. + * + * @param service The service. + * @param stream The stream. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected EwsServiceXmlWriter(ExchangeServiceBase service, + OutputStream stream) throws XMLStreamException { + this.service = service; + XMLOutputFactory xmlof = XMLOutputFactory.newInstance(); + xmlWriter = xmlof.createXMLStreamWriter(stream, "utf-8"); + + } + + /** + * Try to convert object to a string. + * + * @param value The value. + * @param str the str + * @return True if object was converted, false otherwise. A null object will + * be "successfully" converted to a null string. + */ + protected boolean tryConvertObjectToString(Object value, + OutParam str) { + boolean converted = true; + str.setParam(null); + if (value != null) { + if (value.getClass().isEnum()) { + str.setParam(EwsUtilities.serializeEnum(value)); + } else if (value.getClass().equals(Boolean.class)) { + str.setParam(EwsUtilities.boolToXSBool((Boolean) value)); + } else if (value instanceof Date) { + str + .setParam(this.service + .convertDateTimeToUniversalDateTimeString( + (Date) value)); + } else if (value.getClass().isPrimitive()) { + str.setParam(value.toString()); + } else if (value instanceof String) { + str.setParam(value.toString()); + } else if (value instanceof ISearchStringProvider) { + ISearchStringProvider searchStringProvider = + (ISearchStringProvider) value; + str.setParam(searchStringProvider.getSearchString()); + } else if (value instanceof Integer) { + str.setParam(value.toString()); + } else { + converted = false; + } + } + return converted; + } + + /** + * Performs application-defined tasks associated with freeing, releasing, or + * resetting unmanaged resources. + */ + @Override + public void dispose() { + if (!this.isDisposed) { + try { + this.xmlWriter.close(); + } catch (XMLStreamException e) { + e.printStackTrace(); + } + this.isDisposed = true; + } + } + + /** + * Flushes this instance. + * + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void flush() throws XMLStreamException { + this.xmlWriter.flush(); + } + + /** + * Writes the start element. + * + * @param xmlNamespace The XML namespace. + * @param localName The local name of the element. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void writeStartElement(XmlNamespace xmlNamespace, String localName) + throws XMLStreamException { + String strPrefix = EwsUtilities.getNamespacePrefix(xmlNamespace); + String strNameSpace = EwsUtilities.getNamespaceUri(xmlNamespace); + this.xmlWriter.writeStartElement(strPrefix, localName, strNameSpace); + } + + /** + * Writes the end element. + * + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void writeEndElement() throws XMLStreamException { + this.xmlWriter.writeEndElement(); + } + + /** + * Writes the attribute value. + * + * @param localName The local name of the attribute. + * @param value The value. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + public void writeAttributeValue(String localName, Object value) + throws ServiceXmlSerializationException { + this.writeAttributeValue(localName, + false /* alwaysWriteEmptyString */, value); + } + + /** + * Writes the attribute value. Optionally emits empty string values. + * + * @param localName The local name of the attribute. + * @param alwaysWriteEmptyString Always emit the empty string as the value. + * @param value The value. + * @throws ServiceXmlSerializationException + */ + public void writeAttributeValue(String localName, + boolean alwaysWriteEmptyString, + Object value) throws ServiceXmlSerializationException { + OutParam stringOut = new OutParam(); + String stringValue = null; + if (this.tryConvertObjectToString(value, stringOut)) { + stringValue = stringOut.getParam(); + if ((null != stringValue) && (alwaysWriteEmptyString || (stringValue.length() != 0))) { + this.writeAttributeString(localName, stringValue); + } + } else { + throw new ServiceXmlSerializationException(String.format( + Strings.AttributeValueCannotBeSerialized, value.getClass() + .getName(), localName)); + } + } + + /** + * Writes the attribute value. + * + * @param namespacePrefix The namespace prefix. + * @param localName The local name of the attribute. + * @param value The value. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + public void writeAttributeValue(String namespacePrefix, String localName, + Object value) throws ServiceXmlSerializationException { + OutParam stringOut = new OutParam(); + String stringValue = null; + if (this.tryConvertObjectToString(value, stringOut)) { + stringValue = stringOut.getParam(); + if (null != stringValue && !stringValue.isEmpty()) { + this.writeAttributeString(namespacePrefix, localName, + stringValue); + } + } else { + throw new ServiceXmlSerializationException(String.format( + Strings.AttributeValueCannotBeSerialized, value.getClass() + .getName(), localName)); + } + } + + /** + * Writes the attribute value. + * + * @param localName The local name of the attribute. + * @param stringValue The string value. + * @throws ServiceXmlSerializationException Thrown if string value isn't valid for XML. + */ + protected void writeAttributeString(String localName, String stringValue) + throws ServiceXmlSerializationException { + try { + this.xmlWriter.writeAttribute(localName, stringValue); + } catch (XMLStreamException e) { + // Bug E14:65046: XmlTextWriter will throw ArgumentException + //if string includes invalid characters. + throw new ServiceXmlSerializationException(String.format( + Strings.InvalidAttributeValue, stringValue, localName), e); + } + } + + /** + * Writes the attribute value. + * + * @param namespacePrefix The namespace prefix. + * @param localName The local name of the attribute. + * @param stringValue The string value. + * @throws ServiceXmlSerializationException Thrown if string value isn't valid for XML. + */ + protected void writeAttributeString(String namespacePrefix, + String localName, String stringValue) + throws ServiceXmlSerializationException { + try { + this.xmlWriter.writeAttribute(namespacePrefix, "", localName, + stringValue); + } catch (XMLStreamException e) { + // Bug E14:65046: XmlTextWriter will throw ArgumentException + //if string includes invalid characters. + throw new ServiceXmlSerializationException(String.format( + Strings.InvalidAttributeValue, stringValue, localName), e); + } + } + + /** + * Writes string value. + * + * @param value The value. + * @param name Element name (used for error handling) + * @throws ServiceXmlSerializationException Thrown if string value isn't valid for XML. + */ + public void writeValue(String value, String name) + throws ServiceXmlSerializationException { + try { + this.xmlWriter.writeCharacters(value); + } catch (XMLStreamException e) { + // Bug E14:65046: XmlTextWriter will throw ArgumentException + //if string includes invalid characters. + throw new ServiceXmlSerializationException(String.format( + Strings.InvalidElementStringValue, value, name), e); + } + } + + /** + * Writes the element value. + * + * @param xmlNamespace The XML namespace. + * @param localName The local name of the element. + * @param displayName The name that should appear in the exception message when the + * value can not be serialized. + * @param value The value. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementValue(XmlNamespace xmlNamespace, + String localName, String displayName, Object value) + throws XMLStreamException, ServiceXmlSerializationException { + String stringValue = null; + OutParam strOut = new OutParam(); + + if (this.tryConvertObjectToString(value, strOut)) { + stringValue = strOut.getParam(); + if (null != stringValue) { + // allow an empty string to create an empty element (like ). + this.writeStartElement(xmlNamespace, localName); + this.writeValue(stringValue, displayName); + this.writeEndElement(); + } + } else { + throw new ServiceXmlSerializationException(String.format( + Strings.ElementValueCannotBeSerialized, value.getClass() + .getName(), localName)); + } + } + + public void writeNode(Node xmlNode) throws XMLStreamException { + if (xmlNode != null) { + writeNode(xmlNode, this.xmlWriter); + //this.xmlWriter.writeCharacters(xmlNode.); + //this.xmlWriter.writeDTD(xmlNode); + //xmlNode.WriteTo(this.xmlWriter); + } + } + + /** + * @throws javax.xml.stream.XMLStreamException + */ + public static void writeNode(Node xmlNode, XMLStreamWriter xmlStreamWriter) + throws XMLStreamException { + if (xmlNode instanceof Element) { + addElement((Element) xmlNode, xmlStreamWriter); + } else if (xmlNode instanceof Text) { + xmlStreamWriter.writeCharacters(xmlNode.getNodeValue()); + } else if (xmlNode instanceof CDATASection) { + xmlStreamWriter.writeCData(((CDATASection) xmlNode).getData()); + } else if (xmlNode instanceof Comment) { + xmlStreamWriter.writeComment(((Comment) xmlNode).getData()); + } else if (xmlNode instanceof EntityReference) { + xmlStreamWriter.writeEntityRef(xmlNode.getNodeValue()); + } else if (xmlNode instanceof ProcessingInstruction) { + ProcessingInstruction procInst = (ProcessingInstruction) xmlNode; + xmlStreamWriter.writeProcessingInstruction(procInst.getTarget(), + procInst.getData()); + } else if (xmlNode instanceof Document) { + writeToDocument((Document) xmlNode, xmlStreamWriter); + } + } + + /** + * @throws javax.xml.stream.XMLStreamException + */ + public static void writeToDocument(Document document, + XMLStreamWriter xmlStreamWriter) throws XMLStreamException { + + xmlStreamWriter.writeStartDocument(); + Element rootElement = document.getDocumentElement(); + addElement(rootElement, xmlStreamWriter); + xmlStreamWriter.writeEndDocument(); + } + + /** + * @throws javax.xml.stream.XMLStreamException + */ + public static void addElement(Element element, XMLStreamWriter writer) + throws XMLStreamException { + String nameSpace = element.getNamespaceURI(); + String prefix = element.getPrefix(); + String localName = element.getLocalName(); + if (prefix == null) { + prefix = ""; + } + if (localName == null) { + localName = element.getNodeName(); + + if (localName == null) { + throw new IllegalStateException( + "Element's local name cannot be null!"); + } + } + + String decUri = writer.getNamespaceContext().getNamespaceURI(prefix); + boolean declareNamespace = decUri == null || !decUri.equals(nameSpace); + + if (nameSpace == null || nameSpace.length() == 0) { + writer.writeStartElement(localName); + } else { + writer.writeStartElement(prefix, localName, nameSpace); + } + + NamedNodeMap attrs = element.getAttributes(); + for (int i = 0; i < attrs.getLength(); i++) { + Node attr = attrs.item(i); + + String name = attr.getNodeName(); + String attrPrefix = ""; + int prefixIndex = name.indexOf(':'); + if (prefixIndex != -1) { + attrPrefix = name.substring(0, prefixIndex); + name = name.substring(prefixIndex + 1); + } + + if ("xmlns".equals(attrPrefix)) { + writer.writeNamespace(name, attr.getNodeValue()); + if (name.equals(prefix) + && attr.getNodeValue().equals(nameSpace)) { + declareNamespace = false; + } + } else { + if ("xmlns".equals(name) && "".equals(attrPrefix)) { + writer.writeNamespace("", attr.getNodeValue()); + if (attr.getNodeValue().equals(nameSpace)) { + declareNamespace = false; + } + } else { + writer.writeAttribute(attrPrefix, attr.getNamespaceURI(), + name, attr.getNodeValue()); + } + } + } + + if (declareNamespace) { + if (nameSpace == null) { + writer.writeNamespace(prefix, ""); + } else { + writer.writeNamespace(prefix, nameSpace); + } + } + + NodeList nodes = element.getChildNodes(); + for (int i = 0; i < nodes.getLength(); i++) { + Node n = nodes.item(i); + writeNode(n, writer); + } + + + writer.writeEndElement(); + + } + + + + /** + * Writes the element value. + * + * @param xmlNamespace The XML namespace. + * @param localName The local name of the element. + * @param value The value. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + public void writeElementValue(XmlNamespace xmlNamespace, String localName, + Object value) throws XMLStreamException, + ServiceXmlSerializationException { + this.writeElementValue(xmlNamespace, localName, localName, value); + } + + /** + * Writes the base64-encoded element value. + * + * @param buffer The buffer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void writeBase64ElementValue(byte[] buffer) + throws XMLStreamException { + + String strValue = Base64.encode(buffer); + this.xmlWriter.writeCharacters(strValue);//Base64.encode(buffer)); + } + + /** + * Writes the base64-encoded element value. + * + * @param stream The stream. + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void writeBase64ElementValue(InputStream stream) throws IOException, + XMLStreamException { + + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + byte[] buf = new byte[BufferSize]; + try { + for (int readNum; (readNum = stream.read(buf)) != -1; ) { + bos.write(buf, 0, readNum); + } + } catch (IOException ex) { + ex.printStackTrace(); + } finally { + bos.close(); + } + byte[] bytes = bos.toByteArray(); + String strValue = Base64.encode(bytes); + this.xmlWriter.writeCharacters(strValue); + + } + + /** + * Gets the internal XML writer. + * + * @return the internal writer + */ + public XMLStreamWriter getInternalWriter() { + return xmlWriter; + } + + /** + * Gets the service. + * + * @return The service. + */ + public ExchangeServiceBase getService() { + return service; + } + + /** + * Gets a value indicating whether the SOAP message need WSSecurity Utility namespace. + */ + public boolean isRequireWSSecurityUtilityNamespace() { + return requireWSSecurityUtilityNamespace; + } + + /** + * Sets a value indicating whether the SOAP message need WSSecurity Utility namespace. + */ + public void setRequireWSSecurityUtilityNamespace(boolean requireWSSecurityUtilityNamespace) { + this.requireWSSecurityUtilityNamespace = requireWSSecurityUtilityNamespace; + } + + /** + * Gets a value indicating whether the time zone SOAP header was emitted + * through this writer. + * + * @return true if the time zone SOAP header was emitted; otherwise false. + */ + public boolean isTimeZoneHeaderEmitted() { + return isTimeZoneHeaderEmitted; + } + + /** + * Sets a value indicating whether the time zone SOAP header was emitted + * through this writer. + * + * @param isTimeZoneHeaderEmitted true if the time zone SOAP header was emitted; otherwise + * false. + */ + public void setTimeZoneHeaderEmitted(boolean isTimeZoneHeaderEmitted) { + this.isTimeZoneHeaderEmitted = isTimeZoneHeaderEmitted; + } + + /** + * Write start document. + * + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void writeStartDocument() throws XMLStreamException { + this.xmlWriter.writeStartDocument("utf-8", "1.0"); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java index 85c446a3f..0f55c1323 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java @@ -18,19 +18,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class EwsTraceListener implements ITraceListener { - private Log log = LogFactory.getLog(EwsTraceListener.class); + private Log log = LogFactory.getLog(EwsTraceListener.class); - protected EwsTraceListener() {} + protected EwsTraceListener() { + } - /** - * Handles a trace message. - * - * @param traceType The trace type - * @param traceMessage The trace message - */ - @Override - public void trace(String traceType, String traceMessage) { - log.trace(traceType + " - " + traceMessage); - } + /** + * Handles a trace message. + * + * @param traceType The trace type + * @param traceMessage The trace message + */ + @Override + public void trace(String traceType, String traceMessage) { + log.trace(traceType + " - " + traceMessage); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index 8ee9515b9..71c1fdfbb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -10,14 +10,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; -import java.io.FileOutputStream; import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.PrintWriter; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.net.URISyntaxException; @@ -25,127 +23,168 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.TimeZone; +import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; - /** * EWS utilities. */ class EwsUtilities { - /** The Constant XSFalse. */ - protected static final String XSFalse = "false"; - - /** The Constant XSTrue. */ - protected static final String XSTrue = "true"; - - /** The Constant EwsTypesNamespacePrefix. */ - protected static final String EwsTypesNamespacePrefix = "t"; - - /** The Constant EwsMessagesNamespacePrefix. */ - protected static final String EwsMessagesNamespacePrefix = "m"; - - /** The Constant EwsErrorsNamespacePrefix. */ - protected static final String EwsErrorsNamespacePrefix = "e"; - - /** The Constant EwsSoapNamespacePrefix. */ - protected static final String EwsSoapNamespacePrefix = "soap"; - - /** The Constant EwsXmlSchemaInstanceNamespacePrefix. */ - protected static final String EwsXmlSchemaInstanceNamespacePrefix = "xsi"; - - /** The Constant PassportSoapFaultNamespacePrefix. */ - protected static final String PassportSoapFaultNamespacePrefix = "psf"; - - /** The Constant WSTrustFebruary2005NamespacePrefix. */ - protected static final String WSTrustFebruary2005NamespacePrefix = "wst"; - - /** The Constant WSAddressingNamespacePrefix. */ - protected static final String WSAddressingNamespacePrefix = "wsa"; - - /** The Constant AutodiscoverSoapNamespacePrefix. */ - protected static final String AutodiscoverSoapNamespacePrefix = "a"; - - /** The Constant WSSecurityUtilityNamespacePrefix. */ - protected static final String WSSecurityUtilityNamespacePrefix = "wsu"; - - /** The Constant WSSecuritySecExtNamespacePrefix. */ - protected static final String WSSecuritySecExtNamespacePrefix = "wsse"; - - /** The Constant EwsTypesNamespace. */ - protected static final String EwsTypesNamespace = - "http://schemas.microsoft.com/exchange/services/2006/types"; - - /** The Constant EwsMessagesNamespace. */ - protected static final String EwsMessagesNamespace = - "http://schemas.microsoft.com/exchange/services/2006/messages"; - - /** The Constant EwsErrorsNamespace. */ - protected static final String EwsErrorsNamespace = - "http://schemas.microsoft.com/exchange/services/2006/errors"; - - /** The Constant EwsSoapNamespace. */ - protected static final String EwsSoapNamespace = - "http://schemas.xmlsoap.org/soap/envelope/"; - - /** The Constant EwsSoap12Namespace. */ - protected static final String EwsSoap12Namespace = - "http://www.w3.org/2003/05/soap-envelope"; - - /** The Constant EwsXmlSchemaInstanceNamespace. */ - protected static final String EwsXmlSchemaInstanceNamespace = - "http://www.w3.org/2001/XMLSchema-instance"; - - /** The Constant PassportSoapFaultNamespace. */ - protected static final String PassportSoapFaultNamespace = - "http://schemas.microsoft.com/Passport/SoapServices/SOAPFault"; - - /** The Constant WSTrustFebruary2005Namespace. */ - protected static final String WSTrustFebruary2005Namespace = - "http://schemas.xmlsoap.org/ws/2005/02/trust"; - - /** The Constant WSAddressingNamespace. */ - protected static final String WSAddressingNamespace = - "http://www.w3.org/2005/08/addressing"; - // "http://schemas.xmlsoap.org/ws/2004/08/addressing"; - - /** The Constant AutodiscoverSoapNamespace. */ - protected static final String AutodiscoverSoapNamespace = - "http://schemas.microsoft.com/exchange/2010/Autodiscover"; - - protected static final String WSSecurityUtilityNamespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; - protected static final String WSSecuritySecExtNamespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; - - /** The service object info. */ - private static LazyMember serviceObjectInfo = - new LazyMember(new - ILazyMember() { - public ServiceObjectInfo createInstance() { - return new ServiceObjectInfo(); - } - }); - - - /** - * Copies source stream to target. - * - * @param source The source stream. - * @param target The target stream. - **/ - protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputStream target)throws Exception - { - // See if this is a MemoryStream -- we can use WriteTo. - + /** + * The Constant XSFalse. + */ + protected static final String XSFalse = "false"; + + /** + * The Constant XSTrue. + */ + protected static final String XSTrue = "true"; + + /** + * The Constant EwsTypesNamespacePrefix. + */ + protected static final String EwsTypesNamespacePrefix = "t"; + + /** + * The Constant EwsMessagesNamespacePrefix. + */ + protected static final String EwsMessagesNamespacePrefix = "m"; + + /** + * The Constant EwsErrorsNamespacePrefix. + */ + protected static final String EwsErrorsNamespacePrefix = "e"; + + /** + * The Constant EwsSoapNamespacePrefix. + */ + protected static final String EwsSoapNamespacePrefix = "soap"; + + /** + * The Constant EwsXmlSchemaInstanceNamespacePrefix. + */ + protected static final String EwsXmlSchemaInstanceNamespacePrefix = "xsi"; + + /** + * The Constant PassportSoapFaultNamespacePrefix. + */ + protected static final String PassportSoapFaultNamespacePrefix = "psf"; + + /** + * The Constant WSTrustFebruary2005NamespacePrefix. + */ + protected static final String WSTrustFebruary2005NamespacePrefix = "wst"; + + /** + * The Constant WSAddressingNamespacePrefix. + */ + protected static final String WSAddressingNamespacePrefix = "wsa"; + + /** + * The Constant AutodiscoverSoapNamespacePrefix. + */ + protected static final String AutodiscoverSoapNamespacePrefix = "a"; + + /** + * The Constant WSSecurityUtilityNamespacePrefix. + */ + protected static final String WSSecurityUtilityNamespacePrefix = "wsu"; + + /** + * The Constant WSSecuritySecExtNamespacePrefix. + */ + protected static final String WSSecuritySecExtNamespacePrefix = "wsse"; + + /** + * The Constant EwsTypesNamespace. + */ + protected static final String EwsTypesNamespace = + "http://schemas.microsoft.com/exchange/services/2006/types"; + + /** + * The Constant EwsMessagesNamespace. + */ + protected static final String EwsMessagesNamespace = + "http://schemas.microsoft.com/exchange/services/2006/messages"; + + /** + * The Constant EwsErrorsNamespace. + */ + protected static final String EwsErrorsNamespace = + "http://schemas.microsoft.com/exchange/services/2006/errors"; + + /** + * The Constant EwsSoapNamespace. + */ + protected static final String EwsSoapNamespace = + "http://schemas.xmlsoap.org/soap/envelope/"; + + /** + * The Constant EwsSoap12Namespace. + */ + protected static final String EwsSoap12Namespace = + "http://www.w3.org/2003/05/soap-envelope"; + + /** + * The Constant EwsXmlSchemaInstanceNamespace. + */ + protected static final String EwsXmlSchemaInstanceNamespace = + "http://www.w3.org/2001/XMLSchema-instance"; + + /** + * The Constant PassportSoapFaultNamespace. + */ + protected static final String PassportSoapFaultNamespace = + "http://schemas.microsoft.com/Passport/SoapServices/SOAPFault"; + + /** + * The Constant WSTrustFebruary2005Namespace. + */ + protected static final String WSTrustFebruary2005Namespace = + "http://schemas.xmlsoap.org/ws/2005/02/trust"; + + /** + * The Constant WSAddressingNamespace. + */ + protected static final String WSAddressingNamespace = + "http://www.w3.org/2005/08/addressing"; + // "http://schemas.xmlsoap.org/ws/2004/08/addressing"; + + /** + * The Constant AutodiscoverSoapNamespace. + */ + protected static final String AutodiscoverSoapNamespace = + "http://schemas.microsoft.com/exchange/2010/Autodiscover"; + + protected static final String WSSecurityUtilityNamespace = + "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; + protected static final String WSSecuritySecExtNamespace = + "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; + + /** + * The service object info. + */ + private static LazyMember serviceObjectInfo = + new LazyMember(new + ILazyMember() { + public ServiceObjectInfo createInstance() { + return new ServiceObjectInfo(); + } + }); + + + /** + * Copies source stream to target. + * + * @param source The source stream. + * @param target The target stream. + */ + protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputStream target) + throws Exception { + // See if this is a MemoryStream -- we can use WriteTo. + /* InputStream inputStream = new FileInputStream ("D:\\EWS ManagedAPI sp2\\Rp\\xml\\useravailrequest.xml"); @@ -163,1553 +202,1444 @@ protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputSt + ByteArrayOutputStream memContentStream = source; + if (memContentStream != null) { + memContentStream.writeTo(target); + memContentStream.flush(); + } else { + // Otherwise, copy data through a buffer + int c; + ByteArrayInputStream inStream = new ByteArrayInputStream(source.toByteArray()); + while ((c = inStream.read()) != -1) { + target.write((char) c); + } + } + } + + + + /** + * Gets the builds the version. + * + * @return the builds the version + */ + public static String getBuildVersion() { + return "0.0.0.0"; + } + + /** + * A null-safe case sensitive comparison of two specified strings. + * + * @param first The first string, can be null. + * @param second The second string, can be null. + * @return true: equals, false: otherwise. + */ + public static boolean stringEquals(String first, String second) { + return (first == null && second == null) || (first != null && first.equals(second)); + } + + /** + * The enum version dictionaries. + */ + private static LazyMember, Map>> + enumVersionDictionaries = + new LazyMember, Map>>( + new ILazyMember, Map>>() { + @Override + public Map, Map> + createInstance() { + Map, Map> enumDicts = + new HashMap, Map>(); + enumDicts.put(WellKnownFolderName.class, + buildEnumDict(WellKnownFolderName.class)); + enumDicts.put(ItemTraversal.class, + buildEnumDict(ItemTraversal.class)); + enumDicts.put(FileAsMapping.class, + buildEnumDict(FileAsMapping.class)); + enumDicts.put(EventType.class, + buildEnumDict(EventType.class)); + enumDicts.put(MeetingRequestsDeliveryScope.class, + buildEnumDict(MeetingRequestsDeliveryScope. + class)); + return enumDicts; + } + }); + /** + * Dictionary of enum type to schema-name-to-enum-value maps. + */ + private static LazyMember, Map>> + schemaToEnumDictionaries = + new LazyMember, Map>>( + new ILazyMember, Map>>() { + @Override + public Map, Map> createInstance() { + Map, Map> enumDicts = + new HashMap, Map>(); + enumDicts.put(EventType.class, + buildSchemaToEnumDict(EventType.class)); + enumDicts.put(MailboxType.class, + buildSchemaToEnumDict(MailboxType.class)); + enumDicts.put(FileAsMapping.class, + buildSchemaToEnumDict(FileAsMapping.class)); + enumDicts.put(RuleProperty.class, + buildSchemaToEnumDict(RuleProperty.class)); + return enumDicts; + + } + }); + + /** + * Dictionary of enum type to enum-value-to-schema-name maps. + */ + protected static LazyMember, Map>> + enumToSchemaDictionaries = + new LazyMember, Map>>( + new ILazyMember, Map>>() { + @Override + public Map, Map> createInstance() { + Map, Map> enumDicts = + new HashMap, Map>(); + enumDicts.put(EventType.class, + buildEnumToSchemaDict(EventType.class)); + enumDicts.put(MailboxType.class, + buildEnumToSchemaDict(MailboxType.class)); + enumDicts.put(FileAsMapping.class, + buildEnumToSchemaDict(FileAsMapping.class)); + enumDicts.put(RuleProperty.class, + buildEnumToSchemaDict(RuleProperty.class)); + return enumDicts; + } + }); + + /** + * Dictionary to map from special CLR type names to their "short" names. + */ + private static LazyMember> + typeNameToShortNameMap = + new LazyMember>( + new ILazyMember>() { + public Map createInstance() { + Map result = + new HashMap(); + result.put("Boolean", "bool"); + result.put("Int16", "short"); + result.put("Int32", "int"); + result.put("String", "string"); + return result; + } + }); + + /** + * Regular expression for legal domain names. + */ + protected static final String DomainRegex = "^[-a-zA-Z0-9_.]+$"; + + /** + * Asserts that the specified condition if true. + * + * @param condition Assertion. + * @param caller The caller. + * @param message The message to use if assertion fails. + */ + protected static void EwsAssert(boolean condition, String caller, + String message) { + assert condition : String.format("[%s] %s", + caller, message); + } + + /** + * Gets the namespace prefix from an XmlNamespace enum value. + * + * @param xmlNamespace The XML namespace + * @return Namespace prefix string. + */ + protected static String getNamespacePrefix(XmlNamespace xmlNamespace) { + return xmlNamespace.getNameSpacePrefix(); + } + + /** + * Gets the namespace URI from an XmlNamespace enum value. + * + * @param xmlNamespace The XML namespace. + * @return Uri as string + */ + protected static String getNamespaceUri(XmlNamespace xmlNamespace) { + return xmlNamespace.getNameSpaceUri(); + } + + /** + * Gets the namespace from uri. + * + * @param namespaceUri the namespace uri + * @return the namespace from uri + */ + protected static XmlNamespace getNamespaceFromUri(String namespaceUri) { + if (namespaceUri.equals(EwsErrorsNamespace)) { + return XmlNamespace.Errors; + } + if (namespaceUri.equals(EwsTypesNamespace)) { + return XmlNamespace.Types; + } + if (namespaceUri.equals(EwsMessagesNamespace)) { + return XmlNamespace.Messages; + } + if (namespaceUri.equals(EwsSoapNamespace)) { + return XmlNamespace.Soap; + } + if (namespaceUri.equals(EwsSoap12Namespace)) { + return XmlNamespace.Soap12; + } + if (namespaceUri.equals(EwsXmlSchemaInstanceNamespace)) { + return XmlNamespace.XmlSchemaInstance; + } + if (namespaceUri.equals(PassportSoapFaultNamespace)) { + return XmlNamespace.PassportSoapFault; + } + if (namespaceUri.equals(WSTrustFebruary2005Namespace)) { + return XmlNamespace.WSTrustFebruary2005; + } + if (namespaceUri.equals(WSAddressingNamespace)) { + return XmlNamespace.WSAddressing; + } else { + return XmlNamespace.NotSpecified; + } + } + + /** + * Creates the ews object from xml element name. + * + * @param the generic type + * @param itemClass the item class + * @param service the service + * @param xmlElementName the xml element name + * @return the t service object + * @throws Exception the exception + */ + protected static + TServiceObject createEwsObjectFromXmlElementName( + Class itemClass, ExchangeService service, String xmlElementName) + throws Exception { + ICreateServiceObjectWithServiceParam creationDelegate; + if (EwsUtilities.serviceObjectInfo.getMember() + .getXmlElementNameToServiceObjectClassMap().containsKey( + xmlElementName)) { + itemClass = EwsUtilities.serviceObjectInfo.getMember() + .getXmlElementNameToServiceObjectClassMap().get( + xmlElementName); + if (EwsUtilities.serviceObjectInfo.getMember() + .getServiceObjectConstructorsWithServiceParam() + .containsKey(itemClass)) { + creationDelegate = EwsUtilities.serviceObjectInfo.getMember() + .getServiceObjectConstructorsWithServiceParam().get( + itemClass); + return (TServiceObject) creationDelegate + .createServiceObjectWithServiceParam(service); + } else { + throw new IllegalArgumentException( + Strings.NoAppropriateConstructorForItemClass); + } + } else { + return (TServiceObject) itemClass.newInstance(); + } + } + + /** + * Creates the item from item class. + * + * @param itemAttachment the item attachment + * @param itemClass the item class + * @param isNew the is new + * @return the item + * @throws Exception the exception + */ + protected static Item createItemFromItemClass( + ItemAttachment itemAttachment, Class itemClass, boolean isNew) + throws Exception { + ICreateServiceObjectWithAttachmentParam creationDelegate; + if (EwsUtilities.serviceObjectInfo.getMember() + .getServiceObjectConstructorsWithAttachmentParam().containsKey( + itemClass)) { + + creationDelegate = EwsUtilities.serviceObjectInfo.getMember() + .getServiceObjectConstructorsWithAttachmentParam().get( + itemClass); + return (Item) creationDelegate + .createServiceObjectWithAttachmentParam(itemAttachment, + isNew); + } else { + throw new IllegalArgumentException( + Strings.NoAppropriateConstructorForItemClass); + } + } + + /** + * Creates the item from xml element name. + * + * @param itemAttachment the item attachment + * @param xmlElementName the xml element name + * @return the item + * @throws Exception the exception + */ + protected static Item createItemFromXmlElementName( + ItemAttachment itemAttachment, String xmlElementName) + throws Exception { + Class itemClass; + if (EwsUtilities.serviceObjectInfo.getMember() + .getXmlElementNameToServiceObjectClassMap().containsKey( + xmlElementName)) { + itemClass = EwsUtilities.serviceObjectInfo.getMember() + .getXmlElementNameToServiceObjectClassMap().get( + xmlElementName); + return createItemFromItemClass(itemAttachment, itemClass, false); + } else { + return null; + } + } + + /** + * + */ + protected static Class getItemTypeFromXmlElementName(String xmlElementName) { + + return EwsUtilities.serviceObjectInfo.getMember().getXmlElementNameToServiceObjectClassMap() + .get(xmlElementName).getClass(); + + } + + /** + * Finds the first item of type TItem (not a descendant type) in the + * specified collection. + * + * @param TItem is the type of the item to find. + * @param cls the cls + * @param items the items + * @return A TItem instance or null if no instance of TItem could be found. + */ + + static TItem findFirstItemOfType(Class cls, + Iterable items) { + for (Item item : items) { + // We're looking for an exact class match here. + if (item.getClass().equals(cls)) { + return (TItem) item; + } + } + + return null; + } + + /** + * Write trace start element. + * + * @param writer The writer to write the start element to. + * @param traceTag The trace tag. + * @param includeVersion If true, include build version attribute. + */ + private static void writeTraceStartElement( + XMLStreamWriter writer, + String traceTag, + boolean includeVersion) throws XMLStreamException { + writer.writeStartElement("Trace"); + writer.writeAttribute("Tag", traceTag); + writer.writeAttribute("Tid", Thread.currentThread().getId() + ""); + Date d = new Date(); + DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss'Z'"); + df.setTimeZone(TimeZone.getTimeZone("UTC")); + String formattedString = df.format(d); + writer.writeAttribute("Time", formattedString); + + if (includeVersion) { + writer.writeAttribute("Version", EwsUtilities.getBuildVersion()); + } + } + + /** + * . + * + * @param entryKind the entry kind + * @param logEntry the log entry + * @return the string + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + protected static String formatLogMessage(String entryKind, String logEntry) + throws XMLStreamException, IOException { + ByteArrayOutputStream outStream = new ByteArrayOutputStream(); + XMLOutputFactory factory = XMLOutputFactory.newInstance(); + XMLStreamWriter writer = factory.createXMLStreamWriter(outStream); + EwsUtilities.writeTraceStartElement(writer, entryKind, false); + writer.writeCharacters(System.getProperty("line.separator")); + writer.writeCharacters(logEntry); + writer.writeCharacters(System.getProperty("line.separator")); + writer.writeEndElement(); + writer.writeCharacters(System.getProperty("line.separator")); + writer.flush(); + writer.close(); + outStream.flush(); + String formattedLogMessage = outStream.toString(); + formattedLogMessage = formattedLogMessage.replaceAll("'", "'"); + formattedLogMessage = formattedLogMessage.replaceAll(""", "\""); + formattedLogMessage = formattedLogMessage.replaceAll(">", ">"); + formattedLogMessage = formattedLogMessage.replaceAll("<", "<"); + formattedLogMessage = formattedLogMessage.replaceAll("&", "&"); + outStream.close(); + return formattedLogMessage; + } + + /** + * Format http response headers. + * + * @param response the response + * @return the string + * @throws EWSHttpException the eWS http exception + */ + protected static String formatHttpResponseHeaders(HttpWebRequest response) + throws EWSHttpException { + StringBuilder sb = new StringBuilder(); + sb.append(String.format("%d %s\n", response.getResponseCode(), response + .getResponseContentType())); + + sb.append(EwsUtilities.formatHttpHeaders(response. + getResponseHeaders())); + sb.append("\n"); + return sb.toString(); + } + + /** + * Format request HTTP headers. + * + * @param request The HTTP request. + */ + protected static String formatHttpRequestHeaders(HttpWebRequest request) + throws URISyntaxException, EWSHttpException { + StringBuilder sb = new StringBuilder(); + sb.append( + String.format( + "%s %s HTTP/%s\n", + request.getRequestMethod().toUpperCase(), + request.getUrl().toURI().getPath(), + "1.1")); + + sb.append(EwsUtilities.formatHttpHeaders(request.getRequestProperty())); + sb.append("\n"); + return sb.toString(); + } + + /** + * Formats HTTP headers. + * + * @param headers The headers. + * @return Headers as a string + */ + private static String formatHttpHeaders(Map headers) { + StringBuilder sb = new StringBuilder(); + for (Map.Entry header : headers.entrySet()) { + sb.append(String.format("%s : %s\n", header.getKey(), header.getValue())); + } + return sb.toString(); + } + + /** + * Format XML content in a MemoryStream for message. + * + * @param traceTypeStr Kind of the entry. + * @param stream The memory stream. + * @return XML log entry as a string. + */ + protected static String formatLogMessageWithXmlContent(String traceTypeStr, + ByteArrayOutputStream stream) { + try { + return formatLogMessage(traceTypeStr, stream.toString()); + } catch (Exception e) { + + return stream.toString(); + } + } + + /** + * Convert bool to XML Schema bool. + * + * @param value Bool value. + * @return String representing bool value in XML Schema. + */ + protected static String boolToXSBool(Boolean value) { + return value ? EwsUtilities.XSTrue : EwsUtilities.XSFalse; + } + + /** + * Parses an enum value list. + * + * @param the generic type + * @param c the c + * @param list the list + * @param value the value + * @param separators the separators + */ + protected static void parseEnumValueList(Class c, + List list, String value, char... separators) { + EwsUtilities.EwsAssert(c.isEnum(), "EwsUtilities.ParseEnumValueList", + "T is not an enum type."); + + StringBuffer regexp = new StringBuffer(""); + regexp.append("["); + for (char s : separators) { + regexp.append("["); + regexp.append(Pattern.quote(s + "")); + regexp.append("]"); + } + regexp.append("]"); + String[] enumValues = value.split(regexp.toString()); - ByteArrayOutputStream memContentStream = source; - if (memContentStream != null) - { - memContentStream.writeTo(target); - memContentStream.flush(); + for (String enumValue : enumValues) { + // list.add((T)Enum.parse(c, enumValue, false)); + for (Object o : c.getEnumConstants()) { + if (o.toString().equals(enumValue)) { + list.add((T) o); } - else - { - // Otherwise, copy data through a buffer - - int c; - ByteArrayInputStream inStream = new ByteArrayInputStream(source.toByteArray()); - - while ((c=inStream.read())!= -1) - { - target.write((char)c); - + } + } + } + + /** + * Converts an enum to a string, using the mapping dictionaries if + * appropriate. + * + * @param value The enum value to be serialized + * @return String representation of enum to be used in the protocol + */ + protected static String serializeEnum(Object value) { + Map enumToStringDict; + String strValue = value.toString(); + if (enumToSchemaDictionaries.getMember(). + containsKey(value.getClass())) { + enumToStringDict = enumToSchemaDictionaries.getMember().get( + value.getClass()); + Enum e = (Enum) value; + if (enumToStringDict.containsKey(e.name())) { + strValue = enumToStringDict.get(e.name()); + } + } + + return strValue; + } + + /** + * Parses the. + * + * @param the generic type + * @param cls the cls + * @param value the value + * @return the t + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws java.text.ParseException the parse exception + */ + protected static T parse(Class cls, String value) + throws InstantiationException, IllegalAccessException, + ParseException { + + if (cls.isEnum()) { + Map stringToEnumDict; + if (schemaToEnumDictionaries.getMember().containsKey(cls)) { + stringToEnumDict = schemaToEnumDictionaries.getMember() + .get(cls); + if (stringToEnumDict.containsKey(value)) { + String strEnumName = stringToEnumDict.get(value); + for (Object o : cls.getEnumConstants()) { + if (o.toString().equals(strEnumName)) { + return (T) o; } + } + return null; + } else { + for (Object o : cls.getEnumConstants()) { + if (o.toString().equals(value)) { + return (T) o; + } + } + return null; } - } - - - - /** - * Gets the builds the version. - * - * @return the builds the version - */ - public static String getBuildVersion() { - return "0.0.0.0"; - } - - /** - * A null-safe case sensitive comparison of two specified strings. - * - * @param first The first string, can be null. - * @param second The second string, can be null. - * @return true: equals, false: otherwise. - */ - public static boolean stringEquals(String first, String second) { - return (first == null && second == null) || (first != null && first.equals(second)); - } - - /** The enum version dictionaries. */ - private static LazyMember, Map>> - enumVersionDictionaries = - new LazyMember, Map>>( - new ILazyMember, Map>>() { - @Override - public Map, Map> - createInstance() { - Map, Map> enumDicts = - new HashMap, Map>(); - enumDicts.put(WellKnownFolderName.class, - buildEnumDict(WellKnownFolderName.class)); - enumDicts.put(ItemTraversal.class, - buildEnumDict(ItemTraversal.class)); - enumDicts.put(FileAsMapping.class, - buildEnumDict(FileAsMapping.class)); - enumDicts.put(EventType.class, - buildEnumDict(EventType.class)); - enumDicts.put(MeetingRequestsDeliveryScope.class, - buildEnumDict(MeetingRequestsDeliveryScope. - class)); - return enumDicts; - } - }); - /** - * Dictionary of enum type to schema-name-to-enum-value maps. - */ - private static LazyMember, Map>> - schemaToEnumDictionaries = - new LazyMember, Map>>( - new ILazyMember, Map>>() { - @Override - public Map, Map> createInstance() { - Map, Map> enumDicts = - new HashMap, Map>(); - enumDicts.put(EventType.class, - buildSchemaToEnumDict(EventType.class)); - enumDicts.put(MailboxType.class, - buildSchemaToEnumDict(MailboxType.class)); - enumDicts.put(FileAsMapping.class, - buildSchemaToEnumDict(FileAsMapping.class)); - enumDicts.put(RuleProperty.class, - buildSchemaToEnumDict(RuleProperty.class)); - return enumDicts; - - } - }); - - /** - * Dictionary of enum type to enum-value-to-schema-name maps. - */ - protected static LazyMember, Map>> - enumToSchemaDictionaries = - new LazyMember, Map>>( - new ILazyMember, Map>>() { - @Override - public Map, Map> createInstance() { - Map, Map> enumDicts = - new HashMap, Map>(); - enumDicts.put(EventType.class, - buildEnumToSchemaDict(EventType.class)); - enumDicts.put(MailboxType.class, - buildEnumToSchemaDict(MailboxType.class)); - enumDicts.put(FileAsMapping.class, - buildEnumToSchemaDict(FileAsMapping.class)); - enumDicts.put(RuleProperty.class, - buildEnumToSchemaDict(RuleProperty.class)); - return enumDicts; - } - }); - - /** - * Dictionary to map from special CLR type names to their "short" names. - */ - private static LazyMember> - typeNameToShortNameMap = - new LazyMember>( - new ILazyMember>() { - public Map createInstance() { - Map result = - new HashMap(); - result.put("Boolean", "bool"); - result.put("Int16", "short"); - result.put("Int32", "int"); - result.put("String", "string"); - return result; - } - }); - - /** - * Regular expression for legal domain names. - */ - protected static final String DomainRegex = "^[-a-zA-Z0-9_.]+$"; - - /** - * Asserts that the specified condition if true. - * - * @param condition - * Assertion. - * @param caller - * The caller. - * @param message - * The message to use if assertion fails. - */ - protected static void EwsAssert(boolean condition, String caller, - String message) { - assert condition : String.format("[%s] %s", - caller, message); - } - - /** - * Gets the namespace prefix from an XmlNamespace enum value. - * - * @param xmlNamespace - * The XML namespace - * @return Namespace prefix string. - */ - protected static String getNamespacePrefix(XmlNamespace xmlNamespace) { - return xmlNamespace.getNameSpacePrefix(); - } - - /** - * Gets the namespace URI from an XmlNamespace enum value. - * - * @param xmlNamespace - * The XML namespace. - * @return Uri as string - */ - protected static String getNamespaceUri(XmlNamespace xmlNamespace) { - return xmlNamespace.getNameSpaceUri(); - } - - /** - * Gets the namespace from uri. - * - * @param namespaceUri - * the namespace uri - * @return the namespace from uri - */ - protected static XmlNamespace getNamespaceFromUri(String namespaceUri) { - if (namespaceUri.equals(EwsErrorsNamespace)) { - return XmlNamespace.Errors; - } - if (namespaceUri.equals(EwsTypesNamespace)) { - return XmlNamespace.Types; - } - if (namespaceUri.equals(EwsMessagesNamespace)) { - return XmlNamespace.Messages; - } - if (namespaceUri.equals(EwsSoapNamespace)) { - return XmlNamespace.Soap; - } - if (namespaceUri.equals(EwsSoap12Namespace)) { - return XmlNamespace.Soap12; - } - if (namespaceUri.equals(EwsXmlSchemaInstanceNamespace)) { - return XmlNamespace.XmlSchemaInstance; - } - if (namespaceUri.equals(PassportSoapFaultNamespace)) { - return XmlNamespace.PassportSoapFault; - } - if (namespaceUri.equals(WSTrustFebruary2005Namespace)) { - return XmlNamespace.WSTrustFebruary2005; - } - if (namespaceUri.equals(WSAddressingNamespace)) { - return XmlNamespace.WSAddressing; - } else { - return XmlNamespace.NotSpecified; - } - } - - /** - * Creates the ews object from xml element name. - * - * @param - * the generic type - * @param itemClass - * the item class - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the t service object - * @throws Exception - * the exception - */ - protected static - TServiceObject createEwsObjectFromXmlElementName( - Class itemClass, ExchangeService service, String xmlElementName) - throws Exception { - ICreateServiceObjectWithServiceParam creationDelegate; - if (EwsUtilities.serviceObjectInfo.getMember() - .getXmlElementNameToServiceObjectClassMap().containsKey( - xmlElementName)) { - itemClass = EwsUtilities.serviceObjectInfo.getMember() - .getXmlElementNameToServiceObjectClassMap().get( - xmlElementName); - if (EwsUtilities.serviceObjectInfo.getMember() - .getServiceObjectConstructorsWithServiceParam() - .containsKey(itemClass)) { - creationDelegate = EwsUtilities.serviceObjectInfo.getMember() - .getServiceObjectConstructorsWithServiceParam().get( - itemClass); - return (TServiceObject)creationDelegate - .createServiceObjectWithServiceParam(service); - } else { - throw new IllegalArgumentException( - Strings.NoAppropriateConstructorForItemClass); - } - } else { - return (TServiceObject)itemClass.newInstance(); - } - } - - /** - * Creates the item from item class. - * - * @param itemAttachment - * the item attachment - * @param itemClass - * the item class - * @param isNew - * the is new - * @return the item - * @throws Exception - * the exception - */ - protected static Item createItemFromItemClass( - ItemAttachment itemAttachment, Class itemClass, boolean isNew) - throws Exception { - ICreateServiceObjectWithAttachmentParam creationDelegate; - if (EwsUtilities.serviceObjectInfo.getMember() - .getServiceObjectConstructorsWithAttachmentParam().containsKey( - itemClass)) { - - creationDelegate = EwsUtilities.serviceObjectInfo.getMember() - .getServiceObjectConstructorsWithAttachmentParam().get( - itemClass); - return (Item)creationDelegate - .createServiceObjectWithAttachmentParam(itemAttachment, - isNew); - } else { - throw new IllegalArgumentException( - Strings.NoAppropriateConstructorForItemClass); - } - } - - /** - * Creates the item from xml element name. - * - * @param itemAttachment - * the item attachment - * @param xmlElementName - * the xml element name - * @return the item - * @throws Exception - * the exception - */ - protected static Item createItemFromXmlElementName( - ItemAttachment itemAttachment, String xmlElementName) - throws Exception { - Class itemClass; - if (EwsUtilities.serviceObjectInfo.getMember() - .getXmlElementNameToServiceObjectClassMap().containsKey( - xmlElementName)) { - itemClass = EwsUtilities.serviceObjectInfo.getMember() - .getXmlElementNameToServiceObjectClassMap().get( - xmlElementName); - return createItemFromItemClass(itemAttachment, itemClass, false); - } else { - return null; - } - } - - /** - * - */ - protected static Class getItemTypeFromXmlElementName(String xmlElementName) + } else { + for (Object o : cls.getEnumConstants()) { + if (o.toString().equals(value)) { + return (T) o; + } + } + return null; + } + } else if (cls.isInstance(Integer.valueOf(0))) + // else if( cls.isInstance(new Integer(0))) + { + Object o = null; + o = Integer.parseInt(value); + return (T) o; + } else if (cls.isInstance(new Date())) { + Object o = null; + DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + df.setTimeZone(TimeZone.getTimeZone("UTC")); + return (T) df.parse(value); + } else if (cls.isInstance(Boolean.valueOf(false))) + // else if( cls.isInstance(new Boolean(false))) { - - return EwsUtilities.serviceObjectInfo.getMember().getXmlElementNameToServiceObjectClassMap().get(xmlElementName).getClass(); - - } - - /** - * Finds the first item of type TItem (not a descendant type) in the - * specified collection. - * - * @param - * TItem is the type of the item to find. - * @param cls - * the cls - * @param items - * the items - * @return A TItem instance or null if no instance of TItem could be found. - */ - - static TItem findFirstItemOfType(Class cls, - Iterable items) { - for (Item item : items) { - // We're looking for an exact class match here. - if (item.getClass().equals(cls)) { - return (TItem)item; - } - } - - return null; - } - - /** - * Write trace start element. - * - * @param writer - * The writer to write the start element to. - * @param traceTag - * The trace tag. - * @param includeVersion - * If true, include build version attribute. - */ - private static void writeTraceStartElement( - XMLStreamWriter writer, - String traceTag, - boolean includeVersion) throws XMLStreamException { - writer.writeStartElement("Trace"); - writer.writeAttribute("Tag", traceTag); - writer.writeAttribute("Tid", Thread.currentThread().getId()+""); - Date d = new Date(); - DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss'Z'"); - df.setTimeZone(TimeZone.getTimeZone("UTC")); - String formattedString = df.format(d); - writer.writeAttribute("Time", formattedString); - - if (includeVersion) { - writer.writeAttribute("Version", EwsUtilities.getBuildVersion()); + Object o = null; + o = Boolean.parseBoolean(value); + return (T) o; + } else if (cls.isInstance(new String())) { + return (T) value; + } else if (cls.isInstance(Double.valueOf(0.0))) { + Object o = null; + o = Double.parseDouble(value); + return (T) o; + } + return null; + } + + + + /** + * Builds the schema to enum mapping dictionary. + * + * @param Type of the enum. + * @param c Class + * @return The mapping from enum to schema name + */ + private static > Map + buildSchemaToEnumDict(Class c) { + Map dict = new HashMap(); + + Field[] fields = c.getDeclaredFields(); + for (Field f : fields) { + if (f.isEnumConstant() && f.isAnnotationPresent(EwsEnum.class)) { + EwsEnum ewsEnum = f.getAnnotation(EwsEnum.class); + String fieldName = f.getName(); + String schemaName = ewsEnum.schemaName(); + if (!schemaName.isEmpty()) { + dict.put(schemaName, fieldName); } + } + } + return dict; + } + + /** + * Validate param collection. + * + * @param eventTypes the event types + * @param paramName the param name + * @throws Exception the exception + */ + protected static void validateParamCollection(EventType[] eventTypes, + String paramName) throws Exception { + + validateParam(eventTypes, paramName); + + int count = 0; + + for (Object event : eventTypes) { + + try { + validateParam(event, String.format("collection[%d] , ", count)); + } catch (Exception e) { + throw new IllegalArgumentException(String.format( + "The element at position %d is invalid", count), e); + } + + count++; } - - /** - *. - * - * @param entryKind - * the entry kind - * @param logEntry - * the log entry - * @return the string - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - protected static String formatLogMessage(String entryKind, String logEntry) - throws XMLStreamException, IOException { - ByteArrayOutputStream outStream = new ByteArrayOutputStream(); - XMLOutputFactory factory = XMLOutputFactory.newInstance(); - XMLStreamWriter writer = factory.createXMLStreamWriter(outStream); - EwsUtilities.writeTraceStartElement(writer, entryKind,false); - writer.writeCharacters(System.getProperty("line.separator")); - writer.writeCharacters(logEntry); - writer.writeCharacters(System.getProperty("line.separator")); - writer.writeEndElement(); - writer.writeCharacters(System.getProperty("line.separator")); - writer.flush(); - writer.close(); - outStream.flush(); - String formattedLogMessage = outStream.toString(); - formattedLogMessage = formattedLogMessage.replaceAll("'", "'"); - formattedLogMessage = formattedLogMessage.replaceAll(""", "\""); - formattedLogMessage = formattedLogMessage.replaceAll(">", ">"); - formattedLogMessage = formattedLogMessage.replaceAll("<", "<"); - formattedLogMessage = formattedLogMessage.replaceAll("&", "&"); - outStream.close(); - return formattedLogMessage; - } - - /** - * Format http response headers. - * - * @param response - * the response - * @return the string - * @throws EWSHttpException - * the eWS http exception - */ - protected static String formatHttpResponseHeaders(HttpWebRequest response) - throws EWSHttpException { - StringBuilder sb = new StringBuilder(); - sb.append(String.format("%d %s\n", response.getResponseCode(), response - .getResponseContentType())); - - sb.append(EwsUtilities.formatHttpHeaders(response. - getResponseHeaders())); - sb.append("\n"); - return sb.toString(); - } - - /** - * Format request HTTP headers. - * - * @param request - * The HTTP request. - */ - protected static String formatHttpRequestHeaders(HttpWebRequest request) - throws URISyntaxException, EWSHttpException { - StringBuilder sb = new StringBuilder(); - sb.append( - String.format( - "%s %s HTTP/%s\n", - request.getRequestMethod().toUpperCase(), - request.getUrl().toURI().getPath(), - "1.1")); - - sb.append(EwsUtilities.formatHttpHeaders(request.getRequestProperty())); - sb.append("\n"); - return sb.toString(); - } - - /** - * Formats HTTP headers. - * - * @param headers - * The headers. - * @return Headers as a string - */ - private static String formatHttpHeaders(Map headers) - { - StringBuilder sb = new StringBuilder(); - for (Map.Entry header : headers.entrySet()) { - sb.append(String.format("%s : %s\n", header.getKey(), header.getValue())); - } - return sb.toString(); - } - - /** - * Format XML content in a MemoryStream for message. - * - * @param traceTypeStr - * Kind of the entry. - * @param stream - * The memory stream. - * @return XML log entry as a string. - */ - protected static String formatLogMessageWithXmlContent(String traceTypeStr, - ByteArrayOutputStream stream) { - try { - return formatLogMessage(traceTypeStr, stream.toString()); - } catch (Exception e) { - - return stream.toString(); - } - } - - /** - * Convert bool to XML Schema bool. - * - * @param value - * Bool value. - * @return String representing bool value in XML Schema. - */ - protected static String boolToXSBool(Boolean value) { - return value ? EwsUtilities.XSTrue : EwsUtilities.XSFalse; - } - - /** - * Parses an enum value list. - * - * @param - * the generic type - * @param c - * the c - * @param list - * the list - * @param value - * the value - * @param separators - * the separators - */ - protected static void parseEnumValueList(Class c, - List list, String value, char... separators) { - EwsUtilities.EwsAssert(c.isEnum(), "EwsUtilities.ParseEnumValueList", - "T is not an enum type."); - - StringBuffer regexp = new StringBuffer(""); - regexp.append("["); - for (char s : separators) { - regexp.append("["); - regexp.append(Pattern.quote(s + "")); - regexp.append("]"); - } - regexp.append("]"); - - String[] enumValues = value.split(regexp.toString()); - - for (String enumValue : enumValues) { - // list.add((T)Enum.parse(c, enumValue, false)); - for (Object o : c.getEnumConstants()) { - if (o.toString().equals(enumValue)) { - list.add((T) o); - } - } - } - } - - /** - * Converts an enum to a string, using the mapping dictionaries if - * appropriate. - * - * @param value - * The enum value to be serialized - * @return String representation of enum to be used in the protocol - */ - protected static String serializeEnum(Object value) { - Map enumToStringDict; - String strValue = value.toString(); - if (enumToSchemaDictionaries.getMember(). - containsKey(value.getClass())) { - enumToStringDict = enumToSchemaDictionaries.getMember().get( - value.getClass()); - Enum e = (Enum) value; - if (enumToStringDict.containsKey(e.name())) { - strValue = enumToStringDict.get(e.name()); - } - } - - return strValue; - } - - /** - * Parses the. - * - * @param - * the generic type - * @param cls - * the cls - * @param value - * the value - * @return the t - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws java.text.ParseException - * the parse exception - */ - protected static T parse(Class cls, String value) - throws InstantiationException, IllegalAccessException, - ParseException { - - if (cls.isEnum()) { - Map stringToEnumDict; - if (schemaToEnumDictionaries.getMember().containsKey(cls)) { - stringToEnumDict = schemaToEnumDictionaries.getMember() - .get(cls); - if (stringToEnumDict.containsKey(value)) { - String strEnumName = stringToEnumDict.get(value); - for (Object o : cls.getEnumConstants()) { - if (o.toString().equals(strEnumName)) { - return (T) o; - } - } - return null; - } else { - for (Object o : cls.getEnumConstants()) { - if (o.toString().equals(value)) { - return (T) o; - } - } - return null; - } - } else { - for (Object o : cls.getEnumConstants()) { - if (o.toString().equals(value)) { - return (T) o; - } - } - return null; - } - } else if (cls.isInstance(Integer.valueOf(0))) - // else if( cls.isInstance(new Integer(0))) - { - Object o = null; - o = Integer.parseInt(value); - return (T) o; - } else if (cls.isInstance(new Date())) { - Object o = null; - DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); - df.setTimeZone(TimeZone.getTimeZone("UTC")); - return (T) df.parse(value); - } else if (cls.isInstance(Boolean.valueOf(false))) - // else if( cls.isInstance(new Boolean(false))) - { - Object o = null; - o = Boolean.parseBoolean(value); - return (T) o; - } - else if (cls.isInstance(new String())) { - return (T) value; - } - else if (cls.isInstance(Double.valueOf(0.0))) - { - Object o = null; - o = Double.parseDouble(value); - return (T) o; - } - return null; - } - - - - /** - * Builds the schema to enum mapping dictionary. - * - * @param - * Type of the enum. - * @param c - * Class - * @return The mapping from enum to schema name - */ - private static > Map - buildSchemaToEnumDict(Class c) { - Map dict = new HashMap(); - - Field[] fields = c.getDeclaredFields(); - for (Field f : fields) { - if (f.isEnumConstant() && f.isAnnotationPresent(EwsEnum.class)) { - EwsEnum ewsEnum = f.getAnnotation(EwsEnum.class); - String fieldName = f.getName(); - String schemaName = ewsEnum.schemaName(); - if (!schemaName.isEmpty()) { - dict.put(schemaName, fieldName); - } - } - } - return dict; - } - - /** - * Validate param collection. - * - * @param eventTypes - * the event types - * @param paramName - * the param name - * @throws Exception - * the exception - */ - protected static void validateParamCollection(EventType[] eventTypes, - String paramName) throws Exception { - - validateParam(eventTypes, paramName); - - int count = 0; - - for (Object event : eventTypes) { - - try { - validateParam(event, String.format("collection[%d] , ", count)); - } catch (Exception e) { - throw new IllegalArgumentException(String.format( - "The element at position %d is invalid", count), e); - } - - count++; - } - - if (count == 0) { - throw new IllegalArgumentException(String.format( - Strings.CollectionIsEmpty, paramName)); - } - } - - - - /** - * Convert DateTime to XML Schema date. - * - * @param date - * the date - * @return String representation of DateTime. - */ - static String dateTimeToXSDate(Date date) { - String format = "yyyy-MM-dd'Z'"; - DateFormat utcFormatter = new SimpleDateFormat(format); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - return utcFormatter.format(date); - } - - /** - * Dates the DateTime into an XML schema date time. - * - * @param date - * the date - * @return String representation of DateTime. - */ - protected static String dateTimeToXSDateTime(Date date) { - String format = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - DateFormat utcFormatter = new SimpleDateFormat(format); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - return utcFormatter.format(date); - } - - /** - * Takes a System.TimeSpan structure and converts it into an xs:duration - * string as defined by the W3 Consortiums Recommendation - * "XML Schema Part 2: Datatypes Second Edition", - * http://www.w3.org/TR/xmlschema-2/#duration - * - * @param timeOffset - * structure to convert - * @return xs:duration formatted string - */ - protected static String getTimeSpanToXSDuration(TimeSpan timeOffset) { + + if (count == 0) { + throw new IllegalArgumentException(String.format( + Strings.CollectionIsEmpty, paramName)); + } + } + + + + /** + * Convert DateTime to XML Schema date. + * + * @param date the date + * @return String representation of DateTime. + */ + static String dateTimeToXSDate(Date date) { + String format = "yyyy-MM-dd'Z'"; + DateFormat utcFormatter = new SimpleDateFormat(format); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + return utcFormatter.format(date); + } + + /** + * Dates the DateTime into an XML schema date time. + * + * @param date the date + * @return String representation of DateTime. + */ + protected static String dateTimeToXSDateTime(Date date) { + String format = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + DateFormat utcFormatter = new SimpleDateFormat(format); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + return utcFormatter.format(date); + } + + /** + * Takes a System.TimeSpan structure and converts it into an xs:duration + * string as defined by the W3 Consortiums Recommendation + * "XML Schema Part 2: Datatypes Second Edition", + * http://www.w3.org/TR/xmlschema-2/#duration + * + * @param timeOffset structure to convert + * @return xs:duration formatted string + */ + protected static String getTimeSpanToXSDuration(TimeSpan timeOffset) { /* * SimpleDateFormat dateformatter = new SimpleDateFormat("dd:HH:mm:ss"); * return dateformatter.format(timeOffset.toString()); */ - // Optional '-' offset - String offsetStr = (timeOffset.getTotalSeconds() < 0) ? "-" : ""; - - // The TimeSpan structure does not have a Year or Month - // property, therefore we wouldn't be able to return an xs:duration - // string from a TimeSpan that included the nY or nM components. - - return String.format("%sP%sDT%sH%sM%sS", offsetStr, Math.abs(timeOffset - .getDays()), Math.abs(timeOffset.getHours()), Math - .abs(timeOffset.getMinutes()), Math - .abs(timeOffset.getSeconds()) - + "." + Math.abs(timeOffset.getMilliseconds())); - } - - /** - * Takes an xs:duration string as defined by the W3 Consortiums - * Recommendation "XML Schema Part 2: Datatypes Second Edition", - * http://www.w3.org/TR/xmlschema-2/#duration, and converts it into a - * System.TimeSpan structure This method uses the following approximations: - * 1 year = 365 days 1 month = 30 days Additionally, it only allows for four - * decimal points of seconds precision. - * - * @param xsDuration - * xs:duration string to convert - * @return System.TimeSpan structure - */ - protected static TimeSpan getXSDurationToTimeSpan(String xsDuration) { - // TODO: Need to check whether this should be the equivalent or not - Pattern timeSpanParser = Pattern.compile("-P"); - Matcher m = timeSpanParser.matcher(xsDuration); - boolean negative = false; - System.out.println(m.find()); - if (m.find()) - negative = true; - System.out.println(m.group()); - - // Year - m = Pattern.compile("(\\d+)Y").matcher(xsDuration); - System.out.println(m.find()); - int year = 0; - if (m.find()) - year = Integer.parseInt(m.group().substring(0, - m.group().indexOf("Y"))); - - // Month - m = Pattern.compile("(\\d+)M").matcher(xsDuration); - System.out.println(m.find()); - int month = 0; - if (m.find()) - month = Integer.parseInt(m.group().substring(0, - m.group().indexOf("M"))); - - // Day - m = Pattern.compile("(\\d+)D").matcher(xsDuration); - System.out.println(m.find()); - int day = 0; - if (m.find()) - day = Integer.parseInt(m.group().substring(0, - m.group().indexOf("D"))); - - // Hour - m = Pattern.compile("(\\d+)H").matcher(xsDuration); - System.out.println(m.find()); - int hour = 0; - if (m.find()) - hour = Integer.parseInt(m.group().substring(0, - m.group().indexOf("H"))); - - // Minute - m = Pattern.compile("(\\d+)M").matcher(xsDuration); - System.out.println(m.find()); - int minute = 0; - if (m.find()) - minute = Integer.parseInt(m.group().substring(0, - m.group().indexOf("M"))); - - // Seconds - m = Pattern.compile("(\\d+).").matcher(xsDuration); - System.out.println(m.find()); - int seconds = 0; - if (m.find()) - seconds = Integer.parseInt(m.group().substring(0, - m.group().indexOf("."))); - - int milliseconds = 0; - m = Pattern.compile("(\\d+)S").matcher(xsDuration); - System.out.println(m.find()); - if (m.find()) { - // Only allowed 4 digits of precision - if (m.group().length() > 5) { - milliseconds = Integer.parseInt(m.group().substring(0, 4)); - } else - seconds = Integer.parseInt(m.group().substring(0, - m.group().indexOf("S"))); - } - - // Apply conversions of year and months to days. - // Year = 365 days - // Month = 30 days - day = day + (year * 365) + (month * 30); - // TimeSpan retval = new TimeSpan(day, hour, minute, seconds, - // milliseconds); - long retval = (((((((day * 24) + hour) * 60) + minute) * 60) + - seconds) * 1000)+ milliseconds; - if (negative) { - retval = -retval; - } - return new TimeSpan(retval); - - } - - /** - * Takes an xs:duration string as defined by the W3 Consortiums - * Recommendation "XML Schema Part 2: Datatypes Second Edition", - * http://www.w3.org/TR/xmlschema-2/#duration, and converts it into a - * System.TimeSpan structure This method uses the following approximations: - * 1 year = 365 days 1 month = 30 days Additionally, it only allows for four - * decimal points of seconds precision. - * - * @param xsDuration - * xs:duration string to convert - * @return System.TimeSpan structure - */ - protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { - // TODO: Need to check whether this should be the equivalent or not - Pattern timeSpanParser = Pattern.compile("-P"); - Matcher m = timeSpanParser.matcher(xsDuration); - boolean negative = false; - //System.out.println(m.find()); - if (m.find()) - negative = true; - - //System.out.println(m.find()); - // Year - m = Pattern.compile("(\\d+)Y").matcher(xsDuration); - //System.out.println(m.find()); - int year = 0; - if (m.find()) - year = Integer.parseInt(m.group().substring(0, - m.group().indexOf("Y"))); - - // Month - m = Pattern.compile("(\\d+)M").matcher(xsDuration); - //System.out.println(m.find()); - int month = 0; - if (m.find()) - month = Integer.parseInt(m.group().substring(0, - m.group().indexOf("M"))); - - // Day - m = Pattern.compile("(\\d+)D").matcher(xsDuration); - - //System.out.println(m.find()); - - long day = 0; - if (m.find()) - day = Integer.parseInt(m.group().substring(0, - m.group().indexOf("D"))); - - // Hour - m = Pattern.compile("(\\d+)H").matcher(xsDuration); - - //System.out.println(m.find()); - - int hour = 0; - if (m.find()) - hour = Integer.parseInt(m.group().substring(0, - m.group().indexOf("H"))); - - // Minute - m = Pattern.compile("(\\d+)M").matcher(xsDuration); - - //System.out.println(m.find()); - - int minute = 0; - if (m.find()) - minute = Integer.parseInt(m.group().substring(0, - m.group().indexOf("M"))); - - // Seconds - m = Pattern.compile("(\\d+).").matcher(xsDuration); - - //System.out.println(m.find()); - - int seconds = 0; - -// if (m.find()) -// seconds = Integer.parseInt(m.group().substring(0, -// m.group().indexOf("."))); - - - int milliseconds = 0; - m = Pattern.compile("(\\d+)S").matcher(xsDuration); - - //System.out.println(m.find()); - - if (m.find()) { - // Only allowed 4 digits of precision - if (m.group().length() > 5) { - milliseconds = Integer.parseInt(m.group().substring(0, 4)); - } else - seconds = Integer.parseInt(m.group().substring(0, - m.group().indexOf("S"))); - } - - // Apply conversions of year and months to days. - // Year = 365 days - // Month = 30 days - // day = day + (year * 365) + (month * 30); - //TimeSpan retval = new TimeSpan(day, hour, minute, seconds, - // milliseconds); - - long retval = ((((((((day * 24) + hour) * 60) + minute) * 60) + - seconds) * 1000)+ milliseconds); -// long retval=1010010; - if (negative) { - retval = -retval; - } - return new TimeSpan(retval); - - } - - - /** - * Time span to xs time. - * - * @param timeSpan - * the time span - * @return the string - */ - public static String timeSpanToXSTime(TimeSpan timeSpan) { - DecimalFormat myFormatter = new DecimalFormat("00"); - return String.format("%s:%s:%s", myFormatter.format(timeSpan.getHours()), myFormatter.format(timeSpan - .getMinutes()), myFormatter.format(timeSpan.getSeconds())); - } - - /** - * Gets the printable name of a CLR type. - * - * @param type - * The class. - * @return Printable name. - */ - public static String getPrintableTypeName(Class type) { - // Note: building array of generic parameters is - //done recursively. Each parameter could be any type. - Type[] genericArgs = type.getGenericInterfaces(); - if (genericArgs.length > 0) { - // Convert generic type to printable form (e.g. List) - String genericPrefix = type.getName().substring(0, - type.getName().indexOf('`')); - StringBuilder nameBuilder = new StringBuilder(genericPrefix); - - //List genericList = new ArrayList(); - StringBuffer genericArgsStr = new StringBuffer(); - for (int i = 0; i < genericArgs.length; i++) { - - if(!"".equals(genericArgsStr.toString())) { - genericArgsStr.append(","); - } - genericArgsStr.append(getPrintableTypeName( - genericArgs[i].getClass())); - } - nameBuilder.append("<"); - nameBuilder.append(genericArgsStr.toString()); - nameBuilder.append(">"); - return nameBuilder.toString(); - } - else if (type.isArray()) { - // Convert array type to printable form. - String arrayPrefix = type.getName().substring(0, - type.getName().indexOf('[')); - StringBuilder nameBuilder = - new StringBuilder(EwsUtilities. - getSimplifiedTypeName(arrayPrefix)); - - for (int rank = 0; rank < getDim(type); rank++) { - nameBuilder.append("[]"); - } - return nameBuilder.toString(); - } - else { - return EwsUtilities.getSimplifiedTypeName(type.getName()); - } + // Optional '-' offset + String offsetStr = (timeOffset.getTotalSeconds() < 0) ? "-" : ""; + + // The TimeSpan structure does not have a Year or Month + // property, therefore we wouldn't be able to return an xs:duration + // string from a TimeSpan that included the nY or nM components. + + return String.format("%sP%sDT%sH%sM%sS", offsetStr, Math.abs(timeOffset + .getDays()), Math.abs(timeOffset.getHours()), Math + .abs(timeOffset.getMinutes()), Math + .abs(timeOffset.getSeconds()) + + "." + Math.abs(timeOffset.getMilliseconds())); + } + + /** + * Takes an xs:duration string as defined by the W3 Consortiums + * Recommendation "XML Schema Part 2: Datatypes Second Edition", + * http://www.w3.org/TR/xmlschema-2/#duration, and converts it into a + * System.TimeSpan structure This method uses the following approximations: + * 1 year = 365 days 1 month = 30 days Additionally, it only allows for four + * decimal points of seconds precision. + * + * @param xsDuration xs:duration string to convert + * @return System.TimeSpan structure + */ + protected static TimeSpan getXSDurationToTimeSpan(String xsDuration) { + // TODO: Need to check whether this should be the equivalent or not + Pattern timeSpanParser = Pattern.compile("-P"); + Matcher m = timeSpanParser.matcher(xsDuration); + boolean negative = false; + System.out.println(m.find()); + if (m.find()) { + negative = true; } - - /** - * Gets the printable name of a CLR type. - * - * @param typeName - * The type name. - * @return Printable name. - */ - private static String getSimplifiedTypeName(String typeName) { - // If type has a shortname (e.g. int for Int32) map to the short name. - return typeNameToShortNameMap.getMember().containsKey(typeName) ? - typeNameToShortNameMap.getMember().get(typeName) : typeName; - } - - /** - * Gets the domain name from an email address. - * - * @param emailAddress - * The email address. - * @return Domain name. - * @throws FormatException - * the format exception - */ - protected static String domainFromEmailAddress(String emailAddress) - throws FormatException { - String[] emailAddressParts = emailAddress.split("@"); - - if (emailAddressParts.length != 2 - || (emailAddressParts[1] == null || emailAddressParts[1] - .isEmpty())) { - throw new FormatException(Strings.InvalidEmailAddress); - } - - return emailAddressParts[1]; - } - - public static int getDim(Object array ) { - int dim=0; - Class c = array.getClass(); - while( c.isArray() ) { - c = c.getComponentType(); - dim++; - } - return( dim ); + System.out.println(m.group()); + + // Year + m = Pattern.compile("(\\d+)Y").matcher(xsDuration); + System.out.println(m.find()); + int year = 0; + if (m.find()) { + year = Integer.parseInt(m.group().substring(0, + m.group().indexOf("Y"))); + } + + // Month + m = Pattern.compile("(\\d+)M").matcher(xsDuration); + System.out.println(m.find()); + int month = 0; + if (m.find()) { + month = Integer.parseInt(m.group().substring(0, + m.group().indexOf("M"))); + } + + // Day + m = Pattern.compile("(\\d+)D").matcher(xsDuration); + System.out.println(m.find()); + int day = 0; + if (m.find()) { + day = Integer.parseInt(m.group().substring(0, + m.group().indexOf("D"))); + } + + // Hour + m = Pattern.compile("(\\d+)H").matcher(xsDuration); + System.out.println(m.find()); + int hour = 0; + if (m.find()) { + hour = Integer.parseInt(m.group().substring(0, + m.group().indexOf("H"))); + } + + // Minute + m = Pattern.compile("(\\d+)M").matcher(xsDuration); + System.out.println(m.find()); + int minute = 0; + if (m.find()) { + minute = Integer.parseInt(m.group().substring(0, + m.group().indexOf("M"))); + } + + // Seconds + m = Pattern.compile("(\\d+).").matcher(xsDuration); + System.out.println(m.find()); + int seconds = 0; + if (m.find()) { + seconds = Integer.parseInt(m.group().substring(0, + m.group().indexOf("."))); + } + + int milliseconds = 0; + m = Pattern.compile("(\\d+)S").matcher(xsDuration); + System.out.println(m.find()); + if (m.find()) { + // Only allowed 4 digits of precision + if (m.group().length() > 5) { + milliseconds = Integer.parseInt(m.group().substring(0, 4)); + } else { + seconds = Integer.parseInt(m.group().substring(0, + m.group().indexOf("S"))); } + } - /** - * Validates parameter (and allows null value). - * - * @param param - * The param. - * @param paramName - * Name of the param. - * @throws Exception - * the exception - */ - protected static void validateParamAllowNull(Object param, String paramName) - throws Exception { - if (param instanceof ISelfValidate) { - ISelfValidate selfValidate = (ISelfValidate) param; - try { - selfValidate.validate(); - } catch (ServiceValidationException e) { - throw new Exception(String.format("%s %s", - Strings.ValidationFailed, paramName), e); - } - } - - if (param instanceof ServiceObject) { - ServiceObject ewsObject = (ServiceObject) param; - if (ewsObject.isNew()) { - throw new Exception(String.format("%s %s", - Strings.ObjectDoesNotHaveId, paramName)); - } - } - } - - /** - * Validates parameter (null value not allowed). - * - * @param param - * The param. - * @param paramName - * Name of the param. - * @throws Exception - * the exception - */ - protected static void validateParam(Object param, String paramName) - throws Exception { - boolean isValid = false; - - if (param != null && param instanceof String) { - String strParam = (String) param; - isValid = !strParam.isEmpty(); - } else { - isValid = param != null; - } - - if (!isValid) { - throw new Exception(String.format("Argument %s not valid", - paramName)); - } - validateParamAllowNull(param, paramName); - } - - /** - * Validates parameter collection. - * - * @param - * the generic type - * @param collection - * The collection. - * @param paramName - * Name of the param. - * @throws Exception - * the exception - */ - protected static void validateParamCollection(Iterator collection, - String paramName) throws Exception { - - validateParam(collection, paramName); - - int count = 0; - - while (collection.hasNext()) { - T obj = collection.next(); - try { - validateParam(obj, String.format("collection[%d],", count)); - } catch (Exception e) { - throw new IllegalArgumentException(String.format( - "The element at position %d is invalid", count), e); - } - - count++; - } - - if (count == 0) { - throw new IllegalArgumentException(String.format( - Strings.CollectionIsEmpty, paramName)); - } - } - - /** - * Validates string parameter to be non-empty string (null value allowed). - * @param param The string parameter. - * @param paramName Name of the parameter. - * @throws ArgumentException - * @throws ServiceLocalException - */ - protected static void validateNonBlankStringParamAllowNull(String param, - String paramName) throws ArgumentException, ServiceLocalException { - if (param != null) - { - // Non-empty string has at least one character - //which is *not* a whitespace character - if (param.length() == countMatchingChars(param, - new IPredicate() { - @Override - public boolean predicate(Character obj) { - return Character.isWhitespace(obj); - } - })) - { - throw new ArgumentException(Strings. - ArgumentIsBlankString, paramName); - } - } + // Apply conversions of year and months to days. + // Year = 365 days + // Month = 30 days + day = day + (year * 365) + (month * 30); + // TimeSpan retval = new TimeSpan(day, hour, minute, seconds, + // milliseconds); + long retval = (((((((day * 24) + hour) * 60) + minute) * 60) + + seconds) * 1000) + milliseconds; + if (negative) { + retval = -retval; } - - - /** - * Validates string parameter to be - * non-empty string (null value not allowed). - * @param param The string parameter. - * @param paramName Name of the parameter. - * @throws ArgumentNullException - * @throws ArgumentException - * @throws ServiceLocalException - */ - protected static void validateNonBlankStringParam(String param, - String paramName) throws ArgumentNullException, ArgumentException, ServiceLocalException { - if (param == null) - { - throw new ArgumentNullException(paramName); - } - - validateNonBlankStringParamAllowNull(param, paramName); - } - - /** - * Validate enum version value. - * - * @param enumValue - * the enum value - * @param requestVersion - * the request version - * @throws ServiceVersionException - * the service version exception - */ - protected static void validateEnumVersionValue(Enum enumValue, - ExchangeVersion requestVersion) throws ServiceVersionException { - Map enumVersionDict = enumVersionDictionaries - .getMember().get(enumValue.getClass()); - // String strValue = enumValue.toString(); - if (enumVersionDict.containsKey(enumValue.toString())) { - ExchangeVersion enumVersion = enumVersionDict.get(enumValue - .toString()); - int i = requestVersion.compareTo(enumVersion); - if (i < 0) { - throw new ServiceVersionException(String.format("%S,%S,%S,%S", - Strings.EnumValueIncompatibleWithRequestVersion, - enumValue.toString(), enumValue.getClass().getName(), - enumVersion)); - } - } - } - - /** - * Validates service object version against the request version. - * - * @param serviceObject - * The service object. - * @param requestVersion - * The request version. - * @throws ServiceVersionException - * Raised if this service object type requires a later version - * of Exchange. - */ - protected static void validateServiceObjectVersion( - ServiceObject serviceObject, ExchangeVersion requestVersion) - throws ServiceVersionException { - ExchangeVersion minimumRequiredServerVersion = serviceObject - .getMinimumRequiredServerVersion(); - - if (requestVersion.ordinal() < minimumRequiredServerVersion.ordinal()) { - String msg = String.format( - Strings.ObjectTypeIncompatibleWithRequestVersion, - serviceObject.getClass().getName(), - minimumRequiredServerVersion.toString()); - throw new ServiceVersionException(msg); - } - } - - /** - * Validates property version against the request version. - * - * @param service - * The Exchange service. - * @param minimumServerVersion - * The minimum server version - * @param propertyName - * The property name - * @throws ServiceVersionException - * The service version exception - */ - protected static void validatePropertyVersion( - ExchangeService service, - ExchangeVersion minimumServerVersion, - String propertyName) throws ServiceVersionException - { - if (service.getRequestedServerVersion().ordinal() < - minimumServerVersion.ordinal()) - { - throw new ServiceVersionException( - String.format( - Strings.PropertyIncompatibleWithRequestVersion, - propertyName, - minimumServerVersion)); - } + return new TimeSpan(retval); + + } + + /** + * Takes an xs:duration string as defined by the W3 Consortiums + * Recommendation "XML Schema Part 2: Datatypes Second Edition", + * http://www.w3.org/TR/xmlschema-2/#duration, and converts it into a + * System.TimeSpan structure This method uses the following approximations: + * 1 year = 365 days 1 month = 30 days Additionally, it only allows for four + * decimal points of seconds precision. + * + * @param xsDuration xs:duration string to convert + * @return System.TimeSpan structure + */ + protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { + // TODO: Need to check whether this should be the equivalent or not + Pattern timeSpanParser = Pattern.compile("-P"); + Matcher m = timeSpanParser.matcher(xsDuration); + boolean negative = false; + //System.out.println(m.find()); + if (m.find()) { + negative = true; } - - /** - * Validate method version. - * - * @param service - * the service - * @param minimumServerVersion - * the minimum server version - * @param methodName - * the method name - * @throws ServiceVersionException - * the service version exception - */ - protected static void validateMethodVersion(ExchangeService service, - ExchangeVersion minimumServerVersion, String methodName) - throws ServiceVersionException { - if (service.getRequestedServerVersion().ordinal() < - minimumServerVersion.ordinal()) - - { - throw new ServiceVersionException(String.format( - Strings.MethodIncompatibleWithRequestVersion, methodName, - minimumServerVersion)); - } - } - - /** - * Validates class version against the request version. - * - * @param service - * the service - * @param minimumServerVersion The minimum server version that supports the method. - * @param className Name of the class. - * @throws ServiceVersionException - */ - protected static void validateClassVersion( - ExchangeService service, - ExchangeVersion minimumServerVersion, - String className) throws ServiceVersionException - { - if (service.getRequestedServerVersion().ordinal() < - minimumServerVersion.ordinal()) - { - throw new ServiceVersionException( - String.format( - Strings.ClassIncompatibleWithRequestVersion, - className, - minimumServerVersion)); - } + + //System.out.println(m.find()); + // Year + m = Pattern.compile("(\\d+)Y").matcher(xsDuration); + //System.out.println(m.find()); + int year = 0; + if (m.find()) { + year = Integer.parseInt(m.group().substring(0, + m.group().indexOf("Y"))); } - /** - * Validates domain name (null value allowed) - * - * @param domainName - * Domain name. - * @param paramName Parameter name. - * @throws ArgumentException - */ - protected static void validateDomainNameAllowNull(String domainName, - String paramName) throws ArgumentException { - if (domainName != null) - { - Pattern domainNamePattern = Pattern.compile(DomainRegex); - Matcher domainNameMatcher = domainNamePattern.matcher(domainName); - if (!domainNameMatcher.find()) - { - throw new ArgumentException(String.format(Strings. - InvalidDomainName, domainName), paramName); - } + // Month + m = Pattern.compile("(\\d+)M").matcher(xsDuration); + //System.out.println(m.find()); + int month = 0; + if (m.find()) { + month = Integer.parseInt(m.group().substring(0, + m.group().indexOf("M"))); + } + + // Day + m = Pattern.compile("(\\d+)D").matcher(xsDuration); + + //System.out.println(m.find()); + + long day = 0; + if (m.find()) { + day = Integer.parseInt(m.group().substring(0, + m.group().indexOf("D"))); + } + + // Hour + m = Pattern.compile("(\\d+)H").matcher(xsDuration); + + //System.out.println(m.find()); + + int hour = 0; + if (m.find()) { + hour = Integer.parseInt(m.group().substring(0, + m.group().indexOf("H"))); + } + + // Minute + m = Pattern.compile("(\\d+)M").matcher(xsDuration); + + //System.out.println(m.find()); + + int minute = 0; + if (m.find()) { + minute = Integer.parseInt(m.group().substring(0, + m.group().indexOf("M"))); + } + + // Seconds + m = Pattern.compile("(\\d+).").matcher(xsDuration); + + //System.out.println(m.find()); + + int seconds = 0; + + // if (m.find()) + // seconds = Integer.parseInt(m.group().substring(0, + // m.group().indexOf("."))); + + + int milliseconds = 0; + m = Pattern.compile("(\\d+)S").matcher(xsDuration); + + //System.out.println(m.find()); + + if (m.find()) { + // Only allowed 4 digits of precision + if (m.group().length() > 5) { + milliseconds = Integer.parseInt(m.group().substring(0, 4)); + } else { + seconds = Integer.parseInt(m.group().substring(0, + m.group().indexOf("S"))); + } + } + + // Apply conversions of year and months to days. + // Year = 365 days + // Month = 30 days + // day = day + (year * 365) + (month * 30); + //TimeSpan retval = new TimeSpan(day, hour, minute, seconds, + // milliseconds); + + long retval = ((((((((day * 24) + hour) * 60) + minute) * 60) + + seconds) * 1000) + milliseconds); + // long retval=1010010; + if (negative) { + retval = -retval; + } + return new TimeSpan(retval); + + } + + + /** + * Time span to xs time. + * + * @param timeSpan the time span + * @return the string + */ + public static String timeSpanToXSTime(TimeSpan timeSpan) { + DecimalFormat myFormatter = new DecimalFormat("00"); + return String.format("%s:%s:%s", myFormatter.format(timeSpan.getHours()), myFormatter.format(timeSpan + .getMinutes()), myFormatter.format(timeSpan.getSeconds())); + } + + /** + * Gets the printable name of a CLR type. + * + * @param type The class. + * @return Printable name. + */ + public static String getPrintableTypeName(Class type) { + // Note: building array of generic parameters is + //done recursively. Each parameter could be any type. + Type[] genericArgs = type.getGenericInterfaces(); + if (genericArgs.length > 0) { + // Convert generic type to printable form (e.g. List) + String genericPrefix = type.getName().substring(0, + type.getName().indexOf('`')); + StringBuilder nameBuilder = new StringBuilder(genericPrefix); + + //List genericList = new ArrayList(); + StringBuffer genericArgsStr = new StringBuffer(); + for (int i = 0; i < genericArgs.length; i++) { + + if (!"".equals(genericArgsStr.toString())) { + genericArgsStr.append(","); } + genericArgsStr.append(getPrintableTypeName( + genericArgs[i].getClass())); + } + nameBuilder.append("<"); + nameBuilder.append(genericArgsStr.toString()); + nameBuilder.append(">"); + return nameBuilder.toString(); + } else if (type.isArray()) { + // Convert array type to printable form. + String arrayPrefix = type.getName().substring(0, + type.getName().indexOf('[')); + StringBuilder nameBuilder = + new StringBuilder(EwsUtilities. + getSimplifiedTypeName(arrayPrefix)); + + for (int rank = 0; rank < getDim(type); rank++) { + nameBuilder.append("[]"); + } + return nameBuilder.toString(); + } else { + return EwsUtilities.getSimplifiedTypeName(type.getName()); } - - /** - * Builds the enum dict. - * - * @param - * the element type - * @param c - * the c - * @return the map - */ - private static > Map - buildEnumDict(Class c) { - Map dict = - new HashMap(); - Field[] fields = c.getDeclaredFields(); - for (Field f : fields) { - if (f.isEnumConstant() - && f.isAnnotationPresent(RequiredServerVersion.class)) { - RequiredServerVersion ewsEnum = f - .getAnnotation(RequiredServerVersion.class); - String fieldName = f.getName(); - ExchangeVersion exchangeVersion = ewsEnum.version(); - dict.put(fieldName, exchangeVersion); - } - } - return dict; - } - - /** - * Builds the enum to schema mapping dictionary. - * - * @param c - * class type - * @return The mapping from enum to schema name - * - */ - private static Map buildEnumToSchemaDict(Class c) { - Map dict = new HashMap(); - Field[] fields = c.getFields(); - for (Field f : fields) { - if (f.isEnumConstant() && f.isAnnotationPresent(EwsEnum.class)) { - EwsEnum ewsEnum = f.getAnnotation(EwsEnum.class); - String fieldName = f.getName(); - String schemaName = ewsEnum.schemaName(); - if (!schemaName.isEmpty()) { - dict.put(fieldName, schemaName); - } - } - } - return dict; - } - - /** - * Gets the enumerated object count. - * - * @param - * the generic type - * @param objects - * The objects. - * @return Count of objects in iterator. - */ - protected static int getEnumeratedObjectCount(Iterator objects) { - int count = 0; - while (objects != null && objects.hasNext()) { - @SuppressWarnings("unused") - Object obj = objects.next(); - count++; - } - return count; - } - - /** - * Gets the enumerated object at. - * - * @param - * the generic type - * @param objects - * the objects - * @param index - * the index - * @return the enumerated object at - */ - protected static Object getEnumeratedObjectAt(Iterable objects, - int index) { - int count = 0; - for (Object obj : objects) { - if (count == index) { - return obj; - } - count++; - } - throw new IndexOutOfBoundsException( - Strings.IEnumerableDoesNotContainThatManyObject); - } - - - /** - * Count characters in string that match a condition. - * - * @param str - * The string. - * @param charPredicate - * Predicate to evaluate for each character in the string. - * @return Count of characters that match condition expressed by predicate. - * @throws ServiceLocalException - */ - protected static int countMatchingChars(String str, - IPredicate charPredicate) throws ServiceLocalException { - int count = 0; - for (int i = 0; i < str.length(); i++) { - if (charPredicate.predicate(Character.valueOf(str.charAt(i)))) { - count++; - } - } - - return count; - } - - /** - * Determines whether every element in the collection - * matches the conditions defined by the specified predicate. - * - * @param Entry type. - * @param collection The collection. - * @param predicate Predicate that defines the conditions to check against the elements. - * - * @return True if every element in the collection matches - * the conditions defined by the specified predicate; otherwise, false. - * @throws ServiceLocalException - */ - protected static boolean trueForAll(Iterable collection, - IPredicate predicate) throws ServiceLocalException { - for (T entry : collection) - { - if (!predicate.predicate(entry)) - { - return false; + } + + /** + * Gets the printable name of a CLR type. + * + * @param typeName The type name. + * @return Printable name. + */ + private static String getSimplifiedTypeName(String typeName) { + // If type has a shortname (e.g. int for Int32) map to the short name. + return typeNameToShortNameMap.getMember().containsKey(typeName) ? + typeNameToShortNameMap.getMember().get(typeName) : typeName; + } + + /** + * Gets the domain name from an email address. + * + * @param emailAddress The email address. + * @return Domain name. + * @throws FormatException the format exception + */ + protected static String domainFromEmailAddress(String emailAddress) + throws FormatException { + String[] emailAddressParts = emailAddress.split("@"); + + if (emailAddressParts.length != 2 + || (emailAddressParts[1] == null || emailAddressParts[1] + .isEmpty())) { + throw new FormatException(Strings.InvalidEmailAddress); + } + + return emailAddressParts[1]; + } + + public static int getDim(Object array) { + int dim = 0; + Class c = array.getClass(); + while (c.isArray()) { + c = c.getComponentType(); + dim++; + } + return (dim); + } + + /** + * Validates parameter (and allows null value). + * + * @param param The param. + * @param paramName Name of the param. + * @throws Exception the exception + */ + protected static void validateParamAllowNull(Object param, String paramName) + throws Exception { + if (param instanceof ISelfValidate) { + ISelfValidate selfValidate = (ISelfValidate) param; + try { + selfValidate.validate(); + } catch (ServiceValidationException e) { + throw new Exception(String.format("%s %s", + Strings.ValidationFailed, paramName), e); + } + } + + if (param instanceof ServiceObject) { + ServiceObject ewsObject = (ServiceObject) param; + if (ewsObject.isNew()) { + throw new Exception(String.format("%s %s", + Strings.ObjectDoesNotHaveId, paramName)); + } + } + } + + /** + * Validates parameter (null value not allowed). + * + * @param param The param. + * @param paramName Name of the param. + * @throws Exception the exception + */ + protected static void validateParam(Object param, String paramName) + throws Exception { + boolean isValid = false; + + if (param != null && param instanceof String) { + String strParam = (String) param; + isValid = !strParam.isEmpty(); + } else { + isValid = param != null; + } + + if (!isValid) { + throw new Exception(String.format("Argument %s not valid", + paramName)); + } + validateParamAllowNull(param, paramName); + } + + /** + * Validates parameter collection. + * + * @param the generic type + * @param collection The collection. + * @param paramName Name of the param. + * @throws Exception the exception + */ + protected static void validateParamCollection(Iterator collection, + String paramName) throws Exception { + + validateParam(collection, paramName); + + int count = 0; + + while (collection.hasNext()) { + T obj = collection.next(); + try { + validateParam(obj, String.format("collection[%d],", count)); + } catch (Exception e) { + throw new IllegalArgumentException(String.format( + "The element at position %d is invalid", count), e); + } + + count++; + } + + if (count == 0) { + throw new IllegalArgumentException(String.format( + Strings.CollectionIsEmpty, paramName)); + } + } + + /** + * Validates string parameter to be non-empty string (null value allowed). + * + * @param param The string parameter. + * @param paramName Name of the parameter. + * @throws ArgumentException + * @throws ServiceLocalException + */ + protected static void validateNonBlankStringParamAllowNull(String param, + String paramName) throws ArgumentException, ServiceLocalException { + if (param != null) { + // Non-empty string has at least one character + //which is *not* a whitespace character + if (param.length() == countMatchingChars(param, + new IPredicate() { + @Override + public boolean predicate(Character obj) { + return Character.isWhitespace(obj); } - } + })) { + throw new ArgumentException(Strings. + ArgumentIsBlankString, paramName); + } + } + } + + + /** + * Validates string parameter to be + * non-empty string (null value not allowed). + * + * @param param The string parameter. + * @param paramName Name of the parameter. + * @throws ArgumentNullException + * @throws ArgumentException + * @throws ServiceLocalException + */ + protected static void validateNonBlankStringParam(String param, + String paramName) throws ArgumentNullException, ArgumentException, ServiceLocalException { + if (param == null) { + throw new ArgumentNullException(paramName); + } - return true; + validateNonBlankStringParamAllowNull(param, paramName); + } + + /** + * Validate enum version value. + * + * @param enumValue the enum value + * @param requestVersion the request version + * @throws ServiceVersionException the service version exception + */ + protected static void validateEnumVersionValue(Enum enumValue, + ExchangeVersion requestVersion) throws ServiceVersionException { + Map enumVersionDict = enumVersionDictionaries + .getMember().get(enumValue.getClass()); + // String strValue = enumValue.toString(); + if (enumVersionDict.containsKey(enumValue.toString())) { + ExchangeVersion enumVersion = enumVersionDict.get(enumValue + .toString()); + int i = requestVersion.compareTo(enumVersion); + if (i < 0) { + throw new ServiceVersionException(String.format("%S,%S,%S,%S", + Strings.EnumValueIncompatibleWithRequestVersion, + enumValue.toString(), enumValue.getClass().getName(), + enumVersion)); + } + } + } + + /** + * Validates service object version against the request version. + * + * @param serviceObject The service object. + * @param requestVersion The request version. + * @throws ServiceVersionException Raised if this service object type requires a later version + * of Exchange. + */ + protected static void validateServiceObjectVersion( + ServiceObject serviceObject, ExchangeVersion requestVersion) + throws ServiceVersionException { + ExchangeVersion minimumRequiredServerVersion = serviceObject + .getMinimumRequiredServerVersion(); + + if (requestVersion.ordinal() < minimumRequiredServerVersion.ordinal()) { + String msg = String.format( + Strings.ObjectTypeIncompatibleWithRequestVersion, + serviceObject.getClass().getName(), + minimumRequiredServerVersion.toString()); + throw new ServiceVersionException(msg); } + } + + /** + * Validates property version against the request version. + * + * @param service The Exchange service. + * @param minimumServerVersion The minimum server version + * @param propertyName The property name + * @throws ServiceVersionException The service version exception + */ + protected static void validatePropertyVersion( + ExchangeService service, + ExchangeVersion minimumServerVersion, + String propertyName) throws ServiceVersionException { + if (service.getRequestedServerVersion().ordinal() < + minimumServerVersion.ordinal()) { + throw new ServiceVersionException( + String.format( + Strings.PropertyIncompatibleWithRequestVersion, + propertyName, + minimumServerVersion)); + } + } + + /** + * Validate method version. + * + * @param service the service + * @param minimumServerVersion the minimum server version + * @param methodName the method name + * @throws ServiceVersionException the service version exception + */ + protected static void validateMethodVersion(ExchangeService service, + ExchangeVersion minimumServerVersion, String methodName) + throws ServiceVersionException { + if (service.getRequestedServerVersion().ordinal() < + minimumServerVersion.ordinal()) - /** - * Call an action for each member of a collection. - * - * @param Collection element type. - * @param collection The collection. - * @param action The action to apply. - */ - protected static void forEach(Iterable collection, IAction action) { - for (T entry : collection) - { - action.action(entry); + throw new ServiceVersionException(String.format( + Strings.MethodIncompatibleWithRequestVersion, methodName, + minimumServerVersion)); + } + } + + /** + * Validates class version against the request version. + * + * @param service the service + * @param minimumServerVersion The minimum server version that supports the method. + * @param className Name of the class. + * @throws ServiceVersionException + */ + protected static void validateClassVersion( + ExchangeService service, + ExchangeVersion minimumServerVersion, + String className) throws ServiceVersionException { + if (service.getRequestedServerVersion().ordinal() < + minimumServerVersion.ordinal()) { + throw new ServiceVersionException( + String.format( + Strings.ClassIncompatibleWithRequestVersion, + className, + minimumServerVersion)); + } + } + + /** + * Validates domain name (null value allowed) + * + * @param domainName Domain name. + * @param paramName Parameter name. + * @throws ArgumentException + */ + protected static void validateDomainNameAllowNull(String domainName, + String paramName) throws ArgumentException { + if (domainName != null) { + Pattern domainNamePattern = Pattern.compile(DomainRegex); + Matcher domainNameMatcher = domainNamePattern.matcher(domainName); + if (!domainNameMatcher.find()) { + throw new ArgumentException(String.format(Strings. + InvalidDomainName, domainName), paramName); + } + } + } + + /** + * Builds the enum dict. + * + * @param the element type + * @param c the c + * @return the map + */ + private static > Map + buildEnumDict(Class c) { + Map dict = + new HashMap(); + Field[] fields = c.getDeclaredFields(); + for (Field f : fields) { + if (f.isEnumConstant() + && f.isAnnotationPresent(RequiredServerVersion.class)) { + RequiredServerVersion ewsEnum = f + .getAnnotation(RequiredServerVersion.class); + String fieldName = f.getName(); + ExchangeVersion exchangeVersion = ewsEnum.version(); + dict.put(fieldName, exchangeVersion); + } + } + return dict; + } + + /** + * Builds the enum to schema mapping dictionary. + * + * @param c class type + * @return The mapping from enum to schema name + */ + private static Map buildEnumToSchemaDict(Class c) { + Map dict = new HashMap(); + Field[] fields = c.getFields(); + for (Field f : fields) { + if (f.isEnumConstant() && f.isAnnotationPresent(EwsEnum.class)) { + EwsEnum ewsEnum = f.getAnnotation(EwsEnum.class); + String fieldName = f.getName(); + String schemaName = ewsEnum.schemaName(); + if (!schemaName.isEmpty()) { + dict.put(fieldName, schemaName); } + } + } + return dict; + } + + /** + * Gets the enumerated object count. + * + * @param the generic type + * @param objects The objects. + * @return Count of objects in iterator. + */ + protected static int getEnumeratedObjectCount(Iterator objects) { + int count = 0; + while (objects != null && objects.hasNext()) { + @SuppressWarnings("unused") + Object obj = objects.next(); + count++; + } + return count; + } + + /** + * Gets the enumerated object at. + * + * @param the generic type + * @param objects the objects + * @param index the index + * @return the enumerated object at + */ + protected static Object getEnumeratedObjectAt(Iterable objects, + int index) { + int count = 0; + for (Object obj : objects) { + if (count == index) { + return obj; + } + count++; + } + throw new IndexOutOfBoundsException( + Strings.IEnumerableDoesNotContainThatManyObject); + } + + + /** + * Count characters in string that match a condition. + * + * @param str The string. + * @param charPredicate Predicate to evaluate for each character in the string. + * @return Count of characters that match condition expressed by predicate. + * @throws ServiceLocalException + */ + protected static int countMatchingChars(String str, + IPredicate charPredicate) throws ServiceLocalException { + int count = 0; + for (int i = 0; i < str.length(); i++) { + if (charPredicate.predicate(Character.valueOf(str.charAt(i)))) { + count++; + } + } + + return count; + } + + /** + * Determines whether every element in the collection + * matches the conditions defined by the specified predicate. + * + * @param Entry type. + * @param collection The collection. + * @param predicate Predicate that defines the conditions to check against the elements. + * @return True if every element in the collection matches + * the conditions defined by the specified predicate; otherwise, false. + * @throws ServiceLocalException + */ + protected static boolean trueForAll(Iterable collection, + IPredicate predicate) throws ServiceLocalException { + for (T entry : collection) { + if (!predicate.predicate(entry)) { + return false; + } + } + + return true; + } + + /** + * Call an action for each member of a collection. + * + * @param Collection element type. + * @param collection The collection. + * @param action The action to apply. + */ + protected static void forEach(Iterable collection, IAction action) { + for (T entry : collection) { + action.action(entry); } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java index 02abbf7e3..536bdad9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java @@ -12,65 +12,68 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * EwsX509TrustManager is used for SSL handshake. - * + * */ +import javax.net.ssl.TrustManager; +import javax.net.ssl.TrustManagerFactory; +import javax.net.ssl.X509TrustManager; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; -import javax.net.ssl.TrustManager; -import javax.net.ssl.TrustManagerFactory; -import javax.net.ssl.X509TrustManager; - -class EwsX509TrustManager implements X509TrustManager -{ - /** The Standard TrustManager. */ - private X509TrustManager standardTrustManager = null; +class EwsX509TrustManager implements X509TrustManager { + /** + * The Standard TrustManager. + */ + private X509TrustManager standardTrustManager = null; - /** - * Constructor for EasyX509TrustManager. - */ - public EwsX509TrustManager(KeyStore keystore, TrustManager trustManager) throws NoSuchAlgorithmException, KeyStoreException { - super(); - if(trustManager == null) { - TrustManagerFactory factory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - factory.init(keystore); - TrustManager[] trustmanagers = factory.getTrustManagers(); - if (trustmanagers.length == 0) { - throw new NoSuchAlgorithmException("no trust manager found"); - } - this.standardTrustManager = (X509TrustManager)trustmanagers[0]; - } - else { - standardTrustManager = (X509TrustManager) trustManager; - } - } + /** + * Constructor for EasyX509TrustManager. + */ + public EwsX509TrustManager(KeyStore keystore, TrustManager trustManager) + throws NoSuchAlgorithmException, KeyStoreException { + super(); + if (trustManager == null) { + TrustManagerFactory factory = + TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + factory.init(keystore); + TrustManager[] trustmanagers = factory.getTrustManagers(); + if (trustmanagers.length == 0) { + throw new NoSuchAlgorithmException("no trust manager found"); + } + this.standardTrustManager = (X509TrustManager) trustmanagers[0]; + } else { + standardTrustManager = (X509TrustManager) trustManager; + } + } - /** - * @see javax.net.ssl.X509TrustManager#checkClientTrusted(java.security.cert.X509Certificate[],String authType) - */ - public void checkClientTrusted(X509Certificate[] certificates,String authType) throws CertificateException { - standardTrustManager.checkClientTrusted(certificates,authType); - } + /** + * @see javax.net.ssl.X509TrustManager#checkClientTrusted(java.security.cert.X509Certificate[], String authType) + */ + public void checkClientTrusted(X509Certificate[] certificates, String authType) + throws CertificateException { + standardTrustManager.checkClientTrusted(certificates, authType); + } - /** - * @see javax.net.ssl.X509TrustManager#checkServerTrusted(java.security.cert.X509Certificate[],String authType) - */ - public void checkServerTrusted(X509Certificate[] certificates,String authType) throws CertificateException { + /** + * @see javax.net.ssl.X509TrustManager#checkServerTrusted(java.security.cert.X509Certificate[], String authType) + */ + public void checkServerTrusted(X509Certificate[] certificates, String authType) + throws CertificateException { - if ((certificates != null) && (certificates.length == 1)) { - certificates[0].checkValidity(); - } else { - standardTrustManager.checkServerTrusted(certificates,authType); - } - } + if ((certificates != null) && (certificates.length == 1)) { + certificates[0].checkValidity(); + } else { + standardTrustManager.checkServerTrusted(certificates, authType); + } + } - /** - * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers() - */ - public X509Certificate[] getAcceptedIssuers() { - return this.standardTrustManager.getAcceptedIssuers(); - } + /** + * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers() + */ + public X509Certificate[] getAcceptedIssuers() { + return this.standardTrustManager.getAcceptedIssuers(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 72a5a1aec..c18d98a83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -10,1179 +10,1074 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; - import javax.xml.namespace.QName; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamConstants; import javax.xml.stream.XMLStreamException; -import javax.xml.stream.events.Attribute; -import javax.xml.stream.events.Characters; -import javax.xml.stream.events.EndElement; -import javax.xml.stream.events.StartElement; -import javax.xml.stream.events.XMLEvent; +import javax.xml.stream.events.*; +import java.io.*; /** * Defines the EwsXmlReader class. - * - * */ class EwsXmlReader { - /** The Read write buffer size. */ - private static final int ReadWriteBufferSize = 4096; - - /** The xml reader. */ - private XMLEventReader xmlReader = null; - - /** The present event. */ - private XMLEvent presentEvent; - - /** The prev event. */ - private XMLEvent prevEvent; - - /** - * Initializes a new instance of the EwsXmlReader class. - * - * @param stream - * the stream - * @throws Exception - */ - public EwsXmlReader(InputStream stream) throws Exception { - this.xmlReader = initializeXmlReader(stream); - } - - /** - * Initializes the XML reader. - * - * @param stream - * the stream - * @return An XML reader to use. - * @throws Exception - */ - protected XMLEventReader initializeXmlReader(InputStream stream) - throws XMLStreamException, Exception { - - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); - inputFactory.setProperty(XMLInputFactory.SUPPORT_DTD,false); - //inputFactory.setProperty(XMLInputFactory.RESOLVER, null); - - return inputFactory.createXMLEventReader(stream); - } - - - /** - * Formats the name of the element. - * - * @param namespacePrefix - * The namespace prefix - * @param localElementName - * Element name - * @return the string - */ - private static String formatElementName(String namespacePrefix, - String localElementName) { - - return isNullOrEmpty(namespacePrefix) ? localElementName : - namespacePrefix + ":" + localElementName; - } - - /** - * Read XML element. - * - * @param xmlNamespace - * The XML namespace - * @param localName - * Name of the local - * @param nodeType - * Type of the node - * @throws Exception - * the exception - */ - private void internalReadElement(XmlNamespace xmlNamespace, - String localName, XmlNodeType nodeType) throws Exception { - - if (xmlNamespace == XmlNamespace.NotSpecified) { - this.internalReadElement("", localName, nodeType); - } else { - this.read(nodeType); - - if ((!this.getLocalName().equals(localName)) || - (!this.getNamespaceUri().equals(EwsUtilities - .getNamespaceUri(xmlNamespace)))) { - throw new ServiceXmlDeserializationException( - String - .format( - Strings.UnexpectedElement, - EwsUtilities - .getNamespacePrefix( - xmlNamespace), - localName, nodeType.toString(), this - .getName(), this.getNodeType() - .toString())); - } - } - } - - /** - * Read XML element. - * - * @param namespacePrefix - * The namespace prefix - * @param localName - * Name of the local - * @param nodeType - * Type of the node - * @throws Exception - * the exception - */ - private void internalReadElement(String namespacePrefix, String localName, - XmlNodeType nodeType) throws Exception { - read(nodeType); - - if ((!this.getLocalName().equals(localName)) || - (!this.getNamespacePrefix().equals(namespacePrefix))) { - throw new ServiceXmlDeserializationException(String.format( - Strings.UnexpectedElement, namespacePrefix, localName, - nodeType.toString(), this.getName(), this.getNodeType() - .toString())); - } - } - - /** - * Reads the specified node type. - * - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public void read() throws ServiceXmlDeserializationException, - XMLStreamException { - // The caller to EwsXmlReader.Read expects - // that there's another node to - // read. Throw an exception if not true. - while (true) { - if (!xmlReader.hasNext()) { - throw new ServiceXmlDeserializationException( - Strings.UnexpectedEndOfXmlDocument); - } else { - XMLEvent event = xmlReader.nextEvent(); - if (event.getEventType() == XMLStreamConstants.CHARACTERS) { - Characters characters = (Characters) event; - if (characters.isIgnorableWhiteSpace() - || characters.isWhiteSpace()) - continue; - } - this.prevEvent = this.presentEvent; - this.presentEvent = event; - break; - } - } - } - - /** - * Reads the specified node type. - * - * @param nodeType - * Type of the node. - * @throws Exception - * the exception - */ - public void read(XmlNodeType nodeType) throws Exception { - this.read(); - if (!this.getNodeType().equals(nodeType)) { - throw new ServiceXmlDeserializationException(String - .format(Strings.UnexpectedElementType, nodeType, this - .getNodeType())); - } - } - - /** - * Read attribute value from QName. - * - * @param qName - * QName of the attribute - * @return Attribute Value - * @throws Exception - * thrown if attribute value can not be read - */ - private String readAttributeValue(QName qName) throws Exception { - if (this.presentEvent.isStartElement()) { - StartElement startElement = this.presentEvent.asStartElement(); - Attribute attr = startElement.getAttributeByName(qName); - if (null != attr) { - return attr.getValue(); - } else { - return null; - } - } else { - String errMsg = String.format("Could not fetch attribute %s", qName - .toString()); - throw new Exception(errMsg); - } - } - - /** - * Reads the attribute value. - * - * @param xmlNamespace - * The XML namespace. - * @param attributeName - * Name of the attribute - * @return Attribute Value - * @throws Exception - * the exception - */ - public String readAttributeValue(XmlNamespace xmlNamespace, - String attributeName) throws Exception { - if (xmlNamespace == XmlNamespace.NotSpecified) { - return this.readAttributeValue(attributeName); - } else { - QName qName = new QName(EwsUtilities.getNamespaceUri(xmlNamespace), - attributeName); - return readAttributeValue(qName); - } - } - - /** - * Reads the attribute value. - * - * @param attributeName - * Name of the attribute - * @return Attribute value. - * @throws Exception - * the exception - */ - public String readAttributeValue(String attributeName) throws Exception { - QName qName = new QName(attributeName); - return readAttributeValue(qName); - } - - /** - * Reads the attribute value. - * - * @param - * the generic type - * @param cls - * the cls - * @param attributeName - * the attribute name - * @return T - * @throws Exception - * the exception - */ - public T readAttributeValue(Class cls, String attributeName) - throws Exception { - return EwsUtilities.parse(cls, this.readAttributeValue(attributeName)); - } - - /** - * Reads a nullable attribute value. - * - * @param - * the generic type - * @param cls - * the cls - * @param attributeName - * the attribute name - * @return T - * @throws Exception - * the exception - */ - public T readNullableAttributeValue(Class cls, String attributeName) - throws Exception { - String attributeValue = this.readAttributeValue(attributeName); - if (attributeValue == null) { - return null; - } else { - return EwsUtilities.parse(cls, attributeValue); - } - } - - /** - * Reads the element value. - * - * @param namespacePrefix - * the namespace prefix - * @param localName - * the local name - * @return String - * @throws Exception - * the exception - */ - public String readElementValue(String namespacePrefix, String localName) - throws Exception { - if (!this.isStartElement(namespacePrefix, localName)) { - this.readStartElement(namespacePrefix, localName); - } - - String value = null; - - if (!this.isEmptyElement()) { - value = this.readValue(); - } - return value; - } - - /** - * Reads the element value. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @return String - * @throws Exception - * the exception - */ - public String readElementValue(XmlNamespace xmlNamespace, String localName) - throws Exception { - - if (!this.isStartElement(xmlNamespace, localName)) { - this.readStartElement(xmlNamespace, localName); - } - - String value = null; - - if (!this.isEmptyElement()) { - value = this.readValue(); - } else - this.read(); - - return value; - } - - /** - * Read element value. - * - * @return String - * @throws Exception - * the exception - */ - public String readElementValue() throws Exception { - this.ensureCurrentNodeIsStartElement(); - - return this.readElementValue(this.getNamespacePrefix(), this - .getLocalName()); - } - - /** - * Reads the element value. - * - * @param - * the generic type - * @param cls - * the cls - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @return T - * @throws Exception - * the exception - */ - public T readElementValue(Class cls, XmlNamespace xmlNamespace, - String localName) throws Exception { - if (!this.isStartElement(xmlNamespace, localName)) { - this.readStartElement(xmlNamespace, localName); - } - - T value = null; - - if (!this.isEmptyElement()) { - value = this.readValue(cls); - } - - return value; - } - - /** - * Read element value. - * - * @param - * the generic type - * @param cls - * the cls - * @return T - * @throws Exception - * the exception - */ - public T readElementValue(Class cls) throws Exception { - this.ensureCurrentNodeIsStartElement(); - - T value = null; - - if (!this.isEmptyElement()) { - value = this.readValue(cls); - } - - return value; - } - - /** - * Reads the value. Should return content element or text node as string - * Present event must be START ELEMENT. After executing this function - * Present event will be set on END ELEMENT - * - * @return String - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - public String readValue() throws XMLStreamException, - ServiceXmlDeserializationException { - String errMsg = String.format("Could not read value from %s.", - XmlNodeType.getString(this.presentEvent.getEventType())); - if (this.presentEvent.isStartElement()) { - // Go to next event and check for Characters event - this.read(); - if (this.presentEvent.isCharacters()) { - StringBuffer elementValue = new StringBuffer(); - do { - if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { - Characters characters = (Characters) this.presentEvent; - if (!characters.isIgnorableWhiteSpace() - && !characters.isWhiteSpace()) { - if (characters.getData().length() != 0) { - elementValue.append(characters.getData()); - } - } - } - this.read(); - } while (!this.presentEvent.isEndElement()); - // Characters chars = this.presentEvent.asCharacters(); - // String elementValue = chars.getData(); - // Advance to next event post Characters (ideally it will be End - // Element) - // this.read(); - return elementValue.toString(); - } else { - errMsg = errMsg + "Could not find " - + XmlNodeType.getString(XmlNodeType.CHARACTERS); - throw new ServiceXmlDeserializationException(errMsg); - } - } else if (this.presentEvent.getEventType() == XmlNodeType.CHARACTERS - && this.presentEvent.isCharacters()) { - /* + /** + * The Read write buffer size. + */ + private static final int ReadWriteBufferSize = 4096; + + /** + * The xml reader. + */ + private XMLEventReader xmlReader = null; + + /** + * The present event. + */ + private XMLEvent presentEvent; + + /** + * The prev event. + */ + private XMLEvent prevEvent; + + /** + * Initializes a new instance of the EwsXmlReader class. + * + * @param stream the stream + * @throws Exception + */ + public EwsXmlReader(InputStream stream) throws Exception { + this.xmlReader = initializeXmlReader(stream); + } + + /** + * Initializes the XML reader. + * + * @param stream the stream + * @return An XML reader to use. + * @throws Exception + */ + protected XMLEventReader initializeXmlReader(InputStream stream) + throws XMLStreamException, Exception { + + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + inputFactory.setProperty(XMLInputFactory.SUPPORT_DTD, false); + //inputFactory.setProperty(XMLInputFactory.RESOLVER, null); + + return inputFactory.createXMLEventReader(stream); + } + + + /** + * Formats the name of the element. + * + * @param namespacePrefix The namespace prefix + * @param localElementName Element name + * @return the string + */ + private static String formatElementName(String namespacePrefix, + String localElementName) { + + return isNullOrEmpty(namespacePrefix) ? localElementName : + namespacePrefix + ":" + localElementName; + } + + /** + * Read XML element. + * + * @param xmlNamespace The XML namespace + * @param localName Name of the local + * @param nodeType Type of the node + * @throws Exception the exception + */ + private void internalReadElement(XmlNamespace xmlNamespace, + String localName, XmlNodeType nodeType) throws Exception { + + if (xmlNamespace == XmlNamespace.NotSpecified) { + this.internalReadElement("", localName, nodeType); + } else { + this.read(nodeType); + + if ((!this.getLocalName().equals(localName)) || + (!this.getNamespaceUri().equals(EwsUtilities + .getNamespaceUri(xmlNamespace)))) { + throw new ServiceXmlDeserializationException( + String + .format( + Strings.UnexpectedElement, + EwsUtilities + .getNamespacePrefix( + xmlNamespace), + localName, nodeType.toString(), this + .getName(), this.getNodeType() + .toString())); + } + } + } + + /** + * Read XML element. + * + * @param namespacePrefix The namespace prefix + * @param localName Name of the local + * @param nodeType Type of the node + * @throws Exception the exception + */ + private void internalReadElement(String namespacePrefix, String localName, + XmlNodeType nodeType) throws Exception { + read(nodeType); + + if ((!this.getLocalName().equals(localName)) || + (!this.getNamespacePrefix().equals(namespacePrefix))) { + throw new ServiceXmlDeserializationException(String.format( + Strings.UnexpectedElement, namespacePrefix, localName, + nodeType.toString(), this.getName(), this.getNodeType() + .toString())); + } + } + + /** + * Reads the specified node type. + * + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public void read() throws ServiceXmlDeserializationException, + XMLStreamException { + // The caller to EwsXmlReader.Read expects + // that there's another node to + // read. Throw an exception if not true. + while (true) { + if (!xmlReader.hasNext()) { + throw new ServiceXmlDeserializationException( + Strings.UnexpectedEndOfXmlDocument); + } else { + XMLEvent event = xmlReader.nextEvent(); + if (event.getEventType() == XMLStreamConstants.CHARACTERS) { + Characters characters = (Characters) event; + if (characters.isIgnorableWhiteSpace() + || characters.isWhiteSpace()) { + continue; + } + } + this.prevEvent = this.presentEvent; + this.presentEvent = event; + break; + } + } + } + + /** + * Reads the specified node type. + * + * @param nodeType Type of the node. + * @throws Exception the exception + */ + public void read(XmlNodeType nodeType) throws Exception { + this.read(); + if (!this.getNodeType().equals(nodeType)) { + throw new ServiceXmlDeserializationException(String + .format(Strings.UnexpectedElementType, nodeType, this + .getNodeType())); + } + } + + /** + * Read attribute value from QName. + * + * @param qName QName of the attribute + * @return Attribute Value + * @throws Exception thrown if attribute value can not be read + */ + private String readAttributeValue(QName qName) throws Exception { + if (this.presentEvent.isStartElement()) { + StartElement startElement = this.presentEvent.asStartElement(); + Attribute attr = startElement.getAttributeByName(qName); + if (null != attr) { + return attr.getValue(); + } else { + return null; + } + } else { + String errMsg = String.format("Could not fetch attribute %s", qName + .toString()); + throw new Exception(errMsg); + } + } + + /** + * Reads the attribute value. + * + * @param xmlNamespace The XML namespace. + * @param attributeName Name of the attribute + * @return Attribute Value + * @throws Exception the exception + */ + public String readAttributeValue(XmlNamespace xmlNamespace, + String attributeName) throws Exception { + if (xmlNamespace == XmlNamespace.NotSpecified) { + return this.readAttributeValue(attributeName); + } else { + QName qName = new QName(EwsUtilities.getNamespaceUri(xmlNamespace), + attributeName); + return readAttributeValue(qName); + } + } + + /** + * Reads the attribute value. + * + * @param attributeName Name of the attribute + * @return Attribute value. + * @throws Exception the exception + */ + public String readAttributeValue(String attributeName) throws Exception { + QName qName = new QName(attributeName); + return readAttributeValue(qName); + } + + /** + * Reads the attribute value. + * + * @param the generic type + * @param cls the cls + * @param attributeName the attribute name + * @return T + * @throws Exception the exception + */ + public T readAttributeValue(Class cls, String attributeName) + throws Exception { + return EwsUtilities.parse(cls, this.readAttributeValue(attributeName)); + } + + /** + * Reads a nullable attribute value. + * + * @param the generic type + * @param cls the cls + * @param attributeName the attribute name + * @return T + * @throws Exception the exception + */ + public T readNullableAttributeValue(Class cls, String attributeName) + throws Exception { + String attributeValue = this.readAttributeValue(attributeName); + if (attributeValue == null) { + return null; + } else { + return EwsUtilities.parse(cls, attributeValue); + } + } + + /** + * Reads the element value. + * + * @param namespacePrefix the namespace prefix + * @param localName the local name + * @return String + * @throws Exception the exception + */ + public String readElementValue(String namespacePrefix, String localName) + throws Exception { + if (!this.isStartElement(namespacePrefix, localName)) { + this.readStartElement(namespacePrefix, localName); + } + + String value = null; + + if (!this.isEmptyElement()) { + value = this.readValue(); + } + return value; + } + + /** + * Reads the element value. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return String + * @throws Exception the exception + */ + public String readElementValue(XmlNamespace xmlNamespace, String localName) + throws Exception { + + if (!this.isStartElement(xmlNamespace, localName)) { + this.readStartElement(xmlNamespace, localName); + } + + String value = null; + + if (!this.isEmptyElement()) { + value = this.readValue(); + } else { + this.read(); + } + + return value; + } + + /** + * Read element value. + * + * @return String + * @throws Exception the exception + */ + public String readElementValue() throws Exception { + this.ensureCurrentNodeIsStartElement(); + + return this.readElementValue(this.getNamespacePrefix(), this + .getLocalName()); + } + + /** + * Reads the element value. + * + * @param the generic type + * @param cls the cls + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return T + * @throws Exception the exception + */ + public T readElementValue(Class cls, XmlNamespace xmlNamespace, + String localName) throws Exception { + if (!this.isStartElement(xmlNamespace, localName)) { + this.readStartElement(xmlNamespace, localName); + } + + T value = null; + + if (!this.isEmptyElement()) { + value = this.readValue(cls); + } + + return value; + } + + /** + * Read element value. + * + * @param the generic type + * @param cls the cls + * @return T + * @throws Exception the exception + */ + public T readElementValue(Class cls) throws Exception { + this.ensureCurrentNodeIsStartElement(); + + T value = null; + + if (!this.isEmptyElement()) { + value = this.readValue(cls); + } + + return value; + } + + /** + * Reads the value. Should return content element or text node as string + * Present event must be START ELEMENT. After executing this function + * Present event will be set on END ELEMENT + * + * @return String + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + public String readValue() throws XMLStreamException, + ServiceXmlDeserializationException { + String errMsg = String.format("Could not read value from %s.", + XmlNodeType.getString(this.presentEvent.getEventType())); + if (this.presentEvent.isStartElement()) { + // Go to next event and check for Characters event + this.read(); + if (this.presentEvent.isCharacters()) { + StringBuffer elementValue = new StringBuffer(); + do { + if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { + Characters characters = (Characters) this.presentEvent; + if (!characters.isIgnorableWhiteSpace() + && !characters.isWhiteSpace()) { + if (characters.getData().length() != 0) { + elementValue.append(characters.getData()); + } + } + } + this.read(); + } while (!this.presentEvent.isEndElement()); + // Characters chars = this.presentEvent.asCharacters(); + // String elementValue = chars.getData(); + // Advance to next event post Characters (ideally it will be End + // Element) + // this.read(); + return elementValue.toString(); + } else { + errMsg = errMsg + "Could not find " + + XmlNodeType.getString(XmlNodeType.CHARACTERS); + throw new ServiceXmlDeserializationException(errMsg); + } + } else if (this.presentEvent.getEventType() == XmlNodeType.CHARACTERS + && this.presentEvent.isCharacters()) { + /* * if(this.presentEvent.asCharacters().getData().equals("<")) { */ - StringBuffer data = new StringBuffer(this.presentEvent - .asCharacters().getData()); - do { - this.read(); - if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { - Characters characters = (Characters) this.presentEvent; - if (!characters.isIgnorableWhiteSpace() - && !characters.isWhiteSpace()) { - if (characters.getData().length() != 0) { - data.append(characters.getData()); - } - } - } - } while (!this.presentEvent.isEndElement()); - return data.toString();// this.presentEvent. = new XMLEvent(); + StringBuffer data = new StringBuffer(this.presentEvent + .asCharacters().getData()); + do { + this.read(); + if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { + Characters characters = (Characters) this.presentEvent; + if (!characters.isIgnorableWhiteSpace() + && !characters.isWhiteSpace()) { + if (characters.getData().length() != 0) { + data.append(characters.getData()); + } + } + } + } while (!this.presentEvent.isEndElement()); + return data.toString();// this.presentEvent. = new XMLEvent(); /* * } else { Characters chars = this.presentEvent.asCharacters(); * String elementValue = chars.getData(); // Advance to next event * post Characters (ideally it will be End // Element) this.read(); * return elementValue; } */ - } else { - errMsg = errMsg + "Expected is " - + XmlNodeType.getString(XmlNodeType.START_ELEMENT); - throw new ServiceXmlDeserializationException(errMsg); - } - - } - - /** - * Tries to read value. - * - * @param value - * the value - * @return boolean - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - public boolean tryReadValue(OutParam value) - throws XMLStreamException, ServiceXmlDeserializationException { - if (!this.isEmptyElement()) { - this.read(); - - if (this.presentEvent.isCharacters()) { - value.setParam(this.readValue()); - return true; - } else { - return false; - } - } else { - return false; - } - } - - /** - * Reads the value. - * - * @param - * the generic type - * @param cls - * the cls - * @return T - * @throws Exception - * the exception - */ - public T readValue(Class cls) throws Exception { - return EwsUtilities.parse(cls, this.readValue()); - } - - /** - * Reads the base64 element value. - * - * @return byte[] - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - public byte[] readBase64ElementValue() - throws ServiceXmlDeserializationException, XMLStreamException, - IOException { - this.ensureCurrentNodeIsStartElement(); - - byte[] buffer = null; - - ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream(); - - buffer = Base64EncoderStream.decode(this.xmlReader.getElementText() - .toString()); - byteArrayStream.write(buffer); - - return byteArrayStream.toByteArray(); - - } - - /** - * Reads the base64 element value. - * - * @param outputStream - * the output stream - * @throws Exception - * the exception - */ - public void readBase64ElementValue(OutputStream outputStream) - throws Exception { - this.ensureCurrentNodeIsStartElement(); - - byte[] buffer = null; - buffer = Base64EncoderStream.decode(this.xmlReader.getElementText() - .toString()); - outputStream.write(buffer); - outputStream.flush(); - } - - /** - * Reads the start element. - * - * @param namespacePrefix - * the namespace prefix - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void readStartElement(String namespacePrefix, String localName) - throws Exception { - this.internalReadElement(namespacePrefix, localName, new XmlNodeType( - XmlNodeType.START_ELEMENT)); - } - - /** - * Reads the start element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void readStartElement(XmlNamespace xmlNamespace, String localName) - throws Exception { - this.internalReadElement(xmlNamespace, localName, new XmlNodeType( - XmlNodeType.START_ELEMENT)); - } - - /** - * Reads the end element. - * - * @param namespacePrefix - * the namespace prefix - * @param elementName - * the element name - * @throws Exception - * the exception - */ - public void readEndElement(String namespacePrefix, String elementName) - throws Exception { - this.internalReadElement(namespacePrefix, elementName, new XmlNodeType( - XmlNodeType.END_ELEMENT)); - } - - /** - * Reads the end element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void readEndElement(XmlNamespace xmlNamespace, String localName) - throws Exception { - - this.internalReadElement(xmlNamespace, localName, new XmlNodeType( - XmlNodeType.END_ELEMENT)); - - } - - /** - * Reads the end element if necessary. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void readEndElementIfNecessary(XmlNamespace xmlNamespace, - String localName) throws Exception { - - if (!(this.isStartElement(xmlNamespace, localName) && this - .isEmptyElement())) { - if (!this.isEndElement(xmlNamespace, localName)) { - this.readEndElement(xmlNamespace, localName); - } - } - } - - /** - * Determines whether current element is a start element. - * - * @return boolean - */ - public boolean isStartElement() { - return this.presentEvent.isStartElement(); - } - - /** - * Determines whether current element is a start element. - * - * @param namespacePrefix - * the namespace prefix - * @param localName - * the local name - * @return boolean - */ - public boolean isStartElement(String namespacePrefix, String localName) { - boolean isStart = false; - if (this.presentEvent.isStartElement()) { - StartElement startElement = this.presentEvent.asStartElement(); - QName qName = startElement.getName(); - isStart = qName.getLocalPart().equals(localName) - && qName.getPrefix().equals(namespacePrefix); - } - return isStart; - } - - /** - * Determines whether current element is a start element. - * - * @param xmlNamespace the xml namespace - * @param localName the local name - * @return true for matching start element; false otherwise. - */ - public boolean isStartElement(XmlNamespace xmlNamespace, String localName) { - return this.isStartElement() - && EwsUtilities.stringEquals(this.getLocalName(), localName) - && (EwsUtilities.stringEquals(this.getNamespacePrefix(), EwsUtilities.getNamespacePrefix(xmlNamespace)) || - EwsUtilities.stringEquals(this.getNamespaceUri(), EwsUtilities.getNamespaceUri(xmlNamespace))); - } - - /** - * Determines whether current element is a end element. - * - * @param namespacePrefix - * the namespace prefix - * @param localName - * the local name - * @return boolean - */ - public boolean isEndElement(String namespacePrefix, String localName) { - boolean isEndElement = false; - if (this.presentEvent.isEndElement()) { - EndElement endElement = this.presentEvent.asEndElement(); - QName qName = endElement.getName(); - isEndElement = qName.getLocalPart().equals(localName) - && qName.getPrefix().equals(namespacePrefix); - - } - return isEndElement; - } - - /** - * Determines whether current element is a end element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @return boolean - */ - public boolean isEndElement(XmlNamespace xmlNamespace, String localName) { - - boolean isEndElement = false; + } else { + errMsg = errMsg + "Expected is " + + XmlNodeType.getString(XmlNodeType.START_ELEMENT); + throw new ServiceXmlDeserializationException(errMsg); + } + + } + + /** + * Tries to read value. + * + * @param value the value + * @return boolean + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + public boolean tryReadValue(OutParam value) + throws XMLStreamException, ServiceXmlDeserializationException { + if (!this.isEmptyElement()) { + this.read(); + + if (this.presentEvent.isCharacters()) { + value.setParam(this.readValue()); + return true; + } else { + return false; + } + } else { + return false; + } + } + + /** + * Reads the value. + * + * @param the generic type + * @param cls the cls + * @return T + * @throws Exception the exception + */ + public T readValue(Class cls) throws Exception { + return EwsUtilities.parse(cls, this.readValue()); + } + + /** + * Reads the base64 element value. + * + * @return byte[] + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + public byte[] readBase64ElementValue() + throws ServiceXmlDeserializationException, XMLStreamException, + IOException { + this.ensureCurrentNodeIsStartElement(); + + byte[] buffer = null; + + ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream(); + + buffer = Base64EncoderStream.decode(this.xmlReader.getElementText() + .toString()); + byteArrayStream.write(buffer); + + return byteArrayStream.toByteArray(); + + } + + /** + * Reads the base64 element value. + * + * @param outputStream the output stream + * @throws Exception the exception + */ + public void readBase64ElementValue(OutputStream outputStream) + throws Exception { + this.ensureCurrentNodeIsStartElement(); + + byte[] buffer = null; + buffer = Base64EncoderStream.decode(this.xmlReader.getElementText() + .toString()); + outputStream.write(buffer); + outputStream.flush(); + } + + /** + * Reads the start element. + * + * @param namespacePrefix the namespace prefix + * @param localName the local name + * @throws Exception the exception + */ + public void readStartElement(String namespacePrefix, String localName) + throws Exception { + this.internalReadElement(namespacePrefix, localName, new XmlNodeType( + XmlNodeType.START_ELEMENT)); + } + + /** + * Reads the start element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws Exception the exception + */ + public void readStartElement(XmlNamespace xmlNamespace, String localName) + throws Exception { + this.internalReadElement(xmlNamespace, localName, new XmlNodeType( + XmlNodeType.START_ELEMENT)); + } + + /** + * Reads the end element. + * + * @param namespacePrefix the namespace prefix + * @param elementName the element name + * @throws Exception the exception + */ + public void readEndElement(String namespacePrefix, String elementName) + throws Exception { + this.internalReadElement(namespacePrefix, elementName, new XmlNodeType( + XmlNodeType.END_ELEMENT)); + } + + /** + * Reads the end element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws Exception the exception + */ + public void readEndElement(XmlNamespace xmlNamespace, String localName) + throws Exception { + + this.internalReadElement(xmlNamespace, localName, new XmlNodeType( + XmlNodeType.END_ELEMENT)); + + } + + /** + * Reads the end element if necessary. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws Exception the exception + */ + public void readEndElementIfNecessary(XmlNamespace xmlNamespace, + String localName) throws Exception { + + if (!(this.isStartElement(xmlNamespace, localName) && this + .isEmptyElement())) { + if (!this.isEndElement(xmlNamespace, localName)) { + this.readEndElement(xmlNamespace, localName); + } + } + } + + /** + * Determines whether current element is a start element. + * + * @return boolean + */ + public boolean isStartElement() { + return this.presentEvent.isStartElement(); + } + + /** + * Determines whether current element is a start element. + * + * @param namespacePrefix the namespace prefix + * @param localName the local name + * @return boolean + */ + public boolean isStartElement(String namespacePrefix, String localName) { + boolean isStart = false; + if (this.presentEvent.isStartElement()) { + StartElement startElement = this.presentEvent.asStartElement(); + QName qName = startElement.getName(); + isStart = qName.getLocalPart().equals(localName) + && qName.getPrefix().equals(namespacePrefix); + } + return isStart; + } + + /** + * Determines whether current element is a start element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return true for matching start element; false otherwise. + */ + public boolean isStartElement(XmlNamespace xmlNamespace, String localName) { + return this.isStartElement() + && EwsUtilities.stringEquals(this.getLocalName(), localName) + && ( + EwsUtilities.stringEquals(this.getNamespacePrefix(), EwsUtilities.getNamespacePrefix(xmlNamespace)) || + EwsUtilities.stringEquals(this.getNamespaceUri(), EwsUtilities.getNamespaceUri(xmlNamespace))); + } + + /** + * Determines whether current element is a end element. + * + * @param namespacePrefix the namespace prefix + * @param localName the local name + * @return boolean + */ + public boolean isEndElement(String namespacePrefix, String localName) { + boolean isEndElement = false; + if (this.presentEvent.isEndElement()) { + EndElement endElement = this.presentEvent.asEndElement(); + QName qName = endElement.getName(); + isEndElement = qName.getLocalPart().equals(localName) + && qName.getPrefix().equals(namespacePrefix); + + } + return isEndElement; + } + + /** + * Determines whether current element is a end element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @return boolean + */ + public boolean isEndElement(XmlNamespace xmlNamespace, String localName) { + + boolean isEndElement = false; /* * if(localName.equals("Body")) { return true; } else - */if (this.presentEvent.isEndElement()) { - EndElement endElement = this.presentEvent.asEndElement(); - QName qName = endElement.getName(); - isEndElement = qName.getLocalPart().equals(localName) - && (qName.getPrefix().equals( - EwsUtilities.getNamespacePrefix(xmlNamespace)) || - qName.getNamespaceURI().equals( - EwsUtilities.getNamespaceUri( - xmlNamespace))); - - } - return isEndElement; - } - - /** - * Skips the element. - * - * @param namespacePrefix - * the namespace prefix - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void skipElement(String namespacePrefix, String localName) - throws Exception { - if (!this.isEndElement(namespacePrefix, localName)) { - if (!this.isStartElement(namespacePrefix, localName)) { - this.readStartElement(namespacePrefix, localName); - } - - if (!this.isEmptyElement()) { - do { - this.read(); - } while (!this.isEndElement(namespacePrefix, localName)); - } - } - } - - /** - * Skips the element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void skipElement(XmlNamespace xmlNamespace, String localName) - throws Exception { - if (!this.isEndElement(xmlNamespace, localName)) { - if (!this.isStartElement(xmlNamespace, localName)) { - this.readStartElement(xmlNamespace, localName); - } - - if (!this.isEmptyElement()) { - do { - this.read(); - } while (!this.isEndElement(xmlNamespace, localName)); - } - } - } - - /** - * Skips the current element. - * - * @throws Exception - * the exception - */ - public void skipCurrentElement() throws Exception { - this.skipElement(this.getNamespacePrefix(), this.getLocalName()); - } - - /** - * Ensures the current node is start element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - public void ensureCurrentNodeIsStartElement(XmlNamespace xmlNamespace, - String localName) throws ServiceXmlDeserializationException { - - if (!this.isStartElement(xmlNamespace, localName)) { - throw new ServiceXmlDeserializationException( - String - .format( - Strings.ElementNotFound, - localName, xmlNamespace)); - } - } - - /** - * Ensures the current node is start element. - * - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - public void ensureCurrentNodeIsStartElement() - throws ServiceXmlDeserializationException { - XmlNodeType presentNodeType = new XmlNodeType(this.presentEvent - .getEventType()); - if (!this.presentEvent.isStartElement()) { - throw new ServiceXmlDeserializationException(String.format( - Strings.ExpectedStartElement, - this.presentEvent.toString(), presentNodeType.toString())); - } - } - - /** - * Ensures the current node is start element. - * - * @param xmlNamespace - * the xml namespace - * @param localName - * the local name - * @throws Exception - * the exception - */ - public void ensureCurrentNodeIsEndElement(XmlNamespace xmlNamespace, - String localName) throws Exception { - if (!this.isEndElement(xmlNamespace, localName)) { - if (!(this.isStartElement(xmlNamespace, localName) && this - .isEmptyElement())) { - throw new ServiceXmlDeserializationException( - String - .format( - Strings.ElementNotFound, - xmlNamespace, localName)); - } - } - } - - /** - * Outer XML as string. - * - * @return String - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public String readOuterXml() throws ServiceXmlDeserializationException, - XMLStreamException { - if (!this.isStartElement()) { - throw new ServiceXmlDeserializationException( - Strings.CurrentPositionNotElementStart); - } - - XMLEvent startEvent = this.presentEvent; - XMLEvent event; - StringBuilder str = new StringBuilder(); - str.append(startEvent); - do { - event = this.xmlReader.nextEvent(); - str.append(event); - } while (!checkEndElement(startEvent, event)); - - return str.toString(); - } - - /** - * Reads the Inner XML at the given location. - * - * @return String - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public String readInnerXml() throws ServiceXmlDeserializationException, - XMLStreamException { - if (!this.isStartElement()) { - throw new ServiceXmlDeserializationException( - Strings.CurrentPositionNotElementStart); - } - - XMLEvent startEvent = this.presentEvent; - StringBuilder str = new StringBuilder(); - do { - XMLEvent event = this.xmlReader.nextEvent(); - if (checkEndElement(startEvent, event)) - break; - str.append(event); - } while (true); - - return str.toString(); - } - - /** - * Check end element. - * - * @param startEvent - * the start event - * @param endEvent - * the end event - * @return true, if successful - */ - public static boolean checkEndElement(XMLEvent startEvent, - XMLEvent endEvent) { - - boolean isEndElement = false; - if (endEvent.isEndElement()) { - QName qEName = endEvent.asEndElement().getName(); - QName qSName = startEvent.asStartElement().getName(); - isEndElement = qEName.getLocalPart().equals(qSName.getLocalPart()) - && (qEName.getPrefix().equals(qSName.getPrefix()) || qEName - .getNamespaceURI().equals(qSName. - getNamespaceURI())); - - } - return isEndElement; - } - - /** - * Gets the XML reader for node. - * - * @return null - * @throws javax.xml.stream.XMLStreamException - * @throws ServiceXmlDeserializationException - * @throws java.io.FileNotFoundException - * - */ - protected XMLEventReader getXmlReaderForNode() throws FileNotFoundException, ServiceXmlDeserializationException, XMLStreamException { - return readSubtree(); //this.xmlReader.ReadSubtree(); - } - - public XMLEventReader readSubtree() - throws XMLStreamException, FileNotFoundException, ServiceXmlDeserializationException { - - if (!this.isStartElement()) { - throw new ServiceXmlDeserializationException( - Strings.CurrentPositionNotElementStart); - } - - XMLEventReader eventReader = null; - InputStream in = null; - XMLEvent startEvent = this.presentEvent; - XMLEvent event = startEvent; - StringBuilder str = new StringBuilder(); - str.append(startEvent); - do { - event = this.xmlReader.nextEvent(); - str.append(event); - } while (!checkEndElement(startEvent, event)); - - try { - - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); - - try { - in = new ByteArrayInputStream(str.toString().getBytes("UTF-8")); - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - eventReader = inputFactory.createXMLEventReader(in); - - } catch (Exception e) { - e.printStackTrace(); - } - return eventReader; - } - - /** - * Reads to the next descendant element with the specified local name and - * namespace. - * - * @param xmlNamespace - * The namespace of the element you with to move to. - * @param localName - * The local name of the element you wish to move to. - * @throws javax.xml.stream.XMLStreamException - */ - public void ReadToDescendant(XmlNamespace xmlNamespace, String localName) throws XMLStreamException { - readToDescendant(localName,EwsUtilities.getNamespaceUri(xmlNamespace)); - } - - public boolean readToDescendant(String localName, String namespaceURI) throws XMLStreamException { - - if (!this.isStartElement()) { - return false; - } - XMLEvent startEvent = this.presentEvent; - XMLEvent event = this.presentEvent; - do { - if (event.isStartElement()) { - QName qEName = event.asStartElement().getName(); - if (qEName.getLocalPart().equals(localName) && - qEName.getNamespaceURI().equals(namespaceURI)) { - return true; - } - } - event = this.xmlReader.nextEvent(); - } while (!checkEndElement(startEvent, event)); - - return false; - } - - - - - - /** - * Gets a value indicating whether this instance has attributes. - * - * @return boolean - */ - public boolean hasAttributes() { - - if (this.presentEvent.isStartElement()) { - StartElement startElement = this.presentEvent.asStartElement(); - return startElement.getAttributes().hasNext(); - } else { - return false; - } - } - - /** - * Gets a value indicating whether current element is empty. - * - * @return boolean - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public boolean isEmptyElement() throws XMLStreamException { - boolean isPresentStartElement = this.presentEvent.isStartElement(); - boolean isNextEndElement = this.xmlReader.peek().isEndElement(); - return isPresentStartElement && isNextEndElement; - } - - /** - * Gets the local name of the current element. - * - * @return String - */ - public String getLocalName() { - - String localName = null; - - if (this.presentEvent.isStartElement()) { - localName = this.presentEvent.asStartElement().getName() - .getLocalPart(); - } else { - - localName = this.presentEvent.asEndElement().getName() - .getLocalPart(); - } - return localName; - } - - /** - * Gets the namespace prefix. - * - * @return String - */ - protected String getNamespacePrefix() { - if (this.presentEvent.isStartElement()) - return this.presentEvent.asStartElement().getName().getPrefix(); - if (this.presentEvent.isEndElement()) - return this.presentEvent.asEndElement().getName().getPrefix(); - return null; - } - - /** - * Gets the namespace URI. - * - * @return String - */ - protected String getNamespaceUri() { - - String nameSpaceUri = null; - if (this.presentEvent.isStartElement()) { - nameSpaceUri = this.presentEvent.asStartElement().getName() - .getNamespaceURI(); - } else { - - nameSpaceUri = this.presentEvent.asEndElement().getName() - .getNamespaceURI(); - } - return nameSpaceUri; - } - - /** - * Gets the type of the node. - * - * @return XmlNodeType - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - public XmlNodeType getNodeType() throws XMLStreamException { - XMLEvent event = this.presentEvent; - XmlNodeType nodeType = new XmlNodeType(event.getEventType()); - return nodeType; - } - - /** - * Gets the name of the current element. - * - * @return Object - */ - protected Object getName() { - String name = null; - if (this.presentEvent.isStartElement()) { - name = this.presentEvent.asStartElement().getName().toString(); - } else { - - name = this.presentEvent.asEndElement().getName().toString(); - } - return name; - } - - /** - * Checks is the string is null or empty. - * - * @param namespacePrefix - * the namespace prefix - * @return true, if is null or empty - */ - private static boolean isNullOrEmpty(String namespacePrefix) { - return (namespacePrefix == null || namespacePrefix.isEmpty()); - - } + */ + if (this.presentEvent.isEndElement()) { + EndElement endElement = this.presentEvent.asEndElement(); + QName qName = endElement.getName(); + isEndElement = qName.getLocalPart().equals(localName) + && (qName.getPrefix().equals( + EwsUtilities.getNamespacePrefix(xmlNamespace)) || + qName.getNamespaceURI().equals( + EwsUtilities.getNamespaceUri( + xmlNamespace))); + + } + return isEndElement; + } + + /** + * Skips the element. + * + * @param namespacePrefix the namespace prefix + * @param localName the local name + * @throws Exception the exception + */ + public void skipElement(String namespacePrefix, String localName) + throws Exception { + if (!this.isEndElement(namespacePrefix, localName)) { + if (!this.isStartElement(namespacePrefix, localName)) { + this.readStartElement(namespacePrefix, localName); + } + + if (!this.isEmptyElement()) { + do { + this.read(); + } while (!this.isEndElement(namespacePrefix, localName)); + } + } + } + + /** + * Skips the element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws Exception the exception + */ + public void skipElement(XmlNamespace xmlNamespace, String localName) + throws Exception { + if (!this.isEndElement(xmlNamespace, localName)) { + if (!this.isStartElement(xmlNamespace, localName)) { + this.readStartElement(xmlNamespace, localName); + } + + if (!this.isEmptyElement()) { + do { + this.read(); + } while (!this.isEndElement(xmlNamespace, localName)); + } + } + } + + /** + * Skips the current element. + * + * @throws Exception the exception + */ + public void skipCurrentElement() throws Exception { + this.skipElement(this.getNamespacePrefix(), this.getLocalName()); + } + + /** + * Ensures the current node is start element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + public void ensureCurrentNodeIsStartElement(XmlNamespace xmlNamespace, + String localName) throws ServiceXmlDeserializationException { + + if (!this.isStartElement(xmlNamespace, localName)) { + throw new ServiceXmlDeserializationException( + String + .format( + Strings.ElementNotFound, + localName, xmlNamespace)); + } + } + + /** + * Ensures the current node is start element. + * + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + public void ensureCurrentNodeIsStartElement() + throws ServiceXmlDeserializationException { + XmlNodeType presentNodeType = new XmlNodeType(this.presentEvent + .getEventType()); + if (!this.presentEvent.isStartElement()) { + throw new ServiceXmlDeserializationException(String.format( + Strings.ExpectedStartElement, + this.presentEvent.toString(), presentNodeType.toString())); + } + } + + /** + * Ensures the current node is start element. + * + * @param xmlNamespace the xml namespace + * @param localName the local name + * @throws Exception the exception + */ + public void ensureCurrentNodeIsEndElement(XmlNamespace xmlNamespace, + String localName) throws Exception { + if (!this.isEndElement(xmlNamespace, localName)) { + if (!(this.isStartElement(xmlNamespace, localName) && this + .isEmptyElement())) { + throw new ServiceXmlDeserializationException( + String + .format( + Strings.ElementNotFound, + xmlNamespace, localName)); + } + } + } + + /** + * Outer XML as string. + * + * @return String + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public String readOuterXml() throws ServiceXmlDeserializationException, + XMLStreamException { + if (!this.isStartElement()) { + throw new ServiceXmlDeserializationException( + Strings.CurrentPositionNotElementStart); + } + + XMLEvent startEvent = this.presentEvent; + XMLEvent event; + StringBuilder str = new StringBuilder(); + str.append(startEvent); + do { + event = this.xmlReader.nextEvent(); + str.append(event); + } while (!checkEndElement(startEvent, event)); + + return str.toString(); + } + + /** + * Reads the Inner XML at the given location. + * + * @return String + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public String readInnerXml() throws ServiceXmlDeserializationException, + XMLStreamException { + if (!this.isStartElement()) { + throw new ServiceXmlDeserializationException( + Strings.CurrentPositionNotElementStart); + } + + XMLEvent startEvent = this.presentEvent; + StringBuilder str = new StringBuilder(); + do { + XMLEvent event = this.xmlReader.nextEvent(); + if (checkEndElement(startEvent, event)) { + break; + } + str.append(event); + } while (true); + + return str.toString(); + } + + /** + * Check end element. + * + * @param startEvent the start event + * @param endEvent the end event + * @return true, if successful + */ + public static boolean checkEndElement(XMLEvent startEvent, + XMLEvent endEvent) { + + boolean isEndElement = false; + if (endEvent.isEndElement()) { + QName qEName = endEvent.asEndElement().getName(); + QName qSName = startEvent.asStartElement().getName(); + isEndElement = qEName.getLocalPart().equals(qSName.getLocalPart()) + && (qEName.getPrefix().equals(qSName.getPrefix()) || qEName + .getNamespaceURI().equals(qSName. + getNamespaceURI())); + + } + return isEndElement; + } + + /** + * Gets the XML reader for node. + * + * @return null + * @throws javax.xml.stream.XMLStreamException + * @throws ServiceXmlDeserializationException + * @throws java.io.FileNotFoundException + */ + protected XMLEventReader getXmlReaderForNode() + throws FileNotFoundException, ServiceXmlDeserializationException, XMLStreamException { + return readSubtree(); //this.xmlReader.ReadSubtree(); + } + + public XMLEventReader readSubtree() + throws XMLStreamException, FileNotFoundException, ServiceXmlDeserializationException { + + if (!this.isStartElement()) { + throw new ServiceXmlDeserializationException( + Strings.CurrentPositionNotElementStart); + } + + XMLEventReader eventReader = null; + InputStream in = null; + XMLEvent startEvent = this.presentEvent; + XMLEvent event = startEvent; + StringBuilder str = new StringBuilder(); + str.append(startEvent); + do { + event = this.xmlReader.nextEvent(); + str.append(event); + } while (!checkEndElement(startEvent, event)); + + try { + + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + + try { + in = new ByteArrayInputStream(str.toString().getBytes("UTF-8")); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + eventReader = inputFactory.createXMLEventReader(in); + + } catch (Exception e) { + e.printStackTrace(); + } + return eventReader; + } + + /** + * Reads to the next descendant element with the specified local name and + * namespace. + * + * @param xmlNamespace The namespace of the element you with to move to. + * @param localName The local name of the element you wish to move to. + * @throws javax.xml.stream.XMLStreamException + */ + public void ReadToDescendant(XmlNamespace xmlNamespace, String localName) throws XMLStreamException { + readToDescendant(localName, EwsUtilities.getNamespaceUri(xmlNamespace)); + } + + public boolean readToDescendant(String localName, String namespaceURI) throws XMLStreamException { + + if (!this.isStartElement()) { + return false; + } + XMLEvent startEvent = this.presentEvent; + XMLEvent event = this.presentEvent; + do { + if (event.isStartElement()) { + QName qEName = event.asStartElement().getName(); + if (qEName.getLocalPart().equals(localName) && + qEName.getNamespaceURI().equals(namespaceURI)) { + return true; + } + } + event = this.xmlReader.nextEvent(); + } while (!checkEndElement(startEvent, event)); + + return false; + } + + + + /** + * Gets a value indicating whether this instance has attributes. + * + * @return boolean + */ + public boolean hasAttributes() { + + if (this.presentEvent.isStartElement()) { + StartElement startElement = this.presentEvent.asStartElement(); + return startElement.getAttributes().hasNext(); + } else { + return false; + } + } + + /** + * Gets a value indicating whether current element is empty. + * + * @return boolean + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public boolean isEmptyElement() throws XMLStreamException { + boolean isPresentStartElement = this.presentEvent.isStartElement(); + boolean isNextEndElement = this.xmlReader.peek().isEndElement(); + return isPresentStartElement && isNextEndElement; + } + + /** + * Gets the local name of the current element. + * + * @return String + */ + public String getLocalName() { + + String localName = null; + + if (this.presentEvent.isStartElement()) { + localName = this.presentEvent.asStartElement().getName() + .getLocalPart(); + } else { + + localName = this.presentEvent.asEndElement().getName() + .getLocalPart(); + } + return localName; + } + + /** + * Gets the namespace prefix. + * + * @return String + */ + protected String getNamespacePrefix() { + if (this.presentEvent.isStartElement()) { + return this.presentEvent.asStartElement().getName().getPrefix(); + } + if (this.presentEvent.isEndElement()) { + return this.presentEvent.asEndElement().getName().getPrefix(); + } + return null; + } + + /** + * Gets the namespace URI. + * + * @return String + */ + protected String getNamespaceUri() { + + String nameSpaceUri = null; + if (this.presentEvent.isStartElement()) { + nameSpaceUri = this.presentEvent.asStartElement().getName() + .getNamespaceURI(); + } else { + + nameSpaceUri = this.presentEvent.asEndElement().getName() + .getNamespaceURI(); + } + return nameSpaceUri; + } + + /** + * Gets the type of the node. + * + * @return XmlNodeType + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + public XmlNodeType getNodeType() throws XMLStreamException { + XMLEvent event = this.presentEvent; + XmlNodeType nodeType = new XmlNodeType(event.getEventType()); + return nodeType; + } + + /** + * Gets the name of the current element. + * + * @return Object + */ + protected Object getName() { + String name = null; + if (this.presentEvent.isStartElement()) { + name = this.presentEvent.asStartElement().getName().toString(); + } else { + + name = this.presentEvent.asEndElement().getName().toString(); + } + return name; + } + + /** + * Checks is the string is null or empty. + * + * @param namespacePrefix the namespace prefix + * @return true, if is null or empty + */ + private static boolean isNullOrEmpty(String namespacePrefix) { + return (namespacePrefix == null || namespacePrefix.isEmpty()); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java index a49ddddb1..d52940c61 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java @@ -10,160 +10,138 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; import java.io.ByteArrayOutputStream; import java.net.URI; import java.net.URISyntaxException; -import java.net.URL; - -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; /** * Base class of Exchange credential types. - * */ public abstract class ExchangeCredentials { - /** - * Performs an implicit conversion from to . This - * allows a NetworkCredential object to be implictly converted to an - * ExchangeCredential which is useful when setting credentials on an - * ExchangeService. - * - * @param userName - * Account user name. - * @param password - * Account password. - * @param domain - * Account domain. - * @return The result of the conversion. - */ - public static ExchangeCredentials - getExchangeCredentialsFromNetworkCredential( - String userName, String password, String domain) { - return new WebCredentials(userName, password, domain); - } - - - /** - *Return the url without wssecruity address. - * - *@param url The url - *@return The absolute uri base. - */ - protected static String getUriWithoutWSSecurity(URI url) - { - String absoluteUri = url.toString(); - int index = absoluteUri.indexOf("/wssecurity"); - - if (index == -1) - { - return absoluteUri; - } - else - { - return absoluteUri.substring(0, index); - } - } - - /** - * This method is called to pre-authenticate credentials before a service - * request is made. - */ - protected void preAuthenticate() { - // do nothing by default. - } - - /** - * This method is called to apply credentials to a service request before - * the request is made. - * - * @param client - * The request. - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - protected void prepareWebRequest(HttpWebRequest client) - throws URISyntaxException { - // do nothing by default. - } - - /** - * Emit any extra necessary namespace aliases for the SOAP:header block. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer) - throws XMLStreamException { - // do nothing by default. - } - - /** - * Serialize any extra necessary SOAP headers. This is used for - * authentication schemes that rely on WS-Security, or for endpoints - * requiring WS-Addressing. - * - * @param writer - * The writer. - * @param webMethodName - * The Web method being called. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void serializeExtraSoapHeaders(XMLStreamWriter writer, - String webMethodName) throws XMLStreamException { - // do nothing by default. - } - - /** - * Adjusts the URL endpoint based on the credentials. - * - * @param url The URL. - * @return Adjust URL. - */ - protected URI adjustUrl(URI url)throws URISyntaxException - { - return new URI(getUriWithoutWSSecurity(url)); - } - - /** - * Gets the flag indicating whether any sign action need taken. - */ - protected boolean isNeedSignature() - { - return false; - } - - /** - * Add the signature element to the memory stream. - * - * @param memoryStream The memory stream. - */ - protected void sign(ByteArrayOutputStream memoryStream)throws Exception - { - throw new InvalidOperationException(); + /** + * Performs an implicit conversion from to . This + * allows a NetworkCredential object to be implictly converted to an + * ExchangeCredential which is useful when setting credentials on an + * ExchangeService. + * + * @param userName Account user name. + * @param password Account password. + * @param domain Account domain. + * @return The result of the conversion. + */ + public static ExchangeCredentials + getExchangeCredentialsFromNetworkCredential( + String userName, String password, String domain) { + return new WebCredentials(userName, password, domain); + } + + + /** + * Return the url without wssecruity address. + * + * @param url The url + * @return The absolute uri base. + */ + protected static String getUriWithoutWSSecurity(URI url) { + String absoluteUri = url.toString(); + int index = absoluteUri.indexOf("/wssecurity"); + + if (index == -1) { + return absoluteUri; + } else { + return absoluteUri.substring(0, index); } - - - - /** - * Serialize SOAP headers used for authentication schemes that rely on - * WS-Security. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void serializeWSSecurityHeaders(XMLStreamWriter writer) - throws XMLStreamException { - // do nothing by default. - } - - + } + + /** + * This method is called to pre-authenticate credentials before a service + * request is made. + */ + protected void preAuthenticate() { + // do nothing by default. + } + + /** + * This method is called to apply credentials to a service request before + * the request is made. + * + * @param client The request. + * @throws java.net.URISyntaxException the uRI syntax exception + */ + protected void prepareWebRequest(HttpWebRequest client) + throws URISyntaxException { + // do nothing by default. + } + + /** + * Emit any extra necessary namespace aliases for the SOAP:header block. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer) + throws XMLStreamException { + // do nothing by default. + } + + /** + * Serialize any extra necessary SOAP headers. This is used for + * authentication schemes that rely on WS-Security, or for endpoints + * requiring WS-Addressing. + * + * @param writer The writer. + * @param webMethodName The Web method being called. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void serializeExtraSoapHeaders(XMLStreamWriter writer, + String webMethodName) throws XMLStreamException { + // do nothing by default. + } + + /** + * Adjusts the URL endpoint based on the credentials. + * + * @param url The URL. + * @return Adjust URL. + */ + protected URI adjustUrl(URI url) throws URISyntaxException { + return new URI(getUriWithoutWSSecurity(url)); + } + + /** + * Gets the flag indicating whether any sign action need taken. + */ + protected boolean isNeedSignature() { + return false; + } + + /** + * Add the signature element to the memory stream. + * + * @param memoryStream The memory stream. + */ + protected void sign(ByteArrayOutputStream memoryStream) throws Exception { + throw new InvalidOperationException(); + } + + + + /** + * Serialize SOAP headers used for authentication schemes that rely on + * WS-Security. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void serializeWSSecurityHeaders(XMLStreamWriter writer) + throws XMLStreamException { + // do nothing by default. + } + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java index 8df03e0e9..8551ed372 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java @@ -11,173 +11,175 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * * Represents Exchange server information. - * */ public final class ExchangeServerInfo { - /** The major version. */ - private int majorVersion; + /** + * The major version. + */ + private int majorVersion; - /** The minor version. */ - private int minorVersion; + /** + * The minor version. + */ + private int minorVersion; - /** The major build number. */ - private int majorBuildNumber; + /** + * The major build number. + */ + private int majorBuildNumber; - /** The minor build number. */ - private int minorBuildNumber; + /** + * The minor build number. + */ + private int minorBuildNumber; - /** The version string. */ - private String versionString; + /** + * The version string. + */ + private String versionString; /* - * Default constructor + * Default constructor */ - /** - * Instantiates a new exchange server info. - */ - protected ExchangeServerInfo() { - - } - - /** - * Parse current element to extract server information. - * - * @param reader - * EwsServiceXmlReader - * @return ExchangeServerInfo - * @throws Exception - * the exception - */ - protected static ExchangeServerInfo parse(EwsServiceXmlReader reader) - throws Exception { - EwsUtilities.EwsAssert(reader.hasAttributes(), - "ExchangeServerVersion.Parse", - "Current element doesn't have attributes"); - - ExchangeServerInfo info = new ExchangeServerInfo(); - info.majorVersion = reader.readAttributeValue(Integer.class, - "MajorVersion"); - info.minorVersion = reader.readAttributeValue(Integer.class, - "MinorVersion"); - info.majorBuildNumber = reader.readAttributeValue(Integer.class, - "MajorBuildNumber"); - info.minorBuildNumber = reader.readAttributeValue(Integer.class, - "MinorBuildNumber"); - info.versionString = reader.readAttributeValue("Version"); - return info; - } - - /** - * Gets the Major Exchange server version number. - * - * @return the major version - */ - public int getMajorVersion() { - return this.majorVersion; - } - - /** - * Sets the major version. - * - * @param majorVersion - * the new major version - */ - protected void setMajorVersion(int majorVersion) { - this.majorVersion = majorVersion; - } - - /** - * Gets the Minor Exchange server version number. - * - * @return the minor version - */ - public int getMinorVersion() { - return minorVersion; - } - - /** - * Sets the minor version. - * - * @param minorVersion - * the new minor version - */ - protected void setMinorVersion(int minorVersion) { - this.minorVersion = minorVersion; - } - - /** - * Gets the Major Exchange server build number. - * - * @return the major build number - */ - public int getMajorBuildNumber() { - return majorBuildNumber; - } - - /** - * Sets the major build number. - * - * @param majorBuildNumber - * the new major build number - */ - protected void setMajorBuildNumber(int majorBuildNumber) { - this.majorBuildNumber = majorBuildNumber; - } - - /** - * Gets the Minor Exchange server build number. - * - * @return the minor build number - */ - public int getMinorBuildNumber() { - return minorBuildNumber; - } - - /** - * Sets the minor build number. - * - * @param minorBuildNumber - * the new minor build number - */ - protected void setMinorBuildNumber(int minorBuildNumber) { - this.minorBuildNumber = minorBuildNumber; - } - - /** - * Gets the Exchange server version string (e.g. "Exchange2010") - * - * @return the version string - */ - // / The version is a string rather than an enum since its possible for the - // client to - // / be connected to a later server for which there would be no appropriate - // enum value. - public String getVersionString() { - return versionString; - } - - /** - * Sets the version string. - * - * @param versionString - * the new version string - */ - protected void setVersionString(String versionString) { - this.versionString = versionString; - } - - /** - * Override ToString method. - * - * @return the string - */ - @Override - public String toString() { - return String - .format("%d,%2d,%4d,%3d", this.majorVersion, this.minorVersion, - this.majorBuildNumber, this.minorBuildNumber); - } + + /** + * Instantiates a new exchange server info. + */ + protected ExchangeServerInfo() { + + } + + /** + * Parse current element to extract server information. + * + * @param reader EwsServiceXmlReader + * @return ExchangeServerInfo + * @throws Exception the exception + */ + protected static ExchangeServerInfo parse(EwsServiceXmlReader reader) + throws Exception { + EwsUtilities.EwsAssert(reader.hasAttributes(), + "ExchangeServerVersion.Parse", + "Current element doesn't have attributes"); + + ExchangeServerInfo info = new ExchangeServerInfo(); + info.majorVersion = reader.readAttributeValue(Integer.class, + "MajorVersion"); + info.minorVersion = reader.readAttributeValue(Integer.class, + "MinorVersion"); + info.majorBuildNumber = reader.readAttributeValue(Integer.class, + "MajorBuildNumber"); + info.minorBuildNumber = reader.readAttributeValue(Integer.class, + "MinorBuildNumber"); + info.versionString = reader.readAttributeValue("Version"); + return info; + } + + /** + * Gets the Major Exchange server version number. + * + * @return the major version + */ + public int getMajorVersion() { + return this.majorVersion; + } + + /** + * Sets the major version. + * + * @param majorVersion the new major version + */ + protected void setMajorVersion(int majorVersion) { + this.majorVersion = majorVersion; + } + + /** + * Gets the Minor Exchange server version number. + * + * @return the minor version + */ + public int getMinorVersion() { + return minorVersion; + } + + /** + * Sets the minor version. + * + * @param minorVersion the new minor version + */ + protected void setMinorVersion(int minorVersion) { + this.minorVersion = minorVersion; + } + + /** + * Gets the Major Exchange server build number. + * + * @return the major build number + */ + public int getMajorBuildNumber() { + return majorBuildNumber; + } + + /** + * Sets the major build number. + * + * @param majorBuildNumber the new major build number + */ + protected void setMajorBuildNumber(int majorBuildNumber) { + this.majorBuildNumber = majorBuildNumber; + } + + /** + * Gets the Minor Exchange server build number. + * + * @return the minor build number + */ + public int getMinorBuildNumber() { + return minorBuildNumber; + } + + /** + * Sets the minor build number. + * + * @param minorBuildNumber the new minor build number + */ + protected void setMinorBuildNumber(int minorBuildNumber) { + this.minorBuildNumber = minorBuildNumber; + } + + /** + * Gets the Exchange server version string (e.g. "Exchange2010") + * + * @return the version string + */ + // / The version is a string rather than an enum since its possible for the + // client to + // / be connected to a later server for which there would be no appropriate + // enum value. + public String getVersionString() { + return versionString; + } + + /** + * Sets the version string. + * + * @param versionString the new version string + */ + protected void setVersionString(String versionString) { + this.versionString = versionString; + } + + /** + * Override ToString method. + * + * @return the string + */ + @Override + public String toString() { + return String + .format("%d,%2d,%4d,%3d", this.majorVersion, this.minorVersion, + this.majorBuildNumber, this.minorBuildNumber); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 05aa37fac..f270097f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -10,1534 +10,1310 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.TimeZone; - import org.w3c.dom.Document; import org.w3c.dom.Node; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.*; + /** * Represents a binding to the Exchange Web Services. */ public final class ExchangeService extends ExchangeServiceBase implements - IAutodiscoverRedirectionUrl { + IAutodiscoverRedirectionUrl { + + /** + * The url. + */ + private URI url; + + /** + * The preferred culture. + */ + private Locale preferredCulture; + + /** + * The DateTimePrecision + */ + private DateTimePrecision dateTimePrecision = DateTimePrecision.Default; + + /** + * The impersonated user id. + */ + private ImpersonatedUserId impersonatedUserId; + // private Iterator Iterator; + /** + * The file attachment content handler. + */ + private IFileAttachmentContentHandler fileAttachmentContentHandler; + + /** + * The unified messaging. + */ + private UnifiedMessaging unifiedMessaging; + + // private boolean exchange2007CompatibilityMode; + private boolean enableScpLookup = true; + + private boolean exchange2007CompatibilityMode; + + /** + * Create response object. + * + * @param responseObject the response object + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @return The list of items created or modified as a result of the + * "creation" of the response object. + * @throws Exception the exception + */ + protected List internalCreateResponseObject( + ServiceObject responseObject, FolderId parentFolderId, + MessageDisposition messageDisposition) throws Exception { + CreateResponseObjectRequest request = new CreateResponseObjectRequest( + this, ServiceErrorHandling.ThrowOnError); + Collection serviceList = new ArrayList(); + serviceList.add(responseObject); + request.setParentFolderId(parentFolderId); + request.setItems(serviceList); + request.setMessageDisposition(messageDisposition); + + ServiceResponseCollection responses = request + .execute(); + + return responses.getResponseAtIndex(0).getItems(); + } - /** The url. */ - private URI url; + /** + * Creates a folder. Calling this method results in a call to EWS. + * + * @param folder The folder. + * @param parentFolderId The parent folder Id + * @throws Exception the exception + */ + protected void createFolder(Folder folder, FolderId parentFolderId) + throws Exception { + CreateFolderRequest request = new CreateFolderRequest(this, + ServiceErrorHandling.ThrowOnError); + List folArry = new ArrayList(); + folArry.add(folder); + request.setFolders(folArry); + request.setParentFolderId(parentFolderId); + + request.execute(); + } - /** The preferred culture. */ - private Locale preferredCulture; + /** + * Updates a folder. + * + * @param folder The folder. + * @throws Exception the exception + */ + protected void updateFolder(Folder folder) throws Exception { + UpdateFolderRequest request = new UpdateFolderRequest(this, + ServiceErrorHandling.ThrowOnError); - /** The DateTimePrecision */ - private DateTimePrecision dateTimePrecision = DateTimePrecision.Default; + request.getFolders().add(folder); - /** The impersonated user id. */ - private ImpersonatedUserId impersonatedUserId; - // private Iterator Iterator; - /** The file attachment content handler. */ - private IFileAttachmentContentHandler fileAttachmentContentHandler; + request.execute(); + } - /** The unified messaging. */ - private UnifiedMessaging unifiedMessaging; + /** + * Copies a folder. Calling this method results in a call to EWS. + * + * @param folderId The folderId. + * @param destinationFolderId The destination folder id. + * @return the folder + * @throws Exception the exception + */ + protected Folder copyFolder(FolderId folderId, FolderId destinationFolderId) + throws Exception { + CopyFolderRequest request = new CopyFolderRequest(this, + ServiceErrorHandling.ThrowOnError); - // private boolean exchange2007CompatibilityMode; - private boolean enableScpLookup = true; + request.setDestinationFolderId(destinationFolderId); + request.getFolderIds().add(folderId); - private boolean exchange2007CompatibilityMode; + ServiceResponseCollection responses = request + .execute(); - /** - * Create response object. - * - * @param responseObject - * the response object - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @return The list of items created or modified as a result of the - * "creation" of the response object. - * @throws Exception - * the exception - */ - protected List internalCreateResponseObject( - ServiceObject responseObject, FolderId parentFolderId, - MessageDisposition messageDisposition) throws Exception { - CreateResponseObjectRequest request = new CreateResponseObjectRequest( - this, ServiceErrorHandling.ThrowOnError); - Collection serviceList = new ArrayList(); - serviceList.add(responseObject); - request.setParentFolderId(parentFolderId); - request.setItems(serviceList); - request.setMessageDisposition(messageDisposition); - - ServiceResponseCollection responses = request - .execute(); - - return responses.getResponseAtIndex(0).getItems(); - } - - /** - * Creates a folder. Calling this method results in a call to EWS. - * - * @param folder - * The folder. - * @param parentFolderId - * The parent folder Id - * @throws Exception - * the exception - */ - protected void createFolder(Folder folder, FolderId parentFolderId) - throws Exception { - CreateFolderRequest request = new CreateFolderRequest(this, - ServiceErrorHandling.ThrowOnError); - List folArry = new ArrayList(); - folArry.add(folder); - request.setFolders(folArry); - request.setParentFolderId(parentFolderId); - - request.execute(); - } - - /** - * Updates a folder. - * - * @param folder - * The folder. - * @throws Exception - * the exception - */ - protected void updateFolder(Folder folder) throws Exception { - UpdateFolderRequest request = new UpdateFolderRequest(this, - ServiceErrorHandling.ThrowOnError); + return responses.getResponseAtIndex(0).getFolder(); + } - request.getFolders().add(folder); + /** + * Move a folder. + * + * @param folderId The folderId. + * @param destinationFolderId The destination folder id. + * @return the folder + * @throws Exception the exception + */ + protected Folder moveFolder(FolderId folderId, FolderId destinationFolderId) + throws Exception { + MoveFolderRequest request = new MoveFolderRequest(this, + ServiceErrorHandling.ThrowOnError); - request.execute(); - } + request.setDestinationFolderId(destinationFolderId); + request.getFolderIds().add(folderId); - /** - * Copies a folder. Calling this method results in a call to EWS. - * - * @param folderId - * The folderId. - * @param destinationFolderId - * The destination folder id. - * @return the folder - * @throws Exception - * the exception - */ - protected Folder copyFolder(FolderId folderId, FolderId destinationFolderId) - throws Exception { - CopyFolderRequest request = new CopyFolderRequest(this, - ServiceErrorHandling.ThrowOnError); + ServiceResponseCollection responses = request + .execute(); - request.setDestinationFolderId(destinationFolderId); - request.getFolderIds().add(folderId); + return responses.getResponseAtIndex(0).getFolder(); + } - ServiceResponseCollection responses = request - .execute(); + /** + * Finds folders. + * + * @param parentFolderIds The parent folder ids. + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of folders returned. + * @param errorHandlingMode Indicates the type of error handling should be done. + * @return Collection of service responses. + * @throws Exception the exception + */ + private ServiceResponseCollection internalFindFolders( + Iterable parentFolderIds, SearchFilter searchFilter, + FolderView view, ServiceErrorHandling errorHandlingMode) + throws Exception { + FindFolderRequest request = new FindFolderRequest(this, + errorHandlingMode); - return responses.getResponseAtIndex(0).getFolder(); - } + request.getParentFolderIds().addRangeFolderId(parentFolderIds); + request.setSearchFilter(searchFilter); + request.setView(view); - /** - * Move a folder. - * - * @param folderId - * The folderId. - * @param destinationFolderId - * The destination folder id. - * @return the folder - * @throws Exception - * the exception - */ - protected Folder moveFolder(FolderId folderId, FolderId destinationFolderId) - throws Exception { - MoveFolderRequest request = new MoveFolderRequest(this, - ServiceErrorHandling.ThrowOnError); + return request.execute(); - request.setDestinationFolderId(destinationFolderId); - request.getFolderIds().add(folderId); + } - ServiceResponseCollection responses = request - .execute(); + /** + * Obtains a list of folders by searching the sub-folders of the specified + * folder. + * + * @param parentFolderId The Id of the folder in which to search for folders. + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of folders returned. + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(FolderId parentFolderId, + SearchFilter searchFilter, FolderView view) throws Exception { + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + EwsUtilities.validateParam(view, "view"); + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + ServiceResponseCollection responses = this + .internalFindFolders(folderIdArray, searchFilter, view, + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getResults(); + } - return responses.getResponseAtIndex(0).getFolder(); - } + /** + * Obtains a list of folders by searching the sub-folders of the specified + * folder. + * + * @param parentFolderId The Id of the folder in which to search for folders. + * @param view The view controlling the number of folders returned. + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(FolderId parentFolderId, + FolderView view) throws Exception { + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + EwsUtilities.validateParam(view, "view"); + + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + + ServiceResponseCollection responses = this + .internalFindFolders(folderIdArray, null, /* searchFilter */ + view, ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getResults(); + } - /** - * Finds folders. - * - * @param parentFolderIds - * The parent folder ids. - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of folders returned. - * @param errorHandlingMode - * Indicates the type of error handling should be done. - * @return Collection of service responses. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalFindFolders( - Iterable parentFolderIds, SearchFilter searchFilter, - FolderView view, ServiceErrorHandling errorHandlingMode) - throws Exception { - FindFolderRequest request = new FindFolderRequest(this, - errorHandlingMode); + /** + * Obtains a list of folders by searching the sub-folders of the specified + * folder. + * + * @param parentFolderName The name of the folder in which to search for folders. + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of folders returned. + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(WellKnownFolderName parentFolderName, + SearchFilter searchFilter, FolderView view) throws Exception { + return this.findFolders(new FolderId(parentFolderName), searchFilter, + view); + } - request.getParentFolderIds().addRangeFolderId(parentFolderIds); - request.setSearchFilter(searchFilter); - request.setView(view); + /** + * Obtains a list of folders by searching the sub-folders of the specified + * folder. + * + * @param parentFolderName the parent folder name + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(WellKnownFolderName parentFolderName, + FolderView view) throws Exception { + return this.findFolders(new FolderId(parentFolderName), view); + } - return request.execute(); + /** + * Load specified properties for a folder. + * + * @param folder The folder + * @param propertySet The property set + * @throws Exception the exception + */ + protected void loadPropertiesForFolder(Folder folder, + PropertySet propertySet) throws Exception { + EwsUtilities.validateParam(folder, "folder"); + EwsUtilities.validateParam(propertySet, "propertySet"); + + GetFolderRequestForLoad request = new GetFolderRequestForLoad(this, + ServiceErrorHandling.ThrowOnError); + + request.getFolderIds().add(folder); + request.setPropertySet(propertySet); + + request.execute(); + } - } + /** + * Binds to a folder. + * + * @param folderId the folder id + * @param propertySet the property set + * @return Folder + * @throws Exception the exception + */ + protected Folder bindToFolder(FolderId folderId, PropertySet propertySet) + throws Exception { + EwsUtilities.validateParam(folderId, "folderId"); + EwsUtilities.validateParam(propertySet, "propertySet"); - /** - * Obtains a list of folders by searching the sub-folders of the specified - * folder. - * - * @param parentFolderId - * The Id of the folder in which to search for folders. - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of folders returned. - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(FolderId parentFolderId, - SearchFilter searchFilter, FolderView view) throws Exception { - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - EwsUtilities.validateParam(view, "view"); - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); - ServiceResponseCollection responses = this - .internalFindFolders(folderIdArray, searchFilter, view, - ServiceErrorHandling.ThrowOnError); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Obtains a list of folders by searching the sub-folders of the specified - * folder. - * - * @param parentFolderId - * The Id of the folder in which to search for folders. - * @param view - * The view controlling the number of folders returned. - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(FolderId parentFolderId, - FolderView view) throws Exception { - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - EwsUtilities.validateParam(view, "view"); + GetFolderRequest request = new GetFolderRequest(this, + ServiceErrorHandling.ThrowOnError); - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + request.getFolderIds().add(folderId); + request.setPropertySet(propertySet); - ServiceResponseCollection responses = this - .internalFindFolders(folderIdArray, null, /* searchFilter */ - view, ServiceErrorHandling.ThrowOnError); + ServiceResponseCollection responses = request + .execute(); - return responses.getResponseAtIndex(0).getResults(); - } + return responses.getResponseAtIndex(0).getFolder(); - /** - * Obtains a list of folders by searching the sub-folders of the specified - * folder. - * - * @param parentFolderName - * The name of the folder in which to search for folders. - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of folders returned. - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(WellKnownFolderName parentFolderName, - SearchFilter searchFilter, FolderView view) throws Exception { - return this.findFolders(new FolderId(parentFolderName), searchFilter, - view); - } - - /** - * Obtains a list of folders by searching the sub-folders of the specified - * folder. - * - * @param parentFolderName - * the parent folder name - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(WellKnownFolderName parentFolderName, - FolderView view) throws Exception { - return this.findFolders(new FolderId(parentFolderName), view); - } + } - /** - * Load specified properties for a folder. - * - * @param folder - * The folder - * @param propertySet - * The property set - * @throws Exception - * the exception - */ - protected void loadPropertiesForFolder(Folder folder, - PropertySet propertySet) throws Exception { - EwsUtilities.validateParam(folder, "folder"); - EwsUtilities.validateParam(propertySet, "propertySet"); + /** + * Binds to folder. + * + * @param The type of the folder. + * @param cls Folder class + * @param folderId The folder id. + * @param propertySet The property set. + * @return Folder + * @throws Exception the exception + */ + protected TFolder bindToFolder(Class cls, + FolderId folderId, PropertySet propertySet) throws Exception { + Folder result = this.bindToFolder(folderId, propertySet); + + if (cls.isAssignableFrom(result.getClass())) { + return (TFolder) result; + } else { + throw new ServiceLocalException(String.format(Strings.FolderTypeNotCompatible, + result.getClass().getName(), cls.getName())); + } + } - GetFolderRequestForLoad request = new GetFolderRequestForLoad(this, - ServiceErrorHandling.ThrowOnError); + /** + * Deletes a folder. Calling this method results in a call to EWS. + * + * @param folderId The folder id + * @param deleteMode The delete mode + * @throws Exception the exception + */ + protected void deleteFolder(FolderId folderId, DeleteMode deleteMode) + throws Exception { + EwsUtilities.validateParam(folderId, "folderId"); - request.getFolderIds().add(folder); - request.setPropertySet(propertySet); + DeleteFolderRequest request = new DeleteFolderRequest(this, + ServiceErrorHandling.ThrowOnError); - request.execute(); - } + request.getFolderIds().add(folderId); + request.setDeleteMode(deleteMode); - /** - * Binds to a folder. - * - * @param folderId - * the folder id - * @param propertySet - * the property set - * @return Folder - * @throws Exception - * the exception - */ - protected Folder bindToFolder(FolderId folderId, PropertySet propertySet) - throws Exception { - EwsUtilities.validateParam(folderId, "folderId"); - EwsUtilities.validateParam(propertySet, "propertySet"); + request.execute(); + } - GetFolderRequest request = new GetFolderRequest(this, - ServiceErrorHandling.ThrowOnError); + /** + * Empties a folder. Calling this method results in a call to EWS. + * + * @param folderId The folder id + * @param deleteMode The delete mode + * @param deleteSubFolders if set to true empty folder should also delete sub + * folders. + * @throws Exception the exception + */ + protected void emptyFolder(FolderId folderId, DeleteMode deleteMode, + boolean deleteSubFolders) throws Exception { + EwsUtilities.validateParam(folderId, "folderId"); + + EmptyFolderRequest request = new EmptyFolderRequest(this, + ServiceErrorHandling.ThrowOnError); + + request.getFolderIds().add(folderId); + request.setDeleteMode(deleteMode); + request.setDeleteSubFolders(deleteSubFolders); + request.execute(); + } - request.getFolderIds().add(folderId); - request.setPropertySet(propertySet); + /** + * Creates multiple items in a single EWS call. Supported item classes are + * EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems + * does not support items that have unsaved attachments. + * + * @param items the items + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @param sendInvitationsMode the send invitations mode + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing creation results for each + * of the specified items. + * @throws Exception the exception + */ + private ServiceResponseCollection internalCreateItems( + Collection items, FolderId parentFolderId, + MessageDisposition messageDisposition, + SendInvitationsMode sendInvitationsMode, + ServiceErrorHandling errorHandling) throws Exception { + CreateItemRequest request = new CreateItemRequest(this, errorHandling); + request.setParentFolderId(parentFolderId); + request.setItems(items); + request.setMessageDisposition(messageDisposition); + request.setSendInvitationsMode(sendInvitationsMode); + return request.execute(); + } - ServiceResponseCollection responses = request - .execute(); + /** + * Creates multiple items in a single EWS call. Supported item classes are + * EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems + * does not support items that have unsaved attachments. + * + * @param items the items + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @param sendInvitationsMode the send invitations mode + * @return A ServiceResponseCollection providing creation results for each + * of the specified items. + * @throws Exception the exception + */ + public ServiceResponseCollection createItems( + Collection items, FolderId parentFolderId, + MessageDisposition messageDisposition, + SendInvitationsMode sendInvitationsMode) throws Exception { + // All items have to be new. + if (!EwsUtilities.trueForAll(items, new IPredicate() { + @Override + public boolean predicate(Item obj) throws ServiceLocalException { + return obj.isNew(); + } + })) { + throw new ServiceValidationException( + Strings.CreateItemsDoesNotHandleExistingItems); + } - return responses.getResponseAtIndex(0).getFolder(); + // E14:298274 Make sure that all items do *not* have unprocessed + // attachments. + if (!EwsUtilities.trueForAll(items, new IPredicate() { + @Override + public boolean predicate(Item obj) throws ServiceLocalException { + return !obj.hasUnprocessedAttachmentChanges(); + } + })) { + throw new ServiceValidationException( + Strings.CreateItemsDoesNotAllowAttachments); + } + return this.internalCreateItems(items, parentFolderId, + messageDisposition, sendInvitationsMode, + ServiceErrorHandling.ReturnErrors); + } - } + /** + * Creates an item. Calling this method results in a call to EWS. + * + * @param item the item + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @param sendInvitationsMode the send invitations mode + * @throws Exception the exception + */ + protected void createItem(Item item, FolderId parentFolderId, + MessageDisposition messageDisposition, + SendInvitationsMode sendInvitationsMode) throws Exception { + ArrayList items = new ArrayList(); + items.add(item); + internalCreateItems(items, parentFolderId, messageDisposition, + sendInvitationsMode, ServiceErrorHandling.ThrowOnError); + } - /** - * Binds to folder. - * - * @param - * The type of the folder. - * @param cls - * Folder class - * @param folderId - * The folder id. - * @param propertySet - * The property set. - * @return Folder - * @throws Exception - * the exception - */ - protected TFolder bindToFolder(Class cls, - FolderId folderId, PropertySet propertySet) throws Exception { - Folder result = this.bindToFolder(folderId, propertySet); - - if (cls.isAssignableFrom(result.getClass())) { - return (TFolder) result; - } else { - throw new ServiceLocalException(String.format(Strings.FolderTypeNotCompatible, - result.getClass().getName(), cls.getName())); - } - } - - /** - * Deletes a folder. Calling this method results in a call to EWS. - * - * @param folderId - * The folder id - * @param deleteMode - * The delete mode - * @throws Exception - * the exception - */ - protected void deleteFolder(FolderId folderId, DeleteMode deleteMode) - throws Exception { - EwsUtilities.validateParam(folderId, "folderId"); + /** + * Updates multiple items in a single EWS call. UpdateItems does not + * support items that have unsaved attachments. + * + * @param items the items + * @param savedItemsDestinationFolderId the saved items destination folder id + * @param conflictResolution the conflict resolution + * @param messageDisposition the message disposition + * @param sendInvitationsOrCancellationsMode the send invitations or cancellations mode + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing update results for each of + * the specified items. + * @throws Exception the exception + */ + private ServiceResponseCollection internalUpdateItems( + Iterable items, + FolderId savedItemsDestinationFolderId, + ConflictResolutionMode conflictResolution, + MessageDisposition messageDisposition, + SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode, + ServiceErrorHandling errorHandling) throws Exception { + UpdateItemRequest request = new UpdateItemRequest(this, errorHandling); + + request.getItems().addAll((Collection) items); + request.setSavedItemsDestinationFolder(savedItemsDestinationFolderId); + request.setMessageDisposition(messageDisposition); + request.setConflictResolutionMode(conflictResolution); + request + .setSendInvitationsOrCancellationsMode(sendInvitationsOrCancellationsMode); - DeleteFolderRequest request = new DeleteFolderRequest(this, - ServiceErrorHandling.ThrowOnError); + return request.execute(); + } - request.getFolderIds().add(folderId); - request.setDeleteMode(deleteMode); + /** + * Updates multiple items in a single EWS call. UpdateItems does not + * support items that have unsaved attachments. + * + * @param items the items + * @param savedItemsDestinationFolderId the saved items destination folder id + * @param conflictResolution the conflict resolution + * @param messageDisposition the message disposition + * @param sendInvitationsOrCancellationsMode the send invitations or cancellations mode + * @return A ServiceResponseCollection providing update results for each of + * the specified items. + * @throws Exception the exception + */ + public ServiceResponseCollection updateItems( + Iterable items, + FolderId savedItemsDestinationFolderId, + ConflictResolutionMode conflictResolution, + MessageDisposition messageDisposition, + SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) + throws Exception { - request.execute(); - } + // All items have to exist on the server (!new) and modified (dirty) + if (!EwsUtilities.trueForAll(items, new IPredicate() { + @Override + public boolean predicate(Item obj) throws ServiceLocalException { + return (!obj.isNew() && obj.isDirty()); + } + })) { + throw new ServiceValidationException( + Strings.UpdateItemsDoesNotSupportNewOrUnchangedItems); + } - /** - * Empties a folder. Calling this method results in a call to EWS. - * - * @param folderId - * The folder id - * @param deleteMode - * The delete mode - * @param deleteSubFolders - * if set to true empty folder should also delete sub - * folders. - * @throws Exception - * the exception - */ - protected void emptyFolder(FolderId folderId, DeleteMode deleteMode, - boolean deleteSubFolders) throws Exception { - EwsUtilities.validateParam(folderId, "folderId"); - - EmptyFolderRequest request = new EmptyFolderRequest(this, - ServiceErrorHandling.ThrowOnError); - - request.getFolderIds().add(folderId); - request.setDeleteMode(deleteMode); - request.setDeleteSubFolders(deleteSubFolders); - request.execute(); - } - - /** - * Creates multiple items in a single EWS call. Supported item classes are - * EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems - * does not support items that have unsaved attachments. - * - * @param items - * the items - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @param sendInvitationsMode - * the send invitations mode - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing creation results for each - * of the specified items. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalCreateItems( - Collection items, FolderId parentFolderId, - MessageDisposition messageDisposition, - SendInvitationsMode sendInvitationsMode, - ServiceErrorHandling errorHandling) throws Exception { - CreateItemRequest request = new CreateItemRequest(this, errorHandling); - request.setParentFolderId(parentFolderId); - request.setItems(items); - request.setMessageDisposition(messageDisposition); - request.setSendInvitationsMode(sendInvitationsMode); - return request.execute(); - } - - /** - * Creates multiple items in a single EWS call. Supported item classes are - * EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems - * does not support items that have unsaved attachments. - * - * @param items - * the items - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @param sendInvitationsMode - * the send invitations mode - * @return A ServiceResponseCollection providing creation results for each - * of the specified items. - * @throws Exception - * the exception - */ - public ServiceResponseCollection createItems( - Collection items, FolderId parentFolderId, - MessageDisposition messageDisposition, - SendInvitationsMode sendInvitationsMode) throws Exception { - // All items have to be new. - if (!EwsUtilities.trueForAll(items, new IPredicate() { - @Override - public boolean predicate(Item obj) throws ServiceLocalException { - return obj.isNew(); - } - })) { - throw new ServiceValidationException( - Strings.CreateItemsDoesNotHandleExistingItems); - } - - // E14:298274 Make sure that all items do *not* have unprocessed - // attachments. - if (!EwsUtilities.trueForAll(items, new IPredicate() { - @Override - public boolean predicate(Item obj) throws ServiceLocalException { - return !obj.hasUnprocessedAttachmentChanges(); - } - })) { - throw new ServiceValidationException( - Strings.CreateItemsDoesNotAllowAttachments); - } - return this.internalCreateItems(items, parentFolderId, - messageDisposition, sendInvitationsMode, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Creates an item. Calling this method results in a call to EWS. - * - * @param item - * the item - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @param sendInvitationsMode - * the send invitations mode - * @throws Exception - * the exception - */ - protected void createItem(Item item, FolderId parentFolderId, - MessageDisposition messageDisposition, - SendInvitationsMode sendInvitationsMode) throws Exception { - ArrayList items = new ArrayList(); - items.add(item); - internalCreateItems(items, parentFolderId, messageDisposition, - sendInvitationsMode, ServiceErrorHandling.ThrowOnError); - } - - /** - * Updates multiple items in a single EWS call. UpdateItems does not - * support items that have unsaved attachments. - * - * @param items - * the items - * @param savedItemsDestinationFolderId - * the saved items destination folder id - * @param conflictResolution - * the conflict resolution - * @param messageDisposition - * the message disposition - * @param sendInvitationsOrCancellationsMode - * the send invitations or cancellations mode - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing update results for each of - * the specified items. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalUpdateItems( - Iterable items, - FolderId savedItemsDestinationFolderId, - ConflictResolutionMode conflictResolution, - MessageDisposition messageDisposition, - SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode, - ServiceErrorHandling errorHandling) throws Exception { - UpdateItemRequest request = new UpdateItemRequest(this, errorHandling); - - request.getItems().addAll((Collection) items); - request.setSavedItemsDestinationFolder(savedItemsDestinationFolderId); - request.setMessageDisposition(messageDisposition); - request.setConflictResolutionMode(conflictResolution); - request - .setSendInvitationsOrCancellationsMode(sendInvitationsOrCancellationsMode); - - return request.execute(); - } - - /** - * Updates multiple items in a single EWS call. UpdateItems does not - * support items that have unsaved attachments. - * - * @param items - * the items - * @param savedItemsDestinationFolderId - * the saved items destination folder id - * @param conflictResolution - * the conflict resolution - * @param messageDisposition - * the message disposition - * @param sendInvitationsOrCancellationsMode - * the send invitations or cancellations mode - * @return A ServiceResponseCollection providing update results for each of - * the specified items. - * @throws Exception - * the exception - */ - public ServiceResponseCollection updateItems( - Iterable items, - FolderId savedItemsDestinationFolderId, - ConflictResolutionMode conflictResolution, - MessageDisposition messageDisposition, - SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) - throws Exception { + // E14:298274 Make sure that all items do *not* have unprocessed + // attachments. + if (!EwsUtilities.trueForAll(items, new IPredicate() { + @Override + public boolean predicate(Item obj) throws ServiceLocalException { + return !obj.hasUnprocessedAttachmentChanges(); + } + })) { + throw new ServiceValidationException( + Strings.UpdateItemsDoesNotAllowAttachments); + } - // All items have to exist on the server (!new) and modified (dirty) - if (!EwsUtilities.trueForAll(items, new IPredicate() { - @Override - public boolean predicate(Item obj) throws ServiceLocalException { - return (!obj.isNew() && obj.isDirty()); - } - })) { - throw new ServiceValidationException( - Strings.UpdateItemsDoesNotSupportNewOrUnchangedItems); - } - - // E14:298274 Make sure that all items do *not* have unprocessed - // attachments. - if (!EwsUtilities.trueForAll(items, new IPredicate() { - @Override - public boolean predicate(Item obj) throws ServiceLocalException { - return !obj.hasUnprocessedAttachmentChanges(); - } - })) { - throw new ServiceValidationException( - Strings.UpdateItemsDoesNotAllowAttachments); - } - - return this.internalUpdateItems(items, savedItemsDestinationFolderId, - conflictResolution, messageDisposition, - sendInvitationsOrCancellationsMode, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Updates an item. - * - * @param item - * the item - * @param savedItemsDestinationFolderId - * the saved items destination folder id - * @param conflictResolution - * the conflict resolution - * @param messageDisposition - * the message disposition - * @param sendInvitationsOrCancellationsMode - * the send invitations or cancellations mode - * @return A ServiceResponseCollection providing deletion results for each - * of the specified item Ids. - * @throws Exception - * the exception - */ - protected Item updateItem( - Item item, - FolderId savedItemsDestinationFolderId, - ConflictResolutionMode conflictResolution, - MessageDisposition messageDisposition, - SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) - throws Exception { - List itemIdArray = new ArrayList(); - itemIdArray.add(item); + return this.internalUpdateItems(items, savedItemsDestinationFolderId, + conflictResolution, messageDisposition, + sendInvitationsOrCancellationsMode, + ServiceErrorHandling.ReturnErrors); + } - ServiceResponseCollection responses = this - .internalUpdateItems(itemIdArray, - savedItemsDestinationFolderId, conflictResolution, - messageDisposition, sendInvitationsOrCancellationsMode, - ServiceErrorHandling.ThrowOnError); + /** + * Updates an item. + * + * @param item the item + * @param savedItemsDestinationFolderId the saved items destination folder id + * @param conflictResolution the conflict resolution + * @param messageDisposition the message disposition + * @param sendInvitationsOrCancellationsMode the send invitations or cancellations mode + * @return A ServiceResponseCollection providing deletion results for each + * of the specified item Ids. + * @throws Exception the exception + */ + protected Item updateItem( + Item item, + FolderId savedItemsDestinationFolderId, + ConflictResolutionMode conflictResolution, + MessageDisposition messageDisposition, + SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) + throws Exception { + List itemIdArray = new ArrayList(); + itemIdArray.add(item); - return responses.getResponseAtIndex(0).getReturnedItem(); - } + ServiceResponseCollection responses = this + .internalUpdateItems(itemIdArray, + savedItemsDestinationFolderId, conflictResolution, + messageDisposition, sendInvitationsOrCancellationsMode, + ServiceErrorHandling.ThrowOnError); - /** - * Send item. - * - * @param item - * the item - * @param savedCopyDestinationFolderId - * the saved copy destination folder id - * @throws Exception - * the exception - */ - protected void sendItem(Item item, FolderId savedCopyDestinationFolderId) - throws Exception { - SendItemRequest request = new SendItemRequest(this, - ServiceErrorHandling.ThrowOnError); + return responses.getResponseAtIndex(0).getReturnedItem(); + } - List itemIdArray = new ArrayList(); - itemIdArray.add(item); + /** + * Send item. + * + * @param item the item + * @param savedCopyDestinationFolderId the saved copy destination folder id + * @throws Exception the exception + */ + protected void sendItem(Item item, FolderId savedCopyDestinationFolderId) + throws Exception { + SendItemRequest request = new SendItemRequest(this, + ServiceErrorHandling.ThrowOnError); - request.setItems(itemIdArray); - request.setSavedCopyDestinationFolderId(savedCopyDestinationFolderId); + List itemIdArray = new ArrayList(); + itemIdArray.add(item); - request.execute(); - } + request.setItems(itemIdArray); + request.setSavedCopyDestinationFolderId(savedCopyDestinationFolderId); - /** - * Copies multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param destinationFolderId - * the destination folder id - * @param returnNewItemIds - * Flag indicating whether service should return new ItemIds or - * not. - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalCopyItems( - Iterable itemIds, FolderId destinationFolderId, - Boolean returnNewItemIds, ServiceErrorHandling errorHandling) - throws Exception { - CopyItemRequest request = new CopyItemRequest(this, errorHandling); - request.getItemIds().addRange(itemIds); - request.setDestinationFolderId(destinationFolderId); - request.setReturnNewItemIds(returnNewItemIds); - return request.execute(); + request.execute(); + } - } + /** + * Copies multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param destinationFolderId the destination folder id + * @param returnNewItemIds Flag indicating whether service should return new ItemIds or + * not. + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception the exception + */ + private ServiceResponseCollection internalCopyItems( + Iterable itemIds, FolderId destinationFolderId, + Boolean returnNewItemIds, ServiceErrorHandling errorHandling) + throws Exception { + CopyItemRequest request = new CopyItemRequest(this, errorHandling); + request.getItemIds().addRange(itemIds); + request.setDestinationFolderId(destinationFolderId); + request.setReturnNewItemIds(returnNewItemIds); + return request.execute(); - /** - * Copies multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param destinationFolderId - * the destination folder id - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - * the exception - */ - public ServiceResponseCollection copyItems( - Iterable itemIds, FolderId destinationFolderId) - throws Exception { - return this.internalCopyItems(itemIds, destinationFolderId, null, - ServiceErrorHandling.ReturnErrors); - } + } - /** - * Copies multiple items in a single call to EWS. - * - * @param itemIds - * The Ids of the items to copy. - * @param destinationFolderId - * The Id of the folder to copy the items to. - * @param returnNewItemIds - * Flag indicating whether service should return new ItemIds or - * not. - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - */ - public ServiceResponseCollection copyItems( - Iterable itemIds, FolderId destinationFolderId, - boolean returnNewItemIds) throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "CopyItems"); + /** + * Copies multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param destinationFolderId the destination folder id + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception the exception + */ + public ServiceResponseCollection copyItems( + Iterable itemIds, FolderId destinationFolderId) + throws Exception { + return this.internalCopyItems(itemIds, destinationFolderId, null, + ServiceErrorHandling.ReturnErrors); + } - return this.internalCopyItems(itemIds, destinationFolderId, - returnNewItemIds, ServiceErrorHandling.ReturnErrors); - } + /** + * Copies multiple items in a single call to EWS. + * + * @param itemIds The Ids of the items to copy. + * @param destinationFolderId The Id of the folder to copy the items to. + * @param returnNewItemIds Flag indicating whether service should return new ItemIds or + * not. + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception + */ + public ServiceResponseCollection copyItems( + Iterable itemIds, FolderId destinationFolderId, + boolean returnNewItemIds) throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "CopyItems"); + + return this.internalCopyItems(itemIds, destinationFolderId, + returnNewItemIds, ServiceErrorHandling.ReturnErrors); + } - /** - * Copies an item. Calling this method results in a call to EWS. - * - * @param itemId - * The Id of the item to copy. - * @param destinationFolderId - * The folder in which to save sent messages, meeting invitations - * or cancellations. If null, the message, meeting invitation or - * cancellation is saved in the Sent Items folder - * @return The copy of the item. - * @throws Exception - * the exception - */ - protected Item copyItem(ItemId itemId, FolderId destinationFolderId) - throws Exception { - List itemIdArray = new ArrayList(); - itemIdArray.add(itemId); + /** + * Copies an item. Calling this method results in a call to EWS. + * + * @param itemId The Id of the item to copy. + * @param destinationFolderId The folder in which to save sent messages, meeting invitations + * or cancellations. If null, the message, meeting invitation or + * cancellation is saved in the Sent Items folder + * @return The copy of the item. + * @throws Exception the exception + */ + protected Item copyItem(ItemId itemId, FolderId destinationFolderId) + throws Exception { + List itemIdArray = new ArrayList(); + itemIdArray.add(itemId); - return this.internalCopyItems(itemIdArray, destinationFolderId, null, - ServiceErrorHandling.ThrowOnError).getResponseAtIndex(0) - .getItem(); - } + return this.internalCopyItems(itemIdArray, destinationFolderId, null, + ServiceErrorHandling.ThrowOnError).getResponseAtIndex(0) + .getItem(); + } - /** - * Moves multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param destinationFolderId - * the destination folder id - * @param returnNewItemIds - * Flag indicating whether service should return new ItemIds or - * not. - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalMoveItems( - Iterable itemIds, FolderId destinationFolderId, - Boolean returnNewItemIds, ServiceErrorHandling errorHandling) - throws Exception { - MoveItemRequest request = new MoveItemRequest(this, errorHandling); + /** + * Moves multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param destinationFolderId the destination folder id + * @param returnNewItemIds Flag indicating whether service should return new ItemIds or + * not. + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception the exception + */ + private ServiceResponseCollection internalMoveItems( + Iterable itemIds, FolderId destinationFolderId, + Boolean returnNewItemIds, ServiceErrorHandling errorHandling) + throws Exception { + MoveItemRequest request = new MoveItemRequest(this, errorHandling); - request.getItemIds().addRange(itemIds); - request.setDestinationFolderId(destinationFolderId); - request.setReturnNewItemIds(returnNewItemIds); - return request.execute(); - } + request.getItemIds().addRange(itemIds); + request.setDestinationFolderId(destinationFolderId); + request.setReturnNewItemIds(returnNewItemIds); + return request.execute(); + } - /** - * Moves multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param destinationFolderId - * the destination folder id - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - * the exception - */ - public ServiceResponseCollection moveItems( - Iterable itemIds, FolderId destinationFolderId) - throws Exception { - return this.internalMoveItems(itemIds, destinationFolderId, null, - ServiceErrorHandling.ReturnErrors); - } + /** + * Moves multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param destinationFolderId the destination folder id + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception the exception + */ + public ServiceResponseCollection moveItems( + Iterable itemIds, FolderId destinationFolderId) + throws Exception { + return this.internalMoveItems(itemIds, destinationFolderId, null, + ServiceErrorHandling.ReturnErrors); + } - /** - * Moves multiple items in a single call to EWS. - * - * @param itemIds - * The Ids of the items to move. - * @param destinationFolderId - * The Id of the folder to move the items to. - * @param returnNewItemIds - * Flag indicating whether service should return new ItemIds or - * not. - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - */ - public ServiceResponseCollection moveItems( - Iterable itemIds, FolderId destinationFolderId, - boolean returnNewItemIds) throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "MoveItems"); + /** + * Moves multiple items in a single call to EWS. + * + * @param itemIds The Ids of the items to move. + * @param destinationFolderId The Id of the folder to move the items to. + * @param returnNewItemIds Flag indicating whether service should return new ItemIds or + * not. + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception + */ + public ServiceResponseCollection moveItems( + Iterable itemIds, FolderId destinationFolderId, + boolean returnNewItemIds) throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "MoveItems"); + + return this.internalMoveItems(itemIds, destinationFolderId, + returnNewItemIds, ServiceErrorHandling.ReturnErrors); + } - return this.internalMoveItems(itemIds, destinationFolderId, - returnNewItemIds, ServiceErrorHandling.ReturnErrors); - } + /** + * Copies multiple items in a single call to EWS. + * + * @param itemId the item id + * @param destinationFolderId the destination folder id + * @return A ServiceResponseCollection providing copy results for each of + * the specified item Ids. + * @throws Exception the exception + */ + protected Item moveItem(ItemId itemId, FolderId destinationFolderId) + throws Exception { + List itemIdArray = new ArrayList(); + itemIdArray.add(itemId); - /** - * Copies multiple items in a single call to EWS. - * - * @param itemId - * the item id - * @param destinationFolderId - * the destination folder id - * @return A ServiceResponseCollection providing copy results for each of - * the specified item Ids. - * @throws Exception - * the exception - */ - protected Item moveItem(ItemId itemId, FolderId destinationFolderId) - throws Exception { - List itemIdArray = new ArrayList(); - itemIdArray.add(itemId); + return this.internalMoveItems(itemIdArray, destinationFolderId, null, + ServiceErrorHandling.ThrowOnError).getResponseAtIndex(0) + .getItem(); + } - return this.internalMoveItems(itemIdArray, destinationFolderId, null, - ServiceErrorHandling.ThrowOnError).getResponseAtIndex(0) - .getItem(); - } + /** + * Finds items. + * + * @param The type of item + * @param parentFolderIds The parent folder ids. + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param queryString the query string + * @param view The view controlling the number of folders returned. + * @param groupBy The group by. + * @param errorHandlingMode Indicates the type of error handling should be done. + * @return Service response collection. + * @throws Exception the exception + */ + protected ServiceResponseCollection> findItems( + Iterable parentFolderIds, SearchFilter searchFilter, + String queryString, ViewBase view, Grouping groupBy, + ServiceErrorHandling errorHandlingMode) throws Exception { + EwsUtilities.validateParamCollection(parentFolderIds.iterator(), + "parentFolderIds"); + EwsUtilities.validateParam(view, "view"); + EwsUtilities.validateParamAllowNull(groupBy, "groupBy"); + EwsUtilities.validateParamAllowNull(queryString, "queryString"); + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + + FindItemRequest request = new FindItemRequest(this, + errorHandlingMode); + + request.getParentFolderIds().addRangeFolderId(parentFolderIds); + request.setSearchFilter(searchFilter); + request.setQueryString(queryString); + request.setView(view); + request.setGroupBy(groupBy); - /** - * Finds items. - * - * @param - * The type of item - * @param parentFolderIds - * The parent folder ids. - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param queryString - * the query string - * @param view - * The view controlling the number of folders returned. - * @param groupBy - * The group by. - * @param errorHandlingMode - * Indicates the type of error handling should be done. - * @return Service response collection. - * @throws Exception - * the exception - */ - protected ServiceResponseCollection> findItems( - Iterable parentFolderIds, SearchFilter searchFilter, - String queryString, ViewBase view, Grouping groupBy, - ServiceErrorHandling errorHandlingMode) throws Exception { - EwsUtilities.validateParamCollection(parentFolderIds.iterator(), - "parentFolderIds"); - EwsUtilities.validateParam(view, "view"); - EwsUtilities.validateParamAllowNull(groupBy, "groupBy"); - EwsUtilities.validateParamAllowNull(queryString, "queryString"); - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - - FindItemRequest request = new FindItemRequest(this, - errorHandlingMode); - - request.getParentFolderIds().addRangeFolderId(parentFolderIds); - request.setSearchFilter(searchFilter); - request.setQueryString(queryString); - request.setView(view); - request.setGroupBy(groupBy); - - return request.execute(); - } - - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param queryString - * the query string - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - public FindItemsResults findItems(FolderId parentFolderId, - String queryString, ItemView view) throws Exception { - EwsUtilities.validateParamAllowNull(queryString, "queryString"); + return request.execute(); + } - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param queryString the query string + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + public FindItemsResults findItems(FolderId parentFolderId, + String queryString, ItemView view) throws Exception { + EwsUtilities.validateParamAllowNull(queryString, "queryString"); + + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + + ServiceResponseCollection> responses = this + .findItems(folderIdArray, null, /* searchFilter */ + queryString, view, null, /* groupBy */ + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getResults(); + } - ServiceResponseCollection> responses = this - .findItems(folderIdArray, null, /* searchFilter */ - queryString, view, null, /* groupBy */ - ServiceErrorHandling.ThrowOnError); + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param searchFilter the search filter + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + public FindItemsResults findItems(FolderId parentFolderId, + SearchFilter searchFilter, ItemView view) throws Exception { + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + ServiceResponseCollection> responses = this + .findItems(folderIdArray, searchFilter, null, /* queryString */ + view, null, /* groupBy */ + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getResults(); + } - return responses.getResponseAtIndex(0).getResults(); - } + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + public FindItemsResults findItems(FolderId parentFolderId, + ItemView view) throws Exception { + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + ServiceResponseCollection> responses = this + .findItems(folderIdArray, null, /* searchFilter */ + null, /* queryString */ + view, null, /* groupBy */ + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getResults(); + } - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param searchFilter - * the search filter - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - public FindItemsResults findItems(FolderId parentFolderId, - SearchFilter searchFilter, ItemView view) throws Exception { - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); - ServiceResponseCollection> responses = this - .findItems(folderIdArray, searchFilter, null, /* queryString */ - view, null, /* groupBy */ - ServiceErrorHandling.ThrowOnError); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - public FindItemsResults findItems(FolderId parentFolderId, - ItemView view) throws Exception { - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); - ServiceResponseCollection> responses = this - .findItems(folderIdArray, null, /* searchFilter */ - null, /* queryString */ - view, null, /* groupBy */ - ServiceErrorHandling.ThrowOnError); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param queryString - * the query string - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindItemsResults findItems( - WellKnownFolderName parentFolderName, String queryString, - ItemView view) throws Exception { - return this - .findItems(new FolderId(parentFolderName), queryString, view); - } - - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param searchFilter - * the search filter - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindItemsResults findItems( - WellKnownFolderName parentFolderName, SearchFilter searchFilter, - ItemView view) throws Exception { - return this.findItems(new FolderId(parentFolderName), searchFilter, - view); - } - - /** - * Obtains a list of items by searching the contents of a specific folder. - * Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param view - * the view - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindItemsResults findItems( - WellKnownFolderName parentFolderName, ItemView view) - throws Exception { - return this.findItems(new FolderId(parentFolderName), - (SearchFilter) null, view); - } + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param queryString the query string + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindItemsResults findItems( + WellKnownFolderName parentFolderName, String queryString, + ItemView view) throws Exception { + return this + .findItems(new FolderId(parentFolderName), queryString, view); + } - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param queryString - * the query string - * @param view - * the view - * @param groupBy - * the group by - * @return A list of items containing the contents of the specified folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(FolderId parentFolderId, - String queryString, ItemView view, Grouping groupBy) - throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - EwsUtilities.validateParamAllowNull(queryString, "queryString"); + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param searchFilter the search filter + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindItemsResults findItems( + WellKnownFolderName parentFolderName, SearchFilter searchFilter, + ItemView view) throws Exception { + return this.findItems(new FolderId(parentFolderName), searchFilter, + view); + } - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + /** + * Obtains a list of items by searching the contents of a specific folder. + * Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param view the view + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindItemsResults findItems( + WellKnownFolderName parentFolderName, ItemView view) + throws Exception { + return this.findItems(new FolderId(parentFolderName), + (SearchFilter) null, view); + } - ServiceResponseCollection> responses = this - .findItems(folderIdArray, null, /* searchFilter */ - queryString, view, groupBy, ServiceErrorHandling.ThrowOnError); + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param queryString the query string + * @param view the view + * @param groupBy the group by + * @return A list of items containing the contents of the specified folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(FolderId parentFolderId, + String queryString, ItemView view, Grouping groupBy) + throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + EwsUtilities.validateParamAllowNull(queryString, "queryString"); - return responses.getResponseAtIndex(0).getGroupedFindResults(); - } + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param searchFilter - * the search filter - * @param view - * the view - * @param groupBy - * the group by - * @return A list of items containing the contents of the specified folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(FolderId parentFolderId, - SearchFilter searchFilter, ItemView view, Grouping groupBy) - throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + ServiceResponseCollection> responses = this + .findItems(folderIdArray, null, /* searchFilter */ + queryString, view, groupBy, ServiceErrorHandling.ThrowOnError); - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + return responses.getResponseAtIndex(0).getGroupedFindResults(); + } - ServiceResponseCollection> responses = this - .findItems(folderIdArray, searchFilter, null, /* queryString */ - view, groupBy, ServiceErrorHandling.ThrowOnError); + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param searchFilter the search filter + * @param view the view + * @param groupBy the group by + * @return A list of items containing the contents of the specified folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(FolderId parentFolderId, + SearchFilter searchFilter, ItemView view, Grouping groupBy) + throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - return responses.getResponseAtIndex(0).getGroupedFindResults(); - } + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param view - * the view - * @param groupBy - * the group by - * @return A list of items containing the contents of the specified folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(FolderId parentFolderId, - ItemView view, Grouping groupBy) throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); + ServiceResponseCollection> responses = this + .findItems(folderIdArray, searchFilter, null, /* queryString */ + view, groupBy, ServiceErrorHandling.ThrowOnError); - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + return responses.getResponseAtIndex(0).getGroupedFindResults(); + } - ServiceResponseCollection> responses = this - .findItems(folderIdArray, null, /* searchFilter */ - null, /* queryString */ - view, groupBy, ServiceErrorHandling.ThrowOnError); + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param view the view + * @param groupBy the group by + * @return A list of items containing the contents of the specified folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(FolderId parentFolderId, + ItemView view, Grouping groupBy) throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); + + ServiceResponseCollection> responses = this + .findItems(folderIdArray, null, /* searchFilter */ + null, /* queryString */ + view, groupBy, ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getGroupedFindResults(); + } - return responses.getResponseAtIndex(0).getGroupedFindResults(); - } + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param the generic type + * @param cls the cls + * @param parentFolderId the parent folder id + * @param searchFilter the search filter + * @param view the view + * @param groupBy the group by + * @return A list of items containing the contents of the specified folder. + * @throws Exception the exception + */ + protected ServiceResponseCollection> findItems( + Class cls, FolderId parentFolderId, + SearchFilter searchFilter, ViewBase view, Grouping groupBy) + throws Exception { + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param - * the generic type - * @param cls - * the cls - * @param parentFolderId - * the parent folder id - * @param searchFilter - * the search filter - * @param view - * the view - * @param groupBy - * the group by - * @return A list of items containing the contents of the specified folder. - * @throws Exception - * the exception - */ - protected ServiceResponseCollection> findItems( - Class cls, FolderId parentFolderId, - SearchFilter searchFilter, ViewBase view, Grouping groupBy) - throws Exception { - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + return this.findItems(folderIdArray, searchFilter, null, /* queryString */ + view, groupBy, ServiceErrorHandling.ThrowOnError); + } - return this.findItems(folderIdArray, searchFilter, null, /* queryString */ - view, groupBy, ServiceErrorHandling.ThrowOnError); - } + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param queryString the query string + * @param view the view + * @param groupBy the group by + * @return A collection of grouped items containing the contents of the + * specified. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems( + WellKnownFolderName parentFolderName, String queryString, + ItemView view, Grouping groupBy) throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + return this.findItems(new FolderId(parentFolderName), queryString, + view, groupBy); + } - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param queryString - * the query string - * @param view - * the view - * @param groupBy - * the group by - * @return A collection of grouped items containing the contents of the - * specified. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems( - WellKnownFolderName parentFolderName, String queryString, - ItemView view, Grouping groupBy) throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - return this.findItems(new FolderId(parentFolderName), queryString, - view, groupBy); - } - - /** - * Obtains a grouped list of items by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param searchFilter - * the search filter - * @param view - * the view - * @param groupBy - * the group by - * @return A collection of grouped items containing the contents of the - * specified. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems( - WellKnownFolderName parentFolderName, SearchFilter searchFilter, - ItemView view, Grouping groupBy) throws Exception { - return this.findItems(new FolderId(parentFolderName), searchFilter, - view, groupBy); - } - - /** - * Obtains a list of appointments by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderId - * the parent folder id - * @param calendarView - * the calendar view - * @return A collection of appointments representing the contents of the - * specified folder. - * @throws Exception - * the exception - */ - public FindItemsResults findAppointments( - FolderId parentFolderId, CalendarView calendarView) - throws Exception { - List folderIdArray = new ArrayList(); - folderIdArray.add(parentFolderId); + /** + * Obtains a grouped list of items by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param searchFilter the search filter + * @param view the view + * @param groupBy the group by + * @return A collection of grouped items containing the contents of the + * specified. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems( + WellKnownFolderName parentFolderName, SearchFilter searchFilter, + ItemView view, Grouping groupBy) throws Exception { + return this.findItems(new FolderId(parentFolderName), searchFilter, + view, groupBy); + } - ServiceResponseCollection> response = this - .findItems(folderIdArray, null, /* searchFilter */ - null /* queryString */, calendarView, null, /* groupBy */ - ServiceErrorHandling.ThrowOnError); + /** + * Obtains a list of appointments by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderId the parent folder id + * @param calendarView the calendar view + * @return A collection of appointments representing the contents of the + * specified folder. + * @throws Exception the exception + */ + public FindItemsResults findAppointments( + FolderId parentFolderId, CalendarView calendarView) + throws Exception { + List folderIdArray = new ArrayList(); + folderIdArray.add(parentFolderId); - return response.getResponseAtIndex(0).getResults(); - } + ServiceResponseCollection> response = this + .findItems(folderIdArray, null, /* searchFilter */ + null /* queryString */, calendarView, null, /* groupBy */ + ServiceErrorHandling.ThrowOnError); - /** - * Obtains a list of appointments by searching the contents of a specific - * folder. Calling this method results in a call to EWS. - * - * @param parentFolderName - * the parent folder name - * @param calendarView - * the calendar view - * @return A collection of appointments representing the contents of the - * specified folder. - * @throws Exception - * the exception - */ - public FindItemsResults findAppointments( - WellKnownFolderName parentFolderName, CalendarView calendarView) - throws Exception { - return this.findAppointments(new FolderId(parentFolderName), - calendarView); - } + return response.getResponseAtIndex(0).getResults(); + } - /** - * Loads the properties of multiple items in a single call to EWS. - * - * @param items - * the items - * @param propertySet - * the property set - * @return A ServiceResponseCollection providing results for each of the - * specified items. - * @throws Exception - * the exception - */ - public ServiceResponseCollection loadPropertiesForItems( - Iterable items, PropertySet propertySet) throws Exception { - EwsUtilities.validateParamCollection(items.iterator(), "items"); - EwsUtilities.validateParam(propertySet, "propertySet"); + /** + * Obtains a list of appointments by searching the contents of a specific + * folder. Calling this method results in a call to EWS. + * + * @param parentFolderName the parent folder name + * @param calendarView the calendar view + * @return A collection of appointments representing the contents of the + * specified folder. + * @throws Exception the exception + */ + public FindItemsResults findAppointments( + WellKnownFolderName parentFolderName, CalendarView calendarView) + throws Exception { + return this.findAppointments(new FolderId(parentFolderName), + calendarView); + } - return this.internalLoadPropertiesForItems(items, propertySet, - ServiceErrorHandling.ReturnErrors); - } + /** + * Loads the properties of multiple items in a single call to EWS. + * + * @param items the items + * @param propertySet the property set + * @return A ServiceResponseCollection providing results for each of the + * specified items. + * @throws Exception the exception + */ + public ServiceResponseCollection loadPropertiesForItems( + Iterable items, PropertySet propertySet) throws Exception { + EwsUtilities.validateParamCollection(items.iterator(), "items"); + EwsUtilities.validateParam(propertySet, "propertySet"); + + return this.internalLoadPropertiesForItems(items, propertySet, + ServiceErrorHandling.ReturnErrors); + } - /** - * Loads the properties of multiple items in a single call to EWS. - * - * @param items - * the items - * @param propertySet - * the property set - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing results for each of the - * specified items. - * @throws Exception - * the exception - */ - ServiceResponseCollection internalLoadPropertiesForItems( - Iterable items, PropertySet propertySet, - ServiceErrorHandling errorHandling) throws Exception { - GetItemRequestForLoad request = new GetItemRequestForLoad(this, - errorHandling); - // return null; + /** + * Loads the properties of multiple items in a single call to EWS. + * + * @param items the items + * @param propertySet the property set + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing results for each of the + * specified items. + * @throws Exception the exception + */ + ServiceResponseCollection internalLoadPropertiesForItems( + Iterable items, PropertySet propertySet, + ServiceErrorHandling errorHandling) throws Exception { + GetItemRequestForLoad request = new GetItemRequestForLoad(this, + errorHandling); + // return null; + + request.getItemIds().addRangeItem(items); + request.setPropertySet(propertySet); - request.getItemIds().addRangeItem(items); - request.setPropertySet(propertySet); + return request.execute(); + } - return request.execute(); - } + /** + * Binds to multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param propertySet the property set + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing results for each of the + * specified item Ids. + * @throws Exception the exception + */ + private ServiceResponseCollection internalBindToItems( + Iterable itemIds, PropertySet propertySet, + ServiceErrorHandling errorHandling) throws Exception { + GetItemRequest request = new GetItemRequest(this, errorHandling); + request.getItemIds().addRange(itemIds); + request.setPropertySet(propertySet); + return request.execute(); + } - /** - * Binds to multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param propertySet - * the property set - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing results for each of the - * specified item Ids. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalBindToItems( - Iterable itemIds, PropertySet propertySet, - ServiceErrorHandling errorHandling) throws Exception { - GetItemRequest request = new GetItemRequest(this, errorHandling); - request.getItemIds().addRange(itemIds); - request.setPropertySet(propertySet); - return request.execute(); - } - - /** - * Binds to multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param propertySet - * the property set - * @return A ServiceResponseCollection providing results for each of the - * specified item Ids. - * @throws Exception - * the exception - */ - public ServiceResponseCollection bindToItems( - Iterable itemIds, PropertySet propertySet) throws Exception { - EwsUtilities.validateParamCollection(itemIds.iterator(), "itemIds"); - EwsUtilities.validateParam(propertySet, "propertySet"); + /** + * Binds to multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param propertySet the property set + * @return A ServiceResponseCollection providing results for each of the + * specified item Ids. + * @throws Exception the exception + */ + public ServiceResponseCollection bindToItems( + Iterable itemIds, PropertySet propertySet) throws Exception { + EwsUtilities.validateParamCollection(itemIds.iterator(), "itemIds"); + EwsUtilities.validateParam(propertySet, "propertySet"); + + return this.internalBindToItems(itemIds, propertySet, + ServiceErrorHandling.ReturnErrors); + } - return this.internalBindToItems(itemIds, propertySet, - ServiceErrorHandling.ReturnErrors); - } + /** + * Binds to multiple items in a single call to EWS. + * + * @param itemId the item id + * @param propertySet the property set + * @return A ServiceResponseCollection providing results for each of the + * specified item Ids. + * @throws Exception the exception + */ + protected Item bindToItem(ItemId itemId, PropertySet propertySet) + throws Exception { + EwsUtilities.validateParam(itemId, "itemId"); + EwsUtilities.validateParam(propertySet, "propertySet"); + List itmLst = new ArrayList(); + itmLst.add(itemId); + ServiceResponseCollection responses = this + .internalBindToItems(itmLst, propertySet, + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getItem(); + } - /** - * Binds to multiple items in a single call to EWS. - * - * @param itemId - * the item id - * @param propertySet - * the property set - * @return A ServiceResponseCollection providing results for each of the - * specified item Ids. - * @throws Exception - * the exception - */ - protected Item bindToItem(ItemId itemId, PropertySet propertySet) - throws Exception { - EwsUtilities.validateParam(itemId, "itemId"); - EwsUtilities.validateParam(propertySet, "propertySet"); - List itmLst = new ArrayList(); - itmLst.add(itemId); - ServiceResponseCollection responses = this - .internalBindToItems(itmLst, propertySet, - ServiceErrorHandling.ThrowOnError); - - return responses.getResponseAtIndex(0).getItem(); - } - - /** - * Bind to item. - * - * @param - * The type of the item. - * @param c - * the c - * @param itemId - * the item id - * @param propertySet - * the property set - * @return the t item - * @throws Exception - * the exception - */ - protected TItem bindToItem(Class c, - ItemId itemId, PropertySet propertySet) throws Exception { - Item result = this.bindToItem(itemId, propertySet); - if (c.isAssignableFrom(result.getClass())) { - return (TItem) result; - } else { - throw new ServiceLocalException(String.format( - Strings.ItemTypeNotCompatible, result.getClass().getName(), - c.getName())); - } - } - - /** - * Deletes multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing deletion results for each - * of the specified item Ids. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalDeleteItems( - Iterable itemIds, DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences, - ServiceErrorHandling errorHandling) throws Exception { - DeleteItemRequest request = new DeleteItemRequest(this, errorHandling); - - request.getItemIds().addRange(itemIds); - request.setDeleteMode(deleteMode); - request.setSendCancellationsMode(sendCancellationsMode); - request.setAffectedTaskOccurrences(affectedTaskOccurrences); - - return request.execute(); - } - - /** - * Deletes multiple items in a single call to EWS. - * - * @param itemIds - * the item ids - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @return A ServiceResponseCollection providing deletion results for each - * of the specified item Ids. - * @throws Exception - * the exception - */ - public ServiceResponseCollection deleteItems( - Iterable itemIds, DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { - EwsUtilities.validateParamCollection(itemIds.iterator(), "itemIds"); - - return this.internalDeleteItems(itemIds, deleteMode, - sendCancellationsMode, affectedTaskOccurrences, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Deletes an item. Calling this method results in a call to EWS. - * - * @param itemId - * the item id - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @throws Exception - * the exception - */ - protected void deleteItem(ItemId itemId, DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { - List itemIdArray = new ArrayList(); - itemIdArray.add(itemId); - - EwsUtilities.validateParam(itemId, "itemId"); - this.internalDeleteItems(itemIdArray, deleteMode, - sendCancellationsMode, affectedTaskOccurrences, - ServiceErrorHandling.ThrowOnError); - } - - /** - * Gets an attachment. - * - * @param attachments - * the attachments - * @param bodyType - * the body type - * @param additionalProperties - * the additional properties - * @param errorHandling - * the error handling - * @throws Exception - * the exception - */ + /** + * Bind to item. + * + * @param The type of the item. + * @param c the c + * @param itemId the item id + * @param propertySet the property set + * @return the t item + * @throws Exception the exception + */ + protected TItem bindToItem(Class c, + ItemId itemId, PropertySet propertySet) throws Exception { + Item result = this.bindToItem(itemId, propertySet); + if (c.isAssignableFrom(result.getClass())) { + return (TItem) result; + } else { + throw new ServiceLocalException(String.format( + Strings.ItemTypeNotCompatible, result.getClass().getName(), + c.getName())); + } + } + + /** + * Deletes multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing deletion results for each + * of the specified item Ids. + * @throws Exception the exception + */ + private ServiceResponseCollection internalDeleteItems( + Iterable itemIds, DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences, + ServiceErrorHandling errorHandling) throws Exception { + DeleteItemRequest request = new DeleteItemRequest(this, errorHandling); + + request.getItemIds().addRange(itemIds); + request.setDeleteMode(deleteMode); + request.setSendCancellationsMode(sendCancellationsMode); + request.setAffectedTaskOccurrences(affectedTaskOccurrences); + + return request.execute(); + } + + /** + * Deletes multiple items in a single call to EWS. + * + * @param itemIds the item ids + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @return A ServiceResponseCollection providing deletion results for each + * of the specified item Ids. + * @throws Exception the exception + */ + public ServiceResponseCollection deleteItems( + Iterable itemIds, DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { + EwsUtilities.validateParamCollection(itemIds.iterator(), "itemIds"); + + return this.internalDeleteItems(itemIds, deleteMode, + sendCancellationsMode, affectedTaskOccurrences, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Deletes an item. Calling this method results in a call to EWS. + * + * @param itemId the item id + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @throws Exception the exception + */ + protected void deleteItem(ItemId itemId, DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { + List itemIdArray = new ArrayList(); + itemIdArray.add(itemId); + + EwsUtilities.validateParam(itemId, "itemId"); + this.internalDeleteItems(itemIdArray, deleteMode, + sendCancellationsMode, affectedTaskOccurrences, + ServiceErrorHandling.ThrowOnError); + } + + /** + * Gets an attachment. + * + * @param attachments the attachments + * @param bodyType the body type + * @param additionalProperties the additional properties + * @param errorHandling the error handling + * @throws Exception the exception + */ private ServiceResponseCollection internalGetAttachments( Iterable attachments, BodyType bodyType, Iterable additionalProperties, ServiceErrorHandling errorHandling) @@ -1562,896 +1338,775 @@ private ServiceResponseCollection internalGetAttachments( return request.execute(); } - /** - * Gets attachments. - * - * @param attachments - * the attachments - * @param bodyType - * the body type - * @param additionalProperties - * the additional properties - * @return Service response collection. - * @throws Exception - */ - protected ServiceResponseCollection getAttachments( - Attachment[] attachments, BodyType bodyType, - Iterable additionalProperties) - throws Exception { - List attList = new ArrayList(); - for (Attachment attachment : attachments) { - attList.add(attachment); - } - return this.internalGetAttachments(attList, bodyType, - additionalProperties, ServiceErrorHandling.ReturnErrors); - } - - /** - * Gets the attachment. - * - * @param attachment - * the attachment - * @param bodyType - * the body type - * @param additionalProperties - * the additional properties - * @throws Exception - * the exception - */ - protected void getAttachment(Attachment attachment, BodyType bodyType, - Iterable additionalProperties) - throws Exception { + /** + * Gets attachments. + * + * @param attachments the attachments + * @param bodyType the body type + * @param additionalProperties the additional properties + * @return Service response collection. + * @throws Exception + */ + protected ServiceResponseCollection getAttachments( + Attachment[] attachments, BodyType bodyType, + Iterable additionalProperties) + throws Exception { + List attList = new ArrayList(); + for (Attachment attachment : attachments) { + attList.add(attachment); + } + return this.internalGetAttachments(attList, bodyType, + additionalProperties, ServiceErrorHandling.ReturnErrors); + } - List attachmentArray = new ArrayList(); - attachmentArray.add(attachment); + /** + * Gets the attachment. + * + * @param attachment the attachment + * @param bodyType the body type + * @param additionalProperties the additional properties + * @throws Exception the exception + */ + protected void getAttachment(Attachment attachment, BodyType bodyType, + Iterable additionalProperties) + throws Exception { - this.internalGetAttachments(attachmentArray, bodyType, - additionalProperties, ServiceErrorHandling.ThrowOnError); + List attachmentArray = new ArrayList(); + attachmentArray.add(attachment); - } + this.internalGetAttachments(attachmentArray, bodyType, + additionalProperties, ServiceErrorHandling.ThrowOnError); - /** - * Creates attachments. - * - * @param parentItemId - * the parent item id - * @param attachments - * the attachments - * @return Service response collection. - * @throws ServiceResponseException - * the service response exception - * @throws Exception - * the exception - */ - protected ServiceResponseCollection createAttachments( - String parentItemId, Iterable attachments) - throws ServiceResponseException, Exception { - CreateAttachmentRequest request = new CreateAttachmentRequest(this, - ServiceErrorHandling.ReturnErrors); - - request.setParentItemId(parentItemId); - /* + } + + /** + * Creates attachments. + * + * @param parentItemId the parent item id + * @param attachments the attachments + * @return Service response collection. + * @throws ServiceResponseException the service response exception + * @throws Exception the exception + */ + protected ServiceResponseCollection createAttachments( + String parentItemId, Iterable attachments) + throws ServiceResponseException, Exception { + CreateAttachmentRequest request = new CreateAttachmentRequest(this, + ServiceErrorHandling.ReturnErrors); + + request.setParentItemId(parentItemId); + /* * if (null != attachments) { while (attachments.hasNext()) { * request.getAttachments().add(attachments.next()); } } */ - request.getAttachments().addAll( - (Collection) attachments); + request.getAttachments().addAll( + (Collection) attachments); - return request.execute(); - } + return request.execute(); + } - /** - * Deletes attachments. - * - * @param attachments - * the attachments - * @return the service response collection - * @throws ServiceResponseException - * the service response exception - * @throws Exception - * the exception - */ - protected ServiceResponseCollection deleteAttachments( - Iterable attachments) throws ServiceResponseException, - Exception { - DeleteAttachmentRequest request = new DeleteAttachmentRequest(this, - ServiceErrorHandling.ReturnErrors); - - request.getAttachments().addAll( - (Collection) attachments); - - return request.execute(); - } - - /** - * Finds contacts in the user's Contacts folder and the Global Address - * List (in that order) that have names that match the one passed as a - * parameter. Calling this method results in a call to EWS. - * - * @param nameToResolve - * the name to resolve - * @return A collection of name resolutions whose names match the one passed - * as a parameter. - * @throws Exception - * the exception - */ - public NameResolutionCollection resolveName(String nameToResolve) - throws Exception { - return this.resolveName(nameToResolve, - ResolveNameSearchLocation.ContactsThenDirectory, false); - } - - /** - * Finds contacts in the user's Contacts folder and the Global Address - * List (in that order) that have names that match the one passed as a - * parameter. Calling this method results in a call to EWS. - * - * @param nameToResolve - * the name to resolve - * @param parentFolderIds - * the parent folder ids - * @param searchScope - * the search scope - * @param returnContactDetails - * the return contact details - * @return A collection of name resolutions whose names match the one passed - * as a parameter. - * @throws Exception - * the exception - */ - public NameResolutionCollection resolveName(String nameToResolve, - Iterable parentFolderIds, - ResolveNameSearchLocation searchScope, boolean returnContactDetails) - throws Exception { - return resolveName(nameToResolve, parentFolderIds, searchScope, - returnContactDetails, null); + /** + * Deletes attachments. + * + * @param attachments the attachments + * @return the service response collection + * @throws ServiceResponseException the service response exception + * @throws Exception the exception + */ + protected ServiceResponseCollection deleteAttachments( + Iterable attachments) throws ServiceResponseException, + Exception { + DeleteAttachmentRequest request = new DeleteAttachmentRequest(this, + ServiceErrorHandling.ReturnErrors); + + request.getAttachments().addAll( + (Collection) attachments); - } + return request.execute(); + } - /** - * Finds contacts in the Global Address List and/or in specific contact - * folders that have names that match the one passed as a parameter. Calling - * this method results in a call to EWS. - * - * @param nameToResolve - * The name to resolve. - *@param parentFolderIds - * The Ids of the contact folders in which to look for matching - * contacts. - *@param searchScope - * The scope of the search. - *@param returnContactDetails - * Indicates whether full contact information should be returned - * for each of the found contacts. - *@param contactDataPropertySet - * The property set for the contact details - * @throws Exception - * @return A collection of name resolutions whose names match the one - * passed as a parameter. - */ - public NameResolutionCollection resolveName(String nameToResolve, - Iterable parentFolderIds, - ResolveNameSearchLocation searchScope, - boolean returnContactDetails, PropertySet contactDataPropertySet) - throws Exception { - if (contactDataPropertySet != null) { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "ResolveName"); - } - - EwsUtilities.validateParam(nameToResolve, "nameToResolve"); - - if (parentFolderIds != null) { - EwsUtilities.validateParamCollection(parentFolderIds.iterator(), - "parentFolderIds"); - } - ResolveNamesRequest request = new ResolveNamesRequest(this); - - request.setNameToResolve(nameToResolve); - request.setReturnFullContactData(returnContactDetails); - request.getParentFolderIds().addRangeFolderId(parentFolderIds); - request.setSearchLocation(searchScope); - request.setContactDataPropertySet(contactDataPropertySet); - - return request.execute().getResponseAtIndex(0).getResolutions(); - } - - /** - * Finds contacts in the Global Address List that have names that match the - * one passed as a parameter. Calling this method results in a call to EWS. - * - * @param nameToResolve - * The name to resolve. - *@param searchScope - * The scope of the search. - *@param returnContactDetails - * Indicates whether full contact information should be returned - * for each of the found contacts. - *@param contactDataPropertySet - * The property set for the contact details - * @throws Exception - * @return A collection of name resolutions whose names match the one - * passed as a parameter. - */ - public NameResolutionCollection resolveName(String nameToResolve, - ResolveNameSearchLocation searchScope, - boolean returnContactDetails, PropertySet contactDataPropertySet) - throws Exception { - return this.resolveName(nameToResolve, null, searchScope, - returnContactDetails, contactDataPropertySet); - } - - /** - * Finds contacts in the user's Contacts folder and the Global Address - * List (in that order) that have names that match the one passed as a - * parameter. Calling this method results in a call to EWS. - * - * @param nameToResolve - * the name to resolve - * @param searchScope - * the search scope - * @param returnContactDetails - * the return contact details - * @return A collection of name resolutions whose names match the one passed - * as a parameter. - * @throws Exception - * the exception - */ - public NameResolutionCollection resolveName(String nameToResolve, - ResolveNameSearchLocation searchScope, boolean returnContactDetails) - throws Exception { - return this.resolveName(nameToResolve, null, searchScope, - returnContactDetails); - } + /** + * Finds contacts in the user's Contacts folder and the Global Address + * List (in that order) that have names that match the one passed as a + * parameter. Calling this method results in a call to EWS. + * + * @param nameToResolve the name to resolve + * @return A collection of name resolutions whose names match the one passed + * as a parameter. + * @throws Exception the exception + */ + public NameResolutionCollection resolveName(String nameToResolve) + throws Exception { + return this.resolveName(nameToResolve, + ResolveNameSearchLocation.ContactsThenDirectory, false); + } - /** - * Expands a group by retrieving a list of its members. Calling this - * method results in a call to EWS. - * - * @param emailAddress - * the email address - * @return URL of the Exchange Web Services. - * @throws Exception - * the exception - */ - public ExpandGroupResults expandGroup(EmailAddress emailAddress) - throws Exception { - EwsUtilities.validateParam(emailAddress, "emailAddress"); - ExpandGroupRequest request = new ExpandGroupRequest(this); - request.setEmailAddress(emailAddress); - return request.execute().getResponseAtIndex(0).getMembers(); - } - - /** - * Expands a group by retrieving a list of its members. Calling this - * method results in a call to EWS. - * - * @param groupId - * the group id - * @return An ExpandGroupResults containing the members of the group. - * @throws Exception - * the exception - */ - public ExpandGroupResults expandGroup(ItemId groupId) throws Exception { - EwsUtilities.validateParam(groupId, "groupId"); - EmailAddress emailAddress = new EmailAddress(); - emailAddress.setId(groupId); - return this.expandGroup(emailAddress); - } - - /** - * Expands a group by retrieving a list of its members. Calling this - * method results in a call to EWS. - * - * @param smtpAddress - * the smtp address - * @return An ExpandGroupResults containing the members of the group. - * @throws Exception - * the exception - */ - public ExpandGroupResults expandGroup(String smtpAddress) throws Exception { - EwsUtilities.validateParam(smtpAddress, "smtpAddress"); - return this.expandGroup(new EmailAddress(smtpAddress)); - } - - /** - * Expands a group by retrieving a list of its members. Calling this - * method results in a call to EWS. - * - * @param address - * the address - * @param routingType - * the routing type - * @return An ExpandGroupResults containing the members of the group. - * @throws Exception - * the exception - */ - public ExpandGroupResults expandGroup(String address, String routingType) - throws Exception { - EwsUtilities.validateParam(address, "address"); - EwsUtilities.validateParam(routingType, "routingType"); + /** + * Finds contacts in the user's Contacts folder and the Global Address + * List (in that order) that have names that match the one passed as a + * parameter. Calling this method results in a call to EWS. + * + * @param nameToResolve the name to resolve + * @param parentFolderIds the parent folder ids + * @param searchScope the search scope + * @param returnContactDetails the return contact details + * @return A collection of name resolutions whose names match the one passed + * as a parameter. + * @throws Exception the exception + */ + public NameResolutionCollection resolveName(String nameToResolve, + Iterable parentFolderIds, + ResolveNameSearchLocation searchScope, boolean returnContactDetails) + throws Exception { + return resolveName(nameToResolve, parentFolderIds, searchScope, + returnContactDetails, null); - EmailAddress emailAddress = new EmailAddress(address); - emailAddress.setRoutingType(routingType); - return this.expandGroup(emailAddress); - } + } - /** - * Get the password expiration date - * - * @param mailboxSmtpAddress - * The e-mail address of the user. - * @throws Exception - * @return The password expiration date - */ - public Date getPasswordExpirationDate(String mailboxSmtpAddress) - throws Exception { - GetPasswordExpirationDateRequest request = new GetPasswordExpirationDateRequest( - this); - request.setMailboxSmtpAddress(mailboxSmtpAddress); + /** + * Finds contacts in the Global Address List and/or in specific contact + * folders that have names that match the one passed as a parameter. Calling + * this method results in a call to EWS. + * + * @param nameToResolve The name to resolve. + * @param parentFolderIds The Ids of the contact folders in which to look for matching + * contacts. + * @param searchScope The scope of the search. + * @param returnContactDetails Indicates whether full contact information should be returned + * for each of the found contacts. + * @param contactDataPropertySet The property set for the contact details + * @return A collection of name resolutions whose names match the one + * passed as a parameter. + * @throws Exception + */ + public NameResolutionCollection resolveName(String nameToResolve, + Iterable parentFolderIds, + ResolveNameSearchLocation searchScope, + boolean returnContactDetails, PropertySet contactDataPropertySet) + throws Exception { + if (contactDataPropertySet != null) { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "ResolveName"); + } - return request.execute().getPasswordExpirationDate(); - } + EwsUtilities.validateParam(nameToResolve, "nameToResolve"); - /** - * Subscribes to pull notifications. Calling this method results in a call - * to EWS. - * - * @param folderIds - * The Ids of the folder to subscribe to - * @param timeout - * The timeout, in minutes, after which the subscription expires. - * Timeout must be between 1 and 1440. - * @param watermark - * An optional watermark representing a previously opened - * subscription. - * @param eventTypes - * The event types to subscribe to. - * @return A PullSubscription representing the new subscription. - * @throws Exception - */ - public PullSubscription subscribeToPullNotifications( - Iterable folderIds, int timeout, String watermark, - EventType... eventTypes) throws Exception { - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + if (parentFolderIds != null) { + EwsUtilities.validateParamCollection(parentFolderIds.iterator(), + "parentFolderIds"); + } + ResolveNamesRequest request = new ResolveNamesRequest(this); - return this.buildSubscribeToPullNotificationsRequest(folderIds, - timeout, watermark, eventTypes).execute().getResponseAtIndex(0) - .getSubscription(); - } + request.setNameToResolve(nameToResolve); + request.setReturnFullContactData(returnContactDetails); + request.getParentFolderIds().addRangeFolderId(parentFolderIds); + request.setSearchLocation(searchScope); + request.setContactDataPropertySet(contactDataPropertySet); - /** - * Begins an asynchronous request to subscribes to pull notifications. - * Calling this method results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate. - * @param state - * An object that contains state information for this request. - * @param folderIds - * The Ids of the folder to subscribe to. - * @param timeout - * The timeout, in minutes, after which the subscription expires. - * Timeout must be between 1 and 1440. - * @param watermark - * An optional watermark representing a previously opened - * subscription. - * @param eventTypes - * The event types to subscribe to. - * @throws Exception - * @return An IAsyncResult that references the asynchronous request. - */ - public AsyncRequestResult beginSubscribeToPullNotifications( - AsyncCallback callback, Object state, Iterable folderIds, - int timeout, String watermark, EventType... eventTypes) - throws Exception { - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + return request.execute().getResponseAtIndex(0).getResolutions(); + } - return this.buildSubscribeToPullNotificationsRequest(folderIds, - timeout, watermark, eventTypes).beginExecute(callback, null); - } + /** + * Finds contacts in the Global Address List that have names that match the + * one passed as a parameter. Calling this method results in a call to EWS. + * + * @param nameToResolve The name to resolve. + * @param searchScope The scope of the search. + * @param returnContactDetails Indicates whether full contact information should be returned + * for each of the found contacts. + * @param contactDataPropertySet The property set for the contact details + * @return A collection of name resolutions whose names match the one + * passed as a parameter. + * @throws Exception + */ + public NameResolutionCollection resolveName(String nameToResolve, + ResolveNameSearchLocation searchScope, + boolean returnContactDetails, PropertySet contactDataPropertySet) + throws Exception { + return this.resolveName(nameToResolve, null, searchScope, + returnContactDetails, contactDataPropertySet); + } - /** - * Subscribes to pull notifications on all folders in the authenticated - * user's mailbox. Calling this method results in a call to EWS. - * - * @param timeout - * the timeout - * @param watermark - * the watermark - * @param eventTypes - * the event types - * @return A PullSubscription representing the new subscription. - * @throws Exception - * the exception - */ - public PullSubscription subscribeToPullNotificationsOnAllFolders( - int timeout, String watermark, EventType... eventTypes) - throws Exception { - EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, - "SubscribeToPullNotificationsOnAllFolders"); - - return this.buildSubscribeToPullNotificationsRequest(null, timeout, - watermark, eventTypes).execute().getResponseAtIndex(0) - .getSubscription(); - } - - /** - * Begins an asynchronous request to subscribe to pull notifications on all - * folders in the authenticated user's mailbox. Calling this method results - * in a call to EWS. - * - * @param callback - * The AsyncCallback delegate. - * @param state - * An object that contains state information for this request. - * @param timeout - * The timeout, in minutes, after which the subscription expires. - * Timeout must be between 1 and 1440. - * @param watermark - * An optional watermark representing a previously opened - * subscription. - * @param eventTypes - * The event types to subscribe to. - * @throws Exception - * @return An IAsyncResult that references the asynchronous request. - */ - public IAsyncResult beginSubscribeToPullNotificationsOnAllFolders(AsyncCallback callback,Object state, - int timeout, - String watermark, EventType... eventTypes) throws Exception { - EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, - "BeginSubscribeToPullNotificationsOnAllFolders"); - - return this.buildSubscribeToPullNotificationsRequest(null, timeout, - watermark, eventTypes).beginExecute(null,null); - } - - /** - * Ends an asynchronous request to subscribe to pull notifications in the - * authenticated user's mailbox. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @throws Exception - * @return A PullSubscription representing the new subscription. - */ - public PullSubscription endSubscribeToPullNotifications( - IAsyncResult asyncResult) throws Exception { - SubscribeToPullNotificationsRequest request = AsyncRequestResult - .extractServiceRequest(this, asyncResult); - - return request.endExecute(asyncResult).getResponseAtIndex(0) - .getSubscription(); - } - - /** - * Builds a request to subscribe to pull notifications in the - * authenticated user's mailbox. - * - * @param folderIds - * The Ids of the folder to subscribe to. - * @param timeout - * The timeout, in minutes, after which the subscription expires. - * Timeout must be between 1 and 1440 - * @param watermark - * An optional watermark representing a previously opened - * subscription - * @param eventTypes - * The event types to subscribe to - * @return A request to subscribe to pull notifications in the authenticated - * user's mailbox - * @throws Exception - * the exception - */ - private SubscribeToPullNotificationsRequest buildSubscribeToPullNotificationsRequest( - Iterable folderIds, int timeout, String watermark, - EventType... eventTypes) throws Exception { - if (timeout < 1 || timeout > 1440) { - throw new IllegalArgumentException("timeout", new Throwable( - Strings.TimeoutMustBeBetween1And1440)); - } + /** + * Finds contacts in the user's Contacts folder and the Global Address + * List (in that order) that have names that match the one passed as a + * parameter. Calling this method results in a call to EWS. + * + * @param nameToResolve the name to resolve + * @param searchScope the search scope + * @param returnContactDetails the return contact details + * @return A collection of name resolutions whose names match the one passed + * as a parameter. + * @throws Exception the exception + */ + public NameResolutionCollection resolveName(String nameToResolve, + ResolveNameSearchLocation searchScope, boolean returnContactDetails) + throws Exception { + return this.resolveName(nameToResolve, null, searchScope, + returnContactDetails); + } - EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); + /** + * Expands a group by retrieving a list of its members. Calling this + * method results in a call to EWS. + * + * @param emailAddress the email address + * @return URL of the Exchange Web Services. + * @throws Exception the exception + */ + public ExpandGroupResults expandGroup(EmailAddress emailAddress) + throws Exception { + EwsUtilities.validateParam(emailAddress, "emailAddress"); + ExpandGroupRequest request = new ExpandGroupRequest(this); + request.setEmailAddress(emailAddress); + return request.execute().getResponseAtIndex(0).getMembers(); + } - SubscribeToPullNotificationsRequest request = new SubscribeToPullNotificationsRequest( - this); + /** + * Expands a group by retrieving a list of its members. Calling this + * method results in a call to EWS. + * + * @param groupId the group id + * @return An ExpandGroupResults containing the members of the group. + * @throws Exception the exception + */ + public ExpandGroupResults expandGroup(ItemId groupId) throws Exception { + EwsUtilities.validateParam(groupId, "groupId"); + EmailAddress emailAddress = new EmailAddress(); + emailAddress.setId(groupId); + return this.expandGroup(emailAddress); + } - if (folderIds != null) { - request.getFolderIds().addRangeFolderId(folderIds); - } + /** + * Expands a group by retrieving a list of its members. Calling this + * method results in a call to EWS. + * + * @param smtpAddress the smtp address + * @return An ExpandGroupResults containing the members of the group. + * @throws Exception the exception + */ + public ExpandGroupResults expandGroup(String smtpAddress) throws Exception { + EwsUtilities.validateParam(smtpAddress, "smtpAddress"); + return this.expandGroup(new EmailAddress(smtpAddress)); + } - request.setTimeOut(timeout); + /** + * Expands a group by retrieving a list of its members. Calling this + * method results in a call to EWS. + * + * @param address the address + * @param routingType the routing type + * @return An ExpandGroupResults containing the members of the group. + * @throws Exception the exception + */ + public ExpandGroupResults expandGroup(String address, String routingType) + throws Exception { + EwsUtilities.validateParam(address, "address"); + EwsUtilities.validateParam(routingType, "routingType"); - for (EventType event : eventTypes) { - request.getEventTypes().add(event); - } + EmailAddress emailAddress = new EmailAddress(address); + emailAddress.setRoutingType(routingType); + return this.expandGroup(emailAddress); + } - request.setWatermark(watermark); + /** + * Get the password expiration date + * + * @param mailboxSmtpAddress The e-mail address of the user. + * @return The password expiration date + * @throws Exception + */ + public Date getPasswordExpirationDate(String mailboxSmtpAddress) + throws Exception { + GetPasswordExpirationDateRequest request = new GetPasswordExpirationDateRequest( + this); + request.setMailboxSmtpAddress(mailboxSmtpAddress); - return request; - } + return request.execute().getPasswordExpirationDate(); + } - /** - * Unsubscribes from a pull subscription. Calling this method results in a - * call to EWS. - * - * @param subscriptionId - * the subscription id - * @throws Exception - * the exception - */ - protected void unsubscribe(String subscriptionId) throws Exception { + /** + * Subscribes to pull notifications. Calling this method results in a call + * to EWS. + * + * @param folderIds The Ids of the folder to subscribe to + * @param timeout The timeout, in minutes, after which the subscription expires. + * Timeout must be between 1 and 1440. + * @param watermark An optional watermark representing a previously opened + * subscription. + * @param eventTypes The event types to subscribe to. + * @return A PullSubscription representing the new subscription. + * @throws Exception + */ + public PullSubscription subscribeToPullNotifications( + Iterable folderIds, int timeout, String watermark, + EventType... eventTypes) throws Exception { + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + + return this.buildSubscribeToPullNotificationsRequest(folderIds, + timeout, watermark, eventTypes).execute().getResponseAtIndex(0) + .getSubscription(); + } - this.buildUnsubscribeRequest(subscriptionId).execute(); - } + /** + * Begins an asynchronous request to subscribes to pull notifications. + * Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @param folderIds The Ids of the folder to subscribe to. + * @param timeout The timeout, in minutes, after which the subscription expires. + * Timeout must be between 1 and 1440. + * @param watermark An optional watermark representing a previously opened + * subscription. + * @param eventTypes The event types to subscribe to. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public AsyncRequestResult beginSubscribeToPullNotifications( + AsyncCallback callback, Object state, Iterable folderIds, + int timeout, String watermark, EventType... eventTypes) + throws Exception { + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); - /** - * Begins an asynchronous request to unsubscribe from a subscription. - * Calling this method results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate. - * @param state - * An object that contains state information for this request. - * @param subscriptionId - * The Id of the pull subscription to unsubscribe from. - * @throws Exception - * @return An IAsyncResult that references the asynchronous request. - **/ - protected IAsyncResult beginUnsubscribe(AsyncCallback callback,Object state,String subscriptionId) throws Exception { - return this.buildUnsubscribeRequest(subscriptionId).beginExecute( - callback,null); - } - - /** - * Ends an asynchronous request to unsubscribe from a subscription. - * - *@param asyncResult - * An IAsyncResult that references the asynchronous request. - * @throws Exception - **/ - protected void endUnsubscribe(IAsyncResult asyncResult) throws Exception - { - UnsubscribeRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); + return this.buildSubscribeToPullNotificationsRequest(folderIds, + timeout, watermark, eventTypes).beginExecute(callback, null); + } - request.endExecute(asyncResult); - } + /** + * Subscribes to pull notifications on all folders in the authenticated + * user's mailbox. Calling this method results in a call to EWS. + * + * @param timeout the timeout + * @param watermark the watermark + * @param eventTypes the event types + * @return A PullSubscription representing the new subscription. + * @throws Exception the exception + */ + public PullSubscription subscribeToPullNotificationsOnAllFolders( + int timeout, String watermark, EventType... eventTypes) + throws Exception { + EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, + "SubscribeToPullNotificationsOnAllFolders"); - /** - * Buids a request to unsubscribe from a subscription. - * - * @param subscriptionId - * The id of the subscription for which to get the events - * @return A request to unsubscripbe from a subscription - * @throws Exception - */ - private UnsubscribeRequest buildUnsubscribeRequest(String subscriptionId) - throws Exception { - EwsUtilities.validateParam(subscriptionId, "subscriptionId"); + return this.buildSubscribeToPullNotificationsRequest(null, timeout, + watermark, eventTypes).execute().getResponseAtIndex(0) + .getSubscription(); + } - UnsubscribeRequest request = new UnsubscribeRequest(this); + /** + * Begins an asynchronous request to subscribe to pull notifications on all + * folders in the authenticated user's mailbox. Calling this method results + * in a call to EWS. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @param timeout The timeout, in minutes, after which the subscription expires. + * Timeout must be between 1 and 1440. + * @param watermark An optional watermark representing a previously opened + * subscription. + * @param eventTypes The event types to subscribe to. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginSubscribeToPullNotificationsOnAllFolders(AsyncCallback callback, Object state, + int timeout, + String watermark, EventType... eventTypes) throws Exception { + EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, + "BeginSubscribeToPullNotificationsOnAllFolders"); + + return this.buildSubscribeToPullNotificationsRequest(null, timeout, + watermark, eventTypes).beginExecute(null, null); + } - request.setSubscriptionId(subscriptionId); + /** + * Ends an asynchronous request to subscribe to pull notifications in the + * authenticated user's mailbox. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A PullSubscription representing the new subscription. + * @throws Exception + */ + public PullSubscription endSubscribeToPullNotifications( + IAsyncResult asyncResult) throws Exception { + SubscribeToPullNotificationsRequest request = AsyncRequestResult + .extractServiceRequest(this, asyncResult); + + return request.endExecute(asyncResult).getResponseAtIndex(0) + .getSubscription(); + } - return request; - } + /** + * Builds a request to subscribe to pull notifications in the + * authenticated user's mailbox. + * + * @param folderIds The Ids of the folder to subscribe to. + * @param timeout The timeout, in minutes, after which the subscription expires. + * Timeout must be between 1 and 1440 + * @param watermark An optional watermark representing a previously opened + * subscription + * @param eventTypes The event types to subscribe to + * @return A request to subscribe to pull notifications in the authenticated + * user's mailbox + * @throws Exception the exception + */ + private SubscribeToPullNotificationsRequest buildSubscribeToPullNotificationsRequest( + Iterable folderIds, int timeout, String watermark, + EventType... eventTypes) throws Exception { + if (timeout < 1 || timeout > 1440) { + throw new IllegalArgumentException("timeout", new Throwable( + Strings.TimeoutMustBeBetween1And1440)); + } - /** - * Retrieves the latests events associated with a pull subscription. - * Calling this method results in a call to EWS. - * - * @param subscriptionId - * the subscription id - * @param waterMark - * the water mark - * @return A GetEventsResults containing a list of events associated with - * the subscription. - * @throws Exception - * the exception - */ - protected GetEventsResults getEvents(String subscriptionId, String waterMark) - throws Exception { + EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); - return this.buildGetEventsRequest(subscriptionId, waterMark).execute() - .getResponseAtIndex(0).getResults(); - } + SubscribeToPullNotificationsRequest request = new SubscribeToPullNotificationsRequest( + this); - /** - * Begins an asynchronous request to retrieve the latest events associated - * with a pull subscription. Calling this method results in a call to EWS. - * - *@param callback - * The AsyncCallback delegate. - *@param state - * An object that contains state information for this request. - * @param subscriptionId - * The id of the pull subscription for which to get the events - * @param watermark - * The watermark representing the point in time where to start - * receiving events - * @return An IAsynResult that references the asynchronous request - * @throws Exception - */ - protected IAsyncResult beginGetEvents(AsyncCallback callback, Object state, - String subscriptionId, String watermark) throws Exception { - return this.buildGetEventsRequest(subscriptionId, watermark) - .beginExecute(callback, null); - } - - /** - * Ends an asynchronous request to retrieve the latest events associated - * with a pull subscription. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @throws Exception - * @return A GetEventsResults containing a list of events associated with - * the subscription. - */ - protected GetEventsResults endGetEvents(IAsyncResult asyncResult) throws Exception - { - GetEventsRequest request = AsyncRequestResult.extractServiceRequest(this,asyncResult); + if (folderIds != null) { + request.getFolderIds().addRangeFolderId(folderIds); + } - return request.endExecute(asyncResult).getResponseAtIndex(0).getResults(); + request.setTimeOut(timeout); + + for (EventType event : eventTypes) { + request.getEventTypes().add(event); } - /** - * Builds a request to retrieve the letest events associated with a pull - * subscription - * - * @param subscriptionId - * The Id of the pull subscription for which to get the events - * @param watermark - * The watermark representing the point in time where to start - * receiving events - * @return An request to retrieve the latest events associated with a pull - * subscription - * @throws Exception - */ - private GetEventsRequest buildGetEventsRequest(String subscriptionId, - String watermark) throws Exception { - EwsUtilities.validateParam(subscriptionId, "subscriptionId"); - EwsUtilities.validateParam(watermark, "watermark"); + request.setWatermark(watermark); - GetEventsRequest request = new GetEventsRequest(this); + return request; + } - request.setSubscriptionId(subscriptionId); - request.setWatermark(watermark); + /** + * Unsubscribes from a pull subscription. Calling this method results in a + * call to EWS. + * + * @param subscriptionId the subscription id + * @throws Exception the exception + */ + protected void unsubscribe(String subscriptionId) throws Exception { - return request; - } + this.buildUnsubscribeRequest(subscriptionId).execute(); + } - /** - * Subscribes to push notifications. Calling this method results in a call - * to EWS. - * - * @param folderIds - * the folder ids - * @param url - * the url - * @param frequency - * the frequency - * @param watermark - * the watermark - * @param eventTypes - * the event types - * @return A PushSubscription representing the new subscription. - * @throws Exception - * the exception - */ - public PushSubscription subscribeToPushNotifications( - Iterable folderIds, URI url, int frequency, - String watermark, EventType... eventTypes) throws Exception { - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + /** + * Begins an asynchronous request to unsubscribe from a subscription. + * Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @param subscriptionId The Id of the pull subscription to unsubscribe from. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + protected IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state, String subscriptionId) + throws Exception { + return this.buildUnsubscribeRequest(subscriptionId).beginExecute( + callback, null); + } - return this.buildSubscribeToPushNotificationsRequest(folderIds, url, - frequency, watermark, eventTypes).execute().getResponseAtIndex( - 0).getSubscription(); - } + /** + * Ends an asynchronous request to unsubscribe from a subscription. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + protected void endUnsubscribe(IAsyncResult asyncResult) throws Exception { + UnsubscribeRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); - /** - * Begins an asynchronous request to subscribe to push notifications. - * Calling this method results in a call to EWS. - * - * @param callback - * The asynccallback delegate - * @param state - * An object that contains state information for this request - * @param folderIds - * The ids of the folder to subscribe - * @param url - * the url of web service endpoint the exchange server should - * @param frequency - * the frequency,in minutes at which the exchange server should - * contact the web Service endpoint. Frequency must be between 1 - * and 1440. - * @param watermark - * An optional watermark representing a previously opened - * subscription - * @param eventTypes - * The event types to subscribe to. - * @return An IAsyncResult that references the asynchronous request. - * @throws Exception - */ - public IAsyncResult beginSubscribeToPushNotifications( - AsyncCallback callback, Object state, Iterable folderIds, - URI url, int frequency, String watermark, EventType... eventTypes) - throws Exception { - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + request.endExecute(asyncResult); + } - return this.buildSubscribeToPushNotificationsRequest(folderIds, url, - frequency, watermark, eventTypes).beginExecute(callback, null); - } + /** + * Buids a request to unsubscribe from a subscription. + * + * @param subscriptionId The id of the subscription for which to get the events + * @return A request to unsubscripbe from a subscription + * @throws Exception + */ + private UnsubscribeRequest buildUnsubscribeRequest(String subscriptionId) + throws Exception { + EwsUtilities.validateParam(subscriptionId, "subscriptionId"); - /** - * Subscribes to push notifications on all folders in the authenticated - * user's mailbox. Calling this method results in a call to EWS. - * - * @param url - * the url - * @param frequency - * the frequency - * @param watermark - * the watermark - * @param eventTypes - * the event types - * @return A PushSubscription representing the new subscription. - * @throws Exception - * the exception - */ - public PushSubscription subscribeToPushNotificationsOnAllFolders(URI url, - int frequency, String watermark, EventType... eventTypes) - throws Exception { - EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, - "SubscribeToPushNotificationsOnAllFolders"); - - return this.buildSubscribeToPushNotificationsRequest(null, url, - frequency, watermark, eventTypes).execute().getResponseAtIndex( - 0).getSubscription(); - } - - /** - * Begins an asynchronous request to subscribe to push notifications on all - * folders in the authenticated user's mailbox. Calling this method results - * in a call to EWS. - * - * @param callback - * The asynccallback delegate - * @param state - * An object that contains state inforamtion for this request - * @param url - * the url - * @param frequency - * the frequency,in minutes at which the exchange server should - * contact the web Service endpoint. Frequency must be between 1 - * and 1440. - * @param watermark - * An optional watermark representing a previously opened - * subscription - * @param eventTypes - * The event types to subscribe to. - * @return An IAsyncResult that references the asynchronous request. - * @throws Exception - */ - public IAsyncResult beginSubscribeToPushNotificationsOnAllFolders( - AsyncCallback callback, Object state, URI url, int frequency, - String watermark, EventType... eventTypes) throws Exception { - EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, - "BeginSubscribeToPushNotificationsOnAllFolders"); - - return this.buildSubscribeToPushNotificationsRequest(null, url, - frequency, watermark, eventTypes).beginExecute(callback, null); - } - - - /** - * Ends an asynchronous request to subscribe to push notifications in the - * authenticated user's mailbox. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @return A PushSubscription representing the new subscription - * @throws Exception - */ - public PushSubscription endSubscribeToPushNotifications( - IAsyncResult asyncResult) throws Exception { - SubscribeToPushNotificationsRequest request = AsyncRequestResult - .extractServiceRequest(this, asyncResult); - - return request.endExecute(asyncResult).getResponseAtIndex(0) - .getSubscription(); - } - - /** - * Builds an request to request to subscribe to push notifications in the - * authenticated user's mailbox. - * - * @param folderIds - * the folder ids - * @param url - * the url - * @param frequency - * the frequency - * @param watermark - * the watermark - * @param eventTypes - * the event types - * @return A request to request to subscribe to push notifications in the - * authenticated user's mailbox. - * @throws Exception - * the exception - */ - private SubscribeToPushNotificationsRequest buildSubscribeToPushNotificationsRequest( - Iterable folderIds, URI url, int frequency, - String watermark, EventType[] eventTypes) throws Exception { - EwsUtilities.validateParam(url, "url"); - if (frequency < 1 || frequency > 1440) { - throw new ArgumentOutOfRangeException("frequency", - Strings.FrequencyMustBeBetween1And1440); - } + UnsubscribeRequest request = new UnsubscribeRequest(this); - EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); - SubscribeToPushNotificationsRequest request = new SubscribeToPushNotificationsRequest( - this); + request.setSubscriptionId(subscriptionId); - if (folderIds != null) { - request.getFolderIds().addRangeFolderId(folderIds); - } + return request; + } - request.setUrl(url); - request.setFrequency(frequency); + /** + * Retrieves the latests events associated with a pull subscription. + * Calling this method results in a call to EWS. + * + * @param subscriptionId the subscription id + * @param waterMark the water mark + * @return A GetEventsResults containing a list of events associated with + * the subscription. + * @throws Exception the exception + */ + protected GetEventsResults getEvents(String subscriptionId, String waterMark) + throws Exception { - for (EventType event : eventTypes) { - request.getEventTypes().add(event); - } + return this.buildGetEventsRequest(subscriptionId, waterMark).execute() + .getResponseAtIndex(0).getResults(); + } - request.setWatermark(watermark); + /** + * Begins an asynchronous request to retrieve the latest events associated + * with a pull subscription. Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @param subscriptionId The id of the pull subscription for which to get the events + * @param watermark The watermark representing the point in time where to start + * receiving events + * @return An IAsynResult that references the asynchronous request + * @throws Exception + */ + protected IAsyncResult beginGetEvents(AsyncCallback callback, Object state, + String subscriptionId, String watermark) throws Exception { + return this.buildGetEventsRequest(subscriptionId, watermark) + .beginExecute(callback, null); + } - return request; - } + /** + * Ends an asynchronous request to retrieve the latest events associated + * with a pull subscription. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A GetEventsResults containing a list of events associated with + * the subscription. + * @throws Exception + */ + protected GetEventsResults endGetEvents(IAsyncResult asyncResult) throws Exception { + GetEventsRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); + + return request.endExecute(asyncResult).getResponseAtIndex(0).getResults(); + } - /** - * Subscribes to streaming notifications. Calling this method results in a - * call to EWS. - * - * @param folderIds - * The Ids of the folder to subscribe to. - * @param eventTypes - * The event types to subscribe to. - * @return A StreamingSubscription representing the new subscription - * @throws Exception - */ - public StreamingSubscription subscribeToStreamingNotifications( - Iterable folderIds, EventType... eventTypes) - throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, - "SubscribeToStreamingNotifications"); + /** + * Builds a request to retrieve the letest events associated with a pull + * subscription + * + * @param subscriptionId The Id of the pull subscription for which to get the events + * @param watermark The watermark representing the point in time where to start + * receiving events + * @return An request to retrieve the latest events associated with a pull + * subscription + * @throws Exception + */ + private GetEventsRequest buildGetEventsRequest(String subscriptionId, + String watermark) throws Exception { + EwsUtilities.validateParam(subscriptionId, "subscriptionId"); + EwsUtilities.validateParam(watermark, "watermark"); + + GetEventsRequest request = new GetEventsRequest(this); + + request.setSubscriptionId(subscriptionId); + request.setWatermark(watermark); + + return request; + } + + /** + * Subscribes to push notifications. Calling this method results in a call + * to EWS. + * + * @param folderIds the folder ids + * @param url the url + * @param frequency the frequency + * @param watermark the watermark + * @param eventTypes the event types + * @return A PushSubscription representing the new subscription. + * @throws Exception the exception + */ + public PushSubscription subscribeToPushNotifications( + Iterable folderIds, URI url, int frequency, + String watermark, EventType... eventTypes) throws Exception { + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + + return this.buildSubscribeToPushNotificationsRequest(folderIds, url, + frequency, watermark, eventTypes).execute().getResponseAtIndex( + 0).getSubscription(); + } + + /** + * Begins an asynchronous request to subscribe to push notifications. + * Calling this method results in a call to EWS. + * + * @param callback The asynccallback delegate + * @param state An object that contains state information for this request + * @param folderIds The ids of the folder to subscribe + * @param url the url of web service endpoint the exchange server should + * @param frequency the frequency,in minutes at which the exchange server should + * contact the web Service endpoint. Frequency must be between 1 + * and 1440. + * @param watermark An optional watermark representing a previously opened + * subscription + * @param eventTypes The event types to subscribe to. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginSubscribeToPushNotifications( + AsyncCallback callback, Object state, Iterable folderIds, + URI url, int frequency, String watermark, EventType... eventTypes) + throws Exception { + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + + return this.buildSubscribeToPushNotificationsRequest(folderIds, url, + frequency, watermark, eventTypes).beginExecute(callback, null); + } + + /** + * Subscribes to push notifications on all folders in the authenticated + * user's mailbox. Calling this method results in a call to EWS. + * + * @param url the url + * @param frequency the frequency + * @param watermark the watermark + * @param eventTypes the event types + * @return A PushSubscription representing the new subscription. + * @throws Exception the exception + */ + public PushSubscription subscribeToPushNotificationsOnAllFolders(URI url, + int frequency, String watermark, EventType... eventTypes) + throws Exception { + EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, + "SubscribeToPushNotificationsOnAllFolders"); + + return this.buildSubscribeToPushNotificationsRequest(null, url, + frequency, watermark, eventTypes).execute().getResponseAtIndex( + 0).getSubscription(); + } + + /** + * Begins an asynchronous request to subscribe to push notifications on all + * folders in the authenticated user's mailbox. Calling this method results + * in a call to EWS. + * + * @param callback The asynccallback delegate + * @param state An object that contains state inforamtion for this request + * @param url the url + * @param frequency the frequency,in minutes at which the exchange server should + * contact the web Service endpoint. Frequency must be between 1 + * and 1440. + * @param watermark An optional watermark representing a previously opened + * subscription + * @param eventTypes The event types to subscribe to. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginSubscribeToPushNotificationsOnAllFolders( + AsyncCallback callback, Object state, URI url, int frequency, + String watermark, EventType... eventTypes) throws Exception { + EwsUtilities.validateMethodVersion(this, ExchangeVersion.Exchange2010, + "BeginSubscribeToPushNotificationsOnAllFolders"); + + return this.buildSubscribeToPushNotificationsRequest(null, url, + frequency, watermark, eventTypes).beginExecute(callback, null); + } + + + /** + * Ends an asynchronous request to subscribe to push notifications in the + * authenticated user's mailbox. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A PushSubscription representing the new subscription + * @throws Exception + */ + public PushSubscription endSubscribeToPushNotifications( + IAsyncResult asyncResult) throws Exception { + SubscribeToPushNotificationsRequest request = AsyncRequestResult + .extractServiceRequest(this, asyncResult); + + return request.endExecute(asyncResult).getResponseAtIndex(0) + .getSubscription(); + } + + /** + * Builds an request to request to subscribe to push notifications in the + * authenticated user's mailbox. + * + * @param folderIds the folder ids + * @param url the url + * @param frequency the frequency + * @param watermark the watermark + * @param eventTypes the event types + * @return A request to request to subscribe to push notifications in the + * authenticated user's mailbox. + * @throws Exception the exception + */ + private SubscribeToPushNotificationsRequest buildSubscribeToPushNotificationsRequest( + Iterable folderIds, URI url, int frequency, + String watermark, EventType[] eventTypes) throws Exception { + EwsUtilities.validateParam(url, "url"); + if (frequency < 1 || frequency > 1440) { + throw new ArgumentOutOfRangeException("frequency", + Strings.FrequencyMustBeBetween1And1440); + } + + EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); + SubscribeToPushNotificationsRequest request = new SubscribeToPushNotificationsRequest( + this); + + if (folderIds != null) { + request.getFolderIds().addRangeFolderId(folderIds); + } + + request.setUrl(url); + request.setFrequency(frequency); - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + for (EventType event : eventTypes) { + request.getEventTypes().add(event); + } - return this.buildSubscribeToStreamingNotificationsRequest(folderIds, - eventTypes).execute().getResponseAtIndex(0).getSubscription(); - } + request.setWatermark(watermark); - /** - * Subscribes to streaming notifications on all folders in the authenticated - * user's mailbox. Calling this method results in a call to EWS. - * - * @param eventTypes - * The event types to subscribe to. - * @return A StreamingSubscription representing the new subscription. - * @throws Exception - */ - public StreamingSubscription subscribeToStreamingNotificationsOnAllFolders( - EventType... eventTypes) throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, - "SubscribeToStreamingNotificationsOnAllFolders"); + return request; + } - return this.buildSubscribeToStreamingNotificationsRequest(null, - eventTypes).execute().getResponseAtIndex(0).getSubscription(); - } + /** + * Subscribes to streaming notifications. Calling this method results in a + * call to EWS. + * + * @param folderIds The Ids of the folder to subscribe to. + * @param eventTypes The event types to subscribe to. + * @return A StreamingSubscription representing the new subscription + * @throws Exception + */ + public StreamingSubscription subscribeToStreamingNotifications( + Iterable folderIds, EventType... eventTypes) + throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, + "SubscribeToStreamingNotifications"); + + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + + return this.buildSubscribeToStreamingNotificationsRequest(folderIds, + eventTypes).execute().getResponseAtIndex(0).getSubscription(); + } + + /** + * Subscribes to streaming notifications on all folders in the authenticated + * user's mailbox. Calling this method results in a call to EWS. + * + * @param eventTypes The event types to subscribe to. + * @return A StreamingSubscription representing the new subscription. + * @throws Exception + */ + public StreamingSubscription subscribeToStreamingNotificationsOnAllFolders( + EventType... eventTypes) throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, + "SubscribeToStreamingNotificationsOnAllFolders"); + + return this.buildSubscribeToStreamingNotificationsRequest(null, + eventTypes).execute().getResponseAtIndex(0).getSubscription(); + } /* * Subscribes to streaming notifications. Calling this method results in a @@ -2476,44 +2131,40 @@ public StreamingSubscription subscribeToStreamingNotifications( eventTypes).execute().getResponseAtIndex(0).getSubscription(); }*/ - /** - * Begins an asynchronous request to subscribe to streaming notifications. - * Calling this method results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate - * @param state - * An object that contains state information for this request. - * @param folderIds - * The Ids of the folder to subscribe to. - * @param eventTypes - * The event types to subscribe to. - * @return An IAsyncResult that references the asynchronous request - * @throws Exception - */ - public IAsyncResult beginSubscribeToStreamingNotifications(AsyncCallback callback,Object state, - Iterable folderIds, - EventType... eventTypes) throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, - "BeginSubscribeToStreamingNotifications"); - - EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); - - return this.buildSubscribeToStreamingNotificationsRequest(folderIds, - eventTypes).beginExecute(callback,null); - } + /** + * Begins an asynchronous request to subscribe to streaming notifications. + * Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate + * @param state An object that contains state information for this request. + * @param folderIds The Ids of the folder to subscribe to. + * @param eventTypes The event types to subscribe to. + * @return An IAsyncResult that references the asynchronous request + * @throws Exception + */ + public IAsyncResult beginSubscribeToStreamingNotifications(AsyncCallback callback, Object state, + Iterable folderIds, + EventType... eventTypes) throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, + "BeginSubscribeToStreamingNotifications"); + + EwsUtilities.validateParamCollection(folderIds.iterator(), "folderIds"); + + return this.buildSubscribeToStreamingNotificationsRequest(folderIds, + eventTypes).beginExecute(callback, null); + } - /** - * Subscribes to streaming notifications on all folders in the authenticated - * user's mailbox. Calling this method results in a call to EWS. - * - *@param eventTypes - * The event types to subscribe to. @ returns A - * StreamingSubscription representing the new subscription. - * @throws Exception - * @throws Exception - **/ + /** + * Subscribes to streaming notifications on all folders in the authenticated + * user's mailbox. Calling this method results in a call to EWS. + * + *@param eventTypes + * The event types to subscribe to. @ returns A + * StreamingSubscription representing the new subscription. + * @throws Exception + * @throws Exception + **/ /*public StreamingSubscription SubscribeToStreamingNotificationsOnAllFolders( EventType... eventTypes) throws Exception, Exception { EwsUtilities.validateMethodVersion(this, @@ -2524,270 +2175,234 @@ public IAsyncResult beginSubscribeToStreamingNotifications(AsyncCallback callbac eventTypes).execute().getResponseAtIndex(0).getSubscription(); }*/ - /** - * Begins an asynchronous request to subscribe to streaming notifications on - * all folders in the authenticated user's mailbox. Calling this method - * results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate - * @param state - * An object that contains state information for this request. - * @throws Exception - * @return An IAsyncResult that references the asynchronous request. - **/ - public IAsyncResult beginSubscribeToStreamingNotificationsOnAllFolders(AsyncCallback callback,Object state, - EventType... eventTypes) throws Exception { - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, - "BeginSubscribeToStreamingNotificationsOnAllFolders"); + /** + * Begins an asynchronous request to subscribe to streaming notifications on + * all folders in the authenticated user's mailbox. Calling this method + * results in a call to EWS. + * + * @param callback The AsyncCallback delegate + * @param state An object that contains state information for this request. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginSubscribeToStreamingNotificationsOnAllFolders(AsyncCallback callback, Object state, + EventType... eventTypes) throws Exception { + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, + "BeginSubscribeToStreamingNotificationsOnAllFolders"); + + return this.buildSubscribeToStreamingNotificationsRequest(null, + eventTypes).beginExecute(callback, null); + } - return this.buildSubscribeToStreamingNotificationsRequest(null, - eventTypes).beginExecute(callback,null); - } + /** + * Ends an asynchronous request to subscribe to push notifications in the + * authenticated user's mailbox. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A streamingSubscription representing the new subscription + * @throws Exception + * @throws IndexOutOfBoundsException + */ + public StreamingSubscription endSubscribeToStreamingNotifications(IAsyncResult asyncResult) + throws IndexOutOfBoundsException, Exception { + EwsUtilities.validateMethodVersion( + this, + ExchangeVersion.Exchange2010_SP1, + "EndSubscribeToStreamingNotifications"); + + SubscribeToStreamingNotificationsRequest request = + AsyncRequestResult.extractServiceRequest(this, asyncResult); + // SubscribeToStreamingNotificationsRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); + return request.endExecute(asyncResult).getResponseAtIndex(0).getSubscription(); + } - /** - * Ends an asynchronous request to subscribe to push notifications in the - * authenticated user's mailbox. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @return A streamingSubscription representing the new subscription - * @throws Exception - * @throws IndexOutOfBoundsException - */ - public StreamingSubscription endSubscribeToStreamingNotifications(IAsyncResult asyncResult) throws IndexOutOfBoundsException, Exception - { - EwsUtilities.validateMethodVersion( - this, - ExchangeVersion.Exchange2010_SP1, - "EndSubscribeToStreamingNotifications"); - - SubscribeToStreamingNotificationsRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); - // SubscribeToStreamingNotificationsRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); - return request.endExecute(asyncResult).getResponseAtIndex(0).getSubscription(); - } + /** + * Builds request to subscribe to streaming notifications in the + * authenticated user's mailbox. + * + * @param folderIds The Ids of the folder to subscribe to. + * @param eventTypes The event types to subscribe to. + * @return A request to subscribe to streaming notifications in the + * authenticated user's mailbox + * @throws Exception + */ + private SubscribeToStreamingNotificationsRequest buildSubscribeToStreamingNotificationsRequest( + Iterable folderIds, EventType[] eventTypes) throws Exception { + EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); + + SubscribeToStreamingNotificationsRequest request = new SubscribeToStreamingNotificationsRequest( + this); + + if (folderIds != null) { + request.getFolderIds().addRangeFolderId(folderIds); + } - /** - * Builds request to subscribe to streaming notifications in the - * authenticated user's mailbox. - * - * @param folderIds - * The Ids of the folder to subscribe to. - * @param eventTypes - * The event types to subscribe to. - * @return A request to subscribe to streaming notifications in the - * authenticated user's mailbox - * @throws Exception - */ - private SubscribeToStreamingNotificationsRequest buildSubscribeToStreamingNotificationsRequest( - Iterable folderIds, EventType[] eventTypes) throws Exception { - EwsUtilities.validateParamCollection(eventTypes, "eventTypes"); + for (EventType event : eventTypes) { + request.getEventTypes().add(event); + } - SubscribeToStreamingNotificationsRequest request = new SubscribeToStreamingNotificationsRequest( - this); + return request; + } - if (folderIds != null) { - request.getFolderIds().addRangeFolderId(folderIds); - } - for (EventType event : eventTypes) { - request.getEventTypes().add(event); - } - return request; - } - - + /** + * Synchronizes the items of a specific folder. Calling this method + * results in a call to EWS. + * + * @param syncFolderId The Id of the folder containing the items to synchronize with. + * @param propertySet The set of properties to retrieve for synchronized items. + * @param ignoredItemIds The optional list of item Ids that should be ignored. + * @param maxChangesReturned The maximum number of changes that should be returned. + * @param syncScope The sync scope identifying items to include in the + * ChangeCollection. + * @param syncState The optional sync state representing the point in time when to + * start the synchronization. + * @return A ChangeCollection containing a list of changes that occurred in + * the specified folder. + * @throws Exception the exception + */ + public ChangeCollection syncFolderItems(FolderId syncFolderId, + PropertySet propertySet, Iterable ignoredItemIds, + int maxChangesReturned, SyncFolderItemsScope syncScope, + String syncState) throws Exception { + return this.buildSyncFolderItemsRequest(syncFolderId, propertySet, + ignoredItemIds, maxChangesReturned, syncScope, syncState) + .execute().getResponseAtIndex(0).getChanges(); + } - /** - * Synchronizes the items of a specific folder. Calling this method - * results in a call to EWS. - * - * @param syncFolderId - * The Id of the folder containing the items to synchronize with. - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param ignoredItemIds - * The optional list of item Ids that should be ignored. - * @param maxChangesReturned - * The maximum number of changes that should be returned. - * @param syncScope - * The sync scope identifying items to include in the - * ChangeCollection. - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization. - * @return A ChangeCollection containing a list of changes that occurred in - * the specified folder. - * @throws Exception - * the exception - */ - public ChangeCollection syncFolderItems(FolderId syncFolderId, - PropertySet propertySet, Iterable ignoredItemIds, - int maxChangesReturned, SyncFolderItemsScope syncScope, - String syncState) throws Exception { - return this.buildSyncFolderItemsRequest(syncFolderId, propertySet, - ignoredItemIds, maxChangesReturned, syncScope, syncState) - .execute().getResponseAtIndex(0).getChanges(); - } - - /** - * Begins an asynchronous request to synchronize the items of a specific - * folder. Calling this method results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate - * @param state - * An object that contains state information for this request - * @param syncFolderId - * The Id of the folder containing the items to synchronize with - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param ignoredItemIds - * The optional list of item Ids that should be ignored. - * @param maxChangesReturned - * The maximum number of changes that should be returned. - * @param syncScope - * The sync scope identifying items to include in the - * ChangeCollection - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization - * @return An IAsyncResult that references the asynchronous request. - * @throws Exception - */ - public IAsyncResult beginSyncFolderItems( AsyncCallback callback,Object state,FolderId syncFolderId, PropertySet propertySet, - Iterable ignoredItemIds, int maxChangesReturned, - SyncFolderItemsScope syncScope, String syncState) throws Exception { - return this.buildSyncFolderItemsRequest(syncFolderId, propertySet, - ignoredItemIds, maxChangesReturned, syncScope, syncState) - .beginExecute(callback,null); - } - - /** - * Ends an asynchronous request to synchronize the items of a specific - * folder. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @throws Exception - * @return A ChangeCollection containing a list of changes that occurred in - * the specified folder. - */ - public ChangeCollection endSyncFolderItems(IAsyncResult asyncResult) throws Exception - { - SyncFolderItemsRequest request = AsyncRequestResult.extractServiceRequest(this,asyncResult); + /** + * Begins an asynchronous request to synchronize the items of a specific + * folder. Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate + * @param state An object that contains state information for this request + * @param syncFolderId The Id of the folder containing the items to synchronize with + * @param propertySet The set of properties to retrieve for synchronized items. + * @param ignoredItemIds The optional list of item Ids that should be ignored. + * @param maxChangesReturned The maximum number of changes that should be returned. + * @param syncScope The sync scope identifying items to include in the + * ChangeCollection + * @param syncState The optional sync state representing the point in time when to + * start the synchronization + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginSyncFolderItems(AsyncCallback callback, Object state, FolderId syncFolderId, + PropertySet propertySet, + Iterable ignoredItemIds, int maxChangesReturned, + SyncFolderItemsScope syncScope, String syncState) throws Exception { + return this.buildSyncFolderItemsRequest(syncFolderId, propertySet, + ignoredItemIds, maxChangesReturned, syncScope, syncState) + .beginExecute(callback, null); + } - return request.endExecute(asyncResult).getResponseAtIndex(0).getChanges(); - } + /** + * Ends an asynchronous request to synchronize the items of a specific + * folder. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A ChangeCollection containing a list of changes that occurred in + * the specified folder. + * @throws Exception + */ + public ChangeCollection endSyncFolderItems(IAsyncResult asyncResult) throws Exception { + SyncFolderItemsRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); + + return request.endExecute(asyncResult).getResponseAtIndex(0).getChanges(); + } - /** - * Builds a request to synchronize the items of a specific folder. - * - * @param syncFolderId - * The Id of the folder containing the items to synchronize with - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param ignoredItemIds - * The optional list of item Ids that should be ignored - * @param maxChangesReturned - * The maximum number of changes that should be returned. - * @param syncScope - * The sync scope identifying items to include in the - * ChangeCollection. - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization. - * @return A request to synchronize the items of a specific folder. - * @throws Exception - */ - private SyncFolderItemsRequest buildSyncFolderItemsRequest( - FolderId syncFolderId, PropertySet propertySet, - Iterable ignoredItemIds, int maxChangesReturned, - SyncFolderItemsScope syncScope, String syncState) throws Exception { - EwsUtilities.validateParam(syncFolderId, "syncFolderId"); - EwsUtilities.validateParam(propertySet, "propertySet"); - - SyncFolderItemsRequest request = new SyncFolderItemsRequest(this); - - request.setSyncFolderId(syncFolderId); - request.setPropertySet(propertySet); - if (ignoredItemIds != null) { - request.getIgnoredItemIds().addRange(ignoredItemIds); - } - request.setMaxChangesReturned(maxChangesReturned); - request.setSyncScope(syncScope); - request.setSyncState(syncState); - - return request; - } - - /** - * Synchronizes the sub-folders of a specific folder. Calling this method - * results in a call to EWS. - * - * @param syncFolderId - * the sync folder id - * @param propertySet - * the property set - * @param syncState - * the sync state - * @return A ChangeCollection containing a list of changes that occurred in - * the specified folder. - * @throws Exception - * the exception - */ - public ChangeCollection syncFolderHierarchy( - FolderId syncFolderId, PropertySet propertySet, String syncState) - throws Exception { - return this.buildSyncFolderHierarchyRequest(syncFolderId, propertySet, - syncState).execute().getResponseAtIndex(0).getChanges(); - } + /** + * Builds a request to synchronize the items of a specific folder. + * + * @param syncFolderId The Id of the folder containing the items to synchronize with + * @param propertySet The set of properties to retrieve for synchronized items. + * @param ignoredItemIds The optional list of item Ids that should be ignored + * @param maxChangesReturned The maximum number of changes that should be returned. + * @param syncScope The sync scope identifying items to include in the + * ChangeCollection. + * @param syncState The optional sync state representing the point in time when to + * start the synchronization. + * @return A request to synchronize the items of a specific folder. + * @throws Exception + */ + private SyncFolderItemsRequest buildSyncFolderItemsRequest( + FolderId syncFolderId, PropertySet propertySet, + Iterable ignoredItemIds, int maxChangesReturned, + SyncFolderItemsScope syncScope, String syncState) throws Exception { + EwsUtilities.validateParam(syncFolderId, "syncFolderId"); + EwsUtilities.validateParam(propertySet, "propertySet"); + + SyncFolderItemsRequest request = new SyncFolderItemsRequest(this); + + request.setSyncFolderId(syncFolderId); + request.setPropertySet(propertySet); + if (ignoredItemIds != null) { + request.getIgnoredItemIds().addRange(ignoredItemIds); + } + request.setMaxChangesReturned(maxChangesReturned); + request.setSyncScope(syncScope); + request.setSyncState(syncState); - /** - * Begins an asynchronous request to synchronize the sub-folders of a - * specific folder. Calling this method results in a call to EWS. - * - * @param callback - * The AsyncCallback delegate - * @param state - * An object that contains state information for this request. - * @param syncFolderId - * The Id of the folder containing the items to synchronize with. - * A null value indicates the root folder of the mailbox. - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization. - * @return An IAsyncResult that references the asynchronous request - * @throws Exception - */ - public IAsyncResult beginSyncFolderHierarchy(AsyncCallback callback,Object state, FolderId syncFolderId, PropertySet propertySet, - String syncState) throws Exception { - return this.buildSyncFolderHierarchyRequest(syncFolderId, propertySet, - syncState).beginExecute(callback,null); - } - - /** - * Synchronizes the entire folder hierarchy of the mailbox this Service is - * connected to. Calling this method results in a call to EWS. - * - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization. - * @return A ChangeCollection containing a list of changes that occurred in - * the specified folder. - * @throws Exception - */ - public ChangeCollection syncFolderHierarchy( - PropertySet propertySet, String syncState) - throws Exception { - return this.syncFolderHierarchy(null, propertySet, syncState); - } + return request; + } + + /** + * Synchronizes the sub-folders of a specific folder. Calling this method + * results in a call to EWS. + * + * @param syncFolderId the sync folder id + * @param propertySet the property set + * @param syncState the sync state + * @return A ChangeCollection containing a list of changes that occurred in + * the specified folder. + * @throws Exception the exception + */ + public ChangeCollection syncFolderHierarchy( + FolderId syncFolderId, PropertySet propertySet, String syncState) + throws Exception { + return this.buildSyncFolderHierarchyRequest(syncFolderId, propertySet, + syncState).execute().getResponseAtIndex(0).getChanges(); + } + + /** + * Begins an asynchronous request to synchronize the sub-folders of a + * specific folder. Calling this method results in a call to EWS. + * + * @param callback The AsyncCallback delegate + * @param state An object that contains state information for this request. + * @param syncFolderId The Id of the folder containing the items to synchronize with. + * A null value indicates the root folder of the mailbox. + * @param propertySet The set of properties to retrieve for synchronized items. + * @param syncState The optional sync state representing the point in time when to + * start the synchronization. + * @return An IAsyncResult that references the asynchronous request + * @throws Exception + */ + public IAsyncResult beginSyncFolderHierarchy(AsyncCallback callback, Object state, FolderId syncFolderId, + PropertySet propertySet, + String syncState) throws Exception { + return this.buildSyncFolderHierarchyRequest(syncFolderId, propertySet, + syncState).beginExecute(callback, null); + } + + /** + * Synchronizes the entire folder hierarchy of the mailbox this Service is + * connected to. Calling this method results in a call to EWS. + * + * @param propertySet The set of properties to retrieve for synchronized items. + * @param syncState The optional sync state representing the point in time when to + * start the synchronization. + * @return A ChangeCollection containing a list of changes that occurred in + * the specified folder. + * @throws Exception + */ + public ChangeCollection syncFolderHierarchy( + PropertySet propertySet, String syncState) + throws Exception { + return this.syncFolderHierarchy(null, propertySet, syncState); + } /* * Begins an asynchronous request to synchronize the entire folder hierarchy @@ -2810,1536 +2425,1382 @@ public IAsyncResult beginSyncFolderHierarchy(FolderId syncFolderId, PropertySet propertySet, syncState); }*/ - /** - * Ends an asynchronous request to synchronize the specified folder - * hierarchy of the mailbox this Service is connected to. - * - * @param asyncResult - * An IAsyncResult that references the asynchronous request. - * @throws Exception - * @return A ChangeCollection containing a list of changes that occurred in - * the specified folder. - **/ - public ChangeCollection endSyncFolderHierarchy(IAsyncResult asyncResult) throws Exception - { - SyncFolderHierarchyRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); - - return request.endExecute(asyncResult).getResponseAtIndex(0).getChanges(); - } + /** + * Ends an asynchronous request to synchronize the specified folder + * hierarchy of the mailbox this Service is connected to. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return A ChangeCollection containing a list of changes that occurred in + * the specified folder. + * @throws Exception + */ + public ChangeCollection endSyncFolderHierarchy(IAsyncResult asyncResult) throws Exception { + SyncFolderHierarchyRequest request = AsyncRequestResult.extractServiceRequest(this, asyncResult); + + return request.endExecute(asyncResult).getResponseAtIndex(0).getChanges(); + } - /** - * Builds a request to synchronize the specified folder hierarchy of the - * mailbox this Service is connected to. - * - * @param syncFolderId - * The Id of the folder containing the items to synchronize with. - * A null value indicates the root folder of the mailbox. - * @param propertySet - * The set of properties to retrieve for synchronized items. - * @param syncState - * The optional sync state representing the point in time when to - * start the synchronization. - * @return A request to synchronize the specified folder hierarchy of the - * mailbox this Service is connected to - * @throws Exception - */ - private SyncFolderHierarchyRequest buildSyncFolderHierarchyRequest( - FolderId syncFolderId, PropertySet propertySet, String syncState) - throws Exception { - EwsUtilities.validateParamAllowNull(syncFolderId, "syncFolderId"); // Null - // syncFolderId - // is - // allowed - EwsUtilities.validateParam(propertySet, "propertySet"); + /** + * Builds a request to synchronize the specified folder hierarchy of the + * mailbox this Service is connected to. + * + * @param syncFolderId The Id of the folder containing the items to synchronize with. + * A null value indicates the root folder of the mailbox. + * @param propertySet The set of properties to retrieve for synchronized items. + * @param syncState The optional sync state representing the point in time when to + * start the synchronization. + * @return A request to synchronize the specified folder hierarchy of the + * mailbox this Service is connected to + * @throws Exception + */ + private SyncFolderHierarchyRequest buildSyncFolderHierarchyRequest( + FolderId syncFolderId, PropertySet propertySet, String syncState) + throws Exception { + EwsUtilities.validateParamAllowNull(syncFolderId, "syncFolderId"); // Null + // syncFolderId + // is + // allowed + EwsUtilities.validateParam(propertySet, "propertySet"); - SyncFolderHierarchyRequest request = new SyncFolderHierarchyRequest( - this); + SyncFolderHierarchyRequest request = new SyncFolderHierarchyRequest( + this); - request.setPropertySet(propertySet); - request.setSyncFolderId(syncFolderId); - request.setSyncState(syncState); + request.setPropertySet(propertySet); + request.setSyncFolderId(syncFolderId); + request.setSyncState(syncState); - return request; - } + return request; + } - // Availability operations + // Availability operations + + /** + * Gets Out of Office (OOF) settings for a specific user. Calling this + * method results in a call to EWS. + * + * @param smtpAddress the smtp address + * @return An OofSettings instance containing OOF information for the + * specified user. + * @throws Exception the exception + */ + public OofSettings getUserOofSettings(String smtpAddress) throws Exception { + EwsUtilities.validateParam(smtpAddress, "smtpAddress"); + GetUserOofSettingsRequest request = new GetUserOofSettingsRequest(this); + request.setSmtpAddress(smtpAddress); + + return request.execute().getOofSettings(); + } - /** - * Gets Out of Office (OOF) settings for a specific user. Calling this - * method results in a call to EWS. - * - * @param smtpAddress - * the smtp address - * @return An OofSettings instance containing OOF information for the - * specified user. - * @throws Exception - * the exception - */ - public OofSettings getUserOofSettings(String smtpAddress) throws Exception { - EwsUtilities.validateParam(smtpAddress, "smtpAddress"); - GetUserOofSettingsRequest request = new GetUserOofSettingsRequest(this); - request.setSmtpAddress(smtpAddress); + /** + * Sets Out of Office (OOF) settings for a specific user. Calling this + * method results in a call to EWS. + * + * @param smtpAddress the smtp address + * @param oofSettings the oof settings + * @throws Exception the exception + */ + public void setUserOofSettings(String smtpAddress, OofSettings oofSettings) + throws Exception { + EwsUtilities.validateParam(smtpAddress, "smtpAddress"); + EwsUtilities.validateParam(oofSettings, "oofSettings"); - return request.execute().getOofSettings(); - } + SetUserOofSettingsRequest request = new SetUserOofSettingsRequest(this); - /** - * Sets Out of Office (OOF) settings for a specific user. Calling this - * method results in a call to EWS. - * - * @param smtpAddress - * the smtp address - * @param oofSettings - * the oof settings - * @throws Exception - * the exception - */ - public void setUserOofSettings(String smtpAddress, OofSettings oofSettings) - throws Exception { - EwsUtilities.validateParam(smtpAddress, "smtpAddress"); - EwsUtilities.validateParam(oofSettings, "oofSettings"); + request.setSmtpAddress(smtpAddress); + request.setOofSettings(oofSettings); - SetUserOofSettingsRequest request = new SetUserOofSettingsRequest(this); + request.execute(); + } - request.setSmtpAddress(smtpAddress); - request.setOofSettings(oofSettings); + /** + * Gets detailed information about the availability of a set of users, + * rooms, and resources within a specified time window. + * + * @param attendees the attendees + * @param timeWindow the time window + * @param requestedData the requested data + * @param options the options + * @return The availability information for each user appears in a unique + * FreeBusyResponse object. The order of users in the request + * determines the order of availability data for each user in the + * response. + * @throws Exception the exception + */ + public GetUserAvailabilityResults getUserAvailability( + Iterable attendees, TimeWindow timeWindow, + AvailabilityData requestedData, AvailabilityOptions options) + throws Exception { + EwsUtilities.validateParamCollection(attendees.iterator(), "attendees"); + EwsUtilities.validateParam(timeWindow, "timeWindow"); + EwsUtilities.validateParam(options, "options"); - request.execute(); - } + GetUserAvailabilityRequest request = new GetUserAvailabilityRequest( + this); - /** - * Gets detailed information about the availability of a set of users, - * rooms, and resources within a specified time window. - * - * @param attendees - * the attendees - * @param timeWindow - * the time window - * @param requestedData - * the requested data - * @param options - * the options - * @return The availability information for each user appears in a unique - * FreeBusyResponse object. The order of users in the request - * determines the order of availability data for each user in the - * response. - * @throws Exception - * the exception - */ - public GetUserAvailabilityResults getUserAvailability( - Iterable attendees, TimeWindow timeWindow, - AvailabilityData requestedData, AvailabilityOptions options) - throws Exception { - EwsUtilities.validateParamCollection(attendees.iterator(), "attendees"); - EwsUtilities.validateParam(timeWindow, "timeWindow"); - EwsUtilities.validateParam(options, "options"); + request.setAttendees(attendees); + request.setTimeWindow(timeWindow); + request.setRequestedData(requestedData); + request.setOptions(options); - GetUserAvailabilityRequest request = new GetUserAvailabilityRequest( - this); + return request.execute(); + } - request.setAttendees(attendees); - request.setTimeWindow(timeWindow); - request.setRequestedData(requestedData); - request.setOptions(options); + /** + * Gets detailed information about the availability of a set of users, + * rooms, and resources within a specified time window. + * + * @param attendees the attendees + * @param timeWindow the time window + * @param requestedData the requested data + * @return The availability information for each user appears in a unique + * FreeBusyResponse object. The order of users in the request + * determines the order of availability data for each user in the + * response. + * @throws Exception the exception + */ + public GetUserAvailabilityResults getUserAvailability( + Iterable attendees, TimeWindow timeWindow, + AvailabilityData requestedData) throws Exception { + return this.getUserAvailability(attendees, timeWindow, requestedData, + new AvailabilityOptions()); + } - return request.execute(); - } + /** + * Retrieves a collection of all room lists in the organization. + * + * @return An EmailAddressCollection containing all the room lists in the + * organization + * @throws Exception the exception + */ + public EmailAddressCollection getRoomLists() throws Exception { + GetRoomListsRequest request = new GetRoomListsRequest(this); + return request.execute().getRoomLists(); + } - /** - * Gets detailed information about the availability of a set of users, - * rooms, and resources within a specified time window. - * - * @param attendees - * the attendees - * @param timeWindow - * the time window - * @param requestedData - * the requested data - * @return The availability information for each user appears in a unique - * FreeBusyResponse object. The order of users in the request - * determines the order of availability data for each user in the - * response. - * @throws Exception - * the exception - */ - public GetUserAvailabilityResults getUserAvailability( - Iterable attendees, TimeWindow timeWindow, - AvailabilityData requestedData) throws Exception { - return this.getUserAvailability(attendees, timeWindow, requestedData, - new AvailabilityOptions()); - } - - /** - * Retrieves a collection of all room lists in the organization. - * - * @return An EmailAddressCollection containing all the room lists in the - * organization - * @throws Exception - * the exception - */ - public EmailAddressCollection getRoomLists() throws Exception { - GetRoomListsRequest request = new GetRoomListsRequest(this); - return request.execute().getRoomLists(); - } - - /** - * Retrieves a collection of all room lists in the specified room list in - * the organization. - * - * @param emailAddress - * the email address - * @return A collection of EmailAddress objects representing all the rooms - * within the specifed room list. - * @throws Exception - * the exception - */ - public Collection getRooms(EmailAddress emailAddress) - throws Exception { - EwsUtilities.validateParam(emailAddress, "emailAddress"); - GetRoomsRequest request = new GetRoomsRequest(this); - request.setRoomList(emailAddress); + /** + * Retrieves a collection of all room lists in the specified room list in + * the organization. + * + * @param emailAddress the email address + * @return A collection of EmailAddress objects representing all the rooms + * within the specifed room list. + * @throws Exception the exception + */ + public Collection getRooms(EmailAddress emailAddress) + throws Exception { + EwsUtilities.validateParam(emailAddress, "emailAddress"); + GetRoomsRequest request = new GetRoomsRequest(this); + request.setRoomList(emailAddress); + + return request.execute().getRooms(); + } - return request.execute().getRooms(); - } + // region Conversation + + /** + * Retrieves a collection of all Conversations in the specified Folder. + * + * @param view The view controlling the number of conversations returned. + * @param filter The search filter. Only search filter class supported + * SearchFilter.IsEqualTo + * @param folderId The Id of the folder in which to search for conversations. + * @throws Exception + */ + private Collection findConversation( + ConversationIndexedItemView view, SearchFilter.IsEqualTo filter, + FolderId folderId) throws Exception { + EwsUtilities.validateParam(view, "view"); + EwsUtilities.validateParamAllowNull(filter, "filter"); + EwsUtilities.validateParam(folderId, "folderId"); + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "FindConversation"); + + FindConversationRequest request = new FindConversationRequest(this); + request.setIndexedItemView(view); + request.setConversationViewFilter(filter); + request.setFolderId(new FolderIdWrapper(folderId)); + + return request.execute().getConversations(); + } - // region Conversation + /** + * Retrieves a collection of all Conversations in the specified Folder. + * + * @param view The view controlling the number of conversations returned. + * @param folderId The Id of the folder in which to search for conversations. + * @throws Exception + */ + public Collection findConversation( + ConversationIndexedItemView view, FolderId folderId) + throws Exception { + return this.findConversation(view, null, folderId); + } - /** - * Retrieves a collection of all Conversations in the specified Folder. - * - * @param view - * The view controlling the number of conversations returned. - * @param filter - * The search filter. Only search filter class supported - * SearchFilter.IsEqualTo - * @param folderId - * The Id of the folder in which to search for conversations. - * @throws Exception - */ - private Collection findConversation( - ConversationIndexedItemView view, SearchFilter.IsEqualTo filter, - FolderId folderId) throws Exception { - EwsUtilities.validateParam(view, "view"); - EwsUtilities.validateParamAllowNull(filter, "filter"); - EwsUtilities.validateParam(folderId, "folderId"); - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "FindConversation"); + /** + * Applies ConversationAction on the specified conversation. + * + * @param actionType ConversationAction + * @param conversationIds The conversation ids. + * @param processRightAway True to process at once . This is blocking and false to let + * the Assitant process it in the back ground + * @param categories Catgories that need to be stamped can be null or empty + * @param enableAlwaysDelete True moves every current and future messages in the + * conversation to deleted items folder. False stops the alwasy + * delete action. This is applicable only if the action is + * AlwaysDelete + * @param destinationFolderId Applicable if the action is AlwaysMove. This moves every + * current message and future message in the conversation to the + * specified folder. Can be null if tis is then it stops the + * always move action + * @param errorHandlingMode The error handling mode. + * @throws Exception + */ + private ServiceResponseCollection applyConversationAction( + ConversationActionType actionType, + Iterable conversationIds, boolean processRightAway, + StringList categories, boolean enableAlwaysDelete, + FolderId destinationFolderId, ServiceErrorHandling errorHandlingMode) + throws Exception { + EwsUtilities.EwsAssert( + actionType == ConversationActionType.AlwaysCategorize + || actionType == ConversationActionType.AlwaysMove + || actionType == ConversationActionType.AlwaysDelete, + "ApplyConversationAction", "Invalic actionType"); + + EwsUtilities.validateParam(conversationIds, "conversationId"); + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "ApplyConversationAction"); + + ApplyConversationActionRequest request = new ApplyConversationActionRequest( + this, errorHandlingMode); + ConversationAction action = new ConversationAction(); + + for (ConversationId conversationId : conversationIds) { + action.setAction(actionType); + action.setConversationId(conversationId); + action.setProcessRightAway(processRightAway); + action.setCategories(categories); + action.setEnableAlwaysDelete(enableAlwaysDelete); + action + .setDestinationFolderId(destinationFolderId != null ? new FolderIdWrapper( + destinationFolderId) + : null); + request.getConversationActions().add(action); + } - FindConversationRequest request = new FindConversationRequest(this); - request.setIndexedItemView(view); - request.setConversationViewFilter(filter); - request.setFolderId(new FolderIdWrapper(folderId)); + return request.execute(); + } - return request.execute().getConversations(); - } + /** + * Applies one time conversation action on items in specified folder inside + * the conversation. + * + * @param actionType The action + * @param idTimePairs The id time pairs. + * @param contextFolderId The context folder id. + * @param destinationFolderId The destination folder id. + * @param deleteType Type of the delete. + * @param isRead The is read. + * @param errorHandlingMode The error handling mode. + * @throws Exception + */ + private ServiceResponseCollection applyConversationOneTimeAction( + ConversationActionType actionType, + Iterable> idTimePairs, + FolderId contextFolderId, FolderId destinationFolderId, + DeleteMode deleteType, Boolean isRead, + ServiceErrorHandling errorHandlingMode) throws Exception { + EwsUtilities.EwsAssert(actionType == ConversationActionType.Move + || actionType == ConversationActionType.Delete + || actionType == ConversationActionType.SetReadState + || actionType == ConversationActionType.Copy, + "ApplyConversationOneTimeAction", "Invalid actionType"); + + EwsUtilities.validateParamCollection(idTimePairs.iterator(), + "idTimePairs"); + EwsUtilities.validateMethodVersion(this, + ExchangeVersion.Exchange2010_SP1, "ApplyConversationAction"); + + ApplyConversationActionRequest request = new ApplyConversationActionRequest( + this, errorHandlingMode); + + for (HashMap idTimePair : idTimePairs) { + ConversationAction action = new ConversationAction(); + + action.setAction(actionType); + action.setConversationId(idTimePair.keySet().iterator().next()); + action + .setContextFolderId(contextFolderId != null ? new FolderIdWrapper( + contextFolderId) + : null); + action + .setDestinationFolderId(destinationFolderId != null ? new FolderIdWrapper( + destinationFolderId) + : null); + action.setConversationLastSyncTime(idTimePair.values().iterator() + .next()); + action.setIsRead(isRead); + action.setDeleteType(deleteType); + + request.getConversationActions().add(action); + } - /** - * Retrieves a collection of all Conversations in the specified Folder. - * - * @param view - * The view controlling the number of conversations returned. - * @param folderId - * The Id of the folder in which to search for conversations. - * @throws Exception - */ - public Collection findConversation( - ConversationIndexedItemView view, FolderId folderId) - throws Exception { - return this.findConversation(view, null, folderId); - } + return request.execute(); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is always categorized. Calling this method results in a call to EWS. + * + * @param conversationId The id of the conversation. + * @param categories The categories that should be stamped on items in the + * conversation. + * @param processSynchronously Indicates whether the method should return only once enabling + * this rule and stamping existing items in the conversation is + * completely done. If processSynchronously is false, the method + * returns immediately. + * @throws Exception + */ + public ServiceResponseCollection enableAlwaysCategorizeItemsInConversations( + Iterable conversationId, + Iterable categories, boolean processSynchronously) + throws Exception { + EwsUtilities.validateParamCollection(categories.iterator(), + "categories"); + return this.applyConversationAction( + ConversationActionType.AlwaysCategorize, conversationId, + processSynchronously, new StringList(categories), false, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is no longer categorized. Calling this method results in a call to EWS. + * + * @param conversationId The id of the conversation. + * @param processSynchronously Indicates whether the method should return only once enabling + * this rule and stamping existing items in the conversation is + * completely done. If processSynchronously is false, the method + * returns immediately. + * @throws Exception + */ + public ServiceResponseCollection disableAlwaysCategorizeItemsInConversations( + Iterable conversationId, + boolean processSynchronously) throws Exception { + return this.applyConversationAction( + ConversationActionType.AlwaysCategorize, conversationId, + processSynchronously, null, false, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is always moved to Deleted Items folder. Calling this method results in a + * call to EWS. + * + * @param conversationId The id of the conversation. + * @param processSynchronously Indicates whether the method should return only once enabling + * this rule and stamping existing items in the conversation is + * completely done. If processSynchronously is false, the method + * returns immediately. + * @throws Exception + */ + public ServiceResponseCollection enableAlwaysDeleteItemsInConversations( + Iterable conversationId, + boolean processSynchronously) throws Exception { + return this.applyConversationAction( + ConversationActionType.AlwaysDelete, conversationId, + processSynchronously, null, true, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is no longer moved to Deleted Items folder. Calling this method results + * in a call to EWS. + * + * @param conversationId The id of the conversation. + * @param processSynchronously Indicates whether the method should return only once enabling + * this rule and stamping existing items in the conversation is + * completely done. If processSynchronously is false, the method + * returns immediately. + * @throws Exception + */ + public ServiceResponseCollection disableAlwaysDeleteItemsInConversations( + Iterable conversationId, + boolean processSynchronously) throws Exception { + return this.applyConversationAction( + ConversationActionType.AlwaysDelete, conversationId, + processSynchronously, null, false, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is always moved to a specific folder. Calling this method results in a + * call to EWS. + * + * @param conversationId The Id of the folder to which conversation items should be + * moved. + * @param destinationFolderId The Id of the destination folder. + * @param processSynchronously Indicates whether the method should return only once enabling + * this rule and stamping existing items in the conversation is + * completely done. If processSynchronously is false, the method + * returns immediately. + * @throws Exception + */ + public ServiceResponseCollection enableAlwaysMoveItemsInConversations( + Iterable conversationId, + FolderId destinationFolderId, boolean processSynchronously) + throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return this.applyConversationAction(ConversationActionType.AlwaysMove, + conversationId, processSynchronously, null, false, + destinationFolderId, ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets up a conversation so that any item received within that conversation + * is no longer moved to a specific folder. Calling this method results in a + * call to EWS. + * + * @param conversationIds The conversation ids. + * @param processSynchronously Indicates whether the method should return only once disabling + * this rule is completely done. If processSynchronously is + * false, the method returns immediately. + * @throws Exception + */ + public ServiceResponseCollection disableAlwaysMoveItemsInConversations( + Iterable conversationIds, + boolean processSynchronously) throws Exception { + return this.applyConversationAction(ConversationActionType.AlwaysMove, + conversationIds, processSynchronously, null, false, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Moves the items in the specified conversation to the specified + * destination folder. Calling this method results in a call to EWS. + * + * @param idLastSyncTimePairs The pairs of Id of conversation whose items should be moved + * and the dateTime conversation was last synced (Items received + * after that dateTime will not be moved). + * @param contextFolderId The Id of the folder that contains the conversation. + * @param destinationFolderId The Id of the destination folder. + * @throws Exception + */ + public ServiceResponseCollection moveItemsInConversations( + Iterable> idLastSyncTimePairs, + FolderId contextFolderId, FolderId destinationFolderId) + throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return this.applyConversationOneTimeAction(ConversationActionType.Move, + idLastSyncTimePairs, contextFolderId, destinationFolderId, + null, null, ServiceErrorHandling.ReturnErrors); + } + + /** + * Copies the items in the specified conversation to the specified + * destination folder. Calling this method results in a call to EWS. + * + * @param idLastSyncTimePairs The pairs of Id of conversation whose items should be copied + * and the dateTime conversation was last synced (Items received + * after that dateTime will not be copied). + * @param contextFolderId The context folder id. + * @param destinationFolderId The destination folder id. + * @throws Exception + */ + public ServiceResponseCollection copyItemsInConversations( + Iterable> idLastSyncTimePairs, + FolderId contextFolderId, FolderId destinationFolderId) + throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return this.applyConversationOneTimeAction(ConversationActionType.Copy, + idLastSyncTimePairs, contextFolderId, destinationFolderId, + null, null, ServiceErrorHandling.ReturnErrors); + } + + /** + * Deletes the items in the specified conversation. Calling this method + * results in a call to EWS. + * + * @param idLastSyncTimePairs The pairs of Id of conversation whose items should be deleted + * and the date and time conversation was last synced (Items + * received after that date will not be deleted). conversation + * was last synced (Items received after that dateTime will not + * be copied). + * @param contextFolderId The Id of the folder that contains the conversation. + * @param deleteMode The deletion mode + * @throws Exception + */ + public ServiceResponseCollection deleteItemsInConversations( + Iterable> idLastSyncTimePairs, + FolderId contextFolderId, DeleteMode deleteMode) throws Exception { + return this.applyConversationOneTimeAction( + ConversationActionType.Delete, idLastSyncTimePairs, + contextFolderId, null, deleteMode, null, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Sets the read state for items in conversation. Calling this mehtod would + * result in call to EWS. + * + * @param idLastSyncTimePairs The pairs of Id of conversation whose items should read state + * set and the date and time conversation was last synced (Items + * received after that date will not have their read state set). + * was last synced (Items received after that date will not be + * deleted). conversation was last synced (Items received after + * that dateTime will not be copied). + * @param contextFolderId The Id of the folder that contains the conversation. + * @param isRead if set to true, conversation items are marked as read; + * otherwise they are marked as unread. + * @throws Exception + */ + public ServiceResponseCollection setReadStateForItemsInConversations( + Iterable> idLastSyncTimePairs, + FolderId contextFolderId, boolean isRead) throws Exception { + return this.applyConversationOneTimeAction( + ConversationActionType.SetReadState, idLastSyncTimePairs, + contextFolderId, null, null, isRead, + ServiceErrorHandling.ReturnErrors); + } + + // Id conversion operations + + /** + * Converts multiple Ids from one format to another in a single call to + * EWS. + * + * @param ids the ids + * @param destinationFormat the destination format + * @param errorHandling the error handling + * @return A ServiceResponseCollection providing conversion results for each + * specified Ids. + * @throws Exception the exception + */ + private ServiceResponseCollection internalConvertIds( + Iterable ids, IdFormat destinationFormat, + ServiceErrorHandling errorHandling) throws Exception { + EwsUtilities.validateParamCollection(ids.iterator(), "ids"); + + ConvertIdRequest request = new ConvertIdRequest(this, errorHandling); + + request.getIds().addAll((Collection) ids); + request.setDestinationFormat(destinationFormat); + + return request.execute(); + } + + /** + * Converts multiple Ids from one format to another in a single call to + * EWS. + * + * @param ids the ids + * @param destinationFormat the destination format + * @return A ServiceResponseCollection providing conversion results for each + * specified Ids. + * @throws Exception the exception + */ + public ServiceResponseCollection convertIds( + Iterable ids, IdFormat destinationFormat) + throws Exception { + EwsUtilities.validateParamCollection(ids.iterator(), "ids"); + + return this.internalConvertIds(ids, destinationFormat, + ServiceErrorHandling.ReturnErrors); + } + + /** + * Converts Id from one format to another in a single call to EWS. + * + * @param id the id + * @param destinationFormat the destination format + * @return The converted Id. + * @throws Exception the exception + */ + public AlternateIdBase convertId(AlternateIdBase id, + IdFormat destinationFormat) throws Exception { + EwsUtilities.validateParam(id, "id"); + + List alternateIdBaseArray = new ArrayList(); + alternateIdBaseArray.add(id); + + ServiceResponseCollection responses = this + .internalConvertIds(alternateIdBaseArray, destinationFormat, + ServiceErrorHandling.ThrowOnError); + + return responses.getResponseAtIndex(0).getConvertedId(); + } + + /** + * Adds delegates to a specific mailbox. Calling this method results in a + * call to EWS. + * + * @param mailbox the mailbox + * @param meetingRequestsDeliveryScope the meeting requests delivery scope + * @param delegateUsers the delegate users + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection addDelegates(Mailbox mailbox, + MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, + DelegateUser... delegateUsers) throws Exception { + ArrayList delUser = new ArrayList(); + for (DelegateUser user : delegateUsers) { + delUser.add(user); + } + + return this + .addDelegates(mailbox, meetingRequestsDeliveryScope, delUser); + } + + /** + * Adds delegates to a specific mailbox. Calling this method results in a + * call to EWS. + * + * @param mailbox the mailbox + * @param meetingRequestsDeliveryScope the meeting requests delivery scope + * @param delegateUsers the delegate users + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection addDelegates(Mailbox mailbox, + MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, + Iterable delegateUsers) throws Exception { + EwsUtilities.validateParam(mailbox, "mailbox"); + EwsUtilities.validateParamCollection(delegateUsers.iterator(), + "delegateUsers"); + + AddDelegateRequest request = new AddDelegateRequest(this); + request.setMailbox(mailbox); + + for (DelegateUser user : delegateUsers) { + request.getDelegateUsers().add(user); + } + + request.setMeetingRequestsDeliveryScope(meetingRequestsDeliveryScope); + + DelegateManagementResponse response = request.execute(); + return response.getDelegateUserResponses(); + } + + /** + * Updates delegates on a specific mailbox. Calling this method results in + * a call to EWS. + * + * @param mailbox the mailbox + * @param meetingRequestsDeliveryScope the meeting requests delivery scope + * @param delegateUsers the delegate users + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection updateDelegates(Mailbox mailbox, + MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, + DelegateUser... delegateUsers) throws Exception { + + ArrayList delUser = new ArrayList(); + for (DelegateUser user : delegateUsers) { + delUser.add(user); + } + return this.updateDelegates(mailbox, meetingRequestsDeliveryScope, + delUser); + } + + /** + * Updates delegates on a specific mailbox. Calling this method results in + * a call to EWS. + * + * @param mailbox the mailbox + * @param meetingRequestsDeliveryScope the meeting requests delivery scope + * @param delegateUsers the delegate users + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection updateDelegates(Mailbox mailbox, + MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, + Iterable delegateUsers) throws Exception { + EwsUtilities.validateParam(mailbox, "mailbox"); + EwsUtilities.validateParamCollection(delegateUsers.iterator(), + "delegateUsers"); + + UpdateDelegateRequest request = new UpdateDelegateRequest(this); + + request.setMailbox(mailbox); + + ArrayList delUser = new ArrayList(); + for (DelegateUser user : delegateUsers) { + delUser.add(user); + } + request.getDelegateUsers().addAll(delUser); + request.setMeetingRequestsDeliveryScope(meetingRequestsDeliveryScope); + + DelegateManagementResponse response = request.execute(); + return response.getDelegateUserResponses(); + } + + /** + * Removes delegates on a specific mailbox. Calling this method results in + * a call to EWS. + * + * @param mailbox the mailbox + * @param userIds the user ids + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection removeDelegates(Mailbox mailbox, + UserId... userIds) throws Exception { + ArrayList delUser = new ArrayList(); + for (UserId user : userIds) { + delUser.add(user); + } + return this.removeDelegates(mailbox, delUser); + } - /** - * Applies ConversationAction on the specified conversation. - * - * @param actionType - * ConversationAction - * @param conversationIds - * The conversation ids. - * @param processRightAway - * True to process at once . This is blocking and false to let - * the Assitant process it in the back ground - * @param categories - * Catgories that need to be stamped can be null or empty - * @param enableAlwaysDelete - * True moves every current and future messages in the - * conversation to deleted items folder. False stops the alwasy - * delete action. This is applicable only if the action is - * AlwaysDelete - * @param destinationFolderId - * Applicable if the action is AlwaysMove. This moves every - * current message and future message in the conversation to the - * specified folder. Can be null if tis is then it stops the - * always move action - * @param errorHandlingMode - * The error handling mode. - * @throws Exception - */ - private ServiceResponseCollection applyConversationAction( - ConversationActionType actionType, - Iterable conversationIds, boolean processRightAway, - StringList categories, boolean enableAlwaysDelete, - FolderId destinationFolderId, ServiceErrorHandling errorHandlingMode) - throws Exception { - EwsUtilities.EwsAssert( - actionType == ConversationActionType.AlwaysCategorize - || actionType == ConversationActionType.AlwaysMove - || actionType == ConversationActionType.AlwaysDelete, - "ApplyConversationAction", "Invalic actionType"); + /** + * Removes delegates on a specific mailbox. Calling this method results in + * a call to EWS. + * + * @param mailbox the mailbox + * @param userIds the user ids + * @return A collection of DelegateUserResponse objects providing the + * results of the operation. + * @throws Exception the exception + */ + public Collection removeDelegates(Mailbox mailbox, + Iterable userIds) throws Exception { + EwsUtilities.validateParam(mailbox, "mailbox"); + EwsUtilities.validateParamCollection(userIds.iterator(), "userIds"); + + RemoveDelegateRequest request = new RemoveDelegateRequest(this); + request.setMailbox(mailbox); + + ArrayList delUser = new ArrayList(); + for (UserId user : userIds) { + delUser.add(user); + } + request.getUserIds().addAll(delUser); - EwsUtilities.validateParam(conversationIds, "conversationId"); - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "ApplyConversationAction"); - - ApplyConversationActionRequest request = new ApplyConversationActionRequest( - this, errorHandlingMode); - ConversationAction action = new ConversationAction(); - - for (ConversationId conversationId : conversationIds) { - action.setAction(actionType); - action.setConversationId(conversationId); - action.setProcessRightAway(processRightAway); - action.setCategories(categories); - action.setEnableAlwaysDelete(enableAlwaysDelete); - action - .setDestinationFolderId(destinationFolderId != null ? new FolderIdWrapper( - destinationFolderId) - : null); - request.getConversationActions().add(action); - } - - return request.execute(); - } - - /** - * Applies one time conversation action on items in specified folder inside - * the conversation. - * - * @param actionType - * The action - * @param idTimePairs - * The id time pairs. - * @param contextFolderId - * The context folder id. - * @param destinationFolderId - * The destination folder id. - * @param deleteType - * Type of the delete. - * @param isRead - * The is read. - * @param errorHandlingMode - * The error handling mode. - * @throws Exception - */ - private ServiceResponseCollection applyConversationOneTimeAction( - ConversationActionType actionType, - Iterable> idTimePairs, - FolderId contextFolderId, FolderId destinationFolderId, - DeleteMode deleteType, Boolean isRead, - ServiceErrorHandling errorHandlingMode) throws Exception { - EwsUtilities.EwsAssert(actionType == ConversationActionType.Move - || actionType == ConversationActionType.Delete - || actionType == ConversationActionType.SetReadState - || actionType == ConversationActionType.Copy, - "ApplyConversationOneTimeAction", "Invalid actionType"); - - EwsUtilities.validateParamCollection(idTimePairs.iterator(), - "idTimePairs"); - EwsUtilities.validateMethodVersion(this, - ExchangeVersion.Exchange2010_SP1, "ApplyConversationAction"); - - ApplyConversationActionRequest request = new ApplyConversationActionRequest( - this, errorHandlingMode); - - for (HashMap idTimePair : idTimePairs) { - ConversationAction action = new ConversationAction(); - - action.setAction(actionType); - action.setConversationId(idTimePair.keySet().iterator().next()); - action - .setContextFolderId(contextFolderId != null ? new FolderIdWrapper( - contextFolderId) - : null); - action - .setDestinationFolderId(destinationFolderId != null ? new FolderIdWrapper( - destinationFolderId) - : null); - action.setConversationLastSyncTime(idTimePair.values().iterator() - .next()); - action.setIsRead(isRead); - action.setDeleteType(deleteType); - - request.getConversationActions().add(action); - } - - return request.execute(); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is always categorized. Calling this method results in a call to EWS. - * - * @param conversationId - * The id of the conversation. - * @param categories - * The categories that should be stamped on items in the - * conversation. - * @param processSynchronously - * Indicates whether the method should return only once enabling - * this rule and stamping existing items in the conversation is - * completely done. If processSynchronously is false, the method - * returns immediately. - * @throws Exception - */ - public ServiceResponseCollection enableAlwaysCategorizeItemsInConversations( - Iterable conversationId, - Iterable categories, boolean processSynchronously) - throws Exception { - EwsUtilities.validateParamCollection(categories.iterator(), - "categories"); - return this.applyConversationAction( - ConversationActionType.AlwaysCategorize, conversationId, - processSynchronously, new StringList(categories), false, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is no longer categorized. Calling this method results in a call to EWS. - * - * @param conversationId - * The id of the conversation. - * @param processSynchronously - * Indicates whether the method should return only once enabling - * this rule and stamping existing items in the conversation is - * completely done. If processSynchronously is false, the method - * returns immediately. - * @throws Exception - */ - public ServiceResponseCollection disableAlwaysCategorizeItemsInConversations( - Iterable conversationId, - boolean processSynchronously) throws Exception { - return this.applyConversationAction( - ConversationActionType.AlwaysCategorize, conversationId, - processSynchronously, null, false, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is always moved to Deleted Items folder. Calling this method results in a - * call to EWS. - * - * @param conversationId - * The id of the conversation. - * @param processSynchronously - * Indicates whether the method should return only once enabling - * this rule and stamping existing items in the conversation is - * completely done. If processSynchronously is false, the method - * returns immediately. - * @throws Exception - */ - public ServiceResponseCollection enableAlwaysDeleteItemsInConversations( - Iterable conversationId, - boolean processSynchronously) throws Exception { - return this.applyConversationAction( - ConversationActionType.AlwaysDelete, conversationId, - processSynchronously, null, true, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is no longer moved to Deleted Items folder. Calling this method results - * in a call to EWS. - * - * @param conversationId - * The id of the conversation. - * @param processSynchronously - * Indicates whether the method should return only once enabling - * this rule and stamping existing items in the conversation is - * completely done. If processSynchronously is false, the method - * returns immediately. - * @throws Exception - */ - public ServiceResponseCollection disableAlwaysDeleteItemsInConversations( - Iterable conversationId, - boolean processSynchronously) throws Exception { - return this.applyConversationAction( - ConversationActionType.AlwaysDelete, conversationId, - processSynchronously, null, false, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is always moved to a specific folder. Calling this method results in a - * call to EWS. - * - * @param conversationId - * The Id of the folder to which conversation items should be - * moved. - * @param destinationFolderId - * The Id of the destination folder. - * @param processSynchronously - * Indicates whether the method should return only once enabling - * this rule and stamping existing items in the conversation is - * completely done. If processSynchronously is false, the method - * returns immediately. - * @throws Exception - */ - public ServiceResponseCollection enableAlwaysMoveItemsInConversations( - Iterable conversationId, - FolderId destinationFolderId, boolean processSynchronously) - throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return this.applyConversationAction(ConversationActionType.AlwaysMove, - conversationId, processSynchronously, null, false, - destinationFolderId, ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets up a conversation so that any item received within that conversation - * is no longer moved to a specific folder. Calling this method results in a - * call to EWS. - * - * @param conversationIds - * The conversation ids. - * @param processSynchronously - * Indicates whether the method should return only once disabling - * this rule is completely done. If processSynchronously is - * false, the method returns immediately. - * @throws Exception - */ - public ServiceResponseCollection disableAlwaysMoveItemsInConversations( - Iterable conversationIds, - boolean processSynchronously) throws Exception { - return this.applyConversationAction(ConversationActionType.AlwaysMove, - conversationIds, processSynchronously, null, false, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Moves the items in the specified conversation to the specified - * destination folder. Calling this method results in a call to EWS. - * - * @param idLastSyncTimePairs - * The pairs of Id of conversation whose items should be moved - * and the dateTime conversation was last synced (Items received - * after that dateTime will not be moved). - * @param contextFolderId - * The Id of the folder that contains the conversation. - * @param destinationFolderId - * The Id of the destination folder. - * @throws Exception - */ - public ServiceResponseCollection moveItemsInConversations( - Iterable> idLastSyncTimePairs, - FolderId contextFolderId, FolderId destinationFolderId) - throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return this.applyConversationOneTimeAction(ConversationActionType.Move, - idLastSyncTimePairs, contextFolderId, destinationFolderId, - null, null, ServiceErrorHandling.ReturnErrors); - } - - /** - * Copies the items in the specified conversation to the specified - * destination folder. Calling this method results in a call to EWS. - * - * @param idLastSyncTimePairs - * The pairs of Id of conversation whose items should be copied - * and the dateTime conversation was last synced (Items received - * after that dateTime will not be copied). - * @param contextFolderId - * The context folder id. - * @param destinationFolderId - * The destination folder id. - * @throws Exception - */ - public ServiceResponseCollection copyItemsInConversations( - Iterable> idLastSyncTimePairs, - FolderId contextFolderId, FolderId destinationFolderId) - throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return this.applyConversationOneTimeAction(ConversationActionType.Copy, - idLastSyncTimePairs, contextFolderId, destinationFolderId, - null, null, ServiceErrorHandling.ReturnErrors); - } - - /** - * Deletes the items in the specified conversation. Calling this method - * results in a call to EWS. - * - * @param idLastSyncTimePairs - * The pairs of Id of conversation whose items should be deleted - * and the date and time conversation was last synced (Items - * received after that date will not be deleted). conversation - * was last synced (Items received after that dateTime will not - * be copied). - * @param contextFolderId - * The Id of the folder that contains the conversation. - * @param deleteMode - * The deletion mode - * @throws Exception - */ - public ServiceResponseCollection deleteItemsInConversations( - Iterable> idLastSyncTimePairs, - FolderId contextFolderId, DeleteMode deleteMode) throws Exception { - return this.applyConversationOneTimeAction( - ConversationActionType.Delete, idLastSyncTimePairs, - contextFolderId, null, deleteMode, null, - ServiceErrorHandling.ReturnErrors); - } - - /** - * Sets the read state for items in conversation. Calling this mehtod would - * result in call to EWS. - * - * @param idLastSyncTimePairs - * The pairs of Id of conversation whose items should read state - * set and the date and time conversation was last synced (Items - * received after that date will not have their read state set). - * was last synced (Items received after that date will not be - * deleted). conversation was last synced (Items received after - * that dateTime will not be copied). - * @param contextFolderId - * The Id of the folder that contains the conversation. - * @param isRead - * if set to true, conversation items are marked as read; - * otherwise they are marked as unread. - * @throws Exception - */ - public ServiceResponseCollection setReadStateForItemsInConversations( - Iterable> idLastSyncTimePairs, - FolderId contextFolderId, boolean isRead) throws Exception { - return this.applyConversationOneTimeAction( - ConversationActionType.SetReadState, idLastSyncTimePairs, - contextFolderId, null, null, isRead, - ServiceErrorHandling.ReturnErrors); - } - - // Id conversion operations - - /** - * Converts multiple Ids from one format to another in a single call to - * EWS. - * - * @param ids - * the ids - * @param destinationFormat - * the destination format - * @param errorHandling - * the error handling - * @return A ServiceResponseCollection providing conversion results for each - * specified Ids. - * @throws Exception - * the exception - */ - private ServiceResponseCollection internalConvertIds( - Iterable ids, IdFormat destinationFormat, - ServiceErrorHandling errorHandling) throws Exception { - EwsUtilities.validateParamCollection(ids.iterator(), "ids"); + DelegateManagementResponse response = request.execute(); + return response.getDelegateUserResponses(); + } - ConvertIdRequest request = new ConvertIdRequest(this, errorHandling); + /** + * Retrieves the delegates of a specific mailbox. Calling this method + * results in a call to EWS. + * + * @param mailbox the mailbox + * @param includePermissions the include permissions + * @param userIds the user ids + * @return A GetDelegateResponse providing the results of the operation. + * @throws Exception the exception + */ + public DelegateInformation getDelegates(Mailbox mailbox, + boolean includePermissions, UserId... userIds) throws Exception { + ArrayList delUser = new ArrayList(); + for (UserId user : userIds) { + delUser.add(user); + } + return this.getDelegates(mailbox, includePermissions, delUser); + } - request.getIds().addAll((Collection) ids); - request.setDestinationFormat(destinationFormat); + /** + * Retrieves the delegates of a specific mailbox. Calling this method + * results in a call to EWS. + * + * @param mailbox the mailbox + * @param includePermissions the include permissions + * @param userIds the user ids + * @return A GetDelegateResponse providing the results of the operation. + * @throws Exception the exception + */ + public DelegateInformation getDelegates(Mailbox mailbox, + boolean includePermissions, Iterable userIds) + throws Exception { + EwsUtilities.validateParam(mailbox, "mailbox"); - return request.execute(); - } + GetDelegateRequest request = new GetDelegateRequest(this); - /** - * Converts multiple Ids from one format to another in a single call to - * EWS. - * - * @param ids - * the ids - * @param destinationFormat - * the destination format - * @return A ServiceResponseCollection providing conversion results for each - * specified Ids. - * @throws Exception - * the exception - */ - public ServiceResponseCollection convertIds( - Iterable ids, IdFormat destinationFormat) - throws Exception { - EwsUtilities.validateParamCollection(ids.iterator(), "ids"); + request.setMailbox(mailbox); - return this.internalConvertIds(ids, destinationFormat, - ServiceErrorHandling.ReturnErrors); - } + ArrayList delUser = new ArrayList(); + for (UserId user : userIds) { + delUser.add(user); + } + request.getUserIds().addAll(delUser); + request.setIncludePermissions(includePermissions); - /** - * Converts Id from one format to another in a single call to EWS. - * - * @param id - * the id - * @param destinationFormat - * the destination format - * @return The converted Id. - * @throws Exception - * the exception - */ - public AlternateIdBase convertId(AlternateIdBase id, - IdFormat destinationFormat) throws Exception { - EwsUtilities.validateParam(id, "id"); + GetDelegateResponse response = request.execute(); + DelegateInformation delegateInformation = new DelegateInformation( + (List) response + .getDelegateUserResponses(), response + .getMeetingRequestsDeliveryScope()); - List alternateIdBaseArray = new ArrayList(); - alternateIdBaseArray.add(id); + return delegateInformation; + } - ServiceResponseCollection responses = this - .internalConvertIds(alternateIdBaseArray, destinationFormat, - ServiceErrorHandling.ThrowOnError); + /** + * Creates the user configuration. + * + * @param userConfiguration the user configuration + * @throws Exception the exception + */ + protected void createUserConfiguration(UserConfiguration userConfiguration) + throws Exception { + EwsUtilities.validateParam(userConfiguration, "userConfiguration"); - return responses.getResponseAtIndex(0).getConvertedId(); - } + CreateUserConfigurationRequest request = new CreateUserConfigurationRequest( + this); - /** - * Adds delegates to a specific mailbox. Calling this method results in a - * call to EWS. - * - * @param mailbox - * the mailbox - * @param meetingRequestsDeliveryScope - * the meeting requests delivery scope - * @param delegateUsers - * the delegate users - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection addDelegates(Mailbox mailbox, - MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, - DelegateUser... delegateUsers) throws Exception { - ArrayList delUser = new ArrayList(); - for (DelegateUser user : delegateUsers) { - delUser.add(user); - } - - return this - .addDelegates(mailbox, meetingRequestsDeliveryScope, delUser); - } - - /** - * Adds delegates to a specific mailbox. Calling this method results in a - * call to EWS. - * - * @param mailbox - * the mailbox - * @param meetingRequestsDeliveryScope - * the meeting requests delivery scope - * @param delegateUsers - * the delegate users - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection addDelegates(Mailbox mailbox, - MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, - Iterable delegateUsers) throws Exception { - EwsUtilities.validateParam(mailbox, "mailbox"); - EwsUtilities.validateParamCollection(delegateUsers.iterator(), - "delegateUsers"); + request.setUserConfiguration(userConfiguration); - AddDelegateRequest request = new AddDelegateRequest(this); - request.setMailbox(mailbox); + request.execute(); + } - for (DelegateUser user : delegateUsers) { - request.getDelegateUsers().add(user); - } + /** + * Creates a UserConfiguration. + * + * @param name the name + * @param parentFolderId the parent folder id + * @throws Exception the exception + */ + protected void deleteUserConfiguration(String name, FolderId parentFolderId) + throws Exception { + EwsUtilities.validateParam(name, "name"); + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - request.setMeetingRequestsDeliveryScope(meetingRequestsDeliveryScope); + DeleteUserConfigurationRequest request = new DeleteUserConfigurationRequest( + this); - DelegateManagementResponse response = request.execute(); - return response.getDelegateUserResponses(); - } + request.setName(name); + request.setParentFolderId(parentFolderId); + request.execute(); + } - /** - * Updates delegates on a specific mailbox. Calling this method results in - * a call to EWS. - * - * @param mailbox - * the mailbox - * @param meetingRequestsDeliveryScope - * the meeting requests delivery scope - * @param delegateUsers - * the delegate users - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection updateDelegates(Mailbox mailbox, - MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, - DelegateUser... delegateUsers) throws Exception { - - ArrayList delUser = new ArrayList(); - for (DelegateUser user : delegateUsers) { - delUser.add(user); - } - return this.updateDelegates(mailbox, meetingRequestsDeliveryScope, - delUser); - } - - /** - * Updates delegates on a specific mailbox. Calling this method results in - * a call to EWS. - * - * @param mailbox - * the mailbox - * @param meetingRequestsDeliveryScope - * the meeting requests delivery scope - * @param delegateUsers - * the delegate users - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection updateDelegates(Mailbox mailbox, - MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, - Iterable delegateUsers) throws Exception { - EwsUtilities.validateParam(mailbox, "mailbox"); - EwsUtilities.validateParamCollection(delegateUsers.iterator(), - "delegateUsers"); - - UpdateDelegateRequest request = new UpdateDelegateRequest(this); - - request.setMailbox(mailbox); - - ArrayList delUser = new ArrayList(); - for (DelegateUser user : delegateUsers) { - delUser.add(user); - } - request.getDelegateUsers().addAll(delUser); - request.setMeetingRequestsDeliveryScope(meetingRequestsDeliveryScope); - - DelegateManagementResponse response = request.execute(); - return response.getDelegateUserResponses(); - } - - /** - * Removes delegates on a specific mailbox. Calling this method results in - * a call to EWS. - * - * @param mailbox - * the mailbox - * @param userIds - * the user ids - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection removeDelegates(Mailbox mailbox, - UserId... userIds) throws Exception { - ArrayList delUser = new ArrayList(); - for (UserId user : userIds) { - delUser.add(user); - } - return this.removeDelegates(mailbox, delUser); - } - - /** - * Removes delegates on a specific mailbox. Calling this method results in - * a call to EWS. - * - * @param mailbox - * the mailbox - * @param userIds - * the user ids - * @return A collection of DelegateUserResponse objects providing the - * results of the operation. - * @throws Exception - * the exception - */ - public Collection removeDelegates(Mailbox mailbox, - Iterable userIds) throws Exception { - EwsUtilities.validateParam(mailbox, "mailbox"); - EwsUtilities.validateParamCollection(userIds.iterator(), "userIds"); - - RemoveDelegateRequest request = new RemoveDelegateRequest(this); - request.setMailbox(mailbox); - - ArrayList delUser = new ArrayList(); - for (UserId user : userIds) { - delUser.add(user); - } - request.getUserIds().addAll(delUser); - - DelegateManagementResponse response = request.execute(); - return response.getDelegateUserResponses(); - } - - /** - * Retrieves the delegates of a specific mailbox. Calling this method - * results in a call to EWS. - * - * @param mailbox - * the mailbox - * @param includePermissions - * the include permissions - * @param userIds - * the user ids - * @return A GetDelegateResponse providing the results of the operation. - * @throws Exception - * the exception - */ - public DelegateInformation getDelegates(Mailbox mailbox, - boolean includePermissions, UserId... userIds) throws Exception { - ArrayList delUser = new ArrayList(); - for (UserId user : userIds) { - delUser.add(user); - } - return this.getDelegates(mailbox, includePermissions, delUser); - } - - /** - * Retrieves the delegates of a specific mailbox. Calling this method - * results in a call to EWS. - * - * @param mailbox - * the mailbox - * @param includePermissions - * the include permissions - * @param userIds - * the user ids - * @return A GetDelegateResponse providing the results of the operation. - * @throws Exception - * the exception - */ - public DelegateInformation getDelegates(Mailbox mailbox, - boolean includePermissions, Iterable userIds) - throws Exception { - EwsUtilities.validateParam(mailbox, "mailbox"); + /** + * Creates a UserConfiguration. + * + * @param name the name + * @param parentFolderId the parent folder id + * @param properties the properties + * @return the user configuration + * @throws Exception the exception + */ + protected UserConfiguration getUserConfiguration(String name, + FolderId parentFolderId, UserConfigurationProperties properties) + throws Exception { + EwsUtilities.validateParam(name, "name"); + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - GetDelegateRequest request = new GetDelegateRequest(this); + GetUserConfigurationRequest request = new GetUserConfigurationRequest( + this); - request.setMailbox(mailbox); + request.setName(name); + request.setParentFolderId(parentFolderId); + request.setProperties(EnumSet.of(properties)); - ArrayList delUser = new ArrayList(); - for (UserId user : userIds) { - delUser.add(user); - } - request.getUserIds().addAll(delUser); - request.setIncludePermissions(includePermissions); + return request.execute().getResponseAtIndex(0).getUserConfiguration(); + } - GetDelegateResponse response = request.execute(); - DelegateInformation delegateInformation = new DelegateInformation( - (List) response - .getDelegateUserResponses(), response - .getMeetingRequestsDeliveryScope()); + /** + * Loads the properties of the specified userConfiguration. + * + * @param userConfiguration the user configuration + * @param properties the properties + * @throws Exception the exception + */ + protected void loadPropertiesForUserConfiguration( + UserConfiguration userConfiguration, + UserConfigurationProperties properties) throws Exception { + EwsUtilities.EwsAssert(userConfiguration != null, + "ExchangeService.LoadPropertiesForUserConfiguration", + "userConfiguration is null"); + + GetUserConfigurationRequest request = new GetUserConfigurationRequest( + this); + + request.setUserConfiguration(userConfiguration); + request.setProperties(EnumSet.of(properties)); + + request.execute(); + } - return delegateInformation; - } + /** + * Updates a UserConfiguration. + * + * @param userConfiguration the user configuration + * @throws Exception the exception + */ + protected void updateUserConfiguration(UserConfiguration userConfiguration) + throws Exception { + EwsUtilities.validateParam(userConfiguration, "userConfiguration"); + UpdateUserConfigurationRequest request = new UpdateUserConfigurationRequest( + this); - /** - * Creates the user configuration. - * - * @param userConfiguration - * the user configuration - * @throws Exception - * the exception - */ - protected void createUserConfiguration(UserConfiguration userConfiguration) - throws Exception { - EwsUtilities.validateParam(userConfiguration, "userConfiguration"); + request.setUserConfiguration(userConfiguration); - CreateUserConfigurationRequest request = new CreateUserConfigurationRequest( - this); + request.execute(); + } - request.setUserConfiguration(userConfiguration); + // region InboxRule operations + + /** + * Retrieves inbox rules of the authenticated user. + * + * @return A RuleCollection object containing the authenticated users inbox + * rules. + * @throws Exception + */ + public RuleCollection getInboxRules() throws Exception { + GetInboxRulesRequest request = new GetInboxRulesRequest(this); + return request.execute().getRules(); + } - request.execute(); - } + /** + * Retrieves the inbox rules of the specified user. + * + * @param mailboxSmtpAddress The SMTP address of the user whose inbox rules should be + * retrieved + * @return A RuleCollection object containing the inbox rules of the + * specified user. + * @throws Exception + */ + public RuleCollection getInboxRules(String mailboxSmtpAddress) + throws Exception { + EwsUtilities.validateParam(mailboxSmtpAddress, "MailboxSmtpAddress"); - /** - * Creates a UserConfiguration. - * - * @param name - * the name - * @param parentFolderId - * the parent folder id - * @throws Exception - * the exception - */ - protected void deleteUserConfiguration(String name, FolderId parentFolderId) - throws Exception { - EwsUtilities.validateParam(name, "name"); - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + GetInboxRulesRequest request = new GetInboxRulesRequest(this); + request.setmailboxSmtpAddress(mailboxSmtpAddress); + return request.execute().getRules(); + } - DeleteUserConfigurationRequest request = new DeleteUserConfigurationRequest( - this); + /** + * Updates the authenticated user's inbox rules by applying the specified + * operations. + * + * @param operations The operations that should be applied to the user's inbox + * rules. + * @param removeOutlookRuleBlob Indicate whether or not to remove Outlook Rule Blob. + * @throws Exception + */ + public void updateInboxRules(Iterable operations, + boolean removeOutlookRuleBlob) throws Exception { + UpdateInboxRulesRequest request = new UpdateInboxRulesRequest(this); + request.setInboxRuleOperations(operations); + request.setRemoveOutlookRuleBlob(removeOutlookRuleBlob); + request.execute(); + } - request.setName(name); - request.setParentFolderId(parentFolderId); - request.execute(); - } + /** + * Updates the authenticated user's inbox rules by applying the specified + * operations. + * + * @param operations The operations that should be applied to the user's inbox + * rules. + * @param removeOutlookRuleBlob Indicate whether or not to remove Outlook Rule Blob. + * @param mailboxSmtpAddress The SMTP address of the user whose inbox rules should be + * retrieved + * @throws Exception + */ + public void updateInboxRules(Iterable operations, + boolean removeOutlookRuleBlob, String mailboxSmtpAddress) + throws Exception { + UpdateInboxRulesRequest request = new UpdateInboxRulesRequest(this); + request.setInboxRuleOperations(operations); + request.setRemoveOutlookRuleBlob(removeOutlookRuleBlob); + request.setMailboxSmtpAddress(mailboxSmtpAddress); + request.execute(); + } - /** - * Creates a UserConfiguration. - * - * @param name - * the name - * @param parentFolderId - * the parent folder id - * @param properties - * the properties - * @return the user configuration - * @throws Exception - * the exception - */ - protected UserConfiguration getUserConfiguration(String name, - FolderId parentFolderId, UserConfigurationProperties properties) - throws Exception { - EwsUtilities.validateParam(name, "name"); - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + /** + * Default implementation of AutodiscoverRedirectionUrlValidationCallback. + * Always returns true indicating that the URL can be used. + * + * @param redirectionUrl the redirection url + * @return Returns true. + * @throws AutodiscoverLocalException the autodiscover local exception + */ + private boolean defaultAutodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) throws AutodiscoverLocalException { + throw new AutodiscoverLocalException(String.format( + Strings.AutodiscoverRedirectBlocked, redirectionUrl)); + } - GetUserConfigurationRequest request = new GetUserConfigurationRequest( - this); + /** + * Initializes the Url property to the Exchange Web Services URL for the + * specified e-mail address by calling the Autodiscover service. + * + * @param emailAddress the email address + * @throws Exception the exception + */ + public void autodiscoverUrl(String emailAddress) throws Exception { + this.autodiscoverUrl(emailAddress, this); + } - request.setName(name); - request.setParentFolderId(parentFolderId); - request.setProperties(EnumSet.of(properties)); + /** + * Initializes the Url property to the Exchange Web Services URL for the + * specified e-mail address by calling the Autodiscover service. + * + * @param emailAddress the email address to use. + * @param validateRedirectionUrlCallback The callback used to validate redirection URL + * @throws Exception the exception + */ + public void autodiscoverUrl(String emailAddress, + IAutodiscoverRedirectionUrl validateRedirectionUrlCallback) + throws Exception { + URI exchangeServiceUrl = null; + + if (this.getRequestedServerVersion().ordinal() > ExchangeVersion.Exchange2007_SP1 + .ordinal()) { + try { + exchangeServiceUrl = this.getAutodiscoverUrl(emailAddress, this + .getRequestedServerVersion(), + validateRedirectionUrlCallback); + this.setUrl(this + .adjustServiceUriFromCredentials(exchangeServiceUrl)); + return; + } catch (AutodiscoverLocalException ex) { + + this.traceMessage(TraceFlags.AutodiscoverResponse, String + .format("Autodiscover service call " + + "failed with error '%s'. " + + "Will try legacy service", ex.getMessage())); + + } catch (ServiceRemoteException ex) { + // E14:321785 -- Special case: if + // the caller's account is locked + // we want to return this exception, not continue. + if (ex instanceof AccountIsLockedException) { + throw new AccountIsLockedException(ex.getMessage(), + exchangeServiceUrl, ex); + } - return request.execute().getResponseAtIndex(0).getUserConfiguration(); - } + this.traceMessage(TraceFlags.AutodiscoverResponse, String + .format("Autodiscover service call " + + "failed with error '%s'. " + + "Will try legacy service", ex.getMessage())); + } + } - /** - * Loads the properties of the specified userConfiguration. - * - * @param userConfiguration - * the user configuration - * @param properties - * the properties - * @throws Exception - * the exception - */ - protected void loadPropertiesForUserConfiguration( - UserConfiguration userConfiguration, - UserConfigurationProperties properties) throws Exception { - EwsUtilities.EwsAssert(userConfiguration != null, - "ExchangeService.LoadPropertiesForUserConfiguration", - "userConfiguration is null"); + // Try legacy Autodiscover provider - GetUserConfigurationRequest request = new GetUserConfigurationRequest( - this); + exchangeServiceUrl = this.getAutodiscoverUrl(emailAddress, + ExchangeVersion.Exchange2007_SP1, + validateRedirectionUrlCallback); - request.setUserConfiguration(userConfiguration); - request.setProperties(EnumSet.of(properties)); + this.setUrl(this.adjustServiceUriFromCredentials(exchangeServiceUrl)); + } - request.execute(); - } + /** + * Autodiscover will always return the "plain" EWS endpoint URL but if the + * client is using WindowsLive credentials, ExchangeService needs to use the + * WS-Security endpoint. + * + * @param uri the uri + * @return Adjusted URL. + * @throws Exception + */ + private URI adjustServiceUriFromCredentials(URI uri) + throws Exception { + return (this.getCredentials() != null) ? this.getCredentials() + .adjustUrl(uri) : uri; + } - /** - * Updates a UserConfiguration. - * - * @param userConfiguration - * the user configuration - * @throws Exception - * the exception - */ - protected void updateUserConfiguration(UserConfiguration userConfiguration) - throws Exception { - EwsUtilities.validateParam(userConfiguration, "userConfiguration"); - UpdateUserConfigurationRequest request = new UpdateUserConfigurationRequest( - this); + /** + * Gets the autodiscover url. + * + * @param emailAddress the email address + * @param requestedServerVersion the Exchange version + * @param validateRedirectionUrlCallback the validate redirection url callback + * @return the autodiscover url + * @throws Exception the exception + */ + private URI getAutodiscoverUrl(String emailAddress, + ExchangeVersion requestedServerVersion, + IAutodiscoverRedirectionUrl validateRedirectionUrlCallback) + throws Exception { - request.setUserConfiguration(userConfiguration); + AutodiscoverService autodiscoverService = new AutodiscoverService(this, + requestedServerVersion); + autodiscoverService + .setRedirectionUrlValidationCallback(validateRedirectionUrlCallback); + autodiscoverService.setEnableScpLookup(this.getEnableScpLookup()); + + GetUserSettingsResponse response = autodiscoverService.getUserSettings( + emailAddress, UserSettingName.InternalEwsUrl, + UserSettingName.ExternalEwsUrl); + + switch (response.getErrorCode()) { + case NoError: + return this.getEwsUrlFromResponse(response, autodiscoverService + .isExternal().TRUE); + + case InvalidUser: + throw new ServiceRemoteException(String.format(Strings.InvalidUser, + emailAddress)); + + case InvalidRequest: + throw new ServiceRemoteException(String.format( + Strings.InvalidAutodiscoverRequest, response + .getErrorMessage())); + + default: + this.traceMessage(TraceFlags.AutodiscoverConfiguration, String + .format("No EWS Url returned for user %s, " + + "error code is %s", emailAddress, response + .getErrorCode())); + + throw new ServiceRemoteException(response.getErrorMessage()); + } + } - request.execute(); - } + private URI getEwsUrlFromResponse(GetUserSettingsResponse response, + boolean isExternal) throws URISyntaxException, + AutodiscoverLocalException { + String uriString; + + // Bug E14:59063 -- Figure out which URL to use: Internal or External. + // Bug E14:67646 -- AutoDiscover may not return an external protocol. + // First try external, then internal. + // Bug E14:82650 -- Either protocol + // may be returned without a configured URL. + OutParam outParam = new OutParam(); + if ((isExternal && response.tryGetSettingValue(String.class, + UserSettingName.ExternalEwsUrl, outParam))) { + uriString = outParam.getParam(); + if (!(uriString == null || uriString.isEmpty())) { + return new URI(uriString); + } + } + if ((response.tryGetSettingValue(String.class, + UserSettingName.InternalEwsUrl, outParam) || response + .tryGetSettingValue(String.class, + UserSettingName.ExternalEwsUrl, outParam))) { + uriString = outParam.getParam(); + if (!(uriString == null || uriString.isEmpty())) { + return new URI(uriString); + } + } - // region InboxRule operations + // If Autodiscover doesn't return an + // internal or external EWS URL, throw an exception. + throw new AutodiscoverLocalException( + Strings.AutodiscoverDidNotReturnEwsUrl); + } - /** - * Retrieves inbox rules of the authenticated user. - * - * @return A RuleCollection object containing the authenticated users inbox - * rules. - * @throws Exception - */ - public RuleCollection getInboxRules() throws Exception { - GetInboxRulesRequest request = new GetInboxRulesRequest(this); - return request.execute().getRules(); - } + // region Diagnostic Method -- Only used by test - /** - * Retrieves the inbox rules of the specified user. - * - * @param mailboxSmtpAddress - * The SMTP address of the user whose inbox rules should be - * retrieved - * @return A RuleCollection object containing the inbox rules of the - * specified user. - * @throws Exception - */ - public RuleCollection getInboxRules(String mailboxSmtpAddress) - throws Exception { - EwsUtilities.validateParam(mailboxSmtpAddress, "MailboxSmtpAddress"); + /** + * Executes the diagnostic method. + * + * @param verb The verb. + * @param parameter The parameter. + * @throws Exception + */ + protected Document executeDiagnosticMethod(String verb, Node parameter) + throws Exception { + ExecuteDiagnosticMethodRequest request = new ExecuteDiagnosticMethodRequest( + this); + request.setVerb(verb); + request.setParameter(parameter); - GetInboxRulesRequest request = new GetInboxRulesRequest(this); - request.setmailboxSmtpAddress(mailboxSmtpAddress); - return request.execute().getRules(); - } + return request.execute().getResponseAtIndex(0).getReturnValue(); - /** - * Updates the authenticated user's inbox rules by applying the specified - * operations. - * - * @param operations - * The operations that should be applied to the user's inbox - * rules. - * @param removeOutlookRuleBlob - * Indicate whether or not to remove Outlook Rule Blob. - * @throws Exception - */ - public void updateInboxRules(Iterable operations, - boolean removeOutlookRuleBlob) throws Exception { - UpdateInboxRulesRequest request = new UpdateInboxRulesRequest(this); - request.setInboxRuleOperations(operations); - request.setRemoveOutlookRuleBlob(removeOutlookRuleBlob); - request.execute(); - } - - /** - * Updates the authenticated user's inbox rules by applying the specified - * operations. - * - * @param operations - * The operations that should be applied to the user's inbox - * rules. - * @param removeOutlookRuleBlob - * Indicate whether or not to remove Outlook Rule Blob. - * @param mailboxSmtpAddress - * The SMTP address of the user whose inbox rules should be - * retrieved - * @throws Exception - */ - public void updateInboxRules(Iterable operations, - boolean removeOutlookRuleBlob, String mailboxSmtpAddress) - throws Exception { - UpdateInboxRulesRequest request = new UpdateInboxRulesRequest(this); - request.setInboxRuleOperations(operations); - request.setRemoveOutlookRuleBlob(removeOutlookRuleBlob); - request.setMailboxSmtpAddress(mailboxSmtpAddress); - request.execute(); - } - - /** - * Default implementation of AutodiscoverRedirectionUrlValidationCallback. - * Always returns true indicating that the URL can be used. - * - * @param redirectionUrl - * the redirection url - * @return Returns true. - * @throws AutodiscoverLocalException - * the autodiscover local exception - */ - private boolean defaultAutodiscoverRedirectionUrlValidationCallback( - String redirectionUrl) throws AutodiscoverLocalException { - throw new AutodiscoverLocalException(String.format( - Strings.AutodiscoverRedirectBlocked, redirectionUrl)); - } - - /** - * Initializes the Url property to the Exchange Web Services URL for the - * specified e-mail address by calling the Autodiscover service. - * - * @param emailAddress - * the email address - * @throws Exception - * the exception - */ - public void autodiscoverUrl(String emailAddress) throws Exception { - this.autodiscoverUrl(emailAddress, this); - } + } - /** - * Initializes the Url property to the Exchange Web Services URL for the - * specified e-mail address by calling the Autodiscover service. - * - * @param emailAddress - * the email address to use. - * @param validateRedirectionUrlCallback - * The callback used to validate redirection URL - * @throws Exception - * the exception - */ - public void autodiscoverUrl(String emailAddress, - IAutodiscoverRedirectionUrl validateRedirectionUrlCallback) - throws Exception { - URI exchangeServiceUrl = null; - - if (this.getRequestedServerVersion().ordinal() > ExchangeVersion.Exchange2007_SP1 - .ordinal()) { - try { - exchangeServiceUrl = this.getAutodiscoverUrl(emailAddress, this - .getRequestedServerVersion(), - validateRedirectionUrlCallback); - this.setUrl(this - .adjustServiceUriFromCredentials(exchangeServiceUrl)); - return; - } catch (AutodiscoverLocalException ex) { - - this.traceMessage(TraceFlags.AutodiscoverResponse, String - .format("Autodiscover service call " - + "failed with error '%s'. " - + "Will try legacy service", ex.getMessage())); - - } catch (ServiceRemoteException ex) { - // E14:321785 -- Special case: if - // the caller's account is locked - // we want to return this exception, not continue. - if (ex instanceof AccountIsLockedException) { - throw new AccountIsLockedException(ex.getMessage(), - exchangeServiceUrl, ex); - } - - this.traceMessage(TraceFlags.AutodiscoverResponse, String - .format("Autodiscover service call " - + "failed with error '%s'. " - + "Will try legacy service", ex.getMessage())); - } - } - - // Try legacy Autodiscover provider - - exchangeServiceUrl = this.getAutodiscoverUrl(emailAddress, - ExchangeVersion.Exchange2007_SP1, - validateRedirectionUrlCallback); - - this.setUrl(this.adjustServiceUriFromCredentials(exchangeServiceUrl)); - } - - /** - * Autodiscover will always return the "plain" EWS endpoint URL but if the - * client is using WindowsLive credentials, ExchangeService needs to use the - * WS-Security endpoint. - * - * @param uri - * the uri - * @return Adjusted URL. - * @throws Exception - */ - private URI adjustServiceUriFromCredentials(URI uri) - throws Exception { - return (this.getCredentials() != null) ? this.getCredentials() - .adjustUrl(uri) : uri; - } + // endregion - /** - * Gets the autodiscover url. - * - * @param emailAddress - * the email address - * @param requestedServerVersion - * the Exchange version - * @param validateRedirectionUrlCallback - * the validate redirection url callback - * @return the autodiscover url - * @throws Exception - * the exception - */ - private URI getAutodiscoverUrl(String emailAddress, - ExchangeVersion requestedServerVersion, - IAutodiscoverRedirectionUrl validateRedirectionUrlCallback) - throws Exception { + // region Validation - AutodiscoverService autodiscoverService = new AutodiscoverService(this, - requestedServerVersion); - autodiscoverService - .setRedirectionUrlValidationCallback(validateRedirectionUrlCallback); - autodiscoverService.setEnableScpLookup(this.getEnableScpLookup()); - - GetUserSettingsResponse response = autodiscoverService.getUserSettings( - emailAddress, UserSettingName.InternalEwsUrl, - UserSettingName.ExternalEwsUrl); - - switch (response.getErrorCode()) { - case NoError: - return this.getEwsUrlFromResponse(response, autodiscoverService - .isExternal().TRUE); - - case InvalidUser: - throw new ServiceRemoteException(String.format(Strings.InvalidUser, - emailAddress)); - - case InvalidRequest: - throw new ServiceRemoteException(String.format( - Strings.InvalidAutodiscoverRequest, response - .getErrorMessage())); - - default: - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String - .format("No EWS Url returned for user %s, " - + "error code is %s", emailAddress, response - .getErrorCode())); - - throw new ServiceRemoteException(response.getErrorMessage()); - } - } - - private URI getEwsUrlFromResponse(GetUserSettingsResponse response, - boolean isExternal) throws URISyntaxException, - AutodiscoverLocalException { - String uriString; - - // Bug E14:59063 -- Figure out which URL to use: Internal or External. - // Bug E14:67646 -- AutoDiscover may not return an external protocol. - // First try external, then internal. - // Bug E14:82650 -- Either protocol - // may be returned without a configured URL. - OutParam outParam = new OutParam(); - if ((isExternal && response.tryGetSettingValue(String.class, - UserSettingName.ExternalEwsUrl, outParam))) { - uriString = outParam.getParam(); - if (!(uriString == null || uriString.isEmpty())) { - return new URI(uriString); - } - } - if ((response.tryGetSettingValue(String.class, - UserSettingName.InternalEwsUrl, outParam) || response - .tryGetSettingValue(String.class, - UserSettingName.ExternalEwsUrl, outParam))) { - uriString = outParam.getParam(); - if (!(uriString == null || uriString.isEmpty())) { - return new URI(uriString); - } - } - - // If Autodiscover doesn't return an - // internal or external EWS URL, throw an exception. - throw new AutodiscoverLocalException( - Strings.AutodiscoverDidNotReturnEwsUrl); - } - - // region Diagnostic Method -- Only used by test - - /** - * Executes the diagnostic method. - * - * @param verb - * The verb. - * @param parameter - * The parameter. - * @throws Exception - */ - protected Document executeDiagnosticMethod(String verb, Node parameter) - throws Exception { - ExecuteDiagnosticMethodRequest request = new ExecuteDiagnosticMethodRequest( - this); - request.setVerb(verb); - request.setParameter(parameter); + /** + * Validates this instance. + * + * @throws ServiceLocalException the service local exception + */ + @Override + protected void validate() throws ServiceLocalException { + super.validate(); + if (this.getUrl() == null) { + throw new ServiceLocalException(Strings.ServiceUrlMustBeSet); + } + } - return request.execute().getResponseAtIndex(0).getReturnValue(); + // region Constructors - } + /** + * Initializes a new instance of the class, + * targeting the specified version of EWS and scoped to the to the system's + * current time zone. + */ + public ExchangeService() { + super(); + } - // endregion + /** + * Initializes a new instance of the class, + * targeting the specified version of EWS and scoped to the system's current + * time zone. + * + * @param requestedServerVersion the requested server version + */ + public ExchangeService(ExchangeVersion requestedServerVersion) { + super(requestedServerVersion); + } - // region Validation + /** + * Initializes a new instance of the class, + * targeting the specified version of EWS and scoped to the to the specified + * time zone. + * + * @param requestedServerVersion The version of EWS that the service targets. + * @param timeZone The time zone to which the service is scoped. + */ + public ExchangeService(ExchangeVersion requestedServerVersion, + TimeZone timeZone) { + super(requestedServerVersion, timeZone); + } - /** - * Validates this instance. - * - * @throws ServiceLocalException - * the service local exception - */ - @Override - protected void validate() throws ServiceLocalException { - super.validate(); - if (this.getUrl() == null) { - throw new ServiceLocalException(Strings.ServiceUrlMustBeSet); - } - } - - // region Constructors - - /** - * Initializes a new instance of the class, - * targeting the specified version of EWS and scoped to the to the system's - * current time zone. - */ - public ExchangeService() { - super(); - } - - /** - * Initializes a new instance of the class, - * targeting the specified version of EWS and scoped to the system's current - * time zone. - * - * @param requestedServerVersion - * the requested server version - */ - public ExchangeService(ExchangeVersion requestedServerVersion) { - super(requestedServerVersion); - } - - /** - * Initializes a new instance of the class, - * targeting the specified version of EWS and scoped to the to the specified - * time zone. - * - * @param requestedServerVersion - * The version of EWS that the service targets. - * @param timeZone - * The time zone to which the service is scoped. - */ - public ExchangeService(ExchangeVersion requestedServerVersion, - TimeZone timeZone) { - super(requestedServerVersion, timeZone); - } + // Utilities + + /** + * Prepare http web request. + * + * @return the http web request + * @throws ServiceLocalException the service local exception + * @throws java.net.URISyntaxException the uRI syntax exception + */ + protected HttpWebRequest prepareHttpWebRequest() + throws ServiceLocalException, URISyntaxException { + try { + this.url = this.adjustServiceUriFromCredentials(this.getUrl()); + } catch (Exception e) { + e.printStackTrace(); + } + return this.prepareHttpWebRequestForUrl(url, this + .getAcceptGzipEncoding(), true); + } - // Utilities + /** + * Processes an HTTP error response. + * + * @param httpWebResponse The HTTP web response. + * @param webException The web exception + * @throws Exception + */ + @Override + protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, + Exception webException) throws Exception { + this.internalProcessHttpErrorResponse(httpWebResponse, webException, + TraceFlags.EwsResponseHttpHeaders, TraceFlags.EwsResponse); + } - /** - * Prepare http web request. - * - * @return the http web request - * @throws ServiceLocalException - * the service local exception - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - protected HttpWebRequest prepareHttpWebRequest() - throws ServiceLocalException, URISyntaxException { - try { - this. url = this.adjustServiceUriFromCredentials(this.getUrl()); - } catch (Exception e) { - e.printStackTrace(); - } - return this.prepareHttpWebRequestForUrl(url, this - .getAcceptGzipEncoding(), true); - } - - /** - * Processes an HTTP error response. - * - * @param httpWebResponse - * The HTTP web response. - * @param webException - * The web exception - * @throws Exception - */ - @Override - protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, - Exception webException) throws Exception { - this.internalProcessHttpErrorResponse(httpWebResponse, webException, - TraceFlags.EwsResponseHttpHeaders, TraceFlags.EwsResponse); - } + // Properties - // Properties + /** + * Gets the URL of the Exchange Web Services. + * + * @return URL of the Exchange Web Services. + */ + public URI getUrl() { + return url; + } - /** - * Gets the URL of the Exchange Web Services. - * - * @return URL of the Exchange Web Services. - */ - public URI getUrl() { - return url; - } + /** + * Sets the URL of the Exchange Web Services. + * + * @param url URL of the Exchange Web Services. + */ + public void setUrl(URI url) { + this.url = url; + } - /** - * Sets the URL of the Exchange Web Services. - * - * @param url - * URL of the Exchange Web Services. - */ - public void setUrl(URI url) { - this.url = url; - } + /** + * Gets the impersonated user id. + * + * @return the impersonated user id + */ + public ImpersonatedUserId getImpersonatedUserId() { + return impersonatedUserId; + } - /** - * Gets the impersonated user id. - * - * @return the impersonated user id - */ - public ImpersonatedUserId getImpersonatedUserId() { - return impersonatedUserId; - } + /** + * Sets the impersonated user id. + * + * @param impersonatedUserId the new impersonated user id + */ + public void setImpersonatedUserId(ImpersonatedUserId impersonatedUserId) { + this.impersonatedUserId = impersonatedUserId; + } - /** - * Sets the impersonated user id. - * - * @param impersonatedUserId - * the new impersonated user id - */ - public void setImpersonatedUserId(ImpersonatedUserId impersonatedUserId) { - this.impersonatedUserId = impersonatedUserId; - } + /** + * Gets the preferred culture. + * + * @return the preferred culture + */ + public Locale getPreferredCulture() { + return preferredCulture; + } - /** - * Gets the preferred culture. - * - * @return the preferred culture - */ - public Locale getPreferredCulture() { - return preferredCulture; - } + /** + * Sets the preferred culture. + * + * @param preferredCulture the new preferred culture + */ + public void setPreferredCulture(Locale preferredCulture) { + this.preferredCulture = preferredCulture; + } - /** - * Sets the preferred culture. - * - * @param preferredCulture - * the new preferred culture - */ - public void setPreferredCulture(Locale preferredCulture) { - this.preferredCulture = preferredCulture; - } + /** + * Gets the DateTime precision for DateTime values returned from Exchange + * Web Services. + * + * @return the DateTimePrecision + */ + public DateTimePrecision getDateTimePrecision() { + return this.dateTimePrecision; + } - /** - * Gets the DateTime precision for DateTime values returned from Exchange - * Web Services. - * - * @return the DateTimePrecision - */ - public DateTimePrecision getDateTimePrecision() { - return this.dateTimePrecision; - } - - /** - * Sets the DateTime precision for DateTime values - * Web Services. - */ - public void setDateTimePrecision(DateTimePrecision d) { - this.dateTimePrecision = d; - } + /** + * Sets the DateTime precision for DateTime values + * Web Services. + */ + public void setDateTimePrecision(DateTimePrecision d) { + this.dateTimePrecision = d; + } - /** - * Sets the DateTime precision for DateTime values returned from Exchange - * Web Services. - * - * @param dateTimePrecision - * the new DateTimePrecision - */ - public void setPreferredCulture(DateTimePrecision dateTimePrecision) { - this.dateTimePrecision = dateTimePrecision; - } + /** + * Sets the DateTime precision for DateTime values returned from Exchange + * Web Services. + * + * @param dateTimePrecision the new DateTimePrecision + */ + public void setPreferredCulture(DateTimePrecision dateTimePrecision) { + this.dateTimePrecision = dateTimePrecision; + } - /** - * Gets the file attachment content handler. - * - * @return the file attachment content handler - */ - public IFileAttachmentContentHandler getFileAttachmentContentHandler() { - return this.fileAttachmentContentHandler; - } + /** + * Gets the file attachment content handler. + * + * @return the file attachment content handler + */ + public IFileAttachmentContentHandler getFileAttachmentContentHandler() { + return this.fileAttachmentContentHandler; + } - /** - * Sets the file attachment content handler. - * - * @param fileAttachmentContentHandler - * the new file attachment content handler - */ - public void setFileAttachmentContentHandler( - IFileAttachmentContentHandler fileAttachmentContentHandler) { - this.fileAttachmentContentHandler = fileAttachmentContentHandler; - } + /** + * Sets the file attachment content handler. + * + * @param fileAttachmentContentHandler the new file attachment content handler + */ + public void setFileAttachmentContentHandler( + IFileAttachmentContentHandler fileAttachmentContentHandler) { + this.fileAttachmentContentHandler = fileAttachmentContentHandler; + } /* * Gets the time zone this service is scoped to. @@ -4349,68 +3810,67 @@ public void setFileAttachmentContentHandler( public TimeZone getTimeZone() { return super.getTimeZone(); } */ - /** - * Provides access to the Unified Messaging functionalities. - * - * @return the unified messaging - */ - public UnifiedMessaging getUnifiedMessaging() { - if (this.unifiedMessaging == null) { - this.unifiedMessaging = new UnifiedMessaging(this); - } - - return this.unifiedMessaging; - } - - /** - * Gets or sets a value indicating whether the AutodiscoverUrl method should - * perform SCP (Service Connection Point) record lookup when determining the - * Autodiscover service URL. - * - * @return enable scp lookup flag. - */ - public boolean getEnableScpLookup() { - return this.enableScpLookup; - } - - public void setEnableScpLookup(boolean value) { - this.enableScpLookup = value; - } - - /** - * Gets or sets a value indicating whether Exchange2007 compatibility mode - * is enabled. In order to support E12 servers, the - * Exchange2007CompatibilityMode property can be used to indicate that we - * should use "Exchange2007" as the server version String rather than - * Exchange2007_SP1. - */ - protected boolean getExchange2007CompatibilityMode() { - return this.exchange2007CompatibilityMode; - } + /** + * Provides access to the Unified Messaging functionalities. + * + * @return the unified messaging + */ + public UnifiedMessaging getUnifiedMessaging() { + if (this.unifiedMessaging == null) { + this.unifiedMessaging = new UnifiedMessaging(this); + } - protected void setExchange2007CompatibilityMode(boolean value) { - this.exchange2007CompatibilityMode = value; - } + return this.unifiedMessaging; + } - /** - * Retrieves the definitions of the specified server-side time zones. - * - * @param timeZoneIds - * the time zone ids - * @return A Collection containing the definitions of the specified time - * zones. - */ - public Collection getServerTimeZones( - Iterable timeZoneIds) { - Date today = new Date(); - Collection timeZoneList = new ArrayList(); - for (String timeZoneId : timeZoneIds) { - TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); - timeZoneList.add(timeZoneDefinition); - TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); - timeZoneDefinition.id = timeZone.getID(); - timeZoneDefinition.name = timeZone.getDisplayName(timeZone - .inDaylightTime(today), TimeZone.LONG); + /** + * Gets or sets a value indicating whether the AutodiscoverUrl method should + * perform SCP (Service Connection Point) record lookup when determining the + * Autodiscover service URL. + * + * @return enable scp lookup flag. + */ + public boolean getEnableScpLookup() { + return this.enableScpLookup; + } + + public void setEnableScpLookup(boolean value) { + this.enableScpLookup = value; + } + + /** + * Gets or sets a value indicating whether Exchange2007 compatibility mode + * is enabled. In order to support E12 servers, the + * Exchange2007CompatibilityMode property can be used to indicate that we + * should use "Exchange2007" as the server version String rather than + * Exchange2007_SP1. + */ + protected boolean getExchange2007CompatibilityMode() { + return this.exchange2007CompatibilityMode; + } + + protected void setExchange2007CompatibilityMode(boolean value) { + this.exchange2007CompatibilityMode = value; + } + + /** + * Retrieves the definitions of the specified server-side time zones. + * + * @param timeZoneIds the time zone ids + * @return A Collection containing the definitions of the specified time + * zones. + */ + public Collection getServerTimeZones( + Iterable timeZoneIds) { + Date today = new Date(); + Collection timeZoneList = new ArrayList(); + for (String timeZoneId : timeZoneIds) { + TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); + timeZoneList.add(timeZoneDefinition); + TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); + timeZoneDefinition.id = timeZone.getID(); + timeZoneDefinition.name = timeZone.getDisplayName(timeZone + .inDaylightTime(today), TimeZone.LONG); /* * String shortName = * timeZone.getDisplayName(timeZone.inDaylightTime(today), @@ -4421,42 +3881,42 @@ public Collection getServerTimeZones( * (60*1000)) % 60; boolean hasDST = timeZone.useDaylightTime(); * boolean inDST = timeZone.inDaylightTime(today); */ - } + } - return timeZoneList; - } + return timeZoneList; + } - /** - * Retrieves the definitions of all server-side time zones. - * - * @return A Collection containing the definitions of the specified time - * zones. - */ - public Collection getServerTimeZones() { - Date today = new Date(); - Collection timeZoneList = new ArrayList(); - for (String timeZoneId : TimeZone.getAvailableIDs()) { - TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); - timeZoneList.add(timeZoneDefinition); - TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); - timeZoneDefinition.id = timeZone.getID(); - timeZoneDefinition.name = timeZone.getDisplayName(timeZone - .inDaylightTime(today), TimeZone.LONG); - } - - return timeZoneList; - } + /** + * Retrieves the definitions of all server-side time zones. + * + * @return A Collection containing the definitions of the specified time + * zones. + */ + public Collection getServerTimeZones() { + Date today = new Date(); + Collection timeZoneList = new ArrayList(); + for (String timeZoneId : TimeZone.getAvailableIDs()) { + TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); + timeZoneList.add(timeZoneDefinition); + TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); + timeZoneDefinition.id = timeZone.getID(); + timeZoneDefinition.name = timeZone.getDisplayName(timeZone + .inDaylightTime(today), TimeZone.LONG); + } - /* + return timeZoneList; + } + + /* * (non-Javadoc) * * @seemicrosoft.exchange.webservices.AutodiscoverRedirectionUrlInterface# * autodiscoverRedirectionUrlValidationCallback(java.lang.String) */ - public boolean autodiscoverRedirectionUrlValidationCallback( - String redirectionUrl) throws AutodiscoverLocalException { - return defaultAutodiscoverRedirectionUrlValidationCallback(redirectionUrl); + public boolean autodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) throws AutodiscoverLocalException { + return defaultAutodiscoverRedirectionUrlValidationCallback(redirectionUrl); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index e990c9368..24c72d03b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -10,30 +10,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.IOException; -import java.net.CookieHandler; -import java.net.CookieManager; -import java.net.MalformedURLException; -import java.net.URI; -import java.net.URISyntaxException; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.EnumSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.TimeZone; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; - import org.apache.http.client.CookieStore; import org.apache.http.config.Registry; import org.apache.http.config.RegistryBuilder; @@ -44,605 +20,614 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.impl.client.BasicCookieStore; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; +import java.net.*; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + /** * Represents an abstract binding to an Exchange Service. */ public abstract class ExchangeServiceBase { - // Fields - - /** - * Prefix for "extended" headers. - */ - private static final String ExtendedHeaderPrefix = "X-"; - - /** The credentials. */ - private ExchangeCredentials credentials; - - /** The use default credentials. */ - private boolean useDefaultCredentials; - - /** The binary secret.*/ - private static byte[] binarySecret; - - /** The timeout. */ - private int timeout = 100000; - - /** The trace enabled. */ - private boolean traceEnabled; - - /** The trace flags. */ - private EnumSet traceFlags = EnumSet.allOf(TraceFlags.class); - - /** The trace listener. */ - private ITraceListener traceListener = new EwsTraceListener(); - - /** The pre authenticate. */ - private boolean preAuthenticate; - - /** The user agent. */ - private String userAgent = ExchangeServiceBase.defaultUserAgent; - - /** The accept gzip encoding. */ - private boolean acceptGzipEncoding = true; - - /** The requested server version. */ - private ExchangeVersion requestedServerVersion = - ExchangeVersion.Exchange2010_SP2; - - /** The server info. */ - private ExchangeServerInfo serverInfo; - - private Map httpHeaders = new HashMap(); - - private Map httpResponseHeaders = new HashMap(); - - private TimeZone timeZone; - - private WebProxy webProxy; - - private HttpClientConnectionManager httpConnectionManager; - - HttpClientWebRequest request = null; - - private CookieStore cookieStore; - - // protected static HttpStatusCode AccountIsLocked = (HttpStatusCode)456; + // Fields - /** - * Static members - */ + /** + * Prefix for "extended" headers. + */ + private static final String ExtendedHeaderPrefix = "X-"; - protected HttpClientConnectionManager getSimpleHttpConnectionManager() { - return httpConnectionManager; - } - - /** Default UserAgent. */ - private static String defaultUserAgent = "ExchangeServicesClient/" + - EwsUtilities.getBuildVersion(); - - /** - * @return TimeZone - */ - private TimeZone getTimeZone() { - return this.timeZone; - } - - /** - * Initializes a new instance. - * - * @param requestedServerVersion - * The requested server version. - */ - protected ExchangeServiceBase() { - //real init -- ONLY WAY TO BUILD AN OBJECT => each constructor must call this() to build properly the httpConnectionManager - this.timeZone = TimeZone.getDefault(); - this.setUseDefaultCredentials(true); - - try { - EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(null); - Registry registry = RegistryBuilder.create() - .register("http", new PlainConnectionSocketFactory()) - .register("https", factory) - .build(); - this.httpConnectionManager = new PoolingHttpClientConnectionManager(registry); - } - catch (Exception err) { - err.printStackTrace(); - } - } - - protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { - // Removed because TimeZone class in Java doesn't maintaining the - //history of time change rules for a given time zone - //this(requestedServerVersion, TimeZone.getDefault()); - this(); - this.requestedServerVersion = requestedServerVersion; - } - - protected ExchangeServiceBase(ExchangeServiceBase service) { - this(service, service.getRequestedServerVersion()); + /** + * The credentials. + */ + private ExchangeCredentials credentials; + + /** + * The use default credentials. + */ + private boolean useDefaultCredentials; + + /** + * The binary secret. + */ + private static byte[] binarySecret; + + /** + * The timeout. + */ + private int timeout = 100000; + + /** + * The trace enabled. + */ + private boolean traceEnabled; + + /** + * The trace flags. + */ + private EnumSet traceFlags = EnumSet.allOf(TraceFlags.class); + + /** + * The trace listener. + */ + private ITraceListener traceListener = new EwsTraceListener(); + + /** + * The pre authenticate. + */ + private boolean preAuthenticate; + + /** + * The user agent. + */ + private String userAgent = ExchangeServiceBase.defaultUserAgent; + + /** + * The accept gzip encoding. + */ + private boolean acceptGzipEncoding = true; + + /** + * The requested server version. + */ + private ExchangeVersion requestedServerVersion = + ExchangeVersion.Exchange2010_SP2; + + /** + * The server info. + */ + private ExchangeServerInfo serverInfo; + + private Map httpHeaders = new HashMap(); + + private Map httpResponseHeaders = new HashMap(); + + private TimeZone timeZone; + + private WebProxy webProxy; + + private HttpClientConnectionManager httpConnectionManager; + + HttpClientWebRequest request = null; + + private CookieStore cookieStore; + + // protected static HttpStatusCode AccountIsLocked = (HttpStatusCode)456; + + /** + * Static members + */ + + protected HttpClientConnectionManager getSimpleHttpConnectionManager() { + return httpConnectionManager; + } + + /** + * Default UserAgent. + */ + private static String defaultUserAgent = "ExchangeServicesClient/" + + EwsUtilities.getBuildVersion(); + + /** + * @return TimeZone + */ + private TimeZone getTimeZone() { + return this.timeZone; + } + + /** + * Initializes a new instance. + * + * @param requestedServerVersion The requested server version. + */ + protected ExchangeServiceBase() { + //real init -- ONLY WAY TO BUILD AN OBJECT => each constructor must call this() to build properly the httpConnectionManager + this.timeZone = TimeZone.getDefault(); + this.setUseDefaultCredentials(true); + + try { + EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(null); + Registry registry = RegistryBuilder.create() + .register("http", new PlainConnectionSocketFactory()) + .register("https", factory) + .build(); + this.httpConnectionManager = new PoolingHttpClientConnectionManager(registry); + } catch (Exception err) { + err.printStackTrace(); + } + } + + protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { + // Removed because TimeZone class in Java doesn't maintaining the + //history of time change rules for a given time zone + //this(requestedServerVersion, TimeZone.getDefault()); + this(); + this.requestedServerVersion = requestedServerVersion; + } + + protected ExchangeServiceBase(ExchangeServiceBase service) { + this(service, service.getRequestedServerVersion()); + } + + protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) { + this(requestedServerVersion); + this.useDefaultCredentials = service.getUseDefaultCredentials(); + this.credentials = service.getCredentials(); + this.traceEnabled = service.isTraceEnabled(); + this.traceListener = service.getTraceListener(); + this.traceFlags = service.getTraceFlags(); + this.timeout = service.getTimeout(); + this.preAuthenticate = service.isPreAuthenticate(); + this.userAgent = service.getUserAgent(); + this.acceptGzipEncoding = service.getAcceptGzipEncoding(); + this.timeZone = service.getTimeZone(); + this.httpHeaders = service.getHttpHeaders(); + } + + + protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZone timezone) { + this(requestedServerVersion); + this.timeZone = timezone; + } + + // Event handlers + + /** + * Calls the custom SOAP header serialisation event handlers, if defined. + * + * @param writer The XmlWriter to which to write the custom SOAP headers. + */ + protected void doOnSerializeCustomSoapHeaders(XMLStreamWriter writer) { + EwsUtilities.EwsAssert(writer != null, + "ExchangeService.DoOnSerializeCustomSoapHeaders", + "writer is null"); + if (null != getOnSerializeCustomSoapHeaders() && + !getOnSerializeCustomSoapHeaders().isEmpty()) { + for (ICustomXmlSerialization customSerialization : getOnSerializeCustomSoapHeaders()) { + customSerialization.CustomXmlSerialization(writer); + } + } + } + + // Utilities + + /** + * Creates an HttpWebRequest instance and initialises it with the + * appropriate parameters, based on the configuration of this service + * object. + * + * @param url The URL that the HttpWebRequest should target. + * @param acceptGzipEncoding If true, ask server for GZip compressed content. + * @param allowAutoRedirect If true, redirection responses will be automatically followed. + * @return An initialised instance of HttpWebRequest. + * @throws ServiceLocalException the service local exception + * @throws java.net.URISyntaxException the uRI syntax exception + */ + protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, + boolean acceptGzipEncoding, boolean allowAutoRedirect) + throws ServiceLocalException, URISyntaxException { + // Verify that the protocol is something that we can handle + if (!url.getScheme().equalsIgnoreCase("HTTP") + && !url.getScheme().equalsIgnoreCase("HTTPS")) { + String strErr = String.format(Strings.UnsupportedWebProtocol, url. + getScheme()); + throw new ServiceLocalException(strErr); } - - protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) { - this(requestedServerVersion); - this.useDefaultCredentials = service.getUseDefaultCredentials(); - this.credentials = service.getCredentials(); - this.traceEnabled = service.isTraceEnabled(); - this.traceListener = service.getTraceListener(); - this.traceFlags = service.getTraceFlags(); - this.timeout = service.getTimeout(); - this.preAuthenticate = service.isPreAuthenticate(); - this.userAgent = service.getUserAgent(); - this.acceptGzipEncoding = service.getAcceptGzipEncoding(); - this.timeZone = service.getTimeZone(); - this.httpHeaders = service.getHttpHeaders(); - } - - - protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZone timezone) { - this(requestedServerVersion); - this.timeZone = timezone; - } - - // Event handlers - - /** - * Calls the custom SOAP header serialisation event handlers, if defined. - * - * @param writer - * The XmlWriter to which to write the custom SOAP headers. - */ - protected void doOnSerializeCustomSoapHeaders(XMLStreamWriter writer) { - EwsUtilities.EwsAssert(writer != null, - "ExchangeService.DoOnSerializeCustomSoapHeaders", - "writer is null"); - if (null != getOnSerializeCustomSoapHeaders() && - !getOnSerializeCustomSoapHeaders().isEmpty()) { - for (ICustomXmlSerialization customSerialization : getOnSerializeCustomSoapHeaders()) { - customSerialization.CustomXmlSerialization(writer); - } - } - } - - // Utilities - /** - * Creates an HttpWebRequest instance and initialises it with the - * appropriate parameters, based on the configuration of this service - * object. - * - * @param url - * The URL that the HttpWebRequest should target. - * @param acceptGzipEncoding - * If true, ask server for GZip compressed content. - * @param allowAutoRedirect - * If true, redirection responses will be automatically followed. - * @return An initialised instance of HttpWebRequest. - * @throws ServiceLocalException - * the service local exception - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, - boolean acceptGzipEncoding, boolean allowAutoRedirect) - throws ServiceLocalException, URISyntaxException { - // Verify that the protocol is something that we can handle - if (!url.getScheme().equalsIgnoreCase("HTTP") - && !url.getScheme().equalsIgnoreCase("HTTPS")) { - String strErr = String.format(Strings.UnsupportedWebProtocol, url. - getScheme()); - throw new ServiceLocalException(strErr); - } + request = new HttpClientWebRequest(this.httpConnectionManager); + try { + request.setUrl(url.toURL()); + } catch (MalformedURLException e) { + String strErr = String.format("Incorrect format : %s", url); + throw new ServiceLocalException(strErr); + } + request.setPreAuthenticate(this.preAuthenticate); + request.setTimeout(this.timeout); + request.setContentType("text/xml; charset=utf-8"); + request.setAccept("text/xml"); + request.setUserAgent(this.userAgent); + request.setAllowAutoRedirect(allowAutoRedirect); + //request.setKeepAlive(true); + + if (acceptGzipEncoding) { + request.setAcceptGzipEncoding(acceptGzipEncoding); + } - request = new HttpClientWebRequest(this.httpConnectionManager); - try { - request.setUrl(url.toURL()); - } catch (MalformedURLException e) { - String strErr = String.format("Incorrect format : %s", url); - throw new ServiceLocalException(strErr); - } - request.setPreAuthenticate(this.preAuthenticate); - request.setTimeout(this.timeout); - request.setContentType("text/xml; charset=utf-8"); - request.setAccept("text/xml"); - request.setUserAgent(this.userAgent); - request.setAllowAutoRedirect(allowAutoRedirect); - //request.setKeepAlive(true); - - if (acceptGzipEncoding) { - request.setAcceptGzipEncoding(acceptGzipEncoding); - } + if (this.webProxy != null) { + request.setProxy(this.webProxy); + } - if (this.webProxy != null) { - request.setProxy(this.webProxy); - } + //if (this.getHttpHeaders().size() > 0){ + request.setHeaders(this.getHttpHeaders()); + //} - //if (this.getHttpHeaders().size() > 0){ - request.setHeaders(this.getHttpHeaders()); - //} - - request.setUseDefaultCredentials(useDefaultCredentials); - if (!useDefaultCredentials) { - ExchangeCredentials serviceCredentials = this.credentials; - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings.CredentialsRequired); - } - - if (cookieStore != null) { - request.setUserCookie(cookieStore.getCookies()); - } + request.setUseDefaultCredentials(useDefaultCredentials); + if (!useDefaultCredentials) { + ExchangeCredentials serviceCredentials = this.credentials; + if (null == serviceCredentials) { + throw new ServiceLocalException(Strings.CredentialsRequired); + } - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); + if (cookieStore != null) { + request.setUserCookie(cookieStore.getCookies()); + } - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - - try { - request.prepareConnection(); - } catch (Exception e) { - String strErr = String.format("%s : Connection error ", url); - throw new ServiceLocalException(strErr); - } - - this.httpResponseHeaders.clear(); - - return request; - } - - /** - * This method doesn't handle 500 ISE errors. This is handled by the caller since - * 500 ISE typically indicates that a SOAP fault has occurred and the handling of - * a SOAP fault is currently service specific. - * - * @throws Exception - */ - protected void internalProcessHttpErrorResponse( - HttpWebRequest httpWebResponse, - Exception webException, - TraceFlags responseHeadersTraceFlag, - TraceFlags responseTraceFlag) throws Exception - { - EwsUtilities.EwsAssert( - 500 != httpWebResponse.getResponseCode(), - "ExchangeServiceBase.InternalProcessHttpErrorResponse", - "InternalProcessHttpErrorResponse does not handle 500 ISE errors," + - " the caller is supposed to handle this."); - - this.processHttpResponseHeaders( responseHeadersTraceFlag, - httpWebResponse); - - // E14:321785 -- Deal with new HTTP - // error code indicating that account is locked. - // The "unlock" URL is returned as - // the status description in the response. - if (httpWebResponse.getResponseCode() == 456) - { - String location = httpWebResponse.getResponseContentType(); - - URI accountUnlockUrl = null; - if (checkURIPath(location)) - { - accountUnlockUrl = new URI(location); - } + // Make sure that credentials have been authenticated if required + serviceCredentials.preAuthenticate(); - this.traceMessage(responseTraceFlag, String.format("Account is locked." + - " Unlock URL is {0}", accountUnlockUrl)); + // Apply credentials to the request + serviceCredentials.prepareWebRequest(request); + } - throw new AccountIsLockedException( - String.format(Strings.AccountIsLocked, accountUnlockUrl), - accountUnlockUrl, - webException); - } - } - - /** - * @return false if location is null,true if this abstract pathname is - * absolute, - */ - public static boolean checkURIPath(String location) { - if(location == null) { - return false; - } - final File file = new File(location); - return file.isAbsolute(); - } - - /** - * @throws Exception - */ - protected abstract void processHttpErrorResponse( - HttpWebRequest httpWebResponse, Exception webException) - throws Exception; - - /** - * Determines whether tracing is enabled for specified trace flag(s). - * - * @param traceFlags - * The trace flags. - * @return True if tracing is enabled for specified trace flag(s). - */ - protected boolean isTraceEnabledFor(TraceFlags traceFlags) { - return this.isTraceEnabled() && this.traceFlags.contains(traceFlags); - } - - /** - * Logs the specified string to the TraceListener if tracing is enabled. - * - * @param traceType - * Kind of trace entry. - * @param logEntry - * The entry to log. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - protected void traceMessage(TraceFlags traceType, String logEntry) - throws XMLStreamException, IOException { - if (this.isTraceEnabledFor(traceType)) { - String traceTypeStr = traceType.toString(); - String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, - logEntry); - this.traceListener.trace(traceTypeStr, logMessage); - } - } + try { + request.prepareConnection(); + } catch (Exception e) { + String strErr = String.format("%s : Connection error ", url); + throw new ServiceLocalException(strErr); + } - /** - * Logs the specified XML to the TraceListener if tracing is enabled. - * - * @param traceType - * Kind of trace entry. - * @param stream - * The stream containing XML. - */ - protected void traceXml(TraceFlags traceType, - ByteArrayOutputStream stream) { - if (this.isTraceEnabledFor(traceType)) { - String traceTypeStr = traceType.toString(); - String logMessage = EwsUtilities.formatLogMessageWithXmlContent( - traceTypeStr, stream); - this.traceListener.trace(traceTypeStr, logMessage); - } - } - - /** - * Traces the HTTP request headers. - * - * @param traceType - * Kind of trace entry. - * @param request The request - * @throws microsoft.exchange.webservices.data.EWSHttpException - * @throws java.net.URISyntaxException - * @throws java.io.IOException - * @throws javax.xml.stream.XMLStreamException - */ - protected void traceHttpRequestHeaders(TraceFlags traceType, - HttpWebRequest request) - throws URISyntaxException, EWSHttpException, XMLStreamException, IOException { - if (this.isTraceEnabledFor(traceType)) { - String traceTypeStr = traceType.toString(); - String headersAsString = EwsUtilities. - formatHttpRequestHeaders(request); - String logMessage = EwsUtilities. - formatLogMessage(traceTypeStr, headersAsString); - this.traceListener.trace(traceTypeStr, logMessage); + this.httpResponseHeaders.clear(); + + return request; + } + + /** + * This method doesn't handle 500 ISE errors. This is handled by the caller since + * 500 ISE typically indicates that a SOAP fault has occurred and the handling of + * a SOAP fault is currently service specific. + * + * @throws Exception + */ + protected void internalProcessHttpErrorResponse( + HttpWebRequest httpWebResponse, + Exception webException, + TraceFlags responseHeadersTraceFlag, + TraceFlags responseTraceFlag) throws Exception { + EwsUtilities.EwsAssert( + 500 != httpWebResponse.getResponseCode(), + "ExchangeServiceBase.InternalProcessHttpErrorResponse", + "InternalProcessHttpErrorResponse does not handle 500 ISE errors," + + " the caller is supposed to handle this."); + + this.processHttpResponseHeaders(responseHeadersTraceFlag, + httpWebResponse); + + // E14:321785 -- Deal with new HTTP + // error code indicating that account is locked. + // The "unlock" URL is returned as + // the status description in the response. + if (httpWebResponse.getResponseCode() == 456) { + String location = httpWebResponse.getResponseContentType(); + + URI accountUnlockUrl = null; + if (checkURIPath(location)) { + accountUnlockUrl = new URI(location); + } + + this.traceMessage(responseTraceFlag, String.format("Account is locked." + + " Unlock URL is {0}", accountUnlockUrl)); + + throw new AccountIsLockedException( + String.format(Strings.AccountIsLocked, accountUnlockUrl), + accountUnlockUrl, + webException); + } + } + + /** + * @return false if location is null,true if this abstract pathname is + * absolute, + */ + public static boolean checkURIPath(String location) { + if (location == null) { + return false; + } + final File file = new File(location); + return file.isAbsolute(); + } + + /** + * @throws Exception + */ + protected abstract void processHttpErrorResponse( + HttpWebRequest httpWebResponse, Exception webException) + throws Exception; + + /** + * Determines whether tracing is enabled for specified trace flag(s). + * + * @param traceFlags The trace flags. + * @return True if tracing is enabled for specified trace flag(s). + */ + protected boolean isTraceEnabledFor(TraceFlags traceFlags) { + return this.isTraceEnabled() && this.traceFlags.contains(traceFlags); + } + + /** + * Logs the specified string to the TraceListener if tracing is enabled. + * + * @param traceType Kind of trace entry. + * @param logEntry The entry to log. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + protected void traceMessage(TraceFlags traceType, String logEntry) + throws XMLStreamException, IOException { + if (this.isTraceEnabledFor(traceType)) { + String traceTypeStr = traceType.toString(); + String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, + logEntry); + this.traceListener.trace(traceTypeStr, logMessage); + } + } + + /** + * Logs the specified XML to the TraceListener if tracing is enabled. + * + * @param traceType Kind of trace entry. + * @param stream The stream containing XML. + */ + protected void traceXml(TraceFlags traceType, + ByteArrayOutputStream stream) { + if (this.isTraceEnabledFor(traceType)) { + String traceTypeStr = traceType.toString(); + String logMessage = EwsUtilities.formatLogMessageWithXmlContent( + traceTypeStr, stream); + this.traceListener.trace(traceTypeStr, logMessage); + } + } + + /** + * Traces the HTTP request headers. + * + * @param traceType Kind of trace entry. + * @param request The request + * @throws microsoft.exchange.webservices.data.EWSHttpException + * @throws java.net.URISyntaxException + * @throws java.io.IOException + * @throws javax.xml.stream.XMLStreamException + */ + protected void traceHttpRequestHeaders(TraceFlags traceType, + HttpWebRequest request) + throws URISyntaxException, EWSHttpException, XMLStreamException, IOException { + if (this.isTraceEnabledFor(traceType)) { + String traceTypeStr = traceType.toString(); + String headersAsString = EwsUtilities. + formatHttpRequestHeaders(request); + String logMessage = EwsUtilities. + formatLogMessage(traceTypeStr, headersAsString); + this.traceListener.trace(traceTypeStr, logMessage); + } + } + + /** + * Traces the HTTP response headers. + * + * @param traceType Kind of trace entry. + * @param request The HttpRequest object. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + private void traceHttpResponseHeaders(TraceFlags traceType, + HttpWebRequest request) throws XMLStreamException, IOException, + EWSHttpException { + if (this.isTraceEnabledFor(traceType)) { + String traceTypeStr = traceType.toString(); + String headersAsString = EwsUtilities.formatHttpResponseHeaders(request); + String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, + headersAsString); + this.traceListener.trace(traceTypeStr, logMessage); + } + } + + /** + * Converts the universal date time string to local date time. + * + * @param dateString The value. + * @return DateTime Returned date is always in UTC date. + */ + protected Date convertUniversalDateTimeStringToDate(String dateString) { + String localTimeRegex = "^(.*)([+-]{1}\\d\\d:\\d\\d)$"; + Pattern localTimePattern = Pattern.compile(localTimeRegex); + String timeRegex = "[0-9]{2,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{2}:[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,7}"; + Pattern timePattern = Pattern.compile(timeRegex); + String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + String utcPattern1 = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"; + String localPattern = "yyyy-MM-dd'T'HH:mm:ssz"; + String localPattern1 = "yyyy-MM-dd'Z'"; + String pattern = "yyyy-MM-ddz"; + String localPattern2 = "yyyy-MM-dd'T'HH:mm:ss"; + DateFormat utcFormatter = null; + Date dt = null; + String errMsg = String.format( + "Date String %s not in valid UTC/local format", dateString); + if (dateString == null || dateString.isEmpty()) { + return null; + } else { + if (dateString.endsWith("Z")) { + // String in UTC format yyyy-MM-ddTHH:mm:ssZ + utcFormatter = new SimpleDateFormat(utcPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException e) { + utcFormatter = new SimpleDateFormat(pattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + // dateString = dateString.substring(0, 10)+"T12:00:00Z"; + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException e1) { + utcFormatter = new SimpleDateFormat(localPattern1); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException ex) { + + utcFormatter = new SimpleDateFormat(utcPattern1); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + } + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException e2) { + throw new IllegalArgumentException(errMsg, e); + } + + } + // throw new IllegalArgumentException(errMsg,e); + } + } else if (dateString.endsWith("z")) { + // String in UTC format yyyy-MM-ddTHH:mm:ssZ + utcFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'z'"); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException e) { + throw new IllegalArgumentException(e); + } + } else { + // dateString is not ending with Z. + // Check for yyyy-MM-ddTHH:mm:ss+/-HH:mm pattern + Matcher localTimeMatcher = localTimePattern.matcher(dateString); + if (localTimeMatcher.find()) { + System.out.println("Pattern matched"); + String date = localTimeMatcher.group(1); + String zone = localTimeMatcher.group(2); + // Add the string GMT between DateTime and TimeZone + // since 'z' in yyyy-MM-dd'T'HH:mm:ssz matches + // either format GMT+/-HH:mm or +/-HHmm + dateString = String.format("%sGMT%s", date, zone); + try { + utcFormatter = new SimpleDateFormat(localPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + dt = utcFormatter.parse(dateString); + } catch (ParseException e) { + try { + utcFormatter = new SimpleDateFormat(pattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + dt = utcFormatter.parse(dateString); + } catch (ParseException ex) { + throw new IllegalArgumentException(ex); + } + } + } else { + // Invalid format + utcFormatter = new SimpleDateFormat(localPattern2); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + try { + dt = utcFormatter.parse(dateString); + } catch (ParseException e) { + e.printStackTrace(); + throw new IllegalArgumentException(errMsg); + } } + } + return dt; } - - /** - * Traces the HTTP response headers. - * - * @param traceType - * Kind of trace entry. - * @param request - * The HttpRequest object. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - private void traceHttpResponseHeaders(TraceFlags traceType, - HttpWebRequest request) throws XMLStreamException, IOException, - EWSHttpException { - if (this.isTraceEnabledFor(traceType)) { - String traceTypeStr = traceType.toString(); - String headersAsString = EwsUtilities.formatHttpResponseHeaders(request); - String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, - headersAsString); - this.traceListener.trace(traceTypeStr, logMessage); - } - } - - /** - * Converts the universal date time string to local date time. - * - * @param dateString - * The value. - * @return DateTime Returned date is always in UTC date. - */ - protected Date convertUniversalDateTimeStringToDate(String dateString) { - String localTimeRegex = "^(.*)([+-]{1}\\d\\d:\\d\\d)$"; - Pattern localTimePattern = Pattern.compile(localTimeRegex); - String timeRegex = "[0-9]{2,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{2}:[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,7}"; - Pattern timePattern = Pattern.compile(timeRegex); - String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - String utcPattern1 = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"; - String localPattern = "yyyy-MM-dd'T'HH:mm:ssz"; - String localPattern1 = "yyyy-MM-dd'Z'"; - String pattern = "yyyy-MM-ddz"; - String localPattern2 = "yyyy-MM-dd'T'HH:mm:ss"; - DateFormat utcFormatter = null; - Date dt = null; - String errMsg = String.format( - "Date String %s not in valid UTC/local format", dateString); - if (dateString == null || dateString.isEmpty()) { - return null; - } else { - if (dateString.endsWith("Z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat(utcPattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - utcFormatter = new SimpleDateFormat(pattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - // dateString = dateString.substring(0, 10)+"T12:00:00Z"; - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e1) { - utcFormatter = new SimpleDateFormat(localPattern1); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException ex){ - - utcFormatter = new SimpleDateFormat(utcPattern1); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - } - try{ - dt = utcFormatter.parse(dateString); - } - catch (ParseException e2) { - throw new IllegalArgumentException(errMsg, e); - } - - } - // throw new IllegalArgumentException(errMsg,e); - } - } else if (dateString.endsWith("z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'z'"); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } else { - // dateString is not ending with Z. - // Check for yyyy-MM-ddTHH:mm:ss+/-HH:mm pattern - Matcher localTimeMatcher = localTimePattern.matcher(dateString); - if (localTimeMatcher.find()) { - System.out.println("Pattern matched"); - String date = localTimeMatcher.group(1); - String zone = localTimeMatcher.group(2); - // Add the string GMT between DateTime and TimeZone - // since 'z' in yyyy-MM-dd'T'HH:mm:ssz matches - // either format GMT+/-HH:mm or +/-HHmm - dateString = String.format("%sGMT%s", date, zone); - try { - utcFormatter = new SimpleDateFormat(localPattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - try { - utcFormatter = new SimpleDateFormat(pattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - dt = utcFormatter.parse(dateString); - } catch (ParseException ex) { - throw new IllegalArgumentException(ex); - } - } - } else { - // Invalid format - utcFormatter = new SimpleDateFormat(localPattern2); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - e.printStackTrace(); - throw new IllegalArgumentException(errMsg); - } - } - } - return dt; - } - } - - /** - * Converts xs:dateTime string with either "Z", "-00:00" bias, or "" - * suffixes to unspecified StartDate value ignoring the suffix.Needs to fix - * E14:232996. - * - * @param value - * The string value to parse. - * @return The parsed DateTime value. - */ - protected Date convertStartDateToUnspecifiedDateTime(String value) - throws ParseException { - if (value == null || value.isEmpty()) { - return null; - } else { - DateFormat df = new SimpleDateFormat("yyyy-MM-dd'Z'"); - return df.parse(value); - } - } - - /** - * Converts the date time to universal date time string. - * - * @param dt - * the date - * @return String representation of DateTime in yyyy-MM-ddTHH:mm:ssZ format. - */ - protected String convertDateTimeToUniversalDateTimeString(Date dt) { - String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - DateFormat utcFormatter = new SimpleDateFormat(utcPattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - return utcFormatter.format(dt); - } - - /** - * Sets the user agent to a custom value - * - * @param userAgent - * User agent string to set on the service - */ - protected void setCustomUserAgent(String userAgent) { - this.userAgent = userAgent; - } - - - // Abstract methods - - /** - * Validates this instance. - * - * @throws ServiceLocalException - * the service local exception - */ - protected void validate() throws ServiceLocalException { - - // E14:302056 -- Allow clients to add HTTP request - //headers with 'X-' prefix but no others. - for (Map.Entry key : this.httpHeaders.entrySet()) { - if (!key.getKey().startsWith(ExtendedHeaderPrefix)) { - throw new ServiceValidationException(String.format(Strings. - CannotAddRequestHeader, key)); - } - } - } - - /** - * Gets the cookie container. The cookie container. - * - * @param url - * the url - * @param value - * the value - * @throws java.io.IOException - * , URISyntaxException - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - /*public void setCookie(URL url, String value) throws IOException, + } + + /** + * Converts xs:dateTime string with either "Z", "-00:00" bias, or "" + * suffixes to unspecified StartDate value ignoring the suffix.Needs to fix + * E14:232996. + * + * @param value The string value to parse. + * @return The parsed DateTime value. + */ + protected Date convertStartDateToUnspecifiedDateTime(String value) + throws ParseException { + if (value == null || value.isEmpty()) { + return null; + } else { + DateFormat df = new SimpleDateFormat("yyyy-MM-dd'Z'"); + return df.parse(value); + } + } + + /** + * Converts the date time to universal date time string. + * + * @param dt the date + * @return String representation of DateTime in yyyy-MM-ddTHH:mm:ssZ format. + */ + protected String convertDateTimeToUniversalDateTimeString(Date dt) { + String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + DateFormat utcFormatter = new SimpleDateFormat(utcPattern); + utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); + return utcFormatter.format(dt); + } + + /** + * Sets the user agent to a custom value + * + * @param userAgent User agent string to set on the service + */ + protected void setCustomUserAgent(String userAgent) { + this.userAgent = userAgent; + } + + + // Abstract methods + + /** + * Validates this instance. + * + * @throws ServiceLocalException the service local exception + */ + protected void validate() throws ServiceLocalException { + + // E14:302056 -- Allow clients to add HTTP request + //headers with 'X-' prefix but no others. + for (Map.Entry key : this.httpHeaders.entrySet()) { + if (!key.getKey().startsWith(ExtendedHeaderPrefix)) { + throw new ServiceValidationException(String.format(Strings. + CannotAddRequestHeader, key)); + } + } + } + + /** + * Gets the cookie container. The cookie container. + * + * @param url + * the url + * @param value + * the value + * @throws java.io.IOException + * , URISyntaxException + * @throws java.net.URISyntaxException + * the uRI syntax exception + */ + /*public void setCookie(URL url, String value) throws IOException, URISyntaxException { CookieHandler handler =CookieHandler.getDefault(); if (handler != null) { @@ -685,370 +670,355 @@ public String getCookie(URL url) throws IOException, URISyntaxException { } return cookieValue; }*/ - - /** - * Gets a value indicating whether tracing is enabled. - * - * @return True is tracing is enabled - */ - public boolean isTraceEnabled() { - return this.traceEnabled; - } - - /** - * Sets a value indicating whether tracing is enabled. - * - * @param traceEnabled - * true to enable tracing - */ - public void setTraceEnabled(boolean traceEnabled) { - this.traceEnabled = traceEnabled; - if (this.traceEnabled && (this.traceListener == null)) { - this.traceListener = new EwsTraceListener(); - } - } - - /** - * Gets the trace flags. - * - * @return Set of trace flags. - */ - public EnumSet getTraceFlags() { - return traceFlags; - } - - /** - * Sets the trace flags. - * - * @param traceFlags - * A set of trace flags - */ - public void setTraceFlags(EnumSet traceFlags) { - this.traceFlags = traceFlags; - } - - /** - * Gets the trace listener. - * - * @return The trace listener. - */ - public ITraceListener getTraceListener() { - return traceListener; - } - - /** - * Sets the trace listener. - * - * @param traceListener - * the trace listener. - */ - public void setTraceListener(ITraceListener traceListener) { - this.traceListener = traceListener; - this.traceEnabled = (traceListener != null); - } - - /** - * Gets the credentials used to authenticate with the Exchange Web Services. - * - * @return credentials - */ - public ExchangeCredentials getCredentials() { - return this.credentials; - } - - /** - * Sets the credentials used to authenticate with the Exchange Web Services. - * Setting the Credentials property automatically sets the - * UseDefaultCredentials to false. - * - * @param credentials - * Exchange credentials. - */ - public void setCredentials(ExchangeCredentials credentials) { - this.credentials = credentials; - this.useDefaultCredentials = false; - CookieHandler.setDefault(new CookieManager()); - } - - /** - * Gets a value indicating whether the credentials of the user currently - * logged into Windows should be used to authenticate with the Exchange Web - * Services. - * - * @return true if credentials of the user currently logged in are used - */ - public boolean getUseDefaultCredentials() { - return this.useDefaultCredentials; - } - - /** - * Sets a value indicating whether the credentials of the user currently - * logged into Windows should be used to authenticate with the Exchange Web - * Services. Setting UseDefaultCredentials to true automatically sets the - * Credentials property to null. - * - * @param value - * the new use default credentials - */ - public void setUseDefaultCredentials(boolean value) { - this.useDefaultCredentials = value; - if (value) { - this.credentials = null; - CookieHandler.setDefault(null); - } - } - - /** - * Gets the timeout used when sending HTTP requests and when receiving HTTP - * responses, in milliseconds. - * - * @return timeout in milliseconds - */ - public int getTimeout() { - return timeout; - } - - /** - * Sets the timeout used when sending HTTP requests and when receiving HTTP - * respones, in milliseconds. Defaults to 100000. - * - * @param timeout - * timeout in milliseconds - */ - public void setTimeout(int timeout) { - if (timeout < 1) { - throw new IllegalArgumentException( - Strings.TimeoutMustBeGreaterThanZero); - } - this.timeout = timeout; - } - /** - * Gets a value that indicates whether HTTP pre-authentication should be - * performed. - * - * @return true indicates pre-authentication is set - */ - public boolean isPreAuthenticate() { - return preAuthenticate; - } - - /** - * Sets a value that indicates whether HTTP pre-authentication should be - * performed. - * - * @param preAuthenticate - * true to enable pre-authentication - */ - public void setPreAuthenticate(boolean preAuthenticate) { - this.preAuthenticate = preAuthenticate; - } - - /** - * Gets a value indicating whether GZip compression encoding should be - * accepted. This value will tell the server that the client is able to - * handle GZip compression encoding. The server will only send Gzip - * compressed content if it has been configured to do so. - * - * @return true if compression is used - */ - public boolean getAcceptGzipEncoding() { - return acceptGzipEncoding; - } - - /** - * Gets a value indicating whether GZip compression encoding should - * be accepted. This value will tell the server that the client is able to - * handle GZip compression encoding. The server will only send Gzip - * compressed content if it has been configured to do so. - * - * @param acceptGzipEncoding - * true to enable compression - */ - public void setAcceptGzipEncoding(boolean acceptGzipEncoding) { - this.acceptGzipEncoding = acceptGzipEncoding; - } - - /** - * Gets the requested server version. - * - * @return The requested server version. - */ - public ExchangeVersion getRequestedServerVersion() { - return this.requestedServerVersion; - } - - /** - * Gets the user agent. - * - * @return The user agent. - */ - public String getUserAgent() { - return this.userAgent; - } - - /** - * Sets the user agent. - * - * @param userAgent - * The user agent - */ - public void setUserAgent(String userAgent) { - this.userAgent = userAgent + " (" - + ExchangeServiceBase.defaultUserAgent + ")"; - } - - /** - * Gets information associated with the server that processed the last - * request. Will be null if no requests have been processed. - * - * @return the server info - */ - public ExchangeServerInfo getServerInfo() { - return serverInfo; - } - - /** - * Sets information associated with the server that processed the last - * request. - * - * @param serverInfo - * Server Information - */ - void setServerInfo(ExchangeServerInfo serverInfo) { - this.serverInfo = serverInfo; - } - - /** - * Gets the web proxy that should be used when sending requests to EWS. - * - * @return Proxy - * the Proxy Information - */ - public WebProxy getWebProxy() { - return this.webProxy; + /** + * Gets a value indicating whether tracing is enabled. + * + * @return True is tracing is enabled + */ + public boolean isTraceEnabled() { + return this.traceEnabled; + } + + /** + * Sets a value indicating whether tracing is enabled. + * + * @param traceEnabled true to enable tracing + */ + public void setTraceEnabled(boolean traceEnabled) { + this.traceEnabled = traceEnabled; + if (this.traceEnabled && (this.traceListener == null)) { + this.traceListener = new EwsTraceListener(); } - - /** - * Sets the web proxy that should be used when sending requests to EWS. - * Set this property to null to use the default web proxy. - * - * @param value - * the Proxy Information - */ - public void setWebProxy(WebProxy value) { - this.webProxy = value; + } + + /** + * Gets the trace flags. + * + * @return Set of trace flags. + */ + public EnumSet getTraceFlags() { + return traceFlags; + } + + /** + * Sets the trace flags. + * + * @param traceFlags A set of trace flags + */ + public void setTraceFlags(EnumSet traceFlags) { + this.traceFlags = traceFlags; + } + + /** + * Gets the trace listener. + * + * @return The trace listener. + */ + public ITraceListener getTraceListener() { + return traceListener; + } + + /** + * Sets the trace listener. + * + * @param traceListener the trace listener. + */ + public void setTraceListener(ITraceListener traceListener) { + this.traceListener = traceListener; + this.traceEnabled = (traceListener != null); + } + + /** + * Gets the credentials used to authenticate with the Exchange Web Services. + * + * @return credentials + */ + public ExchangeCredentials getCredentials() { + return this.credentials; + } + + /** + * Sets the credentials used to authenticate with the Exchange Web Services. + * Setting the Credentials property automatically sets the + * UseDefaultCredentials to false. + * + * @param credentials Exchange credentials. + */ + public void setCredentials(ExchangeCredentials credentials) { + this.credentials = credentials; + this.useDefaultCredentials = false; + CookieHandler.setDefault(new CookieManager()); + } + + /** + * Gets a value indicating whether the credentials of the user currently + * logged into Windows should be used to authenticate with the Exchange Web + * Services. + * + * @return true if credentials of the user currently logged in are used + */ + public boolean getUseDefaultCredentials() { + return this.useDefaultCredentials; + } + + /** + * Sets a value indicating whether the credentials of the user currently + * logged into Windows should be used to authenticate with the Exchange Web + * Services. Setting UseDefaultCredentials to true automatically sets the + * Credentials property to null. + * + * @param value the new use default credentials + */ + public void setUseDefaultCredentials(boolean value) { + this.useDefaultCredentials = value; + if (value) { + this.credentials = null; + CookieHandler.setDefault(null); } - - /** - * Gets a collection of HTTP headers that will be sent with each request to - * EWS. - * @return httpHeaders - */ - public Map getHttpHeaders() { - return this.httpHeaders; - } - - // Events - - /** - * Provides an event that applications can implement to emit custom SOAP - * headers in requests that are sent to Exchange. - */ - private List OnSerializeCustomSoapHeaders; - - /** - * Gets the on serialize custom soap headers. - * - * @return the on serialize custom soap headers - */ - public List - getOnSerializeCustomSoapHeaders() { - return OnSerializeCustomSoapHeaders; - } - - /** - * Sets the on serialize custom soap headers. - * - * @param onSerializeCustomSoapHeaders - * the new on serialize custom soap headers - */ - public void setOnSerializeCustomSoapHeaders( - List - onSerializeCustomSoapHeaders) { - OnSerializeCustomSoapHeaders = onSerializeCustomSoapHeaders; - } - - /** - * Traces the HTTP response headers. - * @param traceType - * kind of trace entry - * @param request - * The request - * @throws microsoft.exchange.webservices.data.EWSHttpException - * @throws java.io.IOException - * @throws javax.xml.stream.XMLStreamException - */ - protected void processHttpResponseHeaders(TraceFlags traceType, HttpWebRequest request) throws XMLStreamException, IOException, EWSHttpException - { - this.traceHttpResponseHeaders(traceType, request); - - this.saveHttpResponseHeaders(request.getResponseHeaders()); + } + + /** + * Gets the timeout used when sending HTTP requests and when receiving HTTP + * responses, in milliseconds. + * + * @return timeout in milliseconds + */ + public int getTimeout() { + return timeout; + } + + /** + * Sets the timeout used when sending HTTP requests and when receiving HTTP + * respones, in milliseconds. Defaults to 100000. + * + * @param timeout timeout in milliseconds + */ + public void setTimeout(int timeout) { + if (timeout < 1) { + throw new IllegalArgumentException( + Strings.TimeoutMustBeGreaterThanZero); + } + this.timeout = timeout; + } + + /** + * Gets a value that indicates whether HTTP pre-authentication should be + * performed. + * + * @return true indicates pre-authentication is set + */ + public boolean isPreAuthenticate() { + return preAuthenticate; + } + + /** + * Sets a value that indicates whether HTTP pre-authentication should be + * performed. + * + * @param preAuthenticate true to enable pre-authentication + */ + public void setPreAuthenticate(boolean preAuthenticate) { + this.preAuthenticate = preAuthenticate; + } + + /** + * Gets a value indicating whether GZip compression encoding should be + * accepted. This value will tell the server that the client is able to + * handle GZip compression encoding. The server will only send Gzip + * compressed content if it has been configured to do so. + * + * @return true if compression is used + */ + public boolean getAcceptGzipEncoding() { + return acceptGzipEncoding; + } + + /** + * Gets a value indicating whether GZip compression encoding should + * be accepted. This value will tell the server that the client is able to + * handle GZip compression encoding. The server will only send Gzip + * compressed content if it has been configured to do so. + * + * @param acceptGzipEncoding true to enable compression + */ + public void setAcceptGzipEncoding(boolean acceptGzipEncoding) { + this.acceptGzipEncoding = acceptGzipEncoding; + } + + /** + * Gets the requested server version. + * + * @return The requested server version. + */ + public ExchangeVersion getRequestedServerVersion() { + return this.requestedServerVersion; + } + + /** + * Gets the user agent. + * + * @return The user agent. + */ + public String getUserAgent() { + return this.userAgent; + } + + /** + * Sets the user agent. + * + * @param userAgent The user agent + */ + public void setUserAgent(String userAgent) { + this.userAgent = userAgent + " (" + + ExchangeServiceBase.defaultUserAgent + ")"; + } + + /** + * Gets information associated with the server that processed the last + * request. Will be null if no requests have been processed. + * + * @return the server info + */ + public ExchangeServerInfo getServerInfo() { + return serverInfo; + } + + /** + * Sets information associated with the server that processed the last + * request. + * + * @param serverInfo Server Information + */ + void setServerInfo(ExchangeServerInfo serverInfo) { + this.serverInfo = serverInfo; + } + + /** + * Gets the web proxy that should be used when sending requests to EWS. + * + * @return Proxy + * the Proxy Information + */ + public WebProxy getWebProxy() { + return this.webProxy; + } + + /** + * Sets the web proxy that should be used when sending requests to EWS. + * Set this property to null to use the default web proxy. + * + * @param value the Proxy Information + */ + public void setWebProxy(WebProxy value) { + this.webProxy = value; + } + + /** + * Gets a collection of HTTP headers that will be sent with each request to + * EWS. + * + * @return httpHeaders + */ + public Map getHttpHeaders() { + return this.httpHeaders; + } + + // Events + + /** + * Provides an event that applications can implement to emit custom SOAP + * headers in requests that are sent to Exchange. + */ + private List OnSerializeCustomSoapHeaders; + + /** + * Gets the on serialize custom soap headers. + * + * @return the on serialize custom soap headers + */ + public List + getOnSerializeCustomSoapHeaders() { + return OnSerializeCustomSoapHeaders; + } + + /** + * Sets the on serialize custom soap headers. + * + * @param onSerializeCustomSoapHeaders the new on serialize custom soap headers + */ + public void setOnSerializeCustomSoapHeaders( + List + onSerializeCustomSoapHeaders) { + OnSerializeCustomSoapHeaders = onSerializeCustomSoapHeaders; + } + + /** + * Traces the HTTP response headers. + * + * @param traceType kind of trace entry + * @param request The request + * @throws microsoft.exchange.webservices.data.EWSHttpException + * @throws java.io.IOException + * @throws javax.xml.stream.XMLStreamException + */ + protected void processHttpResponseHeaders(TraceFlags traceType, HttpWebRequest request) + throws XMLStreamException, IOException, EWSHttpException { + this.traceHttpResponseHeaders(traceType, request); + + this.saveHttpResponseHeaders(request.getResponseHeaders()); + } + + /** + * Save the HTTP response headers. + * + * @param headers The response headers + */ + private void saveHttpResponseHeaders(Map headers) { + EwsUtilities.EwsAssert(this.httpResponseHeaders.size() == 0, + "ExchangeServiceBase.SaveHttpResponseHeaders", + "expect no headers in the dictionary yet."); + + this.httpResponseHeaders.clear(); + + for (String key : headers.keySet()) { + this.httpResponseHeaders.put(key, headers.get(key)); } - - /** - * Save the HTTP response headers. - * @param headers The response headers - */ - private void saveHttpResponseHeaders(Map headers) { - EwsUtilities.EwsAssert(this.httpResponseHeaders.size() == 0, - "ExchangeServiceBase.SaveHttpResponseHeaders", - "expect no headers in the dictionary yet."); - - this.httpResponseHeaders.clear(); - - for (String key : headers.keySet()) { - this.httpResponseHeaders.put(key, headers.get(key)); - } - // Save the cookies for subsequent requests - if (this.request.getCookies() != null) { - if (cookieStore == null) { - cookieStore = new BasicCookieStore(); - } + // Save the cookies for subsequent requests + if (this.request.getCookies() != null) { + if (cookieStore == null) { + cookieStore = new BasicCookieStore(); + } - cookieStore.clear(); - for (Cookie c : this.request.getCookies()) { - cookieStore.addCookie(c); - } - } - - } - - /** - * Gets a collection of HTTP headers from the last response. - **/ - public Map getHttpResponseHeaders() - { - return this.httpResponseHeaders; + cookieStore.clear(); + for (Cookie c : this.request.getCookies()) { + cookieStore.addCookie(c); + } } - /** - * Gets the session key. - */ - protected static byte[] getSessionKey() - { - // this has to be computed only once. - synchronized(ExchangeServiceBase.class) - { - if (ExchangeServiceBase.binarySecret == null) - { - Random randomNumberGenerator = new Random(); - ExchangeServiceBase.binarySecret = new byte[256 / 8]; - randomNumberGenerator.nextBytes(binarySecret); - } - - return ExchangeServiceBase.binarySecret; - } + } + + /** + * Gets a collection of HTTP headers from the last response. + */ + public Map getHttpResponseHeaders() { + return this.httpResponseHeaders; + } + + /** + * Gets the session key. + */ + protected static byte[] getSessionKey() { + // this has to be computed only once. + synchronized (ExchangeServiceBase.class) { + if (ExchangeServiceBase.binarySecret == null) { + Random randomNumberGenerator = new Random(); + ExchangeServiceBase.binarySecret = new byte[256 / 8]; + randomNumberGenerator.nextBytes(binarySecret); + } + + return ExchangeServiceBase.binarySecret; } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java index d93d14ecf..fda5568c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java @@ -15,18 +15,26 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ExchangeVersion { - // / Microsoft Exchange 2007, Service Pack 1 - /** The Exchange2007_ s p1. */ - Exchange2007_SP1, - // / Microsoft Exchange 2010 - /** The Exchange2010. */ - Exchange2010, - - /// Microsoft Exchange 2010, Service Pack 1 - /** Exchange2010_SP1. */ - Exchange2010_SP1, - - // Microsoft Exchange 2010, Service Pack 2 - /** Exchange2010_SP2. */ - Exchange2010_SP2, + // / Microsoft Exchange 2007, Service Pack 1 + /** + * The Exchange2007_ s p1. + */ + Exchange2007_SP1, + // / Microsoft Exchange 2010 + /** + * The Exchange2010. + */ + Exchange2010, + + /// Microsoft Exchange 2010, Service Pack 1 + /** + * Exchange2010_SP1. + */ + Exchange2010_SP1, + + // Microsoft Exchange 2010, Service Pack 2 + /** + * Exchange2010_SP2. + */ + Exchange2010_SP2, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java index 225d6b30b..b5476e334 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java @@ -10,136 +10,142 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import javax.xml.stream.XMLStreamException; - import org.w3c.dom.Node; +import javax.xml.stream.XMLStreamException; + /** - * Defines the ExecuteDiagnosticMethodRequest class. + * Defines the ExecuteDiagnosticMethodRequest class. */ -final class ExecuteDiagnosticMethodRequest extends -MultiResponseServiceRequest { - - private Node xmlNode; - private String verb; - - /** - * Initializes a new instance of the ExecuteDiagnosticMethodRequest class. - * @throws Exception - */ - protected ExecuteDiagnosticMethodRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Gets the name of the XML element. - * @return XmlElementNames - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ExecuteDiagnosticMethod; - } - - /** - * Writes XML elements. - * @param writer The writer - * @throws javax.xml.stream.XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.Verb, this.getVerb()); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.Parameter); - writer.writeNode(this.getParameter()); - writer.writeEndElement(); - } - - /** - * Gets the name of the response XML element. - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.ExecuteDiagnosticMethodResponse; - } - - /** - * Gets the request version. - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - /** Set to 2007_SP1 because only test code - * will be using this method (it's marked internal. - * If it were marked for 2010_SP1, test cases - * would have to create new ExchangeService instances - * when using this method for tests running under older versions. - */ - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the verb of the method to execute. - */ - protected String getVerb() { - return verb; - } - - /** - * Sets the verb of the method to execute. - */ - protected void setVerb(String value) { - this.verb = value; - } - - /** - * Gets the parameter to the executing method. - */ - protected Node getParameter() - { - return xmlNode; - } - - /** - * Sets the parameter to the executing method. - */ - protected void setParameter(Node value) - { - this.xmlNode=value; - } - - /** - * Creates the service response. - * @param service The service - * @param responseIndex Index of the response - * @return Service response - */ - @Override - protected ExecuteDiagnosticMethodResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ExecuteDiagnosticMethodResponse(service); - } - - /** - * Gets the name of the response message XML element. - * @return XmlElementNames - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.ExecuteDiagnosticMethodResponseMEssage; - } - - /** - * Gets the expected response message count. - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } +final class ExecuteDiagnosticMethodRequest extends + MultiResponseServiceRequest { + + private Node xmlNode; + private String verb; + + /** + * Initializes a new instance of the ExecuteDiagnosticMethodRequest class. + * + * @throws Exception + */ + protected ExecuteDiagnosticMethodRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Gets the name of the XML element. + * + * @return XmlElementNames + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ExecuteDiagnosticMethod; + } + + /** + * Writes XML elements. + * + * @param writer The writer + * @throws javax.xml.stream.XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.Verb, this.getVerb()); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.Parameter); + writer.writeNode(this.getParameter()); + writer.writeEndElement(); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.ExecuteDiagnosticMethodResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + /** Set to 2007_SP1 because only test code + * will be using this method (it's marked internal. + * If it were marked for 2010_SP1, test cases + * would have to create new ExchangeService instances + * when using this method for tests running under older versions. + */ + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the verb of the method to execute. + */ + protected String getVerb() { + return verb; + } + + /** + * Sets the verb of the method to execute. + */ + protected void setVerb(String value) { + this.verb = value; + } + + /** + * Gets the parameter to the executing method. + */ + protected Node getParameter() { + return xmlNode; + } + + /** + * Sets the parameter to the executing method. + */ + protected void setParameter(Node value) { + this.xmlNode = value; + } + + /** + * Creates the service response. + * + * @param service The service + * @param responseIndex Index of the response + * @return Service response + */ + @Override + protected ExecuteDiagnosticMethodResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ExecuteDiagnosticMethodResponse(service); + } + + /** + * Gets the name of the response message XML element. + * + * @return XmlElementNames + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.ExecuteDiagnosticMethodResponseMEssage; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index b87243678..212a2231c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -10,7 +10,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.Iterator; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; @@ -20,10 +22,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.events.Namespace; import javax.xml.stream.events.StartElement; import javax.xml.stream.events.XMLEvent; - -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; +import java.util.Iterator; /** @@ -32,118 +31,120 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of final class ExecuteDiagnosticMethodResponse extends ServiceResponse { - /** - * Initializes a new instance of the ExecuteDiagnosticMethodResponse class. - * @param service The service - */ - protected ExecuteDiagnosticMethodResponse(ExchangeService service) { - super(); - EwsUtilities.EwsAssert(service != null, - "ExecuteDiagnosticMethodResponse.ctor", - "service is null"); - } - - /** - * Reads response elements from XML. - * @throws Exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.ReturnValue); - - XMLEventReader returnValueReader = reader.getXmlReaderForNode(); - //this.returnValue = (Document) new SafeXmlDocument(); - { - this.returnValue = retriveDocument(returnValueReader); - } - - reader.skipCurrentElement(); - reader.readEndElementIfNecessary(XmlNamespace.Messages, - XmlElementNames.ReturnValue); - } - - - /** - * @return document - * @throws javax.xml.parsers.ParserConfigurationException - */ - public Document retriveDocument(XMLEventReader xmlEventReader) - throws ParserConfigurationException { - DocumentBuilderFactory dbfInstance = DocumentBuilderFactory - .newInstance(); - DocumentBuilder documentBuilder = dbfInstance.newDocumentBuilder(); - Document document = documentBuilder.newDocument(); - - Element currentElement = document.getDocumentElement(); - - while (xmlEventReader.hasNext()) { - XMLEvent xmleve = (XMLEvent) xmlEventReader.next(); - - if (xmleve.getEventType() == XmlNodeType.END_ELEMENT) { - Node node = currentElement.getParentNode(); - if (node instanceof Document) { - currentElement = ((Document) node).getDocumentElement(); - } else { - currentElement = (Element) currentElement.getParentNode(); - } - } - - if (xmleve.getEventType() == XmlNodeType.START_ELEMENT) { - // startElement((StartElement) xmleve,doc); - StartElement ele = (StartElement) xmleve; - Element element = null; - element = document.createElementNS(ele.getName() - .getNamespaceURI(), ele.getName().getLocalPart()); - - Iterator ite = ele.getAttributes(); - - while (ite.hasNext()) { - Attribute attr = (Attribute) ite.next(); - element.setAttribute(attr.getName().getLocalPart(), - attr.getValue()); - } - - String xmlns = EwsUtilities.WSTrustFebruary2005Namespace;//"http://schemas.xmlsoap.org/wsdl/"; - ite = ele.getNamespaces(); - while (ite.hasNext()) { - Namespace ns = (Namespace) ite.next(); - String name = ns.getPrefix(); - if (!name.isEmpty()) { - element.setAttributeNS(xmlns, name, - ns.getNamespaceURI()); - } else { - xmlns = ns.getNamespaceURI(); - } - } - - if (currentElement == null) { - document.appendChild(element); - } else { - currentElement.appendChild(element); - } - - currentElement = element; - element.setUserData("location", ele.getLocation(), null); - } - } - return document; - } - - private Document returnValue; - - /** - * Gets the return value. - */ - protected Document getReturnValue() { - return returnValue; - } - - /** - * Sets the return value. - */ - private void setReturnValue(Document value) { - returnValue = value; - } + /** + * Initializes a new instance of the ExecuteDiagnosticMethodResponse class. + * + * @param service The service + */ + protected ExecuteDiagnosticMethodResponse(ExchangeService service) { + super(); + EwsUtilities.EwsAssert(service != null, + "ExecuteDiagnosticMethodResponse.ctor", + "service is null"); + } + + /** + * Reads response elements from XML. + * + * @throws Exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.ReturnValue); + + XMLEventReader returnValueReader = reader.getXmlReaderForNode(); + //this.returnValue = (Document) new SafeXmlDocument(); + { + this.returnValue = retriveDocument(returnValueReader); + } + + reader.skipCurrentElement(); + reader.readEndElementIfNecessary(XmlNamespace.Messages, + XmlElementNames.ReturnValue); + } + + + /** + * @return document + * @throws javax.xml.parsers.ParserConfigurationException + */ + public Document retriveDocument(XMLEventReader xmlEventReader) + throws ParserConfigurationException { + DocumentBuilderFactory dbfInstance = DocumentBuilderFactory + .newInstance(); + DocumentBuilder documentBuilder = dbfInstance.newDocumentBuilder(); + Document document = documentBuilder.newDocument(); + + Element currentElement = document.getDocumentElement(); + + while (xmlEventReader.hasNext()) { + XMLEvent xmleve = (XMLEvent) xmlEventReader.next(); + + if (xmleve.getEventType() == XmlNodeType.END_ELEMENT) { + Node node = currentElement.getParentNode(); + if (node instanceof Document) { + currentElement = ((Document) node).getDocumentElement(); + } else { + currentElement = (Element) currentElement.getParentNode(); + } + } + + if (xmleve.getEventType() == XmlNodeType.START_ELEMENT) { + // startElement((StartElement) xmleve,doc); + StartElement ele = (StartElement) xmleve; + Element element = null; + element = document.createElementNS(ele.getName() + .getNamespaceURI(), ele.getName().getLocalPart()); + + Iterator ite = ele.getAttributes(); + + while (ite.hasNext()) { + Attribute attr = (Attribute) ite.next(); + element.setAttribute(attr.getName().getLocalPart(), + attr.getValue()); + } + + String xmlns = EwsUtilities.WSTrustFebruary2005Namespace;//"http://schemas.xmlsoap.org/wsdl/"; + ite = ele.getNamespaces(); + while (ite.hasNext()) { + Namespace ns = (Namespace) ite.next(); + String name = ns.getPrefix(); + if (!name.isEmpty()) { + element.setAttributeNS(xmlns, name, + ns.getNamespaceURI()); + } else { + xmlns = ns.getNamespaceURI(); + } + } + + if (currentElement == null) { + document.appendChild(element); + } else { + currentElement.appendChild(element); + } + + currentElement = element; + element.setUserData("location", ele.getLocation(), null); + } + } + return document; + } + + private Document returnValue; + + /** + * Gets the return value. + */ + protected Document getReturnValue() { + return returnValue; + } + + /** + * Sets the return value. + */ + private void setReturnValue(Document value) { + returnValue = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java index 093907716..bfabb27e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java @@ -14,133 +14,128 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an ExpandGroup request. */ public class ExpandGroupRequest extends - MultiResponseServiceRequest { + MultiResponseServiceRequest { - /** The email address. */ - private EmailAddress emailAddress; + /** + * The email address. + */ + private EmailAddress emailAddress; - /** - * Represents an ExpandGroup request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getEmailAddress(), "EmailAddress"); - } + /** + * Represents an ExpandGroup request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getEmailAddress(), "EmailAddress"); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ExpandGroupResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new ExpandGroupResponse(); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ExpandGroupResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new ExpandGroupResponse(); + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ExpandDL; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ExpandDL; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.ExpandDLResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.ExpandDLResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.ExpandDLResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.ExpandDLResponseMessage; + } - /** - * writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.getEmailAddress() != null) { - this.getEmailAddress().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.Mailbox); - } - } + /** + * writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.getEmailAddress() != null) { + this.getEmailAddress().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.Mailbox); + } + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected ExpandGroupRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected ExpandGroupRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } - /** - * Gets the email address. The email address. - * - * @return the email address - */ - public EmailAddress getEmailAddress() { - return this.emailAddress; - } + /** + * Gets the email address. The email address. + * + * @return the email address + */ + public EmailAddress getEmailAddress() { + return this.emailAddress; + } - /** - * Sets the email address. - * - * @param emailAddress - * the new email address - */ - public void setEmailAddress(EmailAddress emailAddress) { - this.emailAddress = emailAddress; - } + /** + * Sets the email address. + * + * @param emailAddress the new email address + */ + public void setEmailAddress(EmailAddress emailAddress) { + this.emailAddress = emailAddress; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java index 9b92a5166..5fd1d38d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java @@ -15,40 +15,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class ExpandGroupResponse extends ServiceResponse { - /** - * AD or store group members. - */ - private ExpandGroupResults members = new ExpandGroupResults(); + /** + * AD or store group members. + */ + private ExpandGroupResults members = new ExpandGroupResults(); - /** - * Initializes a new instance of the class. - */ - protected ExpandGroupResponse() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected ExpandGroupResponse() { + super(); + } - /** - * Gets a list of the group's members. - * - * @return the members - */ - public ExpandGroupResults getMembers() { - return this.members; - } + /** + * Gets a list of the group's members. + * + * @return the members + */ + public ExpandGroupResults getMembers() { + return this.members; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - this.getMembers().loadFromXml(reader); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + this.getMembers().loadFromXml(reader); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java index 03ae53ddd..ebb16a500 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java @@ -19,95 +19,93 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ExpandGroupResults implements Iterable { - /** - * True, if all members are returned. EWS always returns true on ExpandDL, - * i.e. all members are returned. - */ - private boolean includesAllMembers; - - /** - * DL members. - */ - private Collection members = new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - protected ExpandGroupResults() { - } - - /** - * Gets the number of members that were returned by the ExpandGroup - * operation. Count might be less than the total number of members in the - * group, in which case the value of the IncludesAllMembers is false. - * - * @return the count - */ - public int getCount() { - return this.getMembers().size(); - } - - /** - * Gets a value indicating whether all the members of the group have been - * returned by ExpandGroup. - * - * @return the includes all members - */ - public boolean getIncludesAllMembers() { - return this.includesAllMembers; - } - - /** - * Gets the members of the expanded group. - * - * @return the members - */ - public Collection getMembers() { - return this.members; - } - - /** - * Gets the members of the expanded group. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.DLExpansion); - if (!reader.isEmptyElement()) { - int totalItemsInView = reader.readAttributeValue(Integer.class, - XmlAttributeNames.TotalItemsInView); - this.includesAllMembers = reader.readAttributeValue(Boolean.class, - XmlAttributeNames.IncludesLastItemInRange); - - for (int i = 0; i < totalItemsInView; i++) { - EmailAddress emailAddress = new EmailAddress(); - - reader.readStartElement(XmlNamespace.Types, - XmlElementNames.Mailbox); - emailAddress.loadFromXml(reader, XmlElementNames.Mailbox); - - this.getMembers().add(emailAddress); - } - - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.DLExpansion); - } else { - reader.read(); - } - } - - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - - return members.iterator(); - } + /** + * True, if all members are returned. EWS always returns true on ExpandDL, + * i.e. all members are returned. + */ + private boolean includesAllMembers; + + /** + * DL members. + */ + private Collection members = new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + protected ExpandGroupResults() { + } + + /** + * Gets the number of members that were returned by the ExpandGroup + * operation. Count might be less than the total number of members in the + * group, in which case the value of the IncludesAllMembers is false. + * + * @return the count + */ + public int getCount() { + return this.getMembers().size(); + } + + /** + * Gets a value indicating whether all the members of the group have been + * returned by ExpandGroup. + * + * @return the includes all members + */ + public boolean getIncludesAllMembers() { + return this.includesAllMembers; + } + + /** + * Gets the members of the expanded group. + * + * @return the members + */ + public Collection getMembers() { + return this.members; + } + + /** + * Gets the members of the expanded group. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.DLExpansion); + if (!reader.isEmptyElement()) { + int totalItemsInView = reader.readAttributeValue(Integer.class, + XmlAttributeNames.TotalItemsInView); + this.includesAllMembers = reader.readAttributeValue(Boolean.class, + XmlAttributeNames.IncludesLastItemInRange); + + for (int i = 0; i < totalItemsInView; i++) { + EmailAddress emailAddress = new EmailAddress(); + + reader.readStartElement(XmlNamespace.Types, + XmlElementNames.Mailbox); + emailAddress.loadFromXml(reader, XmlElementNames.Mailbox); + + this.getMembers().add(emailAddress); + } + + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.DLExpansion); + } else { + reader.read(); + } + } + + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + + return members.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index b7db9f4e3..34700744d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -10,222 +10,214 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; - import javax.xml.stream.XMLStreamException; +import java.util.ArrayList; /** * Represents an extended property. - * */ public final class ExtendedProperty extends ComplexProperty { - /** The property definition. */ - private ExtendedPropertyDefinition propertyDefinition; - - /** The value. */ - private Object value; - - /** - * Initializes a new instance. - */ - protected ExtendedProperty() { - } - - /** - * Initializes a new instance. - * - * @param propertyDefinition - * The definition of the extended property. - * @throws Exception - * the exception - */ - protected ExtendedProperty(ExtendedPropertyDefinition propertyDefinition) - throws Exception { - this(); - EwsUtilities.validateParam(propertyDefinition, "propertyDefinition"); - this.propertyDefinition = propertyDefinition; - } - - /** - * Tries to read element from XML. - * - * @param reader - * The reader. - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - - if (reader.getLocalName().equals(XmlElementNames.ExtendedFieldURI)) { - this.propertyDefinition = new ExtendedPropertyDefinition(); - this.propertyDefinition.loadFromXml(reader); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Value)) { - EwsUtilities.EwsAssert(this.getPropertyDefinition() != null, - "ExtendedProperty.TryReadElementFromXml", - "PropertyDefintion is missing"); - String stringValue = reader.readElementValue(); - this.value = MapiTypeConverter.convertToValue(this - .getPropertyDefinition().getMapiType(), stringValue); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Values)) { - EwsUtilities.EwsAssert(this.getPropertyDefinition() != null, - "ExtendedProperty.TryReadElementFromXml", - "PropertyDefintion is missing"); - - StringList stringList = new StringList(XmlElementNames.Value); - stringList.loadFromXml(reader, reader.getLocalName()); - this.value = MapiTypeConverter.convertToValue(this - .getPropertyDefinition().getMapiType(), stringList - .iterator()); - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - this.getPropertyDefinition().writeToXml(writer); - - if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() - .getMapiType())) { - ArrayList array = (ArrayList) this.getValue(); - writer - .writeStartElement(XmlNamespace.Types, - XmlElementNames.Values); - for (int index = 0; index < array.size(); index++) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.Value, MapiTypeConverter - .convertToString(this.getPropertyDefinition() - .getMapiType(), array.get(index))); - } - writer.writeEndElement(); - } else { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Value, - MapiTypeConverter.convertToString(this - .getPropertyDefinition().getMapiType(), this - .getValue())); - } - } - - /** - * Gets the definition of the extended property. - * - * @return The definition of the extended property. - */ - public ExtendedPropertyDefinition getPropertyDefinition() { - return this.propertyDefinition; - } - - /** - * Gets the value of the extended property. - * - * @return the value - */ - public Object getValue() { - return this.value; - } - - /** - * Sets the value of the extended property. - * - * @param val - * value of the extended property - * @throws Exception - * the exception - */ - public void setValue(Object val) throws Exception { - EwsUtilities.validateParam(val, "value"); - if (this.canSetFieldValue(this.value, MapiTypeConverter.changeType(this - .getPropertyDefinition().getMapiType(), val))) { - this.value = MapiTypeConverter.changeType(this - .getPropertyDefinition().getMapiType(), val); - this.changed(); - } - } - - /** - * Gets the string value. - * - * @return String - */ - private String getStringValue() { - if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() - .getMapiType())) { - ArrayList array = (ArrayList) this.getValue(); - if (array == null) { - return null; - } else { - StringBuilder sb = new StringBuilder(); - sb.append("["); - for (int index = 0; index < array.size(); index++) { - sb.append(MapiTypeConverter.convertToString(this - .getPropertyDefinition().getMapiType(), array - .get(index))); - sb.append(","); - } - sb.append("]"); - - return sb.toString(); - } - } else { - return MapiTypeConverter.convertToString(this - .getPropertyDefinition().getMapiType(), this.getValue()); - } - } - - /** - * Determines whether the specified is equal - * to the current true if the specified is equal to the current - * - * @param obj - * the obj - * @return boolean - */ - @Override - public boolean equals(Object obj) { - - if (obj instanceof ExtendedProperty) { - ExtendedProperty other = (ExtendedProperty) obj; - if (other.getPropertyDefinition().equals( - this.getPropertyDefinition())) { - return this.getStringValue().equals(other.getStringValue()); - } else { - return false; - } - } else { - return false; - } - } - - /** - * Serves as a hash function for a particular type. - * - * @return int - */ - @Override - public int hashCode() { - String printableName = this.getPropertyDefinition() != null ? this - .getPropertyDefinition().getPrintableName() : ""; - String stringVal = this.getStringValue(); - return (printableName + stringVal).hashCode(); - } + /** + * The property definition. + */ + private ExtendedPropertyDefinition propertyDefinition; + + /** + * The value. + */ + private Object value; + + /** + * Initializes a new instance. + */ + protected ExtendedProperty() { + } + + /** + * Initializes a new instance. + * + * @param propertyDefinition The definition of the extended property. + * @throws Exception the exception + */ + protected ExtendedProperty(ExtendedPropertyDefinition propertyDefinition) + throws Exception { + this(); + EwsUtilities.validateParam(propertyDefinition, "propertyDefinition"); + this.propertyDefinition = propertyDefinition; + } + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + + if (reader.getLocalName().equals(XmlElementNames.ExtendedFieldURI)) { + this.propertyDefinition = new ExtendedPropertyDefinition(); + this.propertyDefinition.loadFromXml(reader); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Value)) { + EwsUtilities.EwsAssert(this.getPropertyDefinition() != null, + "ExtendedProperty.TryReadElementFromXml", + "PropertyDefintion is missing"); + String stringValue = reader.readElementValue(); + this.value = MapiTypeConverter.convertToValue(this + .getPropertyDefinition().getMapiType(), stringValue); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Values)) { + EwsUtilities.EwsAssert(this.getPropertyDefinition() != null, + "ExtendedProperty.TryReadElementFromXml", + "PropertyDefintion is missing"); + + StringList stringList = new StringList(XmlElementNames.Value); + stringList.loadFromXml(reader, reader.getLocalName()); + this.value = MapiTypeConverter.convertToValue(this + .getPropertyDefinition().getMapiType(), stringList + .iterator()); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + this.getPropertyDefinition().writeToXml(writer); + + if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() + .getMapiType())) { + ArrayList array = (ArrayList) this.getValue(); + writer + .writeStartElement(XmlNamespace.Types, + XmlElementNames.Values); + for (int index = 0; index < array.size(); index++) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.Value, MapiTypeConverter + .convertToString(this.getPropertyDefinition() + .getMapiType(), array.get(index))); + } + writer.writeEndElement(); + } else { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Value, + MapiTypeConverter.convertToString(this + .getPropertyDefinition().getMapiType(), this + .getValue())); + } + } + + /** + * Gets the definition of the extended property. + * + * @return The definition of the extended property. + */ + public ExtendedPropertyDefinition getPropertyDefinition() { + return this.propertyDefinition; + } + + /** + * Gets the value of the extended property. + * + * @return the value + */ + public Object getValue() { + return this.value; + } + + /** + * Sets the value of the extended property. + * + * @param val value of the extended property + * @throws Exception the exception + */ + public void setValue(Object val) throws Exception { + EwsUtilities.validateParam(val, "value"); + if (this.canSetFieldValue(this.value, MapiTypeConverter.changeType(this + .getPropertyDefinition().getMapiType(), val))) { + this.value = MapiTypeConverter.changeType(this + .getPropertyDefinition().getMapiType(), val); + this.changed(); + } + } + + /** + * Gets the string value. + * + * @return String + */ + private String getStringValue() { + if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() + .getMapiType())) { + ArrayList array = (ArrayList) this.getValue(); + if (array == null) { + return null; + } else { + StringBuilder sb = new StringBuilder(); + sb.append("["); + for (int index = 0; index < array.size(); index++) { + sb.append(MapiTypeConverter.convertToString(this + .getPropertyDefinition().getMapiType(), array + .get(index))); + sb.append(","); + } + sb.append("]"); + + return sb.toString(); + } + } else { + return MapiTypeConverter.convertToString(this + .getPropertyDefinition().getMapiType(), this.getValue()); + } + } + + /** + * Determines whether the specified is equal + * to the current true if the specified is equal to the current + * + * @param obj the obj + * @return boolean + */ + @Override + public boolean equals(Object obj) { + + if (obj instanceof ExtendedProperty) { + ExtendedProperty other = (ExtendedProperty) obj; + if (other.getPropertyDefinition().equals( + this.getPropertyDefinition())) { + return this.getStringValue().equals(other.getStringValue()); + } else { + return false; + } + } else { + return false; + } + } + + /** + * Serves as a hash function for a particular type. + * + * @return int + */ + @Override + public int hashCode() { + String printableName = this.getPropertyDefinition() != null ? this + .getPropertyDefinition().getPrintableName() : ""; + String stringVal = this.getStringValue(); + return (printableName + stringVal).hashCode(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 6d1fde10e..61a4ec3cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -10,279 +10,250 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a collection of extended properties. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class ExtendedPropertyCollection extends - ComplexPropertyCollection implements - ICustomXmlUpdateSerializer { + ComplexPropertyCollection implements + ICustomXmlUpdateSerializer { + + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element. + * @return Complex property instance. + */ + @Override + protected ExtendedProperty createComplexProperty(String xmlElementName) { + // This method is unused in this class, so just return null. + return null; + } + + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty The complex property. + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName( + ExtendedProperty complexProperty) { + // This method is unused in this class, so just return null. + return null; + } - /** - * Creates the complex property. - * - * @param xmlElementName - * Name of the XML element. - * @return Complex property instance. - */ - @Override - protected ExtendedProperty createComplexProperty(String xmlElementName) { - // This method is unused in this class, so just return null. - return null; - } + /** + * Loads from XML. + * + * @param reader The reader. + * @param localElementName Name of the local element. + * @throws Exception the exception + */ + @Override + protected void loadFromXml(EwsServiceXmlReader reader, + String localElementName) throws Exception { + ExtendedProperty extendedProperty = new ExtendedProperty(); + extendedProperty.loadFromXml(reader, reader.getLocalName()); + this.internalAdd(extendedProperty); + } - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * The complex property. - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName( - ExtendedProperty complexProperty) { - // This method is unused in this class, so just return null. - return null; - } + /** + * Writes to XML. + * + * @param writer The writer. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws Exception { + for (ExtendedProperty extendedProperty : this) { + extendedProperty.writeToXml(writer, + XmlElementNames.ExtendedProperty); + } + } - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param localElementName - * Name of the local element. - * @throws Exception - * the exception - */ - @Override - protected void loadFromXml(EwsServiceXmlReader reader, - String localElementName) throws Exception { - ExtendedProperty extendedProperty = new ExtendedProperty(); - extendedProperty.loadFromXml(reader, reader.getLocalName()); - this.internalAdd(extendedProperty); - } + /** + * Gets existing or adds new extended property. + * + * @param propertyDefinition The property definition. + * @return ExtendedProperty. + * @throws Exception the exception + */ + private ExtendedProperty getOrAddExtendedProperty( + ExtendedPropertyDefinition propertyDefinition) throws Exception { + ExtendedProperty extendedProperty = null; + OutParam extendedPropertyOut = + new OutParam(); + if (!this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { + extendedProperty = new ExtendedProperty(propertyDefinition); + this.internalAdd(extendedProperty); + } else { + extendedProperty = extendedPropertyOut.getParam(); + } + return extendedProperty; + } - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws Exception { - for (ExtendedProperty extendedProperty : this) { - extendedProperty.writeToXml(writer, - XmlElementNames.ExtendedProperty); - } - } + /** + * Sets an extended property. + * + * @param propertyDefinition The property definition. + * @param value The value. + * @throws Exception the exception + */ + protected void setExtendedProperty( + ExtendedPropertyDefinition propertyDefinition, Object value) + throws Exception { + ExtendedProperty extendedProperty = this + .getOrAddExtendedProperty(propertyDefinition); + extendedProperty.setValue(value); + } - /** - * Gets existing or adds new extended property. - * - * @param propertyDefinition - * The property definition. - * @return ExtendedProperty. - * @throws Exception - * the exception - */ - private ExtendedProperty getOrAddExtendedProperty( - ExtendedPropertyDefinition propertyDefinition) throws Exception { - ExtendedProperty extendedProperty = null; - OutParam extendedPropertyOut = - new OutParam(); - if (!this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { - extendedProperty = new ExtendedProperty(propertyDefinition); - this.internalAdd(extendedProperty); - } else { - extendedProperty = extendedPropertyOut.getParam(); - } - return extendedProperty; - } + /** + * Removes a specific extended property definition from the collection. + * + * @param propertyDefinition The definition of the extended property to remove. + * @return True if the property matching the extended property definition + * was successfully removed from the collection, false otherwise. + * @throws Exception the exception + */ + protected boolean removeExtendedProperty( + ExtendedPropertyDefinition propertyDefinition) throws Exception { + EwsUtilities.validateParam(propertyDefinition, "propertyDefinition"); - /** - * Sets an extended property. - * - * @param propertyDefinition - * The property definition. - * @param value - * The value. - * @throws Exception - * the exception - */ - protected void setExtendedProperty( - ExtendedPropertyDefinition propertyDefinition, Object value) - throws Exception { - ExtendedProperty extendedProperty = this - .getOrAddExtendedProperty(propertyDefinition); - extendedProperty.setValue(value); - } + ExtendedProperty extendedProperty = null; + OutParam extendedPropertyOut = + new OutParam(); + if (this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { + extendedProperty = extendedPropertyOut.getParam(); + return this.internalRemove(extendedProperty); + } else { + return false; + } + } - /** - * Removes a specific extended property definition from the collection. - * - * @param propertyDefinition - * The definition of the extended property to remove. - * @return True if the property matching the extended property definition - * was successfully removed from the collection, false otherwise. - * @throws Exception - * the exception - */ - protected boolean removeExtendedProperty( - ExtendedPropertyDefinition propertyDefinition) throws Exception { - EwsUtilities.validateParam(propertyDefinition, "propertyDefinition"); + /** + * Tries to get property. + * + * @param propertyDefinition The property definition. + * @param extendedPropertyOut The extended property. + * @return True of property exists in collection. + */ + private boolean tryGetProperty( + ExtendedPropertyDefinition propertyDefinition, + OutParam extendedPropertyOut) { + boolean found = false; + extendedPropertyOut.setParam(null); + for (ExtendedProperty prop : this.getItems()) { + if (prop.getPropertyDefinition().equals(propertyDefinition)) { + found = true; + extendedPropertyOut.setParam(prop); + break; + } + } + return found; + } - ExtendedProperty extendedProperty = null; - OutParam extendedPropertyOut = - new OutParam(); - if (this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { - extendedProperty = extendedPropertyOut.getParam(); - return this.internalRemove(extendedProperty); - } else { - return false; - } - } + /** + * Tries to get property value. + * + * @param propertyDefinition The property definition. + * @param propertyValueOut The property value. + * @return True if property exists in collection. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + protected boolean tryGetValue(Class cls, + ExtendedPropertyDefinition propertyDefinition, + OutParam propertyValueOut) throws ArgumentException { + ExtendedProperty extendedProperty = null; + OutParam extendedPropertyOut = + new OutParam(); + if (this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { + extendedProperty = extendedPropertyOut.getParam(); + if (cls.isAssignableFrom(propertyDefinition.getType())) { + String errorMessage = String.format( + Strings.PropertyDefinitionTypeMismatch, + EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), + EwsUtilities.getPrintableTypeName(cls)); + throw new ArgumentException(errorMessage, "propertyDefinition"); + } + propertyValueOut.setParam((T) extendedProperty.getValue()); + return true; + } else { + propertyValueOut.setParam(null); + return false; + } + } - /** - * Tries to get property. - * - * @param propertyDefinition - * The property definition. - * @param extendedPropertyOut - * The extended property. - * @return True of property exists in collection. - */ - private boolean tryGetProperty( - ExtendedPropertyDefinition propertyDefinition, - OutParam extendedPropertyOut) { - boolean found = false; - extendedPropertyOut.setParam(null); - for (ExtendedProperty prop : this.getItems()) { - if (prop.getPropertyDefinition().equals(propertyDefinition)) { - found = true; - extendedPropertyOut.setParam(prop); - break; - } - } - return found; - } - /** - * Tries to get property value. - * - * @param propertyDefinition - * The property definition. - * @param propertyValueOut - * The property value. - * @return True if property exists in collection. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - protected boolean tryGetValue(Class cls, - ExtendedPropertyDefinition propertyDefinition, - OutParam propertyValueOut) throws ArgumentException { - ExtendedProperty extendedProperty = null; - OutParam extendedPropertyOut = - new OutParam(); - if (this.tryGetProperty(propertyDefinition, extendedPropertyOut)) { - extendedProperty = extendedPropertyOut.getParam(); - if (cls.isAssignableFrom(propertyDefinition.getType())){ - String errorMessage = String.format( - Strings.PropertyDefinitionTypeMismatch, - EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), - EwsUtilities.getPrintableTypeName(cls)); - throw new ArgumentException(errorMessage, "propertyDefinition"); - } - propertyValueOut.setParam((T)extendedProperty.getValue()); - return true; - } else { - propertyValueOut.setParam(null); - return false; - } - } - - - /** - * Writes the update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @param propertyDefinition - * Property definition. - * @return True if property generated serialization. - * @throws Exception - * the exception - */ - @Override - public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, PropertyDefinition propertyDefinition) - throws Exception { - List propertiesToSet = - new ArrayList(); + /** + * Writes the update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @param propertyDefinition Property definition. + * @return True if property generated serialization. + * @throws Exception the exception + */ + @Override + public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, PropertyDefinition propertyDefinition) + throws Exception { + List propertiesToSet = + new ArrayList(); - propertiesToSet.addAll(this.getAddedItems()); - propertiesToSet.addAll(this.getModifiedItems()); + propertiesToSet.addAll(this.getAddedItems()); + propertiesToSet.addAll(this.getModifiedItems()); - for (ExtendedProperty extendedProperty : propertiesToSet) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getSetFieldXmlElementName()); - extendedProperty.getPropertyDefinition().writeToXml(writer); + for (ExtendedProperty extendedProperty : propertiesToSet) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getSetFieldXmlElementName()); + extendedProperty.getPropertyDefinition().writeToXml(writer); - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getXmlElementName()); - extendedProperty.writeToXml(writer, - XmlElementNames.ExtendedProperty); - writer.writeEndElement(); + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getXmlElementName()); + extendedProperty.writeToXml(writer, + XmlElementNames.ExtendedProperty); + writer.writeEndElement(); - writer.writeEndElement(); - } + writer.writeEndElement(); + } - for (ExtendedProperty extendedProperty : this.getRemovedItems()) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getDeleteFieldXmlElementName()); - extendedProperty.getPropertyDefinition().writeToXml(writer); - writer.writeEndElement(); - } + for (ExtendedProperty extendedProperty : this.getRemovedItems()) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getDeleteFieldXmlElementName()); + extendedProperty.getPropertyDefinition().writeToXml(writer); + writer.writeEndElement(); + } - return true; - } + return true; + } - /** - * Writes the deletion update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @return True if property generated serialization. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) throws XMLStreamException, - ServiceXmlSerializationException { - for (ExtendedProperty extendedProperty : this.getItems()) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getDeleteFieldXmlElementName()); - extendedProperty.getPropertyDefinition().writeToXml(writer); - writer.writeEndElement(); - } + /** + * Writes the deletion update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @return True if property generated serialization. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) throws XMLStreamException, + ServiceXmlSerializationException { + for (ExtendedProperty extendedProperty : this.getItems()) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getDeleteFieldXmlElementName()); + extendedProperty.getPropertyDefinition().writeToXml(writer); + writer.writeEndElement(); + } - return true; - } + return true; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index c5b587f8a..0bd85e6e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -14,438 +14,438 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the definition of an extended property. - * */ public final class ExtendedPropertyDefinition extends PropertyDefinitionBase { - /** The property set. */ - private DefaultExtendedPropertySet propertySet; - - /** The property set id. */ - private UUID propertySetId; - - /** The tag. */ - private Integer tag; - - /** The name. */ - private String name; - - /** The id. */ - private Integer id; - - /** The mapi type. */ - private MapiPropertyType mapiType; - - /** The Constant FieldFormat. */ - private final static String FieldFormat = "%s: %s "; - - /** The Property set field name. */ - private static final String PropertySetFieldName = "PropertySet"; - - /** The Property set id field name. */ - private static final String PropertySetIdFieldName = "PropertySetId"; - - /** The Tag field name. */ - private static final String TagFieldName = "Tag"; - - /** The Name field name. */ - private static final String NameFieldName = "Name"; - - /** The Id field name. */ - private static final String IdFieldName = "Id"; - - /** The Mapi type field name. */ - private static final String MapiTypeFieldName = "MapiType"; - - /** - * Initializes a new instance. - */ - protected ExtendedPropertyDefinition() { - super(); - this.mapiType = MapiPropertyType.String; - } - - /** - * Initializes a new instance. - * - * @param mapiType - * The MAPI type of the extended property. - */ - protected ExtendedPropertyDefinition(MapiPropertyType mapiType) { - this(); - this.mapiType = mapiType; - } - - /** - * Initializes a new instance. - * - * @param tag - * The tag of the extended property. - * @param mapiType - * The MAPI type of the extended property. - */ - public ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType) { - this(mapiType); - if (tag < 0) { - throw new IllegalArgumentException("Argument out of range : tag " + - Strings.TagValueIsOutOfRange); - } - this.tag = tag; - } - - /** - * Initializes a new instance. - * - * @param propertySet - * The extended property set of the extended property. - * @param name - * The name of the extended property. - * @param mapiType - * The MAPI type of the extended property. - * @throws Exception - * the exception - */ - public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, - String name, MapiPropertyType mapiType) throws Exception { - this(mapiType); - EwsUtilities.validateParam(name, "name"); - - this.propertySet = propertySet; - this.name = name; - } - - /** - * Initializes a new instance. - * - * @param propertySet - * The property set of the extended property. - * @param id - * The Id of the extended property. - * @param mapiType - * The MAPI type of the extended property. - */ - public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, - int id, MapiPropertyType mapiType) { - this(mapiType); - this.propertySet = propertySet; - this.id = id; - } - - /** - * Initializes a new instance. - * - * @param propertySetId - * The property set Id of the extended property. - * @param name - * The name of the extended property. - * @param mapiType - * The MAPI type of the extended property. - * @throws Exception - * the exception - */ - public ExtendedPropertyDefinition(UUID propertySetId, String name, - MapiPropertyType mapiType) throws Exception { - this(mapiType); - EwsUtilities.validateParam(name, "name"); - - this.propertySetId = propertySetId; - this.name = name; - } - - /** - * Initializes a new instance. - * - * @param propertySetId - * The property set Id of the extended property. - * @param id - * The Id of the extended property. - * @param mapiType - * The MAPI type of the extended property. - */ - public ExtendedPropertyDefinition(UUID propertySetId, int id, - MapiPropertyType mapiType) { - this(mapiType); - this.propertySetId = propertySetId; - this.id = id; - } - - /** - * Determines whether two specified instances of ExtendedPropertyDefinition are equal. - * - * @param extPropDef1 First extended property definition. - * @param extPropDef2 Second extended property definition. - * @return True if extended property definitions are equal. - */ - protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2) { - if (extPropDef1 == extPropDef2) { - return true; - } - - if (extPropDef1 == null || extPropDef2 == null) { - return false; - } - - if (extPropDef1.getId() != null) { - if (!extPropDef1.getId().equals(extPropDef2.getId())) { - return false; - } - } else if (extPropDef2.getId() != null) { - return false; - } - - if (extPropDef1.getMapiType() != extPropDef2.getMapiType()) { - return false; - } - - if (extPropDef1.getName() != null) { - if (!extPropDef1.getName().equals(extPropDef2.getName())) { - return false; - } - } else if (extPropDef2.getName() != null) { - return false; - } - - if (extPropDef1.getPropertySet() != extPropDef2.getPropertySet()) { - return false; - } - - if (extPropDef1.propertySetId != null) { - if (!extPropDef1.propertySetId.equals(extPropDef2.propertySetId)) { - return false; - } - } else if (extPropDef2.propertySetId != null) { - return false; - } - - return true; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ExtendedFieldURI; - } - - /** - * Gets the minimum Exchange version that supports this extended property. - * - * @return The version. - */ - @Override - public ExchangeVersion getVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - if (this.propertySet != null) { - writer.writeAttributeValue( - XmlAttributeNames.DistinguishedPropertySetId, - this.propertySet); - } - if (this.propertySetId != null) { - writer.writeAttributeValue(XmlAttributeNames.PropertySetId, - this.propertySetId.toString()); - } - if (this.tag != null) { - writer.writeAttributeValue(XmlAttributeNames.PropertyTag, this.tag); - } - if (null != this.name && !this.name.isEmpty()) { - writer.writeAttributeValue(XmlAttributeNames.PropertyName, - this.name); - } - if (this.id != null) { - writer.writeAttributeValue(XmlAttributeNames.PropertyId, this.id); - } - writer.writeAttributeValue(XmlAttributeNames.PropertyType, - this.mapiType); - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - String attributeValue; - - attributeValue = reader - .readAttributeValue(XmlAttributeNames. - DistinguishedPropertySetId); - if (null != attributeValue && !attributeValue.isEmpty()) { - this.propertySet = DefaultExtendedPropertySet - .valueOf(attributeValue); - } - - attributeValue = reader - .readAttributeValue(XmlAttributeNames.PropertySetId); - if (null != attributeValue && !attributeValue.isEmpty()) { - this.propertySetId = UUID.fromString(attributeValue); - } - - attributeValue = reader - .readAttributeValue(XmlAttributeNames.PropertyTag); - if (null != attributeValue && !attributeValue.isEmpty()) { - - this.tag=Integer.getInteger(attributeValue,16); - // this.tag = Integer.parseInt(attributeValue, 16); - } - - this.name = reader.readAttributeValue(XmlAttributeNames.PropertyName); - attributeValue = reader - .readAttributeValue(XmlAttributeNames.PropertyId); - if (null != attributeValue && !attributeValue.isEmpty()) { - this.id = Integer.parseInt(attributeValue); - } - - this.mapiType = reader.readAttributeValue(MapiPropertyType.class, - XmlAttributeNames.PropertyType); - } - - - /** - * Determines whether two specified instances of ExtendedPropertyDefinition - * are equal. - * - * @param obj - * the obj - * @return True if extended property definitions are equal. - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj instanceof ExtendedPropertyDefinition) { - return ExtendedPropertyDefinition.isEqualTo(this, - (ExtendedPropertyDefinition) obj); - } else { - return false; - } - } - - /* - * (non-Javadoc) - * - * @see java.lang.Object#hashCode() - */ - @Override - public int hashCode() { - return this.getPrintableName().hashCode(); - } - - /** - * Gets the property definition's printable name. - * - * @return The property definition's printable name. - */ - @Override - protected String getPrintableName() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - sb.append(formatField(NameFieldName, this.getName())); - sb.append(formatField(MapiTypeFieldName, this.getMapiType())); - sb.append(formatField(IdFieldName, this.getId())); - sb.append(formatField(PropertySetFieldName, this.getPropertySet())); - sb.append(formatField(PropertySetIdFieldName, this.getPropertySetId())); - sb.append(formatField(TagFieldName, this.getTag())); - sb.append("}"); - return sb.toString(); - } - - /** - * Formats the field. - * - * @param - * Type of the field. - * @param name - * The name. - * @param fieldValue - * The field value. - * @return the string - */ - protected String formatField(String name, T fieldValue) { - return (fieldValue != null) ? String.format(FieldFormat, name, - fieldValue.toString()) : ""; - } - - /** - * Gets the property set of the extended property. - * - * @return property set of the extended property. - */ - public DefaultExtendedPropertySet getPropertySet() { - return this.propertySet; - } - - /** - * Gets the property set Id or the extended property. - * - * @return property set Id or the extended property. - */ - public UUID getPropertySetId() { - return this.propertySetId; - } - - /** - * Gets the extended property's tag. - * - * @return The extended property's tag. - */ - public Integer getTag() { - return this.tag; - } - - /** - * Gets the name of the extended property. - * - * @return The name of the extended property. - */ - public String getName() { - return this.name; - } - - /** - * Gets the Id of the extended property. - * - * @return The Id of the extended property. - */ - public Integer getId() { - return this.id; - } - - /** - * Gets the MAPI type of the extended property. - * - * @return The MAPI type of the extended property. - */ - public MapiPropertyType getMapiType() { - return this.mapiType; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() - { - return MapiTypeConverter.getMapiTypeConverterMap(). - get(getMapiType()).getType(); - } + /** + * The property set. + */ + private DefaultExtendedPropertySet propertySet; + + /** + * The property set id. + */ + private UUID propertySetId; + + /** + * The tag. + */ + private Integer tag; + + /** + * The name. + */ + private String name; + + /** + * The id. + */ + private Integer id; + + /** + * The mapi type. + */ + private MapiPropertyType mapiType; + + /** + * The Constant FieldFormat. + */ + private final static String FieldFormat = "%s: %s "; + + /** + * The Property set field name. + */ + private static final String PropertySetFieldName = "PropertySet"; + + /** + * The Property set id field name. + */ + private static final String PropertySetIdFieldName = "PropertySetId"; + + /** + * The Tag field name. + */ + private static final String TagFieldName = "Tag"; + + /** + * The Name field name. + */ + private static final String NameFieldName = "Name"; + + /** + * The Id field name. + */ + private static final String IdFieldName = "Id"; + + /** + * The Mapi type field name. + */ + private static final String MapiTypeFieldName = "MapiType"; + + /** + * Initializes a new instance. + */ + protected ExtendedPropertyDefinition() { + super(); + this.mapiType = MapiPropertyType.String; + } + + /** + * Initializes a new instance. + * + * @param mapiType The MAPI type of the extended property. + */ + protected ExtendedPropertyDefinition(MapiPropertyType mapiType) { + this(); + this.mapiType = mapiType; + } + + /** + * Initializes a new instance. + * + * @param tag The tag of the extended property. + * @param mapiType The MAPI type of the extended property. + */ + public ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType) { + this(mapiType); + if (tag < 0) { + throw new IllegalArgumentException("Argument out of range : tag " + + Strings.TagValueIsOutOfRange); + } + this.tag = tag; + } + + /** + * Initializes a new instance. + * + * @param propertySet The extended property set of the extended property. + * @param name The name of the extended property. + * @param mapiType The MAPI type of the extended property. + * @throws Exception the exception + */ + public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, + String name, MapiPropertyType mapiType) throws Exception { + this(mapiType); + EwsUtilities.validateParam(name, "name"); + + this.propertySet = propertySet; + this.name = name; + } + + /** + * Initializes a new instance. + * + * @param propertySet The property set of the extended property. + * @param id The Id of the extended property. + * @param mapiType The MAPI type of the extended property. + */ + public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, + int id, MapiPropertyType mapiType) { + this(mapiType); + this.propertySet = propertySet; + this.id = id; + } + + /** + * Initializes a new instance. + * + * @param propertySetId The property set Id of the extended property. + * @param name The name of the extended property. + * @param mapiType The MAPI type of the extended property. + * @throws Exception the exception + */ + public ExtendedPropertyDefinition(UUID propertySetId, String name, + MapiPropertyType mapiType) throws Exception { + this(mapiType); + EwsUtilities.validateParam(name, "name"); + + this.propertySetId = propertySetId; + this.name = name; + } + + /** + * Initializes a new instance. + * + * @param propertySetId The property set Id of the extended property. + * @param id The Id of the extended property. + * @param mapiType The MAPI type of the extended property. + */ + public ExtendedPropertyDefinition(UUID propertySetId, int id, + MapiPropertyType mapiType) { + this(mapiType); + this.propertySetId = propertySetId; + this.id = id; + } + + /** + * Determines whether two specified instances of ExtendedPropertyDefinition are equal. + * + * @param extPropDef1 First extended property definition. + * @param extPropDef2 Second extended property definition. + * @return True if extended property definitions are equal. + */ + protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, + ExtendedPropertyDefinition extPropDef2) { + if (extPropDef1 == extPropDef2) { + return true; + } + + if (extPropDef1 == null || extPropDef2 == null) { + return false; + } + + if (extPropDef1.getId() != null) { + if (!extPropDef1.getId().equals(extPropDef2.getId())) { + return false; + } + } else if (extPropDef2.getId() != null) { + return false; + } + + if (extPropDef1.getMapiType() != extPropDef2.getMapiType()) { + return false; + } + + if (extPropDef1.getName() != null) { + if (!extPropDef1.getName().equals(extPropDef2.getName())) { + return false; + } + } else if (extPropDef2.getName() != null) { + return false; + } + + if (extPropDef1.getPropertySet() != extPropDef2.getPropertySet()) { + return false; + } + + if (extPropDef1.propertySetId != null) { + if (!extPropDef1.propertySetId.equals(extPropDef2.propertySetId)) { + return false; + } + } else if (extPropDef2.propertySetId != null) { + return false; + } + + return true; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ExtendedFieldURI; + } + + /** + * Gets the minimum Exchange version that supports this extended property. + * + * @return The version. + */ + @Override + public ExchangeVersion getVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + if (this.propertySet != null) { + writer.writeAttributeValue( + XmlAttributeNames.DistinguishedPropertySetId, + this.propertySet); + } + if (this.propertySetId != null) { + writer.writeAttributeValue(XmlAttributeNames.PropertySetId, + this.propertySetId.toString()); + } + if (this.tag != null) { + writer.writeAttributeValue(XmlAttributeNames.PropertyTag, this.tag); + } + if (null != this.name && !this.name.isEmpty()) { + writer.writeAttributeValue(XmlAttributeNames.PropertyName, + this.name); + } + if (this.id != null) { + writer.writeAttributeValue(XmlAttributeNames.PropertyId, this.id); + } + writer.writeAttributeValue(XmlAttributeNames.PropertyType, + this.mapiType); + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + String attributeValue; + + attributeValue = reader + .readAttributeValue(XmlAttributeNames. + DistinguishedPropertySetId); + if (null != attributeValue && !attributeValue.isEmpty()) { + this.propertySet = DefaultExtendedPropertySet + .valueOf(attributeValue); + } + + attributeValue = reader + .readAttributeValue(XmlAttributeNames.PropertySetId); + if (null != attributeValue && !attributeValue.isEmpty()) { + this.propertySetId = UUID.fromString(attributeValue); + } + + attributeValue = reader + .readAttributeValue(XmlAttributeNames.PropertyTag); + if (null != attributeValue && !attributeValue.isEmpty()) { + + this.tag = Integer.getInteger(attributeValue, 16); + // this.tag = Integer.parseInt(attributeValue, 16); + } + + this.name = reader.readAttributeValue(XmlAttributeNames.PropertyName); + attributeValue = reader + .readAttributeValue(XmlAttributeNames.PropertyId); + if (null != attributeValue && !attributeValue.isEmpty()) { + this.id = Integer.parseInt(attributeValue); + } + + this.mapiType = reader.readAttributeValue(MapiPropertyType.class, + XmlAttributeNames.PropertyType); + } + + + /** + * Determines whether two specified instances of ExtendedPropertyDefinition + * are equal. + * + * @param obj the obj + * @return True if extended property definitions are equal. + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj instanceof ExtendedPropertyDefinition) { + return ExtendedPropertyDefinition.isEqualTo(this, + (ExtendedPropertyDefinition) obj); + } else { + return false; + } + } + + /* + * (non-Javadoc) + * + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + return this.getPrintableName().hashCode(); + } + + /** + * Gets the property definition's printable name. + * + * @return The property definition's printable name. + */ + @Override + protected String getPrintableName() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append(formatField(NameFieldName, this.getName())); + sb.append(formatField(MapiTypeFieldName, this.getMapiType())); + sb.append(formatField(IdFieldName, this.getId())); + sb.append(formatField(PropertySetFieldName, this.getPropertySet())); + sb.append(formatField(PropertySetIdFieldName, this.getPropertySetId())); + sb.append(formatField(TagFieldName, this.getTag())); + sb.append("}"); + return sb.toString(); + } + + /** + * Formats the field. + * + * @param Type of the field. + * @param name The name. + * @param fieldValue The field value. + * @return the string + */ + protected String formatField(String name, T fieldValue) { + return (fieldValue != null) ? String.format(FieldFormat, name, + fieldValue.toString()) : ""; + } + + /** + * Gets the property set of the extended property. + * + * @return property set of the extended property. + */ + public DefaultExtendedPropertySet getPropertySet() { + return this.propertySet; + } + + /** + * Gets the property set Id or the extended property. + * + * @return property set Id or the extended property. + */ + public UUID getPropertySetId() { + return this.propertySetId; + } + + /** + * Gets the extended property's tag. + * + * @return The extended property's tag. + */ + public Integer getTag() { + return this.tag; + } + + /** + * Gets the name of the extended property. + * + * @return The name of the extended property. + */ + public String getName() { + return this.name; + } + + /** + * Gets the Id of the extended property. + * + * @return The Id of the extended property. + */ + public Integer getId() { + return this.id; + } + + /** + * Gets the MAPI type of the extended property. + * + * @return The MAPI type of the extended property. + */ + public MapiPropertyType getMapiType() { + return this.mapiType; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return MapiTypeConverter.getMapiTypeConverterMap(). + get(getMapiType()).getType(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java index 9cbe76820..dfacdaa9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java @@ -14,94 +14,130 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the way the FileAs property of a contact is automatically formatted. */ public enum FileAsMapping { - // No automatic formatting is used. - /** The None. */ - None, - - // Surname, GivenName - /** The Surname comma given name. */ - @EwsEnum(schemaName = "LastCommaFirst") - SurnameCommaGivenName, - - // GivenName Surname - /** The Given name space surname. */ - @EwsEnum(schemaName = "FirstSpaceLast") - GivenNameSpaceSurname, - - // Company - /** The Company. */ - Company, - - // Surname, GivenName (Company) - /** The Surname comma given name company. */ - @EwsEnum(schemaName = "LastCommaFirstCompany") - SurnameCommaGivenNameCompany, - - // Company (SurnameGivenName) - /** The Company surname given name. */ - @EwsEnum(schemaName = "CompanyLastFirst") - CompanySurnameGivenName, - - // SurnameGivenName - /** The Surname given name. */ - @EwsEnum(schemaName = "LastFirst") - SurnameGivenName, - - // SurnameGivenName (Company) - /** The Surname given name company. */ - @EwsEnum(schemaName = "LastFirstCompany") - SurnameGivenNameCompany, - - // Company (Surname, GivenName) - /** The Company surname comma given name. */ - @EwsEnum(schemaName = "CompanyLastCommaFirst") - CompanySurnameCommaGivenName, - - // SurnameGivenName Suffix - /** The Surname given name suffix. */ - @EwsEnum(schemaName = "LastFirstSuffix") - SurnameGivenNameSuffix, - - // Surname GivenName (Company) - /** The Surname space given name company. */ - @EwsEnum(schemaName = "LastSpaceFirstCompany") - SurnameSpaceGivenNameCompany, - - // Company (Surname GivenName) - /** The Company surname space given name. */ - @EwsEnum(schemaName = "CompanyLastSpaceFirst") - CompanySurnameSpaceGivenName, - - // Surname GivenName - /** The Surname space given name. */ - @EwsEnum(schemaName = "LastSpaceFirst") - SurnameSpaceGivenName, - - // Display Name (Exchange 2010 or later). - /** The Display name. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - DisplayName, - - // GivenName (Exchange 2010 or later). - /** The Given name. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - @EwsEnum(schemaName = "FirstName") - GivenName, - - // Surname GivenName Middle Suffix (Exchange 2010 or later). - /** The Surname given name middle suffix. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - @EwsEnum(schemaName = "LastFirstMiddleSuffix") - SurnameGivenNameMiddleSuffix, - - // Surname (Exchange 2010 or later). - /** The Surname. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - @EwsEnum(schemaName = "LastName") - Surname, - - // Empty (Exchange 2010 or later). - /** The Empty. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - Empty + // No automatic formatting is used. + /** + * The None. + */ + None, + + // Surname, GivenName + /** + * The Surname comma given name. + */ + @EwsEnum(schemaName = "LastCommaFirst") + SurnameCommaGivenName, + + // GivenName Surname + /** + * The Given name space surname. + */ + @EwsEnum(schemaName = "FirstSpaceLast") + GivenNameSpaceSurname, + + // Company + /** + * The Company. + */ + Company, + + // Surname, GivenName (Company) + /** + * The Surname comma given name company. + */ + @EwsEnum(schemaName = "LastCommaFirstCompany") + SurnameCommaGivenNameCompany, + + // Company (SurnameGivenName) + /** + * The Company surname given name. + */ + @EwsEnum(schemaName = "CompanyLastFirst") + CompanySurnameGivenName, + + // SurnameGivenName + /** + * The Surname given name. + */ + @EwsEnum(schemaName = "LastFirst") + SurnameGivenName, + + // SurnameGivenName (Company) + /** + * The Surname given name company. + */ + @EwsEnum(schemaName = "LastFirstCompany") + SurnameGivenNameCompany, + + // Company (Surname, GivenName) + /** + * The Company surname comma given name. + */ + @EwsEnum(schemaName = "CompanyLastCommaFirst") + CompanySurnameCommaGivenName, + + // SurnameGivenName Suffix + /** + * The Surname given name suffix. + */ + @EwsEnum(schemaName = "LastFirstSuffix") + SurnameGivenNameSuffix, + + // Surname GivenName (Company) + /** + * The Surname space given name company. + */ + @EwsEnum(schemaName = "LastSpaceFirstCompany") + SurnameSpaceGivenNameCompany, + + // Company (Surname GivenName) + /** + * The Company surname space given name. + */ + @EwsEnum(schemaName = "CompanyLastSpaceFirst") + CompanySurnameSpaceGivenName, + + // Surname GivenName + /** + * The Surname space given name. + */ + @EwsEnum(schemaName = "LastSpaceFirst") + SurnameSpaceGivenName, + + // Display Name (Exchange 2010 or later). + /** + * The Display name. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + DisplayName, + + // GivenName (Exchange 2010 or later). + /** + * The Given name. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + @EwsEnum(schemaName = "FirstName") + GivenName, + + // Surname GivenName Middle Suffix (Exchange 2010 or later). + /** + * The Surname given name middle suffix. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + @EwsEnum(schemaName = "LastFirstMiddleSuffix") + SurnameGivenNameMiddleSuffix, + + // Surname (Exchange 2010 or later). + /** + * The Surname. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + @EwsEnum(schemaName = "LastName") + Surname, + + // Empty (Exchange 2010 or later). + /** + * The Empty. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + Empty } diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index 10cbfd4f6..3a6205859 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -10,311 +10,304 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.InputStream; -import java.io.OutputStream; +import java.io.*; /** * Represents a file attachment. */ public final class FileAttachment extends Attachment { - /** The file name. */ - private String fileName; - - /** The content stream. */ - private InputStream contentStream; - - /** The content. */ - private byte[] content; - - /** The load to stream. */ - private OutputStream loadToStream; - - /** The is contact photo. */ - private boolean isContactPhoto; - - /** - * Initializes a new instance. - * - * @param owner - * the owner - */ - protected FileAttachment(Item owner) { - super(owner); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - protected String getXmlElementName() { - return XmlElementNames.FileAttachment; - } - - /** - * {@inheritDoc} - */ - @Override - protected void validate(int attachmentIndex) throws ServiceValidationException { - if ((this.fileName == null || this.fileName.isEmpty()) - && this.content == null && this.contentStream == null) { - throw new ServiceValidationException(String.format( - Strings.FileAttachmentContentIsNotSet, - attachmentIndex)); - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - if (reader.getLocalName().equals(XmlElementNames.IsContactPhoto)) { - this.isContactPhoto = reader.readElementValue(Boolean.class); - } else if (reader.getLocalName().equals(XmlElementNames.Content)) { - if (this.loadToStream != null) { - reader.readBase64ElementValue(this.loadToStream); - } else { - // If there's a file attachment content handler, use it. - // Otherwise - // load the content into a byte array. - // TODO: Should we mark the attachment to indicate that - // content is stored elsewhere? - if (reader.getService().getFileAttachmentContentHandler() != null) { - OutputStream outputStream = reader.getService() - .getFileAttachmentContentHandler() - .getOutputStream(getId()); - if (outputStream != null) { - reader.readBase64ElementValue(outputStream); - } else { - this.content = reader.readBase64ElementValue(); - } - } else { - this.content = reader.readBase64ElementValue(); - } - } - - result = true; - } - } - - return result; - } - - - /** - * For FileAttachment, the only thing need to patch is the AttachmentId. - * - * @param reader The reader. - * @return true if element was read - * */ - @Override - protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception - { - return super.tryReadElementFromXml(reader); + /** + * The file name. + */ + private String fileName; + + /** + * The content stream. + */ + private InputStream contentStream; + + /** + * The content. + */ + private byte[] content; + + /** + * The load to stream. + */ + private OutputStream loadToStream; + + /** + * The is contact photo. + */ + private boolean isContactPhoto; + + /** + * Initializes a new instance. + * + * @param owner the owner + */ + protected FileAttachment(Item owner) { + super(owner); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getXmlElementName() { + return XmlElementNames.FileAttachment; + } + + /** + * {@inheritDoc} + */ + @Override + protected void validate(int attachmentIndex) throws ServiceValidationException { + if ((this.fileName == null || this.fileName.isEmpty()) + && this.content == null && this.contentStream == null) { + throw new ServiceValidationException(String.format( + Strings.FileAttachmentContentIsNotSet, + attachmentIndex)); + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + if (reader.getLocalName().equals(XmlElementNames.IsContactPhoto)) { + this.isContactPhoto = reader.readElementValue(Boolean.class); + } else if (reader.getLocalName().equals(XmlElementNames.Content)) { + if (this.loadToStream != null) { + reader.readBase64ElementValue(this.loadToStream); + } else { + // If there's a file attachment content handler, use it. + // Otherwise + // load the content into a byte array. + // TODO: Should we mark the attachment to indicate that + // content is stored elsewhere? + if (reader.getService().getFileAttachmentContentHandler() != null) { + OutputStream outputStream = reader.getService() + .getFileAttachmentContentHandler() + .getOutputStream(getId()); + if (outputStream != null) { + reader.readBase64ElementValue(outputStream); + } else { + this.content = reader.readBase64ElementValue(); + } + } else { + this.content = reader.readBase64ElementValue(); + } + } + + result = true; + } + } + + return result; + } + + + /** + * For FileAttachment, the only thing need to patch is the AttachmentId. + * + * @param reader The reader. + * @return true if element was read + */ + @Override + protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception { + return super.tryReadElementFromXml(reader); + } + + + /** + * Writes elements and content to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + // ExchangeVersion ev=writer.getService().getRequestedServerVersion(); + if (writer.getService().getRequestedServerVersion().ordinal() > + ExchangeVersion.Exchange2007_SP1 + .ordinal()) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.IsContactPhoto, this.isContactPhoto); + } + + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Content); + + if (!(this.fileName == null || this.fileName.isEmpty())) { + File fileStream = new File(this.fileName); + FileInputStream fis = null; + try { + fis = new FileInputStream(fileStream); + writer.writeBase64ElementValue(fis); + } finally { + if (fis != null) { + fis.close(); + } + } + + } else if (this.contentStream != null) { + writer.writeBase64ElementValue(this.contentStream); + } else if (this.content != null) { + writer.writeBase64ElementValue(this.content); + } else { + EwsUtilities.EwsAssert(false, "FileAttachment.WriteElementsToXml", + "The attachment's content is not set."); + } + + writer.writeEndElement(); + } + + /** + * Loads the content of the file attachment into the specified stream. + * Calling this method results in a call to EWS. + * + * @param stream the stream + * @throws Exception the exception + */ + public void load(OutputStream stream) throws Exception { + this.loadToStream = stream; + + try { + this.load(); + } finally { + this.loadToStream = null; + } + } + + /** + * Loads the content of the file attachment into the specified file. + * Calling this method results in a call to EWS. + * + * @param fileName the file name + * @throws Exception the exception + */ + public void load(String fileName) throws Exception { + File fileStream = new File(fileName); + FileOutputStream fos = new FileOutputStream(fileStream); + this.loadToStream = fos; + try { + this.load(); + } finally { + this.loadToStream.flush(); + this.loadToStream = null; } - - /** - * Writes elements and content to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - // ExchangeVersion ev=writer.getService().getRequestedServerVersion(); - if (writer.getService().getRequestedServerVersion().ordinal() > - ExchangeVersion.Exchange2007_SP1 - .ordinal()) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.IsContactPhoto, this.isContactPhoto); - } - - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Content); - - if (!(this.fileName == null || this.fileName.isEmpty())) { - File fileStream = new File(this.fileName); - FileInputStream fis = null; - try { - fis = new FileInputStream(fileStream); - writer.writeBase64ElementValue(fis); - } finally{ - if(fis != null){ - fis.close(); - } - } - - } else if (this.contentStream != null) { - writer.writeBase64ElementValue(this.contentStream); - } else if (this.content != null) { - writer.writeBase64ElementValue(this.content); - } else { - EwsUtilities.EwsAssert(false, "FileAttachment.WriteElementsToXml", - "The attachment's content is not set."); - } - - writer.writeEndElement(); - } - - /** - * Loads the content of the file attachment into the specified stream. - * Calling this method results in a call to EWS. - * - * @param stream - * the stream - * @throws Exception - * the exception - */ - public void load(OutputStream stream) throws Exception { - this.loadToStream = stream; - - try { - this.load(); - } finally { - this.loadToStream = null; - } - } - - /** - * Loads the content of the file attachment into the specified file. - * Calling this method results in a call to EWS. - * - * @param fileName - * the file name - * @throws Exception - * the exception - */ - public void load(String fileName) throws Exception { - File fileStream = new File(fileName); - FileOutputStream fos = new FileOutputStream(fileStream); - this.loadToStream = fos; - try { - this.load(); - } finally { - this.loadToStream.flush(); - this.loadToStream = null; - } - - this.fileName = fileName; - this.content = null; - this.contentStream = null; - } - - /** - * Gets the name of the file the attachment is linked to. - * - * @return the file name - */ - public String getFileName() { - return this.fileName; - } - - /** - * Sets the file name. - * - * @param fileName - * the new file name - */ - protected void setFileName(String fileName) { - this.throwIfThisIsNotNew(); - - this.fileName = fileName; - this.content = null; - this.contentStream = null; - } - - /** - * Gets the content stream.Gets the name of the file the attachment - * is linked to. - * - * @return The content stream - */ - protected InputStream getContentStream() { - return this.contentStream; - } - - /** - * Sets the content stream. - * - * @param contentStream - * the new content stream - */ - protected void setContentStream(InputStream contentStream) { - this.throwIfThisIsNotNew(); - - this.contentStream = contentStream; - this.content = null; - this.fileName = null; - } - - /** - * Gets the content of the attachment into memory. Content is set only - * when Load() is called. - * - * @return the content - */ - public byte[] getContent() { - return this.content; - } - - /** - * Sets the content. - * - * @param content - * the new content - */ - protected void setContent(byte[] content) { - this.throwIfThisIsNotNew(); - - this.content = content; - this.fileName = null; - this.contentStream = null; - } - - /** - * Gets a value indicating whether this attachment is a contact - * photo. - * - * @return true, if is contact photo - * @throws ServiceVersionException the service version exception - */ - public boolean isContactPhoto() throws ServiceVersionException { - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "IsContactPhoto"); - return this.isContactPhoto; - } - - /** - * Sets the checks if is contact photo. - * - * @param isContactPhoto the new checks if is contact photo - * @throws ServiceVersionException the service version exception - */ - public void setIsContactPhoto(boolean isContactPhoto) - throws ServiceVersionException { - EwsUtilities.validatePropertyVersion(this.getOwner().getService(), - ExchangeVersion.Exchange2010, "IsContactPhoto"); - this.throwIfThisIsNotNew(); - this.isContactPhoto = isContactPhoto; - } + this.fileName = fileName; + this.content = null; + this.contentStream = null; + } + + /** + * Gets the name of the file the attachment is linked to. + * + * @return the file name + */ + public String getFileName() { + return this.fileName; + } + + /** + * Sets the file name. + * + * @param fileName the new file name + */ + protected void setFileName(String fileName) { + this.throwIfThisIsNotNew(); + + this.fileName = fileName; + this.content = null; + this.contentStream = null; + } + + /** + * Gets the content stream.Gets the name of the file the attachment + * is linked to. + * + * @return The content stream + */ + protected InputStream getContentStream() { + return this.contentStream; + } + + /** + * Sets the content stream. + * + * @param contentStream the new content stream + */ + protected void setContentStream(InputStream contentStream) { + this.throwIfThisIsNotNew(); + + this.contentStream = contentStream; + this.content = null; + this.fileName = null; + } + + /** + * Gets the content of the attachment into memory. Content is set only + * when Load() is called. + * + * @return the content + */ + public byte[] getContent() { + return this.content; + } + + /** + * Sets the content. + * + * @param content the new content + */ + protected void setContent(byte[] content) { + this.throwIfThisIsNotNew(); + + this.content = content; + this.fileName = null; + this.contentStream = null; + } + + /** + * Gets a value indicating whether this attachment is a contact + * photo. + * + * @return true, if is contact photo + * @throws ServiceVersionException the service version exception + */ + public boolean isContactPhoto() throws ServiceVersionException { + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "IsContactPhoto"); + return this.isContactPhoto; + } + + /** + * Sets the checks if is contact photo. + * + * @param isContactPhoto the new checks if is contact photo + * @throws ServiceVersionException the service version exception + */ + public void setIsContactPhoto(boolean isContactPhoto) + throws ServiceVersionException { + EwsUtilities.validatePropertyVersion(this.getOwner().getService(), + ExchangeVersion.Exchange2010, "IsContactPhoto"); + this.throwIfThisIsNotNew(); + this.isContactPhoto = isContactPhoto; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index 40094254a..c548191d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -16,160 +16,168 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of final class FindConversationRequest extends SimpleServiceRequestBase { - private ConversationIndexedItemView view; - private SearchFilter.IsEqualTo searchFilter; - private FolderIdWrapper folderId; - - /** - * @throws Exception - */ - protected FindConversationRequest(ExchangeService service) - throws Exception { - super(service); - } - - - /** - * Gets or sets the view controlling the number of conversations returned. - */ - protected ConversationIndexedItemView getIndexedItemView() { - return this.view; - } - - protected void setIndexedItemView(ConversationIndexedItemView value) { - this.view = value; - } - - - - /** - * Gets or sets the search filter. - */ - protected SearchFilter.IsEqualTo getConversationViewFilter() { - - return this.searchFilter; - } - - protected void setConversationViewFilter(SearchFilter.IsEqualTo value) { - this.searchFilter = value; - - } - - /** - * Gets or sets folder id - */ - protected FolderIdWrapper getFolderId() { - return this.folderId; - } - - protected void setFolderId(FolderIdWrapper value) { - this.folderId = value; - } - - - /** - * Validate request. - * @throws Exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - this.view.internalValidate(this); - } - - - /** - * Writes XML attributes. - * @param writer The writer. - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - } - - - /** - * Writes XML attributes. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getIndexedItemView().writeToXml(writer); - - if (this.getConversationViewFilter() != null) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.Restriction); - this.getConversationViewFilter().writeToXml(writer); - writer.writeEndElement(); // Restriction - } - - this.getIndexedItemView().writeOrderByToXml(writer); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.ParentFolderId); - this.getFolderId().writeToXml(writer); - writer.writeEndElement(); - } - - /** - * Parses the response. - * @param reader The reader. - * @return Response object. - * @throws Exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - FindConversationResponse response = new FindConversationResponse(); - response.loadFromXml(reader, - XmlElementNames.FindConversationResponse); - return response; - } - - /** - * Gets the name of the XML element. - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.FindConversation; - } - - /** - * Gets the name of the response XML element. - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.FindConversationResponse; - } - - /** - * Gets the request version. - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } - - /** - * Executes this request. - * @return Service response. - * @throws Exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - */ - protected FindConversationResponse execute() - throws ServiceLocalException, Exception { - FindConversationResponse serviceResponse = - (FindConversationResponse)this.internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + private ConversationIndexedItemView view; + private SearchFilter.IsEqualTo searchFilter; + private FolderIdWrapper folderId; + + /** + * @throws Exception + */ + protected FindConversationRequest(ExchangeService service) + throws Exception { + super(service); + } + + + /** + * Gets or sets the view controlling the number of conversations returned. + */ + protected ConversationIndexedItemView getIndexedItemView() { + return this.view; + } + + protected void setIndexedItemView(ConversationIndexedItemView value) { + this.view = value; + } + + + + /** + * Gets or sets the search filter. + */ + protected SearchFilter.IsEqualTo getConversationViewFilter() { + + return this.searchFilter; + } + + protected void setConversationViewFilter(SearchFilter.IsEqualTo value) { + this.searchFilter = value; + + } + + /** + * Gets or sets folder id + */ + protected FolderIdWrapper getFolderId() { + return this.folderId; + } + + protected void setFolderId(FolderIdWrapper value) { + this.folderId = value; + } + + + /** + * Validate request. + * + * @throws Exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + this.view.internalValidate(this); + } + + + /** + * Writes XML attributes. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + } + + + /** + * Writes XML attributes. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getIndexedItemView().writeToXml(writer); + + if (this.getConversationViewFilter() != null) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.Restriction); + this.getConversationViewFilter().writeToXml(writer); + writer.writeEndElement(); // Restriction + } + + this.getIndexedItemView().writeOrderByToXml(writer); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.ParentFolderId); + this.getFolderId().writeToXml(writer); + writer.writeEndElement(); + } + + /** + * Parses the response. + * + * @param reader The reader. + * @return Response object. + * @throws Exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + FindConversationResponse response = new FindConversationResponse(); + response.loadFromXml(reader, + XmlElementNames.FindConversationResponse); + return response; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.FindConversation; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.FindConversationResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * Executes this request. + * + * @return Service response. + * @throws Exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException + */ + protected FindConversationResponse execute() + throws ServiceLocalException, Exception { + FindConversationResponse serviceResponse = + (FindConversationResponse) this.internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index 2cd14f629..76a32c884 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -17,65 +17,65 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a Conversation search operation. */ - final class FindConversationResponse extends ServiceResponse { - List conversations = new ArrayList(); +final class FindConversationResponse extends ServiceResponse { + List conversations = new ArrayList(); - /** - * Initializes a new instance of the FindConversationResponse class. - */ - protected FindConversationResponse() { - super(); - } + /** + * Initializes a new instance of the FindConversationResponse class. + */ + protected FindConversationResponse() { + super(); + } - /** - * Gets the results of the operation. - */ - protected Collection getConversations() { + /** + * Gets the results of the operation. + */ + protected Collection getConversations() { - return this.conversations; + return this.conversations; - } + } - /** - * Read Conversations from XML. - * @param reader The reader. - * @throws Exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - EwsUtilities.EwsAssert( - conversations != null, - "FindConversationResponse.ReadElementsFromXml", - "conversations is null."); + /** + * Read Conversations from XML. + * + * @param reader The reader. + * @throws Exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + EwsUtilities.EwsAssert( + conversations != null, + "FindConversationResponse.ReadElementsFromXml", + "conversations is null."); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.Conversations); - if (!reader.isEmptyElement()) { - do { - reader.read(); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.Conversations); + if (!reader.isEmptyElement()) { + do { + reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - Conversation item = EwsUtilities. - createEwsObjectFromXmlElementName(Conversation.class, - reader.getService(),reader.getLocalName()); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + Conversation item = EwsUtilities. + createEwsObjectFromXmlElementName(Conversation.class, + reader.getService(), reader.getLocalName()); - if (item == null) { - reader.skipCurrentElement(); - } - else { - item.loadFromXml( - reader, - true, /* clearPropertyBag */ - null, - false /* summaryPropertiesOnly */); + if (item == null) { + reader.skipCurrentElement(); + } else { + item.loadFromXml( + reader, + true, /* clearPropertyBag */ + null, + false /* summaryPropertiesOnly */); - conversations.add(item); - } - } - } - while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.Conversations)); - } - } + conversations.add(item); + } + } + } + while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.Conversations)); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java index f8c8fc18b..47f49477a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java @@ -12,78 +12,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a FindFolder request. - * */ final class FindFolderRequest extends FindRequest { - /** - * Initializes a new instance of the FindFolderRequest class. - * - * @param exchangeService - * The Service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected FindFolderRequest(ExchangeService exchangeService, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(exchangeService, errorHandlingMode); - } + /** + * Initializes a new instance of the FindFolderRequest class. + * + * @param exchangeService The Service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected FindFolderRequest(ExchangeService exchangeService, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(exchangeService, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * The service - * @param responseIndex - * Index of the response. Service response. - * @return the find folder response - */ - @Override - protected FindFolderResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new FindFolderResponse(this.getView().getPropertySetOrDefault()); - } + /** + * Creates the service response. + * + * @param service The service + * @param responseIndex Index of the response. Service response. + * @return the find folder response + */ + @Override + protected FindFolderResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new FindFolderResponse(this.getView().getPropertySetOrDefault()); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.FindFolder; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.FindFolder; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.FindFolderResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.FindFolderResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.FindFolderResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.FindFolderResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index 8255cba80..b1943ca9e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -15,87 +15,88 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class FindFolderResponse extends ServiceResponse { - /** The results. */ - private FindFoldersResults results = new FindFoldersResults(); - - /** The property set. */ - private PropertySet propertySet; - - /** - * Reads response elements from XML. - * - * @param reader - * The reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.RootFolder); - - this.results.setTotalCount(reader.readAttributeValue(Integer.class, - XmlAttributeNames.TotalItemsInView)); - this.results.setMoreAvailable(!reader.readAttributeValue(Boolean.class, - XmlAttributeNames.IncludesLastItemInRange)); - - // Ignore IndexedPagingOffset attribute if MoreAvailable is false. - this.results.setNextPageOffset(results.isMoreAvailable() ? reader - .readNullableAttributeValue(Integer.class, - XmlAttributeNames.IndexedPagingOffset) : null); - - reader.readStartElement(XmlNamespace.Types, XmlElementNames.Folders); - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { - Folder folder = EwsUtilities - .createEwsObjectFromXmlElementName(Folder.class, - reader.getService(), reader.getLocalName()); - - if (folder == null) { - reader.skipCurrentElement(); - } else { - folder.loadFromXml(reader, true, /* clearPropertyBag */ - this.propertySet, true /* summaryPropertiesOnly */); - - this.results.getFolders().add(folder); - } - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.Folders)); - } else { - reader.read(); - } - - reader - .readEndElement(XmlNamespace.Messages, - XmlElementNames.RootFolder); - } - - /** - * Initializes a new instance of the FindFolderResponse class. - * - * @param propertySet - * The property set from, the request. - */ - protected FindFolderResponse(PropertySet propertySet) { - super(); - this.propertySet = propertySet; - - EwsUtilities.EwsAssert(this.propertySet != null, - "FindFolderResponse.ctor", "PropertySet should not be null"); - } - - /** - * Gets the results of the search operation. - * - * @return the results - */ - public FindFoldersResults getResults() { - return this.results; - } + /** + * The results. + */ + private FindFoldersResults results = new FindFoldersResults(); + + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * Reads response elements from XML. + * + * @param reader The reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.RootFolder); + + this.results.setTotalCount(reader.readAttributeValue(Integer.class, + XmlAttributeNames.TotalItemsInView)); + this.results.setMoreAvailable(!reader.readAttributeValue(Boolean.class, + XmlAttributeNames.IncludesLastItemInRange)); + + // Ignore IndexedPagingOffset attribute if MoreAvailable is false. + this.results.setNextPageOffset(results.isMoreAvailable() ? reader + .readNullableAttributeValue(Integer.class, + XmlAttributeNames.IndexedPagingOffset) : null); + + reader.readStartElement(XmlNamespace.Types, XmlElementNames.Folders); + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { + Folder folder = EwsUtilities + .createEwsObjectFromXmlElementName(Folder.class, + reader.getService(), reader.getLocalName()); + + if (folder == null) { + reader.skipCurrentElement(); + } else { + folder.loadFromXml(reader, true, /* clearPropertyBag */ + this.propertySet, true /* summaryPropertiesOnly */); + + this.results.getFolders().add(folder); + } + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.Folders)); + } else { + reader.read(); + } + + reader + .readEndElement(XmlNamespace.Messages, + XmlElementNames.RootFolder); + } + + /** + * Initializes a new instance of the FindFolderResponse class. + * + * @param propertySet The property set from, the request. + */ + protected FindFolderResponse(PropertySet propertySet) { + super(); + this.propertySet = propertySet; + + EwsUtilities.EwsAssert(this.propertySet != null, + "FindFolderResponse.ctor", "PropertySet should not be null"); + } + + /** + * Gets the results of the search operation. + * + * @return the results + */ + public FindFoldersResults getResults() { + return this.results; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java index 2c8bcf199..d6a206bb9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java @@ -18,105 +18,110 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class FindFoldersResults implements Iterable { - /** The total count. */ - private int totalCount; - - /** The next page offset. */ - private Integer nextPageOffset; - - /** The more available. */ - private boolean moreAvailable; - - /** The folders. */ - private ArrayList folders = new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - protected FindFoldersResults() { - - } - - /** - * Gets the total number of folders matching the search criteria available - * in the searched folder. - * - * @return the total count - */ - public int getTotalCount() { - return totalCount; - } - - /** - * Sets the total number of folders. - * - * @param totalCount - * the new total count - */ - protected void setTotalCount(int totalCount) { - this.totalCount = totalCount; - } - - /** - * Gets the offset that should be used with FolderView to retrieve the next - * page of folders in a FindFolders operation. - * - * @return the next page offset - */ - public Integer getNextPageOffset() { - return nextPageOffset; - } - - /** - * Sets the offset that should be used with FolderView to retrieve the next - * page of folders in a FindFolders operation. - * - * @param nextPageOffset - * the new next page offset - */ - protected void setNextPageOffset(Integer nextPageOffset) { - this.nextPageOffset = nextPageOffset; - } - - /** - * Gets a value indicating whether more folders matching the search - * criteria. are available in the searched folder. - * - * @return true, if is more available - */ - public boolean isMoreAvailable() { - return moreAvailable; - } - - /** - * Sets a value indicating whether more folders matching the search - * criteria. are available in the searched folder. - * - * @param moreAvailable - * the new more available - */ - protected void setMoreAvailable(boolean moreAvailable) { - this.moreAvailable = moreAvailable; - } - - /** - * Gets a collection containing the folders that were found by the search - * operation. - * - * @return the folders - */ - public ArrayList getFolders() { - return folders; - } - - /** - * Returns an iterator that iterates through a collection. - * - * @return the iterator - */ - @Override - public Iterator iterator() { - return this.folders.iterator(); - } + /** + * The total count. + */ + private int totalCount; + + /** + * The next page offset. + */ + private Integer nextPageOffset; + + /** + * The more available. + */ + private boolean moreAvailable; + + /** + * The folders. + */ + private ArrayList folders = new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + protected FindFoldersResults() { + + } + + /** + * Gets the total number of folders matching the search criteria available + * in the searched folder. + * + * @return the total count + */ + public int getTotalCount() { + return totalCount; + } + + /** + * Sets the total number of folders. + * + * @param totalCount the new total count + */ + protected void setTotalCount(int totalCount) { + this.totalCount = totalCount; + } + + /** + * Gets the offset that should be used with FolderView to retrieve the next + * page of folders in a FindFolders operation. + * + * @return the next page offset + */ + public Integer getNextPageOffset() { + return nextPageOffset; + } + + /** + * Sets the offset that should be used with FolderView to retrieve the next + * page of folders in a FindFolders operation. + * + * @param nextPageOffset the new next page offset + */ + protected void setNextPageOffset(Integer nextPageOffset) { + this.nextPageOffset = nextPageOffset; + } + + /** + * Gets a value indicating whether more folders matching the search + * criteria. are available in the searched folder. + * + * @return true, if is more available + */ + public boolean isMoreAvailable() { + return moreAvailable; + } + + /** + * Sets a value indicating whether more folders matching the search + * criteria. are available in the searched folder. + * + * @param moreAvailable the new more available + */ + protected void setMoreAvailable(boolean moreAvailable) { + this.moreAvailable = moreAvailable; + } + + /** + * Gets a collection containing the folders that were found by the search + * operation. + * + * @return the folders + */ + public ArrayList getFolders() { + return folders; + } + + /** + * Returns an iterator that iterates through a collection. + * + * @return the iterator + */ + @Override + public Iterator iterator() { + return this.folders.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java index ee9658128..0360ae917 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java @@ -11,107 +11,102 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * * Represents a FindItem request. - * - * @param - * The type of the item. + * + * @param The type of the item. */ final class FindItemRequest extends - FindRequest> { + FindRequest> { - /** The group by. */ - private Grouping groupBy; + /** + * The group by. + */ + private Grouping groupBy; - /** - * Initializes a new instance of the FindItemRequest class. - * - * @param service - * The Service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected FindItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the FindItemRequest class. + * + * @param service The Service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected FindItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * The service - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected FindItemResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new FindItemResponse(this.getGroupBy() != null, this - .getView().getPropertySetOrDefault()); - } + /** + * Creates the service response. + * + * @param service The service + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected FindItemResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new FindItemResponse(this.getGroupBy() != null, this + .getView().getPropertySetOrDefault()); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.FindItem; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.FindItem; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.FindItemResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.FindItemResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.FindItemResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.FindItemResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the group by. - * - * @return the group by - */ - public Grouping getGroupBy() { - return this.groupBy; - } + /** + * Gets the group by. + * + * @return the group by + */ + public Grouping getGroupBy() { + return this.groupBy; + } - /** - * Sets the group by. - * - * @param value - * the new group by - */ - public void setGroupBy(Grouping value) { - this.groupBy = value; + /** + * Sets the group by. + * + * @param value the new group by + */ + public void setGroupBy(Grouping value) { + this.groupBy = value; - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index 14beb54ba..1cb111007 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -10,190 +10,185 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** - * * Represents the response to a item search operation. - * - * @param - * The type of items that the opeartion returned. + * + * @param The type of items that the opeartion returned. */ public final class FindItemResponse - extends ServiceResponse { - - /** The results. */ - private FindItemsResults results; - - /** The is grouped. */ - private boolean isGrouped; - - /** The grouped find results. */ - private GroupedFindItemsResults groupedFindResults; - - /** The property set. */ - private PropertySet propertySet; - - /** - * Initializes a new instance of the FindItemResponse class. - * - * @param isGrouped - * if set to true if grouped. - * @param propertySet - * The property Set - */ - protected FindItemResponse(boolean isGrouped, PropertySet propertySet) { - super(); - this.isGrouped = isGrouped; - this.propertySet = propertySet; - - EwsUtilities.EwsAssert(this.propertySet != null, - "FindItemResponse.ctor", "PropertySet should not be null"); - } - - /** - * Reads response elements from XML. - * - * @param reader - * ,The reader - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.RootFolder); - - int totalItemsInView = reader.readAttributeValue(Integer.class, - XmlAttributeNames.TotalItemsInView); - boolean moreItemsAvailable = !reader.readAttributeValue(Boolean.class, - XmlAttributeNames.IncludesLastItemInRange); - - // Ignore IndexedPagingOffset attribute if moreItemsAvailable is false. - Integer nextPageOffset = moreItemsAvailable ? reader - .readNullableAttributeValue(Integer.class, - XmlAttributeNames.IndexedPagingOffset) : null; - - if (!this.isGrouped) { - this.results = new FindItemsResults(); - this.results.setTotalCount(totalItemsInView); - this.results.setNextPageOffset(nextPageOffset); - this.results.setMoreAvailable(moreItemsAvailable); - internalReadItemsFromXml(reader, this.propertySet, this.results - .getItems()); - } else { - this.groupedFindResults = new GroupedFindItemsResults(); - this.groupedFindResults.setTotalCount(totalItemsInView); - this.groupedFindResults.setNextPageOffset(nextPageOffset); - this.groupedFindResults.setMoreAvailable(moreItemsAvailable); - - reader.readStartElement(XmlNamespace.Types, XmlElementNames.Groups); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.GroupedItems)) { - String groupIndex = reader.readElementValue( - XmlNamespace.Types, XmlElementNames.GroupIndex); - - ArrayList itemList = new ArrayList(); - internalReadItemsFromXml(reader, this.propertySet, - itemList); - - reader.readEndElement(XmlNamespace.Types, - XmlElementNames.GroupedItems); - - this.groupedFindResults.getItemGroups().add( - new ItemGroup(groupIndex, itemList)); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.Groups)); - } else { - reader.read(); - } - } - - reader - .readEndElement(XmlNamespace.Messages, - XmlElementNames.RootFolder); - } - - /** - * Read items from XML. - * - * @param reader - * The reader - * @param propertySet - * The property set - * @param destinationList - * The list in which to add the read items. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws Exception - * the exception - */ - private void internalReadItemsFromXml(EwsServiceXmlReader reader, - PropertySet propertySet, List destinationList) - throws XMLStreamException, ServiceXmlDeserializationException, - Exception { - EwsUtilities.EwsAssert(destinationList != null, - "FindItemResponse.InternalReadItemsFromXml", - "destinationList is null."); - - reader.readStartElement(XmlNamespace.Types, XmlElementNames.Items); - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { - Item item = EwsUtilities.createEwsObjectFromXmlElementName( - Item.class, reader.getService(), reader - .getLocalName()); - - if (item == null) { - reader.skipCurrentElement(); - } else { - item.loadFromXml(reader, true, /* clearPropertyBag */ - propertySet, true /* summaryPropertiesOnly */); - - destinationList.add((TItem) item); - } - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.Items)); - } else { - reader.read(); - } - - } - - /** - * Gets a grouped list of items matching the specified search criteria that - * were found in Exchange. ItemGroups is null if the search operation did - * not specify grouping options. - * - * @return the grouped find results - */ - public GroupedFindItemsResults getGroupedFindResults() { - return groupedFindResults; - } - - /** - * Gets the results of the search operation. - * - * @return the results - */ - public FindItemsResults getResults() { - return results; - } + extends ServiceResponse { + + /** + * The results. + */ + private FindItemsResults results; + + /** + * The is grouped. + */ + private boolean isGrouped; + + /** + * The grouped find results. + */ + private GroupedFindItemsResults groupedFindResults; + + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * Initializes a new instance of the FindItemResponse class. + * + * @param isGrouped if set to true if grouped. + * @param propertySet The property Set + */ + protected FindItemResponse(boolean isGrouped, PropertySet propertySet) { + super(); + this.isGrouped = isGrouped; + this.propertySet = propertySet; + + EwsUtilities.EwsAssert(this.propertySet != null, + "FindItemResponse.ctor", "PropertySet should not be null"); + } + + /** + * Reads response elements from XML. + * + * @param reader ,The reader + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.RootFolder); + + int totalItemsInView = reader.readAttributeValue(Integer.class, + XmlAttributeNames.TotalItemsInView); + boolean moreItemsAvailable = !reader.readAttributeValue(Boolean.class, + XmlAttributeNames.IncludesLastItemInRange); + + // Ignore IndexedPagingOffset attribute if moreItemsAvailable is false. + Integer nextPageOffset = moreItemsAvailable ? reader + .readNullableAttributeValue(Integer.class, + XmlAttributeNames.IndexedPagingOffset) : null; + + if (!this.isGrouped) { + this.results = new FindItemsResults(); + this.results.setTotalCount(totalItemsInView); + this.results.setNextPageOffset(nextPageOffset); + this.results.setMoreAvailable(moreItemsAvailable); + internalReadItemsFromXml(reader, this.propertySet, this.results + .getItems()); + } else { + this.groupedFindResults = new GroupedFindItemsResults(); + this.groupedFindResults.setTotalCount(totalItemsInView); + this.groupedFindResults.setNextPageOffset(nextPageOffset); + this.groupedFindResults.setMoreAvailable(moreItemsAvailable); + + reader.readStartElement(XmlNamespace.Types, XmlElementNames.Groups); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.GroupedItems)) { + String groupIndex = reader.readElementValue( + XmlNamespace.Types, XmlElementNames.GroupIndex); + + ArrayList itemList = new ArrayList(); + internalReadItemsFromXml(reader, this.propertySet, + itemList); + + reader.readEndElement(XmlNamespace.Types, + XmlElementNames.GroupedItems); + + this.groupedFindResults.getItemGroups().add( + new ItemGroup(groupIndex, itemList)); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.Groups)); + } else { + reader.read(); + } + } + + reader + .readEndElement(XmlNamespace.Messages, + XmlElementNames.RootFolder); + } + + /** + * Read items from XML. + * + * @param reader The reader + * @param propertySet The property set + * @param destinationList The list in which to add the read items. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws Exception the exception + */ + private void internalReadItemsFromXml(EwsServiceXmlReader reader, + PropertySet propertySet, List destinationList) + throws XMLStreamException, ServiceXmlDeserializationException, + Exception { + EwsUtilities.EwsAssert(destinationList != null, + "FindItemResponse.InternalReadItemsFromXml", + "destinationList is null."); + + reader.readStartElement(XmlNamespace.Types, XmlElementNames.Items); + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { + Item item = EwsUtilities.createEwsObjectFromXmlElementName( + Item.class, reader.getService(), reader + .getLocalName()); + + if (item == null) { + reader.skipCurrentElement(); + } else { + item.loadFromXml(reader, true, /* clearPropertyBag */ + propertySet, true /* summaryPropertiesOnly */); + + destinationList.add((TItem) item); + } + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.Items)); + } else { + reader.read(); + } + + } + + /** + * Gets a grouped list of items matching the specified search criteria that + * were found in Exchange. ItemGroups is null if the search operation did + * not specify grouping options. + * + * @return the grouped find results + */ + public GroupedFindItemsResults getGroupedFindResults() { + return groupedFindResults; + } + + /** + * Gets the results of the search operation. + * + * @return the results + */ + public FindItemsResults getResults() { + return results; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index 18cac917b..d8d08f805 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -14,114 +14,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Iterator; /** - * * Represents the results of an item search operation. - * - * @param - * The type of item returned by the search operation. + * + * @param The type of item returned by the search operation. */ public final class FindItemsResults implements - Iterable { - - /** The total count. */ - private int totalCount; - - /** The next page offset. */ - private Integer nextPageOffset; - - /** The more available. */ - private boolean moreAvailable; - - /** The items. */ - private ArrayList items = new ArrayList(); - - /** - * Initializes a new instance of the FindItemsResults class. - */ - protected FindItemsResults() { - } - - /** - * Gets the total number of items matching the search criteria available in - * the searched folder. - * - * @return the total count - */ - public int getTotalCount() { - return this.totalCount; - } - - /** - * Sets the total number of items matching the search criteria available in - * the searched folder. - * - * @param totalCount - * the new total count - */ - protected void setTotalCount(int totalCount) { - this.totalCount = totalCount; - } - - /** - * Gets the offset that should be used with ItemView to retrieve the next - * page of items in a FindItems operation. - * - * @return the next page offset - */ - public Integer getNextPageOffset() { - return nextPageOffset; - } - - /** - * Sets the offset that should be used with ItemView to retrieve the next - * page of items in a FindItems operation. - * - * @param nextPageOffset - * the new next page offset - */ - protected void setNextPageOffset(Integer nextPageOffset) { - this.nextPageOffset = nextPageOffset; - } - - /** - * Gets a value indicating whether more items matching the search criteria - * are available in the searched folder. - * - * @return true, if is more available - */ - public boolean isMoreAvailable() { - return moreAvailable; - } - - /** - * Sets a value indicating whether more items matching the search criteria - * are available in the searched folder. - * - * @param moreAvailable - * the new more available - */ - protected void setMoreAvailable(boolean moreAvailable) { - this.moreAvailable = moreAvailable; - } - - /** - * Gets a collection containing the items that were found by the search - * operation. - * - * @return the items - */ - public ArrayList getItems() { - return this.items; - } - - /** - * Returns an iterator that iterates through the collection. - * - * @return the iterator - */ - @Override - public Iterator iterator() { - return (Iterator)this.items.iterator(); - } + Iterable { + + /** + * The total count. + */ + private int totalCount; + + /** + * The next page offset. + */ + private Integer nextPageOffset; + + /** + * The more available. + */ + private boolean moreAvailable; + + /** + * The items. + */ + private ArrayList items = new ArrayList(); + + /** + * Initializes a new instance of the FindItemsResults class. + */ + protected FindItemsResults() { + } + + /** + * Gets the total number of items matching the search criteria available in + * the searched folder. + * + * @return the total count + */ + public int getTotalCount() { + return this.totalCount; + } + + /** + * Sets the total number of items matching the search criteria available in + * the searched folder. + * + * @param totalCount the new total count + */ + protected void setTotalCount(int totalCount) { + this.totalCount = totalCount; + } + + /** + * Gets the offset that should be used with ItemView to retrieve the next + * page of items in a FindItems operation. + * + * @return the next page offset + */ + public Integer getNextPageOffset() { + return nextPageOffset; + } + + /** + * Sets the offset that should be used with ItemView to retrieve the next + * page of items in a FindItems operation. + * + * @param nextPageOffset the new next page offset + */ + protected void setNextPageOffset(Integer nextPageOffset) { + this.nextPageOffset = nextPageOffset; + } + + /** + * Gets a value indicating whether more items matching the search criteria + * are available in the searched folder. + * + * @return true, if is more available + */ + public boolean isMoreAvailable() { + return moreAvailable; + } + + /** + * Sets a value indicating whether more items matching the search criteria + * are available in the searched folder. + * + * @param moreAvailable the new more available + */ + protected void setMoreAvailable(boolean moreAvailable) { + this.moreAvailable = moreAvailable; + } + + /** + * Gets a collection containing the items that were found by the search + * operation. + * + * @return the items + */ + public ArrayList getItems() { + return this.items; + } + + /** + * Returns an iterator that iterates through the collection. + * + * @return the iterator + */ + @Override + public Iterator iterator() { + return (Iterator) this.items.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java index e07dc80e7..115ab9df3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java @@ -12,211 +12,207 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Find request. - * - * @param - * The type of the response. + * + * @param The type of the response. */ abstract class FindRequest extends - MultiResponseServiceRequest { - - /** The parent folder ids. */ - private FolderIdWrapperList parentFolderIds = new FolderIdWrapperList(); - - /** The search filter. */ - private SearchFilter searchFilter; - - /** The query string. */ - private String queryString; - - /** The view. */ - private ViewBase view; - - /** - * Initializes a new instance of the FindRequest class. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected FindRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - - this.getView().internalValidate(this); - - // query string parameter is only valid for Exchange2010 or higher - // - if (!(this.queryString == null || this.queryString.isEmpty()) - && this.getService().getRequestedServerVersion().ordinal() < - ExchangeVersion.Exchange2010.ordinal()) { - throw new ServiceVersionException(String.format( - Strings.ParameterIncompatibleWithRequestVersion, - "queryString", ExchangeVersion.Exchange2010)); - } - - if ((!(this.queryString == null || this.queryString.isEmpty())) - && this.searchFilter != null) { - throw new ServiceLocalException( - Strings.BothSearchFilterAndQueryStringCannotBeSpecified); - } - } - - /** - * Gets the expected response message count. - * - * @return XML element name. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getParentFolderIds().getCount(); - } - - /** - * Gets the group by clause. - * - * @return The group by clause, null if the request does not have or support - * grouping. - */ - protected Grouping getGroupBy() { - return null; - } - - /** - * Writes XML attributes. - * - * @param writer - * The Writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - - this.getView().writeAttributesToXml(writer); - } - - /** - * Writes XML elements. - * - * @param writer - * The Writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getView().writeToXml(writer, this.getGroupBy()); - - if (this.getSearchFilter() != null) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.Restriction); - this.getSearchFilter().writeToXml(writer); - writer.writeEndElement(); // Restriction - } - - this.getView().writeOrderByToXml(writer); - - try { - this.getParentFolderIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ParentFolderIds); - } catch (Exception e) { - e.printStackTrace(); - } - - if (!(this.queryString == null || this.queryString.isEmpty())) { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.QueryString, this.queryString); - } - } - - /** - * Gets the parent folder ids. - * - * @return the parent folder ids - */ - public FolderIdWrapperList getParentFolderIds() { - return this.parentFolderIds; - } - - /** - * Gets the search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection. If SearchFilter is null, no search - * filters are applied. - * - * @return the search filter - */ - public SearchFilter getSearchFilter() { - return searchFilter; - } - - /** - * Sets the search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection. If SearchFilter is null, no search - * filters are applied. - * - * @param searchFilter - * the new search filter - */ - public void setSearchFilter(SearchFilter searchFilter) { - this.searchFilter = searchFilter; - } - - /** - * Gets the query string for indexed search. - * - * @return the query string - */ - public String getQueryString() { - return queryString; - } - - /** - * Sets the query string for indexed search. - * - * @param queryString - * the new query string - */ - public void setQueryString(String queryString) { - this.queryString = queryString; - } - - /** - * Gets the view controlling the number of items or folders returned. - * - * @return the view - */ - public ViewBase getView() { - return view; - } - - /** - * Sets the view controlling the number of items or folders returned. - * - * @param view - * the new view - */ - public void setView(ViewBase view) { - this.view = view; - } + MultiResponseServiceRequest { + + /** + * The parent folder ids. + */ + private FolderIdWrapperList parentFolderIds = new FolderIdWrapperList(); + + /** + * The search filter. + */ + private SearchFilter searchFilter; + + /** + * The query string. + */ + private String queryString; + + /** + * The view. + */ + private ViewBase view; + + /** + * Initializes a new instance of the FindRequest class. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected FindRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + + this.getView().internalValidate(this); + + // query string parameter is only valid for Exchange2010 or higher + // + if (!(this.queryString == null || this.queryString.isEmpty()) + && this.getService().getRequestedServerVersion().ordinal() < + ExchangeVersion.Exchange2010.ordinal()) { + throw new ServiceVersionException(String.format( + Strings.ParameterIncompatibleWithRequestVersion, + "queryString", ExchangeVersion.Exchange2010)); + } + + if ((!(this.queryString == null || this.queryString.isEmpty())) + && this.searchFilter != null) { + throw new ServiceLocalException( + Strings.BothSearchFilterAndQueryStringCannotBeSpecified); + } + } + + /** + * Gets the expected response message count. + * + * @return XML element name. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getParentFolderIds().getCount(); + } + + /** + * Gets the group by clause. + * + * @return The group by clause, null if the request does not have or support + * grouping. + */ + protected Grouping getGroupBy() { + return null; + } + + /** + * Writes XML attributes. + * + * @param writer The Writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + + this.getView().writeAttributesToXml(writer); + } + + /** + * Writes XML elements. + * + * @param writer The Writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getView().writeToXml(writer, this.getGroupBy()); + + if (this.getSearchFilter() != null) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.Restriction); + this.getSearchFilter().writeToXml(writer); + writer.writeEndElement(); // Restriction + } + + this.getView().writeOrderByToXml(writer); + + try { + this.getParentFolderIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ParentFolderIds); + } catch (Exception e) { + e.printStackTrace(); + } + + if (!(this.queryString == null || this.queryString.isEmpty())) { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.QueryString, this.queryString); + } + } + + /** + * Gets the parent folder ids. + * + * @return the parent folder ids + */ + public FolderIdWrapperList getParentFolderIds() { + return this.parentFolderIds; + } + + /** + * Gets the search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection. If SearchFilter is null, no search + * filters are applied. + * + * @return the search filter + */ + public SearchFilter getSearchFilter() { + return searchFilter; + } + + /** + * Sets the search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection. If SearchFilter is null, no search + * filters are applied. + * + * @param searchFilter the new search filter + */ + public void setSearchFilter(SearchFilter searchFilter) { + this.searchFilter = searchFilter; + } + + /** + * Gets the query string for indexed search. + * + * @return the query string + */ + public String getQueryString() { + return queryString; + } + + /** + * Sets the query string for indexed search. + * + * @param queryString the new query string + */ + public void setQueryString(String queryString) { + this.queryString = queryString; + } + + /** + * Gets the view controlling the number of items or folders returned. + * + * @return the view + */ + public ViewBase getView() { + return view; + } + + /** + * Sets the view controlling the number of items or folders returned. + * + * @param view the new view + */ + public void setView(ViewBase view) { + this.view = view; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java index 0e48f9a37..f121aa474 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java @@ -14,60 +14,60 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines the follow-up actions that may be stamped on a message. */ public enum FlaggedForAction { - - /** - * The message is flagged with any action. - */ - Any, - /** - * The recipient is requested to call the sender. - */ - Call, + /** + * The message is flagged with any action. + */ + Any, - /** - * The recipient is requested not to forward the message. - */ - DoNotForward, + /** + * The recipient is requested to call the sender. + */ + Call, - /** - * The recipient is requested to follow up on the message. - */ - FollowUp, + /** + * The recipient is requested not to forward the message. + */ + DoNotForward, - /** - * The recipient received the message for information. - */ - FYI, + /** + * The recipient is requested to follow up on the message. + */ + FollowUp, - /** - * The recipient is requested to forward the message. - */ - Forward, + /** + * The recipient received the message for information. + */ + FYI, - /** - * The recipient is informed that a response to the message is not required. - */ - NoResponseNecessary, + /** + * The recipient is requested to forward the message. + */ + Forward, - /** - * The recipient is requested to read the message. - */ - Read, + /** + * The recipient is informed that a response to the message is not required. + */ + NoResponseNecessary, - /** - * The recipient is requested to reply to the sender of the message. - */ - Reply, + /** + * The recipient is requested to read the message. + */ + Read, - /** - * The recipient is requested to reply to everyone the message was sent to. - */ - ReplyToAll, + /** + * The recipient is requested to reply to the sender of the message. + */ + Reply, - /** - * The recipient is requested to review the message. - */ - Review + /** + * The recipient is requested to reply to everyone the message was sent to. + */ + ReplyToAll, + + /** + * The recipient is requested to review the message. + */ + Review } diff --git a/src/main/java/microsoft/exchange/webservices/data/Flags.java b/src/main/java/microsoft/exchange/webservices/data/Flags.java index 6c16126bb..7dd565b32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Flags.java +++ b/src/main/java/microsoft/exchange/webservices/data/Flags.java @@ -19,7 +19,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Interface Flags. */ @Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@interface Flags { +@Retention(RetentionPolicy.RUNTIME) @interface Flags { -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index 4f64304ba..bba6d9255 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -15,827 +15,728 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a generic folder. - * - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.Folder) public class Folder extends ServiceObject { - /** - * Initializes an unsaved local instance of . - * - * @param service - * EWS service to which this object belongs. - * @throws Exception - * the exception - */ - public Folder(ExchangeService service) throws Exception { - super(service); - } - - /** - * Binds to an existing folder, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * The service to use to bind to the folder. - * @param id - * The Id of the folder to bind to. - * @param propertySet - * The set of properties to load. - * @return A Folder instance representing the folder corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Folder bind(ExchangeService service, FolderId id, - PropertySet propertySet) throws Exception { - return service.bindToFolder(Folder.class, id, propertySet); - } - - /** - * Binds to an existing folder, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * , The service to use to bind to the folder. - * @param id - * , The Id of the folder to bind to. - * @return A Folder instance representing the folder corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Folder bind(ExchangeService service, FolderId id) - throws Exception { - return Folder.bind(service, id, PropertySet.getFirstClassProperties()); - } - - /** - * Binds to an existing folder, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * The service to use to bind to the folder. - * @param name - * The name of the folder to bind to. - * @param propertySet - * The set of properties to load. - * @return A Folder instance representing the folder corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Folder bind(ExchangeService service, - WellKnownFolderName name, PropertySet propertySet) - throws Exception { - return Folder.bind(service, new FolderId(name), propertySet); - } - - /** - * Binds to an existing folder, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * The service to use to bind to the folder. - * @param name - * The name of the folder to bind to. - * @return the folder - * @throws Exception - * the exception - */ - public static Folder bind(ExchangeService service, WellKnownFolderName name) - throws Exception { - return Folder.bind(service, new FolderId(name), PropertySet - .getFirstClassProperties()); - } - - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - // Validate folder permissions - try { - if (this.getPropertyBag().contains(FolderSchema.Permissions)) { - this.getPermissions().validate(); - } - } catch (ServiceLocalException e) { - e.printStackTrace(); - } - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return FolderSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the name of the change XML element. - * - * @return Xml element name - */ - @Override - protected String getChangeXmlElementName() { - return XmlElementNames.FolderChange; - } - - /** - * Gets the name of the set field XML element. - * - * @return Xml element name - */ - @Override - protected String getSetFieldXmlElementName() { - return XmlElementNames.SetFolderField; - } - - /** - * Gets the name of the delete field XML element. - * - * @return Xml element name - */ - @Override - protected String getDeleteFieldXmlElementName() { - return XmlElementNames.DeleteFolderField; - } - - /** - * Loads the specified set of properties on the object. - * - * @param propertySet - * The properties to load. - * @throws Exception - * the exception - */ - @Override - protected void internalLoad(PropertySet propertySet) throws Exception { - this.throwIfThisIsNew(); - - this.getService().loadPropertiesForFolder(this, propertySet); - } - - /** - * Deletes the object. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * Indicates whether meeting cancellation messages should be - * sent. - * @param affectedTaskOccurrences - * Indicate which occurrence of a recurring task should be - * deleted. - * @throws Exception - * the exception - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { - try { - this.throwIfThisIsNew(); - } catch (InvalidOperationException e) { - e.printStackTrace(); - } - - this.getService().deleteFolder(this.getId(), deleteMode); - } - - /** - * Deletes the folder. Calling this method results in a call to EWS. - * - * @param deleteMode - * the delete mode - * @throws Exception - * the exception - */ - public void delete(DeleteMode deleteMode) throws Exception { - this.internalDelete(deleteMode, null, null); - } - - /** - * Empties the folder. Calling this method results in a call to EWS. - * - * @param deletemode - * the delete mode - * @param deleteSubFolders - * Indicates whether sub-folders should also be deleted. - * @throws Exception - */ - public void empty(DeleteMode deletemode,boolean deleteSubFolders) - throws Exception { - this.throwIfThisIsNew(); - this.getService().emptyFolder(this.getId(), - deletemode, deleteSubFolders); - } - - /** - * Saves this folder in a specific folder. Calling this method results in a - * call to EWS. - * - * @param parentFolderId - * The Id of the folder in which to save this folder. - * @throws Exception - * the exception - */ - public void save(FolderId parentFolderId) throws Exception { - this.throwIfThisIsNotNew(); - - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - - if (this.isDirty()) { - this.getService().createFolder(this, parentFolderId); - } - } - - /** - * Saves this folder in a specific folder. Calling this method results in a - * call to EWS. - * - * @param parentFolderName - * The name of the folder in which to save this folder. - * @throws Exception - * the exception - */ - public void save(WellKnownFolderName parentFolderName) throws Exception { - this.save(new FolderId(parentFolderName)); - } - - /** - * Applies the local changes that have been made to this folder. Calling - * this method results in a call to EWS. - * - * @throws Exception - * the exception - */ - public void update() throws Exception { - if (this.isDirty()) { - if (this.getPropertyBag().getIsUpdateCallNecessary()) { - this.getService().updateFolder(this); - } - } - } - - /** - * Copies this folder into a specific folder. Calling this method results in - * a call to EWS. - * - * @param destinationFolderId - * The Id of the folder in which to copy this folder. - * @return A Folder representing the copy of this folder. - * @throws Exception - * the exception - */ - public Folder copy(FolderId destinationFolderId) throws Exception { - this.throwIfThisIsNew(); - - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - - return this.getService().copyFolder(this.getId(), destinationFolderId); - } - - /** - * Copies this folder into the specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderName - * The name of the folder in which to copy this folder. - * @return A Folder representing the copy of this folder. - * @throws Exception - * the exception - */ - public Folder copy(WellKnownFolderName destinationFolderName) - throws Exception { - return this.copy(new FolderId(destinationFolderName)); - } - - /** - * Moves this folder to a specific folder. Calling this method results in a - * call to EWS. - * - * @param destinationFolderId - * The Id of the folder in which to move this folder. - * @return A new folder representing this folder in its new location. After - * Move completes, this folder does not exist anymore. - * @throws Exception - * the exception - */ - public Folder move(FolderId destinationFolderId) throws Exception { - this.throwIfThisIsNew(); - - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - - return this.getService().moveFolder(this.getId(), destinationFolderId); - } - - /** - * Moves this folder to a specific folder. Calling this method results in a - * call to EWS. - * - * @param destinationFolderName - * The name of the folder in which to move this folder. - * @return A new folder representing this folder in its new location. After - * Move completes, this folder does not exist anymore. - * @throws Exception - * the exception - */ - public Folder move(WellKnownFolderName destinationFolderName) - throws Exception { - return this.move(new FolderId(destinationFolderName)); - } - - /** - * Find items. - * - * @param - * The type of the item. - * @param queryString - * query string to be used for indexed search - * @param view - * The view controlling the number of items returned. - * @param groupBy - * The group by. - * @return FindItems response collection. - * @throws Exception - * the exception - */ - ServiceResponseCollection> - internalFindItems(String queryString, - ViewBase view, Grouping groupBy) - throws Exception { - ArrayList folderIdArry = new ArrayList(); - folderIdArry.add(this.getId()); - - this.throwIfThisIsNew(); - return this.getService().findItems(folderIdArry, - null, /* searchFilter */ - queryString, view, groupBy, ServiceErrorHandling.ThrowOnError); - - } - - /** - * Find items. - * - * @param - * The type of the item. - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of items returned. - * @param groupBy - * The group by. - * @return FindItems response collection. - * @throws Exception - * the exception - */ - ServiceResponseCollection> - internalFindItems(SearchFilter searchFilter, - ViewBase view, Grouping groupBy) - throws Exception { - ArrayList folderIdArry = new ArrayList(); - folderIdArry.add(this.getId()); - this.throwIfThisIsNew(); - - return this.getService().findItems(folderIdArry, searchFilter, - null, /* queryString */ - view, groupBy, ServiceErrorHandling.ThrowOnError); - } - - /** - * Find items. - * - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of items returned. - * @return FindItems results collection. - * @throws Exception - * the exception - */ - public FindItemsResults findItems(SearchFilter searchFilter, - ItemView view) throws Exception { - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - - ServiceResponseCollection> responses = this - .internalFindItems(searchFilter, view, null /* groupBy */); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Find items. - * - * @param queryString - * query string to be used for indexed search - * @param view - * The view controlling the number of items returned. - * @return FindItems results collection. - * @throws Exception - * the exception - */ - public FindItemsResults findItems(String queryString, ItemView view) - throws Exception { - EwsUtilities.validateParamAllowNull(queryString, "queryString"); - - ServiceResponseCollection> responses = this - .internalFindItems(queryString, view, null /* groupBy */); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Find items. - * - * @param view - * The view controlling the number of items returned. - * @return FindItems results collection. - * @throws Exception - * the exception - */ - public FindItemsResults findItems(ItemView view) throws Exception { - ServiceResponseCollection> responses = this - .internalFindItems((SearchFilter)null, view, - null /* groupBy */); - - return responses.getResponseAtIndex(0).getResults(); - } - - /** - * Find items. - * - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of items returned. - * @param groupBy - * The group by. - * @return A collection of grouped items representing the contents of this - * folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(SearchFilter searchFilter, - ItemView view, Grouping groupBy) throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - - ServiceResponseCollection> responses = this - .internalFindItems(searchFilter, view, groupBy); - - return responses.getResponseAtIndex(0).getGroupedFindResults(); - } - - /** - * Find items. - * - * @param queryString - * query string to be used for indexed search - * @param view - * The view controlling the number of items returned. - * @param groupBy - * The group by. - * @return A collection of grouped items representing the contents of this - * folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(String queryString, - ItemView view, Grouping groupBy) throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - - ServiceResponseCollection> responses = this - .internalFindItems(queryString, view, groupBy); - - return responses.getResponseAtIndex(0).getGroupedFindResults(); - } - - /** - * Obtains a list of folders by searching the sub-folders of this folder. - * Calling this method results in a call to EWS. - * - * @param view - * The view controlling the number of folders returned. - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(FolderView view) throws Exception { - this.throwIfThisIsNew(); - - return this.getService().findFolders(this.getId(), view); - } - - /** - * Obtains a list of folders by searching the sub-folders of this folder. - * Calling this method results in a call to EWS. - * - * @param searchFilter - * The search filter. Available search filter classes include - * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - * @param view - * The view controlling the number of folders returned. - * @return An object representing the results of the search operation. - * @throws Exception - * the exception - */ - public FindFoldersResults findFolders(SearchFilter searchFilter, - FolderView view) throws Exception { - this.throwIfThisIsNew(); - - return this.getService().findFolders(this.getId(), searchFilter, view); - } - - /** - * Obtains a grouped list of items by searching the contents of this folder. - * Calling this method results in a call to EWS. - * - * @param view - * The view controlling the number of folders returned. - * @param groupBy - * The grouping criteria. - * @return A collection of grouped items representing the contents of this - * folder. - * @throws Exception - * the exception - */ - public GroupedFindItemsResults findItems(ItemView view, - Grouping groupBy) throws Exception { - EwsUtilities.validateParam(groupBy, "groupBy"); - - return this.findItems((SearchFilter)null, view, groupBy); - } - - /** - * Get the property definition for the Id property. - * - * @return the id property definition - */ - @Override - protected PropertyDefinition getIdPropertyDefinition() { - return FolderSchema.Id; - } - - /** - * Sets the extended property. - * - * @param extendedPropertyDefinition - * The extended property definition. - * @param value - * The value. - * @throws Exception - * the exception - */ - public void setExtendedProperty( - ExtendedPropertyDefinition extendedPropertyDefinition, Object value) - throws Exception { - this.getExtendedProperties().setExtendedProperty( - extendedPropertyDefinition, value); - } - - /** - * Removes an extended property. - * - * @param extendedPropertyDefinition - * The extended property definition. - * @return True if property was removed. - * @throws Exception - * the exception - */ - public boolean removeExtendedProperty( - ExtendedPropertyDefinition extendedPropertyDefinition) - throws Exception { - return this.getExtendedProperties().removeExtendedProperty( - extendedPropertyDefinition); - } - - /** - * True if property was removed. - * - * @return Extended properties collection. - * @throws Exception - * the exception - */ - @Override - protected ExtendedPropertyCollection getExtendedProperties() - throws Exception { - return this.getExtendedPropertiesForService(); - } - - /** - * Gets the Id of the folder. - * - * @return the id - */ - public FolderId getId() { - try { - return (FolderId)(this.getPropertyBag() - .getObjectFromPropertyDefinition(this - .getIdPropertyDefinition())); - } catch (ServiceLocalException e) { - e.printStackTrace(); - return null; - } - } - - /** - * Gets the Id of this folder's parent folder. - * - * @return the parent folder id - * @throws ServiceLocalException - * the service local exception - */ - public FolderId getParentFolderId() throws ServiceLocalException { - return (FolderId) this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.ParentFolderId); - } - - /** - * Gets the number of child folders this folder has. - * - * @return the child folder count - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getChildFolderCount() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.ChildFolderCount) - .toString())); - } - - /** - * Gets the display name of the folder. - * - * @return the display name - * @throws ServiceLocalException - * the service local exception - */ - public String getDisplayName() throws ServiceLocalException { - return (String) (this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.DisplayName)); - - } - - /** - * Sets the display name of the folder. - * - * @param value - * Name of the folder - * @throws Exception - * the exception - */ - public void setDisplayName(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - FolderSchema.DisplayName, value); - } - - /** - * Gets the custom class name of this folder. - * - * @return the folder class - * @throws ServiceLocalException - * the service local exception - */ - public String getFolderClass() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - FolderSchema.FolderClass); - } - - /** - * Sets the custom class name of this folder. - * - * @param value - * name of the folder - * @throws Exception - * the exception - */ - public void setFolderClass(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - FolderSchema.FolderClass, value); - } - - /** - * Gets the total number of items contained in the folder. - * - * @return the total count - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getTotalCount() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.TotalCount) - .toString())); - } - - /** - * Gets a list of extended properties associated with the folder. - * - * @return the extended properties for service - * @throws ServiceLocalException - * the service local exception - */ - // changed the name of method as another method with same name exists - public ExtendedPropertyCollection getExtendedPropertiesForService() - throws ServiceLocalException { - return (ExtendedPropertyCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ServiceObjectSchema.extendedProperties); - } - - /** - * Gets the Email Lifecycle Management (ELC) information associated with the - * folder. - * - * @return the managed folder information - * @throws ServiceLocalException - * the service local exception - */ - public ManagedFolderInformation getManagedFolderInformation() - throws ServiceLocalException { - return (ManagedFolderInformation) this.getPropertyBag() - .getObjectFromPropertyDefinition( - FolderSchema.ManagedFolderInformation); - } - - /** - * Gets a value indicating the effective rights the current authenticated - * user has on the folder. - * - * @return the effective rights - * @throws ServiceLocalException - * the service local exception - */ - @SuppressWarnings("unchecked") - public EnumSet getEffectiveRights() throws ServiceLocalException { - return (EnumSet) this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.EffectiveRights); - } - - /** - * Gets a list of permissions for the folder. - * - * @return the permissions - * @throws ServiceLocalException - * the service local exception - */ - public FolderPermissionCollection getPermissions() - throws ServiceLocalException { - return (FolderPermissionCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.Permissions); - } - - /** - * Gets the number of unread items in the folder. - * - * @return the unread count - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getUnreadCount() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition(FolderSchema.UnreadCount) - .toString())); - } + /** + * Initializes an unsaved local instance of . + * + * @param service EWS service to which this object belongs. + * @throws Exception the exception + */ + public Folder(ExchangeService service) throws Exception { + super(service); + } + + /** + * Binds to an existing folder, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service The service to use to bind to the folder. + * @param id The Id of the folder to bind to. + * @param propertySet The set of properties to load. + * @return A Folder instance representing the folder corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Folder bind(ExchangeService service, FolderId id, + PropertySet propertySet) throws Exception { + return service.bindToFolder(Folder.class, id, propertySet); + } + + /** + * Binds to an existing folder, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service , The service to use to bind to the folder. + * @param id , The Id of the folder to bind to. + * @return A Folder instance representing the folder corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Folder bind(ExchangeService service, FolderId id) + throws Exception { + return Folder.bind(service, id, PropertySet.getFirstClassProperties()); + } + + /** + * Binds to an existing folder, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service The service to use to bind to the folder. + * @param name The name of the folder to bind to. + * @param propertySet The set of properties to load. + * @return A Folder instance representing the folder corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Folder bind(ExchangeService service, + WellKnownFolderName name, PropertySet propertySet) + throws Exception { + return Folder.bind(service, new FolderId(name), propertySet); + } + + /** + * Binds to an existing folder, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service The service to use to bind to the folder. + * @param name The name of the folder to bind to. + * @return the folder + * @throws Exception the exception + */ + public static Folder bind(ExchangeService service, WellKnownFolderName name) + throws Exception { + return Folder.bind(service, new FolderId(name), PropertySet + .getFirstClassProperties()); + } + + /** + * Validates this instance. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + // Validate folder permissions + try { + if (this.getPropertyBag().contains(FolderSchema.Permissions)) { + this.getPermissions().validate(); + } + } catch (ServiceLocalException e) { + e.printStackTrace(); + } + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return FolderSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the name of the change XML element. + * + * @return Xml element name + */ + @Override + protected String getChangeXmlElementName() { + return XmlElementNames.FolderChange; + } + + /** + * Gets the name of the set field XML element. + * + * @return Xml element name + */ + @Override + protected String getSetFieldXmlElementName() { + return XmlElementNames.SetFolderField; + } + + /** + * Gets the name of the delete field XML element. + * + * @return Xml element name + */ + @Override + protected String getDeleteFieldXmlElementName() { + return XmlElementNames.DeleteFolderField; + } + + /** + * Loads the specified set of properties on the object. + * + * @param propertySet The properties to load. + * @throws Exception the exception + */ + @Override + protected void internalLoad(PropertySet propertySet) throws Exception { + this.throwIfThisIsNew(); + + this.getService().loadPropertiesForFolder(this, propertySet); + } + + /** + * Deletes the object. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode Indicates whether meeting cancellation messages should be + * sent. + * @param affectedTaskOccurrences Indicate which occurrence of a recurring task should be + * deleted. + * @throws Exception the exception + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) throws Exception { + try { + this.throwIfThisIsNew(); + } catch (InvalidOperationException e) { + e.printStackTrace(); + } + + this.getService().deleteFolder(this.getId(), deleteMode); + } + + /** + * Deletes the folder. Calling this method results in a call to EWS. + * + * @param deleteMode the delete mode + * @throws Exception the exception + */ + public void delete(DeleteMode deleteMode) throws Exception { + this.internalDelete(deleteMode, null, null); + } + + /** + * Empties the folder. Calling this method results in a call to EWS. + * + * @param deletemode the delete mode + * @param deleteSubFolders Indicates whether sub-folders should also be deleted. + * @throws Exception + */ + public void empty(DeleteMode deletemode, boolean deleteSubFolders) + throws Exception { + this.throwIfThisIsNew(); + this.getService().emptyFolder(this.getId(), + deletemode, deleteSubFolders); + } + + /** + * Saves this folder in a specific folder. Calling this method results in a + * call to EWS. + * + * @param parentFolderId The Id of the folder in which to save this folder. + * @throws Exception the exception + */ + public void save(FolderId parentFolderId) throws Exception { + this.throwIfThisIsNotNew(); + + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + + if (this.isDirty()) { + this.getService().createFolder(this, parentFolderId); + } + } + + /** + * Saves this folder in a specific folder. Calling this method results in a + * call to EWS. + * + * @param parentFolderName The name of the folder in which to save this folder. + * @throws Exception the exception + */ + public void save(WellKnownFolderName parentFolderName) throws Exception { + this.save(new FolderId(parentFolderName)); + } + + /** + * Applies the local changes that have been made to this folder. Calling + * this method results in a call to EWS. + * + * @throws Exception the exception + */ + public void update() throws Exception { + if (this.isDirty()) { + if (this.getPropertyBag().getIsUpdateCallNecessary()) { + this.getService().updateFolder(this); + } + } + } + + /** + * Copies this folder into a specific folder. Calling this method results in + * a call to EWS. + * + * @param destinationFolderId The Id of the folder in which to copy this folder. + * @return A Folder representing the copy of this folder. + * @throws Exception the exception + */ + public Folder copy(FolderId destinationFolderId) throws Exception { + this.throwIfThisIsNew(); + + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + + return this.getService().copyFolder(this.getId(), destinationFolderId); + } + + /** + * Copies this folder into the specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderName The name of the folder in which to copy this folder. + * @return A Folder representing the copy of this folder. + * @throws Exception the exception + */ + public Folder copy(WellKnownFolderName destinationFolderName) + throws Exception { + return this.copy(new FolderId(destinationFolderName)); + } + + /** + * Moves this folder to a specific folder. Calling this method results in a + * call to EWS. + * + * @param destinationFolderId The Id of the folder in which to move this folder. + * @return A new folder representing this folder in its new location. After + * Move completes, this folder does not exist anymore. + * @throws Exception the exception + */ + public Folder move(FolderId destinationFolderId) throws Exception { + this.throwIfThisIsNew(); + + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + + return this.getService().moveFolder(this.getId(), destinationFolderId); + } + + /** + * Moves this folder to a specific folder. Calling this method results in a + * call to EWS. + * + * @param destinationFolderName The name of the folder in which to move this folder. + * @return A new folder representing this folder in its new location. After + * Move completes, this folder does not exist anymore. + * @throws Exception the exception + */ + public Folder move(WellKnownFolderName destinationFolderName) + throws Exception { + return this.move(new FolderId(destinationFolderName)); + } + + /** + * Find items. + * + * @param The type of the item. + * @param queryString query string to be used for indexed search + * @param view The view controlling the number of items returned. + * @param groupBy The group by. + * @return FindItems response collection. + * @throws Exception the exception + */ + ServiceResponseCollection> + internalFindItems(String queryString, + ViewBase view, Grouping groupBy) + throws Exception { + ArrayList folderIdArry = new ArrayList(); + folderIdArry.add(this.getId()); + + this.throwIfThisIsNew(); + return this.getService().findItems(folderIdArry, + null, /* searchFilter */ + queryString, view, groupBy, ServiceErrorHandling.ThrowOnError); + + } + + /** + * Find items. + * + * @param The type of the item. + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of items returned. + * @param groupBy The group by. + * @return FindItems response collection. + * @throws Exception the exception + */ + ServiceResponseCollection> + internalFindItems(SearchFilter searchFilter, + ViewBase view, Grouping groupBy) + throws Exception { + ArrayList folderIdArry = new ArrayList(); + folderIdArry.add(this.getId()); + this.throwIfThisIsNew(); + + return this.getService().findItems(folderIdArry, searchFilter, + null, /* queryString */ + view, groupBy, ServiceErrorHandling.ThrowOnError); + } + + /** + * Find items. + * + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of items returned. + * @return FindItems results collection. + * @throws Exception the exception + */ + public FindItemsResults findItems(SearchFilter searchFilter, + ItemView view) throws Exception { + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + + ServiceResponseCollection> responses = this + .internalFindItems(searchFilter, view, null /* groupBy */); + + return responses.getResponseAtIndex(0).getResults(); + } + + /** + * Find items. + * + * @param queryString query string to be used for indexed search + * @param view The view controlling the number of items returned. + * @return FindItems results collection. + * @throws Exception the exception + */ + public FindItemsResults findItems(String queryString, ItemView view) + throws Exception { + EwsUtilities.validateParamAllowNull(queryString, "queryString"); + + ServiceResponseCollection> responses = this + .internalFindItems(queryString, view, null /* groupBy */); + + return responses.getResponseAtIndex(0).getResults(); + } + + /** + * Find items. + * + * @param view The view controlling the number of items returned. + * @return FindItems results collection. + * @throws Exception the exception + */ + public FindItemsResults findItems(ItemView view) throws Exception { + ServiceResponseCollection> responses = this + .internalFindItems((SearchFilter) null, view, + null /* groupBy */); + + return responses.getResponseAtIndex(0).getResults(); + } + + /** + * Find items. + * + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of items returned. + * @param groupBy The group by. + * @return A collection of grouped items representing the contents of this + * folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(SearchFilter searchFilter, + ItemView view, Grouping groupBy) throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); + + ServiceResponseCollection> responses = this + .internalFindItems(searchFilter, view, groupBy); + + return responses.getResponseAtIndex(0).getGroupedFindResults(); + } + + /** + * Find items. + * + * @param queryString query string to be used for indexed search + * @param view The view controlling the number of items returned. + * @param groupBy The group by. + * @return A collection of grouped items representing the contents of this + * folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(String queryString, + ItemView view, Grouping groupBy) throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + + ServiceResponseCollection> responses = this + .internalFindItems(queryString, view, groupBy); + + return responses.getResponseAtIndex(0).getGroupedFindResults(); + } + + /** + * Obtains a list of folders by searching the sub-folders of this folder. + * Calling this method results in a call to EWS. + * + * @param view The view controlling the number of folders returned. + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(FolderView view) throws Exception { + this.throwIfThisIsNew(); + + return this.getService().findFolders(this.getId(), view); + } + + /** + * Obtains a list of folders by searching the sub-folders of this folder. + * Calling this method results in a call to EWS. + * + * @param searchFilter The search filter. Available search filter classes include + * SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + * @param view The view controlling the number of folders returned. + * @return An object representing the results of the search operation. + * @throws Exception the exception + */ + public FindFoldersResults findFolders(SearchFilter searchFilter, + FolderView view) throws Exception { + this.throwIfThisIsNew(); + + return this.getService().findFolders(this.getId(), searchFilter, view); + } + + /** + * Obtains a grouped list of items by searching the contents of this folder. + * Calling this method results in a call to EWS. + * + * @param view The view controlling the number of folders returned. + * @param groupBy The grouping criteria. + * @return A collection of grouped items representing the contents of this + * folder. + * @throws Exception the exception + */ + public GroupedFindItemsResults findItems(ItemView view, + Grouping groupBy) throws Exception { + EwsUtilities.validateParam(groupBy, "groupBy"); + + return this.findItems((SearchFilter) null, view, groupBy); + } + + /** + * Get the property definition for the Id property. + * + * @return the id property definition + */ + @Override + protected PropertyDefinition getIdPropertyDefinition() { + return FolderSchema.Id; + } + + /** + * Sets the extended property. + * + * @param extendedPropertyDefinition The extended property definition. + * @param value The value. + * @throws Exception the exception + */ + public void setExtendedProperty( + ExtendedPropertyDefinition extendedPropertyDefinition, Object value) + throws Exception { + this.getExtendedProperties().setExtendedProperty( + extendedPropertyDefinition, value); + } + + /** + * Removes an extended property. + * + * @param extendedPropertyDefinition The extended property definition. + * @return True if property was removed. + * @throws Exception the exception + */ + public boolean removeExtendedProperty( + ExtendedPropertyDefinition extendedPropertyDefinition) + throws Exception { + return this.getExtendedProperties().removeExtendedProperty( + extendedPropertyDefinition); + } + + /** + * True if property was removed. + * + * @return Extended properties collection. + * @throws Exception the exception + */ + @Override + protected ExtendedPropertyCollection getExtendedProperties() + throws Exception { + return this.getExtendedPropertiesForService(); + } + + /** + * Gets the Id of the folder. + * + * @return the id + */ + public FolderId getId() { + try { + return (FolderId) (this.getPropertyBag() + .getObjectFromPropertyDefinition(this + .getIdPropertyDefinition())); + } catch (ServiceLocalException e) { + e.printStackTrace(); + return null; + } + } + + /** + * Gets the Id of this folder's parent folder. + * + * @return the parent folder id + * @throws ServiceLocalException the service local exception + */ + public FolderId getParentFolderId() throws ServiceLocalException { + return (FolderId) this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.ParentFolderId); + } + + /** + * Gets the number of child folders this folder has. + * + * @return the child folder count + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getChildFolderCount() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.ChildFolderCount) + .toString())); + } + + /** + * Gets the display name of the folder. + * + * @return the display name + * @throws ServiceLocalException the service local exception + */ + public String getDisplayName() throws ServiceLocalException { + return (String) (this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.DisplayName)); + + } + + /** + * Sets the display name of the folder. + * + * @param value Name of the folder + * @throws Exception the exception + */ + public void setDisplayName(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + FolderSchema.DisplayName, value); + } + + /** + * Gets the custom class name of this folder. + * + * @return the folder class + * @throws ServiceLocalException the service local exception + */ + public String getFolderClass() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + FolderSchema.FolderClass); + } + + /** + * Sets the custom class name of this folder. + * + * @param value name of the folder + * @throws Exception the exception + */ + public void setFolderClass(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + FolderSchema.FolderClass, value); + } + + /** + * Gets the total number of items contained in the folder. + * + * @return the total count + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getTotalCount() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.TotalCount) + .toString())); + } + + /** + * Gets a list of extended properties associated with the folder. + * + * @return the extended properties for service + * @throws ServiceLocalException the service local exception + */ + // changed the name of method as another method with same name exists + public ExtendedPropertyCollection getExtendedPropertiesForService() + throws ServiceLocalException { + return (ExtendedPropertyCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ServiceObjectSchema.extendedProperties); + } + + /** + * Gets the Email Lifecycle Management (ELC) information associated with the + * folder. + * + * @return the managed folder information + * @throws ServiceLocalException the service local exception + */ + public ManagedFolderInformation getManagedFolderInformation() + throws ServiceLocalException { + return (ManagedFolderInformation) this.getPropertyBag() + .getObjectFromPropertyDefinition( + FolderSchema.ManagedFolderInformation); + } + + /** + * Gets a value indicating the effective rights the current authenticated + * user has on the folder. + * + * @return the effective rights + * @throws ServiceLocalException the service local exception + */ + @SuppressWarnings("unchecked") + public EnumSet getEffectiveRights() throws ServiceLocalException { + return (EnumSet) this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.EffectiveRights); + } + + /** + * Gets a list of permissions for the folder. + * + * @return the permissions + * @throws ServiceLocalException the service local exception + */ + public FolderPermissionCollection getPermissions() + throws ServiceLocalException { + return (FolderPermissionCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.Permissions); + } + + /** + * Gets the number of unread items in the folder. + * + * @return the unread count + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getUnreadCount() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition(FolderSchema.UnreadCount) + .toString())); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java index 695b253d2..f2fc1cc99 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java @@ -10,49 +10,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** +/** * Represents a change on a folder as returned by a synchronization operation. */ public final class FolderChange extends Change { - /** - * Initializes a new instance of FolderChange. - */ - protected FolderChange() { - super(); - } + /** + * Initializes a new instance of FolderChange. + */ + protected FolderChange() { + super(); + } - /** - * Creates a FolderId instance. - * - * @return A FolderId. - */ - @Override - protected ServiceId createId() { - return new FolderId(); - } + /** + * Creates a FolderId instance. + * + * @return A FolderId. + */ + @Override + protected ServiceId createId() { + return new FolderId(); + } - /** - * Gets the folder the change applies to. Folder is null when ChangeType - * is equal to ChangeType.Delete. In that case, use the FolderId property to - * retrieve the Id of the folder that was deleted. - * - * @return the folder - */ - public Folder getFolder() { - return (Folder)this.getServiceObject(); - } + /** + * Gets the folder the change applies to. Folder is null when ChangeType + * is equal to ChangeType.Delete. In that case, use the FolderId property to + * retrieve the Id of the folder that was deleted. + * + * @return the folder + */ + public Folder getFolder() { + return (Folder) this.getServiceObject(); + } - /** - * Gets the folder the change applies to. Folder is null when ChangeType - * is equal to ChangeType.Delete. In that case, use the FolderId property to - * retrieve the Id of the folder that was deleted. - * - * @return the folder id - * @throws ServiceLocalException - * the service local exception - */ - public FolderId getFolderId() throws ServiceLocalException { - return (FolderId) this.getId(); - } + /** + * Gets the folder the change applies to. Folder is null when ChangeType + * is equal to ChangeType.Delete. In that case, use the FolderId property to + * retrieve the Id of the folder that was deleted. + * + * @return the folder id + * @throws ServiceLocalException the service local exception + */ + public FolderId getFolderId() throws ServiceLocalException { + return (FolderId) this.getId(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java index 3f2895c4a..114451165 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java @@ -14,113 +14,112 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an event that applies to a folder. - * */ public class FolderEvent extends NotificationEvent { - /** The folder id. */ - private FolderId folderId; - - /** The old folder id. */ - private FolderId oldFolderId; - - /** - * The new number of unread messages. This is is only meaningful when - * EventType is equal to EventType.Modified. For all other event types, it's - * null. - */ - private int unreadCount; - - /** - * Initializes a new instance. - * - * @param eventType - * the event type - * @param timestamp - * the timestamp - */ - protected FolderEvent(EventType eventType, Date timestamp) { - super(eventType, timestamp); - } - - /** - * Load from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void internalLoadFromXml(EwsServiceXmlReader reader) - throws Exception { - super.internalLoadFromXml(reader); - - this.folderId = new FolderId(); - this.folderId.loadFromXml(reader, reader.getLocalName()); - - reader.read(); - - setParentFolderId(new FolderId()); - getParentFolderId().loadFromXml(reader, XmlElementNames.ParentFolderId); - - switch (getEventType()) { - case Moved: - case Copied: - reader.read(); - - this.oldFolderId = new FolderId(); - this.oldFolderId.loadFromXml(reader, reader.getLocalName()); - - reader.read(); - - setParentFolderId(new FolderId()); - getParentFolderId().loadFromXml(reader, reader.getLocalName()); - break; - - case Modified: - reader.read(); - if (reader.isStartElement()) { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - XmlElementNames.UnreadCount); - String str = reader.readValue(); - this.unreadCount = Integer.parseInt(str); - } - break; - - default: - break; - } - } - - /** - * Gets the Id of the folder this event applies to. - * - * @return folderId - */ - public FolderId getFolderId() { - return folderId; - } - - /** - * gets the Id of the folder that was moved or copied. OldFolderId is only - * meaningful when EventType is equal to either EventType.Moved or - * EventType.Copied. For all other event types, OldFolderId is null. - * - * @return oldFolderId - */ - public FolderId getOldFolderId() { - return oldFolderId; - } - - /** - * Gets the new number of unread messages. This is is only meaningful when - * EventType is equal to EventType.Modified. For all other event types, - * UnreadCount is null. - * - * @return unreadCount - */ - public int getUnreadCount() { - return unreadCount; - } + /** + * The folder id. + */ + private FolderId folderId; + + /** + * The old folder id. + */ + private FolderId oldFolderId; + + /** + * The new number of unread messages. This is is only meaningful when + * EventType is equal to EventType.Modified. For all other event types, it's + * null. + */ + private int unreadCount; + + /** + * Initializes a new instance. + * + * @param eventType the event type + * @param timestamp the timestamp + */ + protected FolderEvent(EventType eventType, Date timestamp) { + super(eventType, timestamp); + } + + /** + * Load from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void internalLoadFromXml(EwsServiceXmlReader reader) + throws Exception { + super.internalLoadFromXml(reader); + + this.folderId = new FolderId(); + this.folderId.loadFromXml(reader, reader.getLocalName()); + + reader.read(); + + setParentFolderId(new FolderId()); + getParentFolderId().loadFromXml(reader, XmlElementNames.ParentFolderId); + + switch (getEventType()) { + case Moved: + case Copied: + reader.read(); + + this.oldFolderId = new FolderId(); + this.oldFolderId.loadFromXml(reader, reader.getLocalName()); + + reader.read(); + + setParentFolderId(new FolderId()); + getParentFolderId().loadFromXml(reader, reader.getLocalName()); + break; + + case Modified: + reader.read(); + if (reader.isStartElement()) { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + XmlElementNames.UnreadCount); + String str = reader.readValue(); + this.unreadCount = Integer.parseInt(str); + } + break; + + default: + break; + } + } + + /** + * Gets the Id of the folder this event applies to. + * + * @return folderId + */ + public FolderId getFolderId() { + return folderId; + } + + /** + * gets the Id of the folder that was moved or copied. OldFolderId is only + * meaningful when EventType is equal to either EventType.Moved or + * EventType.Copied. For all other event types, OldFolderId is null. + * + * @return oldFolderId + */ + public FolderId getOldFolderId() { + return oldFolderId; + } + + /** + * Gets the new number of unread messages. This is is only meaningful when + * EventType is equal to EventType.Modified. For all other event types, + * UnreadCount is null. + * + * @return unreadCount + */ + public int getUnreadCount() { + return unreadCount; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderId.java b/src/main/java/microsoft/exchange/webservices/data/FolderId.java index e96d42675..a0a4fbf14 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderId.java @@ -12,254 +12,244 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the Id of a folder. - * */ public final class FolderId extends ServiceId { - - /** The folder name. */ - private WellKnownFolderName folderName; - - /** The mailbox. */ - private Mailbox mailbox; - - /** - * Initializes a new instance. - */ - protected FolderId() { - super(); - } - /** - * Initializes a new instance.Use this constructor to link this FolderId to - * an existing folder that you have the unique Id of. - * - * @param uniqueId - * the unique id - * @throws Exception - * the exception - */ - public FolderId(String uniqueId) throws Exception { - super(uniqueId); - } - - /** - * Initializes a new instance.Use this constructor to link this FolderId to - * a well known folder (e.g. Inbox, Calendar or Contacts) - * - * @param folderName - * the folder name - */ - public FolderId(WellKnownFolderName folderName) { - super(); - this.folderName = folderName; - } - - /** - * Initializes a new instance.Use this constructor to link this FolderId to - * a well known folder (e.g. Inbox, Calendar or Contacts) in a specific - * mailbox. - * - * @param folderName - * the folder name - * @param mailbox - * the mailbox - */ - public FolderId(WellKnownFolderName folderName, Mailbox mailbox) { - this(folderName); - this.mailbox = mailbox; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - protected String getXmlElementName() { - if (this.getFolderName() != null) { - return XmlElementNames.DistinguishedFolderId; - } else { - return XmlElementNames.FolderId; - } - } - - /** - * Writes attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - if (this.getFolderName() != null) { - writer.writeAttributeValue(XmlAttributeNames.Id, this - .getFolderName().toString().toLowerCase()); - - if (this.mailbox != null) { - try { - this.mailbox.writeToXml(writer, XmlElementNames.Mailbox); - } catch (Exception e) { - throw new ServiceXmlSerializationException(e.getMessage()); - } - } - } else { - super.writeAttributesToXml(writer); - } - } - - /** - * Validates FolderId against a specified request version. - * - * @param version - * the version - * @throws ServiceVersionException - * the service version exception - */ - protected void validate(ExchangeVersion version) - throws ServiceVersionException { - // The FolderName property is a WellKnownFolderName, an enumeration - // type. If the property - // is set, make sure that the value is valid for the request version. - if (this.getFolderName() != null) { - EwsUtilities - .validateEnumVersionValue(this.getFolderName(), version); - } - } - - /** - * Gets the name of the folder associated with the folder Id. Name and Id - * are mutually exclusive; if one is set, the other is null. - * - * @return the folder name - */ - public WellKnownFolderName getFolderName() { - return this.folderName; - } - - /** - * Gets the mailbox of the folder. Mailbox is only set when FolderName is - * set. - * - * @return the mailbox - */ - public Mailbox getMailbox() { - return this.mailbox; - } - - /** - * Defines an implicit conversion between string and FolderId. - * - * @param uniqueId - * the unique id - * @return A FolderId initialized with the specified unique Id - * @throws Exception - * the exception - */ - public static FolderId getFolderIdFromString(String uniqueId) - throws Exception { - return new FolderId(uniqueId); - } - - /** - * Defines an implicit conversion between WellKnownFolderName and FolderId. - * - * @param folderName - * the folder name - * @return A FolderId initialized with the specified folder name - */ - public static FolderId getFolderIdFromWellKnownFolderName( - WellKnownFolderName folderName) { - return new FolderId(folderName); - } - - /** - * True if this instance is valid, false otherwise. - * - * @return the checks if is valid - */ - protected boolean getIsValid() { - if (this.folderName != null) { - return (this.mailbox == null) || this.mailbox.isValid(); - } else { - return super.isValid(); - } - } - - /** - * Determines whether the specified is equal to the current. - * - * @param obj - * the obj - * @return true if the specified is equal to the current - */ - @Override - public boolean equals(Object obj) { - if (obj == this || (obj == null && this == null)) { - return true; - } else if (obj instanceof FolderId) { - FolderId other = (FolderId) obj; - - if (this.folderName != null) { - if (other.folderName != null - && this.folderName.equals(other.folderName)) { - if (this.mailbox != null) { - return this.mailbox.equals(other.mailbox); - } else if (other.mailbox == null) { - return true; - } - } - } else if (super.equals(other)) { - return true; - } - - return false; - } else { - return false; - } - } - - /** - * Serves as a hash function for a particular type. - * - * @return A hash code for the current - */ - @Override - public int hashCode() { - int hashCode; - - if (this.folderName != null) { - hashCode = this.folderName.hashCode(); - - if ((this.mailbox != null) && this.mailbox.isValid()) { - hashCode = hashCode ^ this.mailbox.hashCode(); - } - } else { - hashCode = super.hashCode(); - } - - return hashCode; - } - - /** - * Returns a String that represents the current Object. - * - * @return the string - */ - public String toString() { - if (this.isValid()) { - if (this.folderName != null) { - if ((this.mailbox != null) && mailbox.isValid()) { - return String.format("%s,(%s)", this.folderName, - this.mailbox.toString()); - } else { - return this.folderName.toString(); - } - } else { - return super.toString(); - } - } else { - return ""; - } - } + /** + * The folder name. + */ + private WellKnownFolderName folderName; + + /** + * The mailbox. + */ + private Mailbox mailbox; + + /** + * Initializes a new instance. + */ + protected FolderId() { + super(); + } + + /** + * Initializes a new instance.Use this constructor to link this FolderId to + * an existing folder that you have the unique Id of. + * + * @param uniqueId the unique id + * @throws Exception the exception + */ + public FolderId(String uniqueId) throws Exception { + super(uniqueId); + } + + /** + * Initializes a new instance.Use this constructor to link this FolderId to + * a well known folder (e.g. Inbox, Calendar or Contacts) + * + * @param folderName the folder name + */ + public FolderId(WellKnownFolderName folderName) { + super(); + this.folderName = folderName; + } + + /** + * Initializes a new instance.Use this constructor to link this FolderId to + * a well known folder (e.g. Inbox, Calendar or Contacts) in a specific + * mailbox. + * + * @param folderName the folder name + * @param mailbox the mailbox + */ + public FolderId(WellKnownFolderName folderName, Mailbox mailbox) { + this(folderName); + this.mailbox = mailbox; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getXmlElementName() { + if (this.getFolderName() != null) { + return XmlElementNames.DistinguishedFolderId; + } else { + return XmlElementNames.FolderId; + } + } + + /** + * Writes attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + if (this.getFolderName() != null) { + writer.writeAttributeValue(XmlAttributeNames.Id, this + .getFolderName().toString().toLowerCase()); + + if (this.mailbox != null) { + try { + this.mailbox.writeToXml(writer, XmlElementNames.Mailbox); + } catch (Exception e) { + throw new ServiceXmlSerializationException(e.getMessage()); + } + } + } else { + super.writeAttributesToXml(writer); + } + } + + /** + * Validates FolderId against a specified request version. + * + * @param version the version + * @throws ServiceVersionException the service version exception + */ + protected void validate(ExchangeVersion version) + throws ServiceVersionException { + // The FolderName property is a WellKnownFolderName, an enumeration + // type. If the property + // is set, make sure that the value is valid for the request version. + if (this.getFolderName() != null) { + EwsUtilities + .validateEnumVersionValue(this.getFolderName(), version); + } + } + + /** + * Gets the name of the folder associated with the folder Id. Name and Id + * are mutually exclusive; if one is set, the other is null. + * + * @return the folder name + */ + public WellKnownFolderName getFolderName() { + return this.folderName; + } + + /** + * Gets the mailbox of the folder. Mailbox is only set when FolderName is + * set. + * + * @return the mailbox + */ + public Mailbox getMailbox() { + return this.mailbox; + } + + /** + * Defines an implicit conversion between string and FolderId. + * + * @param uniqueId the unique id + * @return A FolderId initialized with the specified unique Id + * @throws Exception the exception + */ + public static FolderId getFolderIdFromString(String uniqueId) + throws Exception { + return new FolderId(uniqueId); + } + + /** + * Defines an implicit conversion between WellKnownFolderName and FolderId. + * + * @param folderName the folder name + * @return A FolderId initialized with the specified folder name + */ + public static FolderId getFolderIdFromWellKnownFolderName( + WellKnownFolderName folderName) { + return new FolderId(folderName); + } + + /** + * True if this instance is valid, false otherwise. + * + * @return the checks if is valid + */ + protected boolean getIsValid() { + if (this.folderName != null) { + return (this.mailbox == null) || this.mailbox.isValid(); + } else { + return super.isValid(); + } + } + + /** + * Determines whether the specified is equal to the current. + * + * @param obj the obj + * @return true if the specified is equal to the current + */ + @Override + public boolean equals(Object obj) { + if (obj == this || (obj == null && this == null)) { + return true; + } else if (obj instanceof FolderId) { + FolderId other = (FolderId) obj; + + if (this.folderName != null) { + if (other.folderName != null + && this.folderName.equals(other.folderName)) { + if (this.mailbox != null) { + return this.mailbox.equals(other.mailbox); + } else if (other.mailbox == null) { + return true; + } + } + } else if (super.equals(other)) { + return true; + } + + return false; + } else { + return false; + } + } + + /** + * Serves as a hash function for a particular type. + * + * @return A hash code for the current + */ + @Override + public int hashCode() { + int hashCode; + + if (this.folderName != null) { + hashCode = this.folderName.hashCode(); + + if ((this.mailbox != null) && this.mailbox.isValid()) { + hashCode = hashCode ^ this.mailbox.hashCode(); + } + } else { + hashCode = super.hashCode(); + } + + return hashCode; + } + + /** + * Returns a String that represents the current Object. + * + * @return the string + */ + public String toString() { + if (this.isValid()) { + if (this.folderName != null) { + if ((this.mailbox != null) && mailbox.isValid()) { + return String.format("%s,(%s)", this.folderName, + this.mailbox.toString()); + } else { + return this.folderName.toString(); + } + } else { + return super.toString(); + } + } else { + return ""; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java index 4e1f68525..6fe0a1386 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java @@ -15,123 +15,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class FolderIdCollection extends - ComplexPropertyCollection { + ComplexPropertyCollection { - /** - * Initializes a new instance of the class. - */ - protected FolderIdCollection() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected FolderIdCollection() { + super(); + } - /** - * Creates the complex property. - * - * @param xmlElementName - * Name of the XML element. - * @return Complex property instance. - */ - @Override - /** - * Creates the complex property. - * @param xmlElementName Name of the XML element. - * @return FolderId. - */ - protected FolderId createComplexProperty(String xmlElementName) { - return new FolderId(); - } + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element. + * @return Complex property instance. + */ + @Override + /** + * Creates the complex property. + * @param xmlElementName Name of the XML element. + * @return FolderId. + */ + protected FolderId createComplexProperty(String xmlElementName) { + return new FolderId(); + } - /** - * Adds a folder Id to the collection. - * - * @param folderId - * The folder Id to add. - * @throws Exception - * the exception - */ - public void add(FolderId folderId) throws Exception { - EwsUtilities.validateParam(folderId, "folderId"); - if (this.contains(folderId)) { - throw new IllegalArgumentException(Strings.IdAlreadyInList); - } - this.internalAdd(folderId); - } + /** + * Adds a folder Id to the collection. + * + * @param folderId The folder Id to add. + * @throws Exception the exception + */ + public void add(FolderId folderId) throws Exception { + EwsUtilities.validateParam(folderId, "folderId"); + if (this.contains(folderId)) { + throw new IllegalArgumentException(Strings.IdAlreadyInList); + } + this.internalAdd(folderId); + } - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * accepts FolderId - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName(FolderId complexProperty) { - return complexProperty.getXmlElementName(); - } + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty accepts FolderId + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName(FolderId complexProperty) { + return complexProperty.getXmlElementName(); + } - /** - * Adds a well-known folder to the collection. - * - * @param folderName - * the folder name - * @return A FolderId encapsulating the specified Id. - */ - public FolderId add(WellKnownFolderName folderName) { - FolderId folderId = new FolderId(folderName); - if (this.contains(folderId)) { - throw new IllegalArgumentException(Strings.IdAlreadyInList); - } - this.internalAdd(folderId); - return folderId; - } + /** + * Adds a well-known folder to the collection. + * + * @param folderName the folder name + * @return A FolderId encapsulating the specified Id. + */ + public FolderId add(WellKnownFolderName folderName) { + FolderId folderId = new FolderId(folderName); + if (this.contains(folderId)) { + throw new IllegalArgumentException(Strings.IdAlreadyInList); + } + this.internalAdd(folderId); + return folderId; + } - /** - * Clears the collection. - */ - public void clear() { - this.internalClear(); - } + /** + * Clears the collection. + */ + public void clear() { + this.internalClear(); + } - /** - * Removes the folder Id at the specified index. - * - * @param index - * The zero-based index of the folder Id to remove. - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } - this.internalRemoveAt(index); - } + /** + * Removes the folder Id at the specified index. + * + * @param index The zero-based index of the folder Id to remove. + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } + this.internalRemoveAt(index); + } - /** - * Removes the specified folder Id from the collection. - * - * @param folderId - * The folder Id to remove from the collection. - * @return True if the folder id was successfully removed from the - * collection, false otherwise. - * @throws Exception - * the exception - */ - public boolean remove(FolderId folderId) throws Exception { - EwsUtilities.validateParam(folderId, "folderId"); - return this.internalRemove(folderId); - } + /** + * Removes the specified folder Id from the collection. + * + * @param folderId The folder Id to remove from the collection. + * @return True if the folder id was successfully removed from the + * collection, false otherwise. + * @throws Exception the exception + */ + public boolean remove(FolderId folderId) throws Exception { + EwsUtilities.validateParam(folderId, "folderId"); + return this.internalRemove(folderId); + } - /** - * Removes the specified well-known folder from the collection. - * - * @param folderName - * The well-knwon folder to remove from the collection. - * @return True if the well-known folder was successfully removed from the - * collection, false otherwise. - */ - public boolean remove(WellKnownFolderName folderName) { - FolderId folderId = FolderId - .getFolderIdFromWellKnownFolderName(folderName); - return this.internalRemove(folderId); - } + /** + * Removes the specified well-known folder from the collection. + * + * @param folderName The well-knwon folder to remove from the collection. + * @return True if the well-known folder was successfully removed from the + * collection, false otherwise. + */ + public boolean remove(WellKnownFolderName folderName) { + FolderId folderId = FolderId + .getFolderIdFromWellKnownFolderName(folderName); + return this.internalRemove(folderId); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java index 4c9d1540f..1a606a5f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java @@ -15,46 +15,41 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class FolderIdWrapper extends AbstractFolderIdWrapper { - /** - * The FolderId object providing the Id. - */ - private FolderId folderId; + /** + * The FolderId object providing the Id. + */ + private FolderId folderId; - /** - * Initializes a new instance of FolderIdWrapper. - * - * @param folderId - * the folder id - */ - protected FolderIdWrapper(FolderId folderId) { - EwsUtilities.EwsAssert(folderId != null, "FolderIdWrapper.ctor", - "folderId is null"); - this.folderId = folderId; - } + /** + * Initializes a new instance of FolderIdWrapper. + * + * @param folderId the folder id + */ + protected FolderIdWrapper(FolderId folderId) { + EwsUtilities.EwsAssert(folderId != null, "FolderIdWrapper.ctor", + "folderId is null"); + this.folderId = folderId; + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) - throws Exception { - this.folderId.writeToXml(writer); - } + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) + throws Exception { + this.folderId.writeToXml(writer); + } - /** - * Validates folderId against specified version. - * - * @param version - * the version - * @throws ServiceVersionException - * the service version exception - */ - protected void validate(ExchangeVersion version) - throws ServiceVersionException { - this.folderId.validate(version); - } + /** + * Validates folderId against specified version. + * + * @param version the version + * @throws ServiceVersionException the service version exception + */ + protected void validate(ExchangeVersion version) + throws ServiceVersionException { + this.folderId.validate(version); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java index 912002a2b..0b478fe2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java @@ -19,133 +19,122 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class FolderIdWrapperList implements Iterable { - /** The ids. */ - private List ids = new - ArrayList(); - - /** - * Adds the specified folder. - * - * @param folder - * the folder - * @throws ServiceLocalException - * the service local exception - */ - protected void add(Folder folder) throws ServiceLocalException { - this.ids.add(new FolderWrapper(folder)); - } - - /** - * Adds the range. - * - * @param folders - * the folders - * @throws ServiceLocalException - * the service local exception - */ - protected void addRangeFolder(Iterable folders) - throws ServiceLocalException { - if (folders != null) { - for (Folder folder : folders) { - this.add(folder); - } - } - } - - /** - * Adds the specified folder id. - * - * @param folderId - * the folder id - */ - protected void add(FolderId folderId) { - this.ids.add(new FolderIdWrapper(folderId)); - } - - /** - * Adds the range of folder ids. - * - * @param folderIds - * the folder ids - */ - protected void addRangeFolderId(Iterable folderIds) { - if (folderIds != null) { - for (FolderId folderId : folderIds) { - this.add(folderId); - } - } - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param ewsNamesapce - * the ews namesapce - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace ewsNamesapce, String xmlElementName) throws Exception { - if (this.getCount() > 0) { - writer.writeStartElement(ewsNamesapce, xmlElementName); - - for (AbstractFolderIdWrapper folderIdWrapper : this.ids) { - folderIdWrapper.writeToXml(writer); - } - - writer.writeEndElement(); - } - } - - /** - * Gets the id count. - * - * @return the count - */ - protected int getCount() { - return this.ids.size(); - } - - /** - * Gets the at - * the specified index. - * - * @param i - * the i - * @return the index - */ - protected AbstractFolderIdWrapper getFolderIdWrapperList(int i) { - return this.ids.get(i); - } - - /** - * Validates list of folderIds against a specified request version. - * - * @param version - * the version - * @throws ServiceVersionException - * the service version exception - */ - protected void validate(ExchangeVersion version) - throws ServiceVersionException { - for (AbstractFolderIdWrapper folderIdWrapper : this.ids) { - folderIdWrapper.validate(version); - } - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - return ids.iterator(); - } + /** + * The ids. + */ + private List ids = new + ArrayList(); + + /** + * Adds the specified folder. + * + * @param folder the folder + * @throws ServiceLocalException the service local exception + */ + protected void add(Folder folder) throws ServiceLocalException { + this.ids.add(new FolderWrapper(folder)); + } + + /** + * Adds the range. + * + * @param folders the folders + * @throws ServiceLocalException the service local exception + */ + protected void addRangeFolder(Iterable folders) + throws ServiceLocalException { + if (folders != null) { + for (Folder folder : folders) { + this.add(folder); + } + } + } + + /** + * Adds the specified folder id. + * + * @param folderId the folder id + */ + protected void add(FolderId folderId) { + this.ids.add(new FolderIdWrapper(folderId)); + } + + /** + * Adds the range of folder ids. + * + * @param folderIds the folder ids + */ + protected void addRangeFolderId(Iterable folderIds) { + if (folderIds != null) { + for (FolderId folderId : folderIds) { + this.add(folderId); + } + } + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param ewsNamesapce the ews namesapce + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace ewsNamesapce, String xmlElementName) throws Exception { + if (this.getCount() > 0) { + writer.writeStartElement(ewsNamesapce, xmlElementName); + + for (AbstractFolderIdWrapper folderIdWrapper : this.ids) { + folderIdWrapper.writeToXml(writer); + } + + writer.writeEndElement(); + } + } + + /** + * Gets the id count. + * + * @return the count + */ + protected int getCount() { + return this.ids.size(); + } + + /** + * Gets the at + * the specified index. + * + * @param i the i + * @return the index + */ + protected AbstractFolderIdWrapper getFolderIdWrapperList(int i) { + return this.ids.get(i); + } + + /** + * Validates list of folderIds against a specified request version. + * + * @param version the version + * @throws ServiceVersionException the service version exception + */ + protected void validate(ExchangeVersion version) + throws ServiceVersionException { + for (AbstractFolderIdWrapper folderIdWrapper : this.ids) { + folderIdWrapper.validate(version); + } + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + return ids.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java index 81b53ca2c..881c04e9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java @@ -20,855 +20,837 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a permission on a folder. */ public final class FolderPermission extends ComplexProperty implements - IComplexPropertyChangedDelegate { - - - private static LazyMember> - defaultPermissions = - new LazyMember>( - new ILazyMember>() { - @Override - public Map - createInstance() { - Map result = - new HashMap(); - - /** The default permissions. */ - FolderPermission permission = new FolderPermission(); - permission.canCreateItems = false; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.None; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = false; - permission.readItems = FolderPermissionReadAccess.None; - - result.put(FolderPermissionLevel.None, permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.None; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess.None; - - result.put(FolderPermissionLevel.Contributor, permission); - - permission = new FolderPermission(); - permission.canCreateItems = false; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.None; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.Reviewer, permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.Owned; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.NoneditingAuthor, - permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.Owned; - permission.editItems = PermissionScope.Owned; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.Author, permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = true; - permission.deleteItems = PermissionScope.Owned; - permission.editItems = PermissionScope.Owned; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.PublishingAuthor, - permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.All; - permission.editItems = PermissionScope.All; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.Editor, permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = true; - permission.deleteItems = PermissionScope.All; - permission.editItems = PermissionScope.All; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.PublishingEditor, - permission); - - permission = new FolderPermission(); - permission.canCreateItems = true; - permission.canCreateSubFolders = true; - permission.deleteItems = PermissionScope.All; - permission.editItems = PermissionScope.All; - permission.isFolderContact = true; - permission.isFolderOwner = true; - permission.isFolderVisible = true; - permission.readItems = FolderPermissionReadAccess. - FullDetails; - - result.put(FolderPermissionLevel.Owner, permission); - - permission = new FolderPermission(); - permission.canCreateItems = false; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.None; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = false; - permission.readItems = FolderPermissionReadAccess.TimeOnly; - - result.put(FolderPermissionLevel.FreeBusyTimeOnly, - permission); - - permission = new FolderPermission(); - permission.canCreateItems = false; - permission.canCreateSubFolders = false; - permission.deleteItems = PermissionScope.None; - permission.editItems = PermissionScope.None; - permission.isFolderContact = false; - permission.isFolderOwner = false; - permission.isFolderVisible = false; - permission.readItems = FolderPermissionReadAccess. - TimeAndSubjectAndLocation; - - result - .put(FolderPermissionLevel. - FreeBusyTimeAndSubjectAndLocation, - permission); - return result; - } - }); - //End Region - - /** - * Variants of pre-defined permission levels that Outlook also displays with - * the same levels. - */ - private static LazyMember> levelVariants = - new LazyMember>( - new ILazyMember>() { - @Override - public List createInstance() { - List results = - new ArrayList(); - - FolderPermission permissionNone = FolderPermission. - defaultPermissions - .getMember().get(FolderPermissionLevel.None); - FolderPermission permissionOwner = FolderPermission. - defaultPermissions - .getMember().get(FolderPermissionLevel.Owner); - - // PermissionLevelNoneOption1 - FolderPermission permission; - try { - permission = (FolderPermission)permissionNone.clone(); - permission.isFolderVisible = true; - results.add(permission); - - // PermissionLevelNoneOption2 - permission = (FolderPermission)permissionNone.clone(); - permission.isFolderContact = true; - results.add(permission); - - // PermissionLevelNoneOption3 - permission = (FolderPermission)permissionNone.clone(); - permission.isFolderContact = true; - permission.isFolderVisible = true; - results.add(permission); - - // PermissionLevelOwnerOption1 - permission = (FolderPermission)permissionOwner.clone(); - permission.isFolderContact = false; - results.add(permission); - - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - return results; - } - }); - - /** The user id. */ - private UserId userId; - - /** The can create items. */ - private boolean canCreateItems; - - /** The can create sub folders. */ - private boolean canCreateSubFolders; - - /** The is folder owner. */ - private boolean isFolderOwner; - - /** The is folder visible. */ - private boolean isFolderVisible; - - /** The is folder contact. */ - private boolean isFolderContact; - - /** The edit items. */ - private PermissionScope editItems = PermissionScope.None; - - /** The delete items. */ - private PermissionScope deleteItems = PermissionScope.None; - - /** The read items. */ - private FolderPermissionReadAccess readItems = FolderPermissionReadAccess.None; - - /** The permission level. */ - private FolderPermissionLevel permissionLevel = FolderPermissionLevel.None; - - /** - * Determines whether the specified folder permission is the same as this - * one. The comparison does not take UserId and PermissionLevel into - * consideration. - * - * @param permission - * the permission - * @return True is the specified folder permission is equal to this one, - * false otherwise. - */ - private boolean isEqualTo(FolderPermission permission) { - - return this.canCreateItems == permission.canCreateItems && - this.canCreateSubFolders == permission.canCreateSubFolders && - this.isFolderContact == permission.isFolderContact && - this.isFolderVisible == permission.isFolderVisible && - this.isFolderOwner == permission.isFolderOwner && - this.editItems == permission.editItems && - this.deleteItems == permission.deleteItems && - this.readItems == permission.readItems; - } - - /** - * Create a copy of this FolderPermission instance. - * - * @return Clone of this instance. - */ - /* + IComplexPropertyChangedDelegate { + + + private static LazyMember> + defaultPermissions = + new LazyMember>( + new ILazyMember>() { + @Override + public Map + createInstance() { + Map result = + new HashMap(); + + /** The default permissions. */ + FolderPermission permission = new FolderPermission(); + permission.canCreateItems = false; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.None; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = false; + permission.readItems = FolderPermissionReadAccess.None; + + result.put(FolderPermissionLevel.None, permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.None; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess.None; + + result.put(FolderPermissionLevel.Contributor, permission); + + permission = new FolderPermission(); + permission.canCreateItems = false; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.None; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.Reviewer, permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.Owned; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.NoneditingAuthor, + permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.Owned; + permission.editItems = PermissionScope.Owned; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.Author, permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = true; + permission.deleteItems = PermissionScope.Owned; + permission.editItems = PermissionScope.Owned; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.PublishingAuthor, + permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.All; + permission.editItems = PermissionScope.All; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.Editor, permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = true; + permission.deleteItems = PermissionScope.All; + permission.editItems = PermissionScope.All; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.PublishingEditor, + permission); + + permission = new FolderPermission(); + permission.canCreateItems = true; + permission.canCreateSubFolders = true; + permission.deleteItems = PermissionScope.All; + permission.editItems = PermissionScope.All; + permission.isFolderContact = true; + permission.isFolderOwner = true; + permission.isFolderVisible = true; + permission.readItems = FolderPermissionReadAccess. + FullDetails; + + result.put(FolderPermissionLevel.Owner, permission); + + permission = new FolderPermission(); + permission.canCreateItems = false; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.None; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = false; + permission.readItems = FolderPermissionReadAccess.TimeOnly; + + result.put(FolderPermissionLevel.FreeBusyTimeOnly, + permission); + + permission = new FolderPermission(); + permission.canCreateItems = false; + permission.canCreateSubFolders = false; + permission.deleteItems = PermissionScope.None; + permission.editItems = PermissionScope.None; + permission.isFolderContact = false; + permission.isFolderOwner = false; + permission.isFolderVisible = false; + permission.readItems = FolderPermissionReadAccess. + TimeAndSubjectAndLocation; + + result + .put(FolderPermissionLevel. + FreeBusyTimeAndSubjectAndLocation, + permission); + return result; + } + }); + //End Region + + /** + * Variants of pre-defined permission levels that Outlook also displays with + * the same levels. + */ + private static LazyMember> levelVariants = + new LazyMember>( + new ILazyMember>() { + @Override + public List createInstance() { + List results = + new ArrayList(); + + FolderPermission permissionNone = FolderPermission. + defaultPermissions + .getMember().get(FolderPermissionLevel.None); + FolderPermission permissionOwner = FolderPermission. + defaultPermissions + .getMember().get(FolderPermissionLevel.Owner); + + // PermissionLevelNoneOption1 + FolderPermission permission; + try { + permission = (FolderPermission) permissionNone.clone(); + permission.isFolderVisible = true; + results.add(permission); + + // PermissionLevelNoneOption2 + permission = (FolderPermission) permissionNone.clone(); + permission.isFolderContact = true; + results.add(permission); + + // PermissionLevelNoneOption3 + permission = (FolderPermission) permissionNone.clone(); + permission.isFolderContact = true; + permission.isFolderVisible = true; + results.add(permission); + + // PermissionLevelOwnerOption1 + permission = (FolderPermission) permissionOwner.clone(); + permission.isFolderContact = false; + results.add(permission); + + } catch (CloneNotSupportedException e) { + e.printStackTrace(); + } + return results; + } + }); + + /** + * The user id. + */ + private UserId userId; + + /** + * The can create items. + */ + private boolean canCreateItems; + + /** + * The can create sub folders. + */ + private boolean canCreateSubFolders; + + /** + * The is folder owner. + */ + private boolean isFolderOwner; + + /** + * The is folder visible. + */ + private boolean isFolderVisible; + + /** + * The is folder contact. + */ + private boolean isFolderContact; + + /** + * The edit items. + */ + private PermissionScope editItems = PermissionScope.None; + + /** + * The delete items. + */ + private PermissionScope deleteItems = PermissionScope.None; + + /** + * The read items. + */ + private FolderPermissionReadAccess readItems = FolderPermissionReadAccess.None; + + /** + * The permission level. + */ + private FolderPermissionLevel permissionLevel = FolderPermissionLevel.None; + + /** + * Determines whether the specified folder permission is the same as this + * one. The comparison does not take UserId and PermissionLevel into + * consideration. + * + * @param permission the permission + * @return True is the specified folder permission is equal to this one, + * false otherwise. + */ + private boolean isEqualTo(FolderPermission permission) { + + return this.canCreateItems == permission.canCreateItems && + this.canCreateSubFolders == permission.canCreateSubFolders && + this.isFolderContact == permission.isFolderContact && + this.isFolderVisible == permission.isFolderVisible && + this.isFolderOwner == permission.isFolderOwner && + this.editItems == permission.editItems && + this.deleteItems == permission.deleteItems && + this.readItems == permission.readItems; + } + + /** + * Create a copy of this FolderPermission instance. + * + * @return Clone of this instance. + */ + /* * private FolderPermission Clone() throws CloneNotSupportedException { * return (FolderPermission)this.clone(); } */ - /** - * Determines the permission level of this folder permission based on its - * individual settings, and sets the PermissionLevel property accordingly. - */ - private void AdjustPermissionLevel() { - for (Entry keyValuePair : defaultPermissions - .getMember().entrySet()) { - if (this.isEqualTo(keyValuePair.getValue())) { - this.permissionLevel = keyValuePair.getKey(); - return; - } - } - this.permissionLevel = FolderPermissionLevel.Custom; - } - - /** - * Copies the values of the individual permissions of the specified folder - * permission to this folder permissions. - * - * @param permission - * the permission - */ - private void AssignIndividualPermissions(FolderPermission permission) { - this.canCreateItems = permission.canCreateItems; - this.canCreateSubFolders = permission.canCreateSubFolders; - this.isFolderContact = permission.isFolderContact; - this.isFolderOwner = permission.isFolderOwner; - this.isFolderVisible = permission.isFolderVisible; - this.editItems = permission.editItems; - this.deleteItems = permission.deleteItems; - this.readItems = permission.readItems; - } - - /** - * Initializes a new instance of the FolderPermission class. - */ - public FolderPermission() { - super(); - this.userId = new UserId(); - } - - /** - * Initializes a new instance of the FolderPermission class. - * - * @param userId - * the user id - * @param permissionLevel - * the permission level - * @throws Exception - * the exception - */ - public FolderPermission(UserId userId, - FolderPermissionLevel permissionLevel) - throws Exception { - EwsUtilities.validateParam(userId, "userId"); - - this.userId = userId; - this.permissionLevel = permissionLevel; - } - - /** - * Initializes a new instance of the FolderPermission class. - * - * @param primarySmtpAddress - * the primary smtp address - * @param permissionLevel - * the permission level - */ - public FolderPermission(String primarySmtpAddress, - FolderPermissionLevel permissionLevel) { - this.userId = new UserId(primarySmtpAddress); - this.permissionLevel = permissionLevel; - } - - /** - * Initializes a new instance of the FolderPermission class. - * - * @param standardUser - * the standard user - * @param permissionLevel - * the permission level - */ - public FolderPermission(StandardUser standardUser, - FolderPermissionLevel permissionLevel) { - this.userId = new UserId(standardUser); - this.permissionLevel = permissionLevel; - } - - /** - * Validates this instance. - * - * @param isCalendarFolder - * the is calendar folder - * @param permissionIndex - * the permission index - * @throws ServiceValidationException - * the service validation exception - * @throws ServiceLocalException - * the service local exception - */ - void validate(boolean isCalendarFolder, int permissionIndex) - throws ServiceValidationException, ServiceLocalException { - // Check UserId - if (!this.userId.isValid()) { - throw new ServiceValidationException(String.format( - Strings.FolderPermissionHasInvalidUserId, permissionIndex)); - } - - // If this permission is to be used for a non-calendar folder make sure - // that read access and permission level aren't set to Calendar-only - // values - if (!isCalendarFolder) { - if ((this.readItems == FolderPermissionReadAccess.TimeAndSubjectAndLocation) - || (this.readItems == FolderPermissionReadAccess. - TimeOnly)) { - throw new ServiceLocalException(String.format( - Strings.ReadAccessInvalidForNonCalendarFolder, - this.readItems)); - } - - if ((this.permissionLevel == FolderPermissionLevel.FreeBusyTimeAndSubjectAndLocation) - || (this.permissionLevel == FolderPermissionLevel. - FreeBusyTimeOnly)) { - throw new ServiceLocalException(String.format( - Strings.PermissionLevelInvalidForNonCalendarFolder, - this.permissionLevel)); - } - } - } - - /** - * Gets the Id of the user the permission applies to. - * - * @return the user id - */ - - public UserId getUserId() { - return this.userId; - } - - /** - * Sets the user id. - * - * @param value - * the new user id - */ - public void setUserId(UserId value) { - if (this.userId != null) { - this.userId.removeChangeEvent(this); - } - - if (this.canSetFieldValue(this.userId, value)) { - userId = value; - this.changed(); - } - if (this.userId != null) { - this.userId.addOnChangeEvent(this); - } - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ComplexPropertyChangedDelegateInterface - * #complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.propertyChanged(complexProperty); - } - - /** - * Property was changed. - * - * @param complexProperty - * the complex property - */ - private void propertyChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * Gets a value indicating whether the user can create new items. - * - * @return the can create items - */ - public boolean getCanCreateItems() { - return this.canCreateItems; - } - - /** - * Sets the can create items. - * - * @param value - * the new can create items - */ - public void setCanCreateItems(boolean value) { - if (this.canSetFieldValue(this.canCreateItems, value)) { - this.canCreateItems = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating whether the user can create - * sub-folders. - * - * @return the can create sub folders - */ - public boolean getCanCreateSubFolders() { - return this.canCreateSubFolders; - } - - /** - * Sets the can create sub folders. - * - * @param value - * the new can create sub folders - */ - public void setCanCreateSubFolders(boolean value) { - if (this.canSetFieldValue(this.canCreateSubFolders, value)) { - this.canCreateSubFolders = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating whether the user owns the folder. - * - * @return the checks if is folder owner - */ - public boolean getIsFolderOwner() { - return this.isFolderOwner; - } - - /** - * Sets the checks if is folder owner. - * - * @param value - * the new checks if is folder owner - */ - public void setIsFolderOwner(boolean value) { - if (this.canSetFieldValue(this.isFolderOwner, value)) { - this.isFolderOwner = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating whether the folder is visible to the - * user. - * - * @return the checks if is folder visible - */ - public boolean getIsFolderVisible() { - return this.isFolderVisible; - } - - /** - * Sets the checks if is folder visible. - * - * @param value - * the new checks if is folder visible - */ - public void setIsFolderVisible(boolean value) { - if (this.canSetFieldValue(this.isFolderVisible, value)) { - this.isFolderVisible = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating whether the user is a contact for the - * folder. - * - * @return the checks if is folder contact - */ - public boolean getIsFolderContact() { - return this.isFolderContact; - } - - /** - * Sets the checks if is folder contact. - * - * @param value - * the new checks if is folder contact - */ - public void setIsFolderContact(boolean value) { - if (this.canSetFieldValue(this.isFolderContact, value)) { - this.isFolderContact = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating if/how the user can edit existing - * items. - * - * @return the edits the items - */ - public PermissionScope getEditItems() { - return this.editItems; - } - - /** - * Sets the edits the items. - * - * @param value - * the new edits the items - */ - public void setEditItems(PermissionScope value) { - if (this.canSetFieldValue(this.editItems, value)) { - this.editItems = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets a value indicating if/how the user can delete existing - * items. - * - * @return the delete items - */ - public PermissionScope getDeleteItems() { - return this.deleteItems; - } - - /** - * Sets the delete items. - * - * @param value - * the new delete items - */ - public void setDeleteItems(PermissionScope value) { - if (this.canSetFieldValue(this.deleteItems, value)) { - this.deleteItems = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets the read items access permission. - * - * @return the read items - */ - public FolderPermissionReadAccess getReadItems() { - return this.readItems; - } - - /** - * Sets the read items. - * - * @param value - * the new read items - */ - public void setReadItems(FolderPermissionReadAccess value) { - if (this.canSetFieldValue(this.readItems, value)) { - this.readItems = value; - this.changed(); - } - this.AdjustPermissionLevel(); - } - - /** - * Gets the permission level. - * - * @return the permission level - */ - public FolderPermissionLevel getPermissionLevel() { - return this.permissionLevel; - } - - /** - * Sets the permission level. - * - * @param value - * the new permission level - * @throws ServiceLocalException - * the service local exception - */ - public void setPermissionLevel(FolderPermissionLevel value) - throws ServiceLocalException { - if (this.permissionLevel != value) { - if (value == FolderPermissionLevel.Custom) { - throw new ServiceLocalException( - Strings.CannotSetPermissionLevelToCustom); - } - - this.AssignIndividualPermissions(defaultPermissions.getMember() - .get(value)); - if (this.canSetFieldValue(this.permissionLevel, value)) { - this.permissionLevel = value; - this.changed(); - } - } - } - - /** - * Gets the permission level that Outlook would display for this folder - * permission. - * - * @return the display permission level - */ - public FolderPermissionLevel getDisplayPermissionLevel() { - // If permission level is set to Custom, see if there's a variant - // that Outlook would map to the same permission level. - if (this.permissionLevel == FolderPermissionLevel.Custom) { - for (FolderPermission variant : FolderPermission.levelVariants - .getMember()) { - if (this.isEqualTo(variant)) { - return variant.getPermissionLevel(); - } - } - } - - return this.permissionLevel; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.UserId)) { - this.userId = new UserId(); - this.userId.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.CanCreateItems)) { - this.canCreateItems = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.CanCreateSubFolders)) { - this.canCreateSubFolders = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsFolderOwner)) { - this.isFolderOwner = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsFolderVisible)) { - this.isFolderVisible = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsFolderContact)) { - this.isFolderContact = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.EditItems)) { - this.editItems = reader.readValue(PermissionScope.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.DeleteItems)) { - this.deleteItems = reader.readValue(PermissionScope.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ReadItems)) { - this.readItems = reader.readValue(FolderPermissionReadAccess.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.PermissionLevel) - || reader.getLocalName().equalsIgnoreCase( - XmlElementNames.CalendarPermissionLevel)) { - this.permissionLevel = reader - .readValue(FolderPermissionLevel.class); - return true; - } else { - return false; - } - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param xmlNamespace - * the xml namespace - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, String xmlElementName) throws Exception { - super.loadFromXml(reader, xmlNamespace, xmlElementName); - - this.AdjustPermissionLevel(); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @param isCalendarFolder - * the is calendar folder - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer, - boolean isCalendarFolder) throws Exception { - if (this.userId != null) { - this.userId.writeToXml(writer, XmlElementNames.UserId); - } - - if (this.permissionLevel == FolderPermissionLevel.Custom) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.CanCreateItems, this.canCreateItems); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.CanCreateSubFolders, - this.canCreateSubFolders); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.IsFolderOwner, this.isFolderOwner); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.IsFolderVisible, this.isFolderVisible); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.IsFolderContact, this.isFolderContact); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.EditItems, this.editItems); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DeleteItems, this.deleteItems); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ReadItems, this.readItems); - } - - writer - .writeElementValue( - XmlNamespace.Types, - isCalendarFolder ? XmlElementNames. - CalendarPermissionLevel - : XmlElementNames.PermissionLevel, - this.permissionLevel); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @param isCalendarFolder - * the is calendar folder - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - String xmlElementName, boolean isCalendarFolder) throws Exception { - writer.writeStartElement(this.getNamespace(), xmlElementName); - this.writeAttributesToXml(writer); - this.writeElementsToXml(writer, isCalendarFolder); - writer.writeEndElement(); - } + /** + * Determines the permission level of this folder permission based on its + * individual settings, and sets the PermissionLevel property accordingly. + */ + private void AdjustPermissionLevel() { + for (Entry keyValuePair : defaultPermissions + .getMember().entrySet()) { + if (this.isEqualTo(keyValuePair.getValue())) { + this.permissionLevel = keyValuePair.getKey(); + return; + } + } + this.permissionLevel = FolderPermissionLevel.Custom; + } + + /** + * Copies the values of the individual permissions of the specified folder + * permission to this folder permissions. + * + * @param permission the permission + */ + private void AssignIndividualPermissions(FolderPermission permission) { + this.canCreateItems = permission.canCreateItems; + this.canCreateSubFolders = permission.canCreateSubFolders; + this.isFolderContact = permission.isFolderContact; + this.isFolderOwner = permission.isFolderOwner; + this.isFolderVisible = permission.isFolderVisible; + this.editItems = permission.editItems; + this.deleteItems = permission.deleteItems; + this.readItems = permission.readItems; + } + + /** + * Initializes a new instance of the FolderPermission class. + */ + public FolderPermission() { + super(); + this.userId = new UserId(); + } + + /** + * Initializes a new instance of the FolderPermission class. + * + * @param userId the user id + * @param permissionLevel the permission level + * @throws Exception the exception + */ + public FolderPermission(UserId userId, + FolderPermissionLevel permissionLevel) + throws Exception { + EwsUtilities.validateParam(userId, "userId"); + + this.userId = userId; + this.permissionLevel = permissionLevel; + } + + /** + * Initializes a new instance of the FolderPermission class. + * + * @param primarySmtpAddress the primary smtp address + * @param permissionLevel the permission level + */ + public FolderPermission(String primarySmtpAddress, + FolderPermissionLevel permissionLevel) { + this.userId = new UserId(primarySmtpAddress); + this.permissionLevel = permissionLevel; + } + + /** + * Initializes a new instance of the FolderPermission class. + * + * @param standardUser the standard user + * @param permissionLevel the permission level + */ + public FolderPermission(StandardUser standardUser, + FolderPermissionLevel permissionLevel) { + this.userId = new UserId(standardUser); + this.permissionLevel = permissionLevel; + } + + /** + * Validates this instance. + * + * @param isCalendarFolder the is calendar folder + * @param permissionIndex the permission index + * @throws ServiceValidationException the service validation exception + * @throws ServiceLocalException the service local exception + */ + void validate(boolean isCalendarFolder, int permissionIndex) + throws ServiceValidationException, ServiceLocalException { + // Check UserId + if (!this.userId.isValid()) { + throw new ServiceValidationException(String.format( + Strings.FolderPermissionHasInvalidUserId, permissionIndex)); + } + + // If this permission is to be used for a non-calendar folder make sure + // that read access and permission level aren't set to Calendar-only + // values + if (!isCalendarFolder) { + if ((this.readItems == FolderPermissionReadAccess.TimeAndSubjectAndLocation) + || (this.readItems == FolderPermissionReadAccess. + TimeOnly)) { + throw new ServiceLocalException(String.format( + Strings.ReadAccessInvalidForNonCalendarFolder, + this.readItems)); + } + + if ((this.permissionLevel == FolderPermissionLevel.FreeBusyTimeAndSubjectAndLocation) + || (this.permissionLevel == FolderPermissionLevel. + FreeBusyTimeOnly)) { + throw new ServiceLocalException(String.format( + Strings.PermissionLevelInvalidForNonCalendarFolder, + this.permissionLevel)); + } + } + } + + /** + * Gets the Id of the user the permission applies to. + * + * @return the user id + */ + + public UserId getUserId() { + return this.userId; + } + + /** + * Sets the user id. + * + * @param value the new user id + */ + public void setUserId(UserId value) { + if (this.userId != null) { + this.userId.removeChangeEvent(this); + } + + if (this.canSetFieldValue(this.userId, value)) { + userId = value; + this.changed(); + } + if (this.userId != null) { + this.userId.addOnChangeEvent(this); + } + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ComplexPropertyChangedDelegateInterface + * #complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.propertyChanged(complexProperty); + } + + /** + * Property was changed. + * + * @param complexProperty the complex property + */ + private void propertyChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * Gets a value indicating whether the user can create new items. + * + * @return the can create items + */ + public boolean getCanCreateItems() { + return this.canCreateItems; + } + + /** + * Sets the can create items. + * + * @param value the new can create items + */ + public void setCanCreateItems(boolean value) { + if (this.canSetFieldValue(this.canCreateItems, value)) { + this.canCreateItems = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating whether the user can create + * sub-folders. + * + * @return the can create sub folders + */ + public boolean getCanCreateSubFolders() { + return this.canCreateSubFolders; + } + + /** + * Sets the can create sub folders. + * + * @param value the new can create sub folders + */ + public void setCanCreateSubFolders(boolean value) { + if (this.canSetFieldValue(this.canCreateSubFolders, value)) { + this.canCreateSubFolders = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating whether the user owns the folder. + * + * @return the checks if is folder owner + */ + public boolean getIsFolderOwner() { + return this.isFolderOwner; + } + + /** + * Sets the checks if is folder owner. + * + * @param value the new checks if is folder owner + */ + public void setIsFolderOwner(boolean value) { + if (this.canSetFieldValue(this.isFolderOwner, value)) { + this.isFolderOwner = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating whether the folder is visible to the + * user. + * + * @return the checks if is folder visible + */ + public boolean getIsFolderVisible() { + return this.isFolderVisible; + } + + /** + * Sets the checks if is folder visible. + * + * @param value the new checks if is folder visible + */ + public void setIsFolderVisible(boolean value) { + if (this.canSetFieldValue(this.isFolderVisible, value)) { + this.isFolderVisible = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating whether the user is a contact for the + * folder. + * + * @return the checks if is folder contact + */ + public boolean getIsFolderContact() { + return this.isFolderContact; + } + + /** + * Sets the checks if is folder contact. + * + * @param value the new checks if is folder contact + */ + public void setIsFolderContact(boolean value) { + if (this.canSetFieldValue(this.isFolderContact, value)) { + this.isFolderContact = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating if/how the user can edit existing + * items. + * + * @return the edits the items + */ + public PermissionScope getEditItems() { + return this.editItems; + } + + /** + * Sets the edits the items. + * + * @param value the new edits the items + */ + public void setEditItems(PermissionScope value) { + if (this.canSetFieldValue(this.editItems, value)) { + this.editItems = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets a value indicating if/how the user can delete existing + * items. + * + * @return the delete items + */ + public PermissionScope getDeleteItems() { + return this.deleteItems; + } + + /** + * Sets the delete items. + * + * @param value the new delete items + */ + public void setDeleteItems(PermissionScope value) { + if (this.canSetFieldValue(this.deleteItems, value)) { + this.deleteItems = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets the read items access permission. + * + * @return the read items + */ + public FolderPermissionReadAccess getReadItems() { + return this.readItems; + } + + /** + * Sets the read items. + * + * @param value the new read items + */ + public void setReadItems(FolderPermissionReadAccess value) { + if (this.canSetFieldValue(this.readItems, value)) { + this.readItems = value; + this.changed(); + } + this.AdjustPermissionLevel(); + } + + /** + * Gets the permission level. + * + * @return the permission level + */ + public FolderPermissionLevel getPermissionLevel() { + return this.permissionLevel; + } + + /** + * Sets the permission level. + * + * @param value the new permission level + * @throws ServiceLocalException the service local exception + */ + public void setPermissionLevel(FolderPermissionLevel value) + throws ServiceLocalException { + if (this.permissionLevel != value) { + if (value == FolderPermissionLevel.Custom) { + throw new ServiceLocalException( + Strings.CannotSetPermissionLevelToCustom); + } + + this.AssignIndividualPermissions(defaultPermissions.getMember() + .get(value)); + if (this.canSetFieldValue(this.permissionLevel, value)) { + this.permissionLevel = value; + this.changed(); + } + } + } + + /** + * Gets the permission level that Outlook would display for this folder + * permission. + * + * @return the display permission level + */ + public FolderPermissionLevel getDisplayPermissionLevel() { + // If permission level is set to Custom, see if there's a variant + // that Outlook would map to the same permission level. + if (this.permissionLevel == FolderPermissionLevel.Custom) { + for (FolderPermission variant : FolderPermission.levelVariants + .getMember()) { + if (this.isEqualTo(variant)) { + return variant.getPermissionLevel(); + } + } + } + + return this.permissionLevel; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.UserId)) { + this.userId = new UserId(); + this.userId.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.CanCreateItems)) { + this.canCreateItems = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.CanCreateSubFolders)) { + this.canCreateSubFolders = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsFolderOwner)) { + this.isFolderOwner = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsFolderVisible)) { + this.isFolderVisible = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsFolderContact)) { + this.isFolderContact = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.EditItems)) { + this.editItems = reader.readValue(PermissionScope.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.DeleteItems)) { + this.deleteItems = reader.readValue(PermissionScope.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ReadItems)) { + this.readItems = reader.readValue(FolderPermissionReadAccess.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.PermissionLevel) + || reader.getLocalName().equalsIgnoreCase( + XmlElementNames.CalendarPermissionLevel)) { + this.permissionLevel = reader + .readValue(FolderPermissionLevel.class); + return true; + } else { + return false; + } + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param xmlNamespace the xml namespace + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, String xmlElementName) throws Exception { + super.loadFromXml(reader, xmlNamespace, xmlElementName); + + this.AdjustPermissionLevel(); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @param isCalendarFolder the is calendar folder + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer, + boolean isCalendarFolder) throws Exception { + if (this.userId != null) { + this.userId.writeToXml(writer, XmlElementNames.UserId); + } + + if (this.permissionLevel == FolderPermissionLevel.Custom) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.CanCreateItems, this.canCreateItems); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.CanCreateSubFolders, + this.canCreateSubFolders); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.IsFolderOwner, this.isFolderOwner); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.IsFolderVisible, this.isFolderVisible); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.IsFolderContact, this.isFolderContact); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.EditItems, this.editItems); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DeleteItems, this.deleteItems); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ReadItems, this.readItems); + } + + writer + .writeElementValue( + XmlNamespace.Types, + isCalendarFolder ? XmlElementNames. + CalendarPermissionLevel + : XmlElementNames.PermissionLevel, + this.permissionLevel); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @param isCalendarFolder the is calendar folder + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + String xmlElementName, boolean isCalendarFolder) throws Exception { + writer.writeStartElement(this.getNamespace(), xmlElementName); + this.writeAttributesToXml(writer); + this.writeElementsToXml(writer, isCalendarFolder); + writer.writeEndElement(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java index a9caf219d..ca9b69011 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java @@ -15,212 +15,203 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Iterator; /** - *Represents a collection of folder permissions. + * Represents a collection of folder permissions. */ public final class FolderPermissionCollection extends - ComplexPropertyCollection { - - /** The is calendar folder. */ - private boolean isCalendarFolder; - - /** The unknown entries. */ - private Collection unknownEntries = new ArrayList(); - - /** - * Initializes a new instance of the FolderPermissionCollection class. - * - * @param owner - * the owner - */ - protected FolderPermissionCollection(Folder owner) { - super(); - this.isCalendarFolder = owner instanceof CalendarFolder; - } - - /** - * Gets the name of the inner collection XML element. - * - * @return the inner collection xml element name - */ - private String getInnerCollectionXmlElementName() { - return this.isCalendarFolder ? XmlElementNames.CalendarPermissions : - XmlElementNames.Permissions; - } - - /** - * Gets the name of the collection item XML element. - * - * @return the collection item xml element name - */ - private String getCollectionItemXmlElementName() { - return this.isCalendarFolder ? XmlElementNames.CalendarPermission : - XmlElementNames.Permission; - } - - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * the complex property - * @return the collection item xml element name - */ - @Override - protected String getCollectionItemXmlElementName( - FolderPermission complexProperty) { - return this.getCollectionItemXmlElementName(); - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param localElementName - * the local element name - * @throws Exception - * the exception - */ - @Override - protected void loadFromXml(EwsServiceXmlReader reader, - String localElementName) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - localElementName); - - reader.readStartElement(XmlNamespace.Types, this - .getInnerCollectionXmlElementName()); - super.loadFromXml(reader, this.getInnerCollectionXmlElementName()); - reader.readEndElementIfNecessary(XmlNamespace.Types, this - .getInnerCollectionXmlElementName()); - - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.UnknownEntries)) { - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.UnknownEntry)) { - this.unknownEntries.add(reader.readElementValue()); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.UnknownEntries)); - } - } - - /** - * Validates this instance. - */ - public void validate() { - for (int permissionIndex = 0; permissionIndex < this.getItems().size(); permissionIndex++) { - FolderPermission permission = this.getItems().get(permissionIndex); - try { - permission.validate(this.isCalendarFolder, permissionIndex); - } catch (ServiceValidationException e) { - e.printStackTrace(); - } catch (ServiceLocalException e) { - e.printStackTrace(); - } - } - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Types, this - .getInnerCollectionXmlElementName()); - for (FolderPermission folderPermission : this) { - folderPermission.writeToXml(writer, this - .getCollectionItemXmlElementName(folderPermission), - this.isCalendarFolder); - } - writer.writeEndElement(); // this.InnerCollectionXmlElementName - } - - /** - * Creates the complex property. - * - * @param xmlElementName - * the xml element name - * @return FolderPermission instance. - */ - @Override - protected FolderPermission createComplexProperty(String xmlElementName) { - return new FolderPermission(); - } - - /** - * Adds a permission to the collection. - * - * @param permission - * the permission - */ - public void add(FolderPermission permission) { - this.internalAdd(permission); - } - - /** - * Adds the specified permissions to the collection. - * - * @param permissions - * the permissions - * @throws Exception - * the exception - */ - public void addFolderRange(Iterator permissions) - throws Exception { - EwsUtilities.validateParam(permissions, "permissions"); - - if (null != permissions) { - while (permissions.hasNext()) { - this.add(permissions.next()); - } - } - } - - /** - * Clears this collection. - */ - public void clear() { - this.internalClear(); - } - - /** - * Removes a permission from the collection. - * - * @param permission - * the permission - * @return True if the folder permission was successfully removed from the - * collection, false otherwise. - */ - public boolean remove(FolderPermission permission) { - return this.internalRemove(permission); - } - - /** - * Removes a permission from the collection. - * - * @param index - * the index - */ - public void removeAt(int index) { - this.internalRemoveAt(index); - } - - /** - * Gets a list of unknown user Ids in the collection. - * - * @return the unknown entries - */ - public Collection getUnknownEntries() { - return this.unknownEntries; - } + ComplexPropertyCollection { + + /** + * The is calendar folder. + */ + private boolean isCalendarFolder; + + /** + * The unknown entries. + */ + private Collection unknownEntries = new ArrayList(); + + /** + * Initializes a new instance of the FolderPermissionCollection class. + * + * @param owner the owner + */ + protected FolderPermissionCollection(Folder owner) { + super(); + this.isCalendarFolder = owner instanceof CalendarFolder; + } + + /** + * Gets the name of the inner collection XML element. + * + * @return the inner collection xml element name + */ + private String getInnerCollectionXmlElementName() { + return this.isCalendarFolder ? XmlElementNames.CalendarPermissions : + XmlElementNames.Permissions; + } + + /** + * Gets the name of the collection item XML element. + * + * @return the collection item xml element name + */ + private String getCollectionItemXmlElementName() { + return this.isCalendarFolder ? XmlElementNames.CalendarPermission : + XmlElementNames.Permission; + } + + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty the complex property + * @return the collection item xml element name + */ + @Override + protected String getCollectionItemXmlElementName( + FolderPermission complexProperty) { + return this.getCollectionItemXmlElementName(); + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param localElementName the local element name + * @throws Exception the exception + */ + @Override + protected void loadFromXml(EwsServiceXmlReader reader, + String localElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + localElementName); + + reader.readStartElement(XmlNamespace.Types, this + .getInnerCollectionXmlElementName()); + super.loadFromXml(reader, this.getInnerCollectionXmlElementName()); + reader.readEndElementIfNecessary(XmlNamespace.Types, this + .getInnerCollectionXmlElementName()); + + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.UnknownEntries)) { + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.UnknownEntry)) { + this.unknownEntries.add(reader.readElementValue()); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.UnknownEntries)); + } + } + + /** + * Validates this instance. + */ + public void validate() { + for (int permissionIndex = 0; permissionIndex < this.getItems().size(); permissionIndex++) { + FolderPermission permission = this.getItems().get(permissionIndex); + try { + permission.validate(this.isCalendarFolder, permissionIndex); + } catch (ServiceValidationException e) { + e.printStackTrace(); + } catch (ServiceLocalException e) { + e.printStackTrace(); + } + } + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Types, this + .getInnerCollectionXmlElementName()); + for (FolderPermission folderPermission : this) { + folderPermission.writeToXml(writer, this + .getCollectionItemXmlElementName(folderPermission), + this.isCalendarFolder); + } + writer.writeEndElement(); // this.InnerCollectionXmlElementName + } + + /** + * Creates the complex property. + * + * @param xmlElementName the xml element name + * @return FolderPermission instance. + */ + @Override + protected FolderPermission createComplexProperty(String xmlElementName) { + return new FolderPermission(); + } + + /** + * Adds a permission to the collection. + * + * @param permission the permission + */ + public void add(FolderPermission permission) { + this.internalAdd(permission); + } + + /** + * Adds the specified permissions to the collection. + * + * @param permissions the permissions + * @throws Exception the exception + */ + public void addFolderRange(Iterator permissions) + throws Exception { + EwsUtilities.validateParam(permissions, "permissions"); + + if (null != permissions) { + while (permissions.hasNext()) { + this.add(permissions.next()); + } + } + } + + /** + * Clears this collection. + */ + public void clear() { + this.internalClear(); + } + + /** + * Removes a permission from the collection. + * + * @param permission the permission + * @return True if the folder permission was successfully removed from the + * collection, false otherwise. + */ + public boolean remove(FolderPermission permission) { + return this.internalRemove(permission); + } + + /** + * Removes a permission from the collection. + * + * @param index the index + */ + public void removeAt(int index) { + this.internalRemoveAt(index); + } + + /** + * Gets a list of unknown user Ids in the collection. + * + * @return the unknown entries + */ + public Collection getUnknownEntries() { + return this.unknownEntries; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java index 7ae5ec98c..03074a0d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java @@ -12,57 +12,83 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of //TODO : Do we want to include more information about //what those levels actually allow users to do? + + /** * Defines permission levels for calendar folders. */ public enum FolderPermissionLevel { - // No permission is granted. - /** The None. */ - None, + // No permission is granted. + /** + * The None. + */ + None, - // The Owner level. - /** The Owner. */ - Owner, + // The Owner level. + /** + * The Owner. + */ + Owner, - // The Publishing Editor level. - /** The Publishing editor. */ - PublishingEditor, + // The Publishing Editor level. + /** + * The Publishing editor. + */ + PublishingEditor, - // The Editor level. - /** The Editor. */ - Editor, + // The Editor level. + /** + * The Editor. + */ + Editor, - // The Pusnlishing Author level. - /** The Publishing author. */ - PublishingAuthor, + // The Pusnlishing Author level. + /** + * The Publishing author. + */ + PublishingAuthor, - // The Author level. - /** The Author. */ - Author, + // The Author level. + /** + * The Author. + */ + Author, - // The Non-editing Author level. - /** The Nonediting author. */ - NoneditingAuthor, + // The Non-editing Author level. + /** + * The Nonediting author. + */ + NoneditingAuthor, - // The Reviewer level. - /** The Reviewer. */ - Reviewer, + // The Reviewer level. + /** + * The Reviewer. + */ + Reviewer, - // The Contributor level. - /** The Contributor. */ - Contributor, + // The Contributor level. + /** + * The Contributor. + */ + Contributor, - // The Free/busy Time Only level. (Can only be applied to Calendar folders). - /** The Free busy time only. */ - FreeBusyTimeOnly, + // The Free/busy Time Only level. (Can only be applied to Calendar folders). + /** + * The Free busy time only. + */ + FreeBusyTimeOnly, - // The Free/busy Time, Subject and Location level. (Can only be applied to - // Calendar folders). - /** The Free busy time and subject and location. */ - FreeBusyTimeAndSubjectAndLocation, + // The Free/busy Time, Subject and Location level. (Can only be applied to + // Calendar folders). + /** + * The Free busy time and subject and location. + */ + FreeBusyTimeAndSubjectAndLocation, - // The Custom level. - /** The Custom. */ - Custom + // The Custom level. + /** + * The Custom. + */ + Custom } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java index d62c545ed..031ba2460 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java @@ -15,21 +15,29 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum FolderPermissionReadAccess { - // The user has no read access on the items in the folder. - /** The None. */ - None, + // The user has no read access on the items in the folder. + /** + * The None. + */ + None, - // The user can read the start and end date and time of appointments. (Can - // only be applied to Calendar folders). - /** The Time only. */ - TimeOnly, + // The user can read the start and end date and time of appointments. (Can + // only be applied to Calendar folders). + /** + * The Time only. + */ + TimeOnly, - // The user can read the start and end date and time, subject and location - // of appointments. (Can only be applied to Calendar folders). - /** The Time and subject and location. */ - TimeAndSubjectAndLocation, + // The user can read the start and end date and time, subject and location + // of appointments. (Can only be applied to Calendar folders). + /** + * The Time and subject and location. + */ + TimeAndSubjectAndLocation, - // The user has access to the full details of items. - /** The Full details. */ - FullDetails + // The user has access to the full details of items. + /** + * The Full details. + */ + FullDetails } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java index 2d8c116fd..d20a91d7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java @@ -14,190 +14,211 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for folders. - * */ @Schema public class FolderSchema extends ServiceObjectSchema { - /** - * Field URIs for folders. - * - */ - private static class FieldUris { - - /** The Constant FolderId. */ - public final static String FolderId = "folder:FolderId"; - - /** The Constant ParentFolderId. */ - public final static String ParentFolderId = "folder:ParentFolderId"; - - /** The Constant DisplayName. */ - public final static String DisplayName = "folder:DisplayName"; - - /** The Constant UnreadCount. */ - public final static String UnreadCount = "folder:UnreadCount"; - - /** The Constant TotalCount. */ - public final static String TotalCount = "folder:TotalCount"; - - /** The Constant ChildFolderCount. */ - public final static String ChildFolderCount = "folder:ChildFolderCount"; - - /** The Constant FolderClass. */ - public final static String FolderClass = "folder:FolderClass"; - - /** The Constant ManagedFolderInformation. */ - public final static String ManagedFolderInformation = - "folder:ManagedFolderInformation"; - - /** The Constant EffectiveRights. */ - public final static String EffectiveRights = "folder:EffectiveRights"; - - /** The Constant PermissionSet. */ - public final static String PermissionSet = "folder:PermissionSet"; - } - - /** - * Defines the Id property. - */ - public static final PropertyDefinition Id = - new ComplexPropertyDefinition( - FolderId.class, - XmlElementNames.FolderId, FieldUris.FolderId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public FolderId createComplexProperty() { - return new FolderId(); - } - } - - ); - - /** - * Defines the FolderClass property. - */ - public static final PropertyDefinition FolderClass = - new StringPropertyDefinition( - XmlElementNames.FolderClass, FieldUris.FolderClass, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ParentFolderId property. - */ - public static final PropertyDefinition ParentFolderId = - new ComplexPropertyDefinition( - FolderId.class, - XmlElementNames.ParentFolderId, FieldUris.ParentFolderId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public FolderId createComplexProperty() { - return new FolderId(); - } - }); - - /** - * Defines the ChildFolderCount property. - */ - public static final PropertyDefinition ChildFolderCount = - new IntPropertyDefinition( - XmlElementNames.ChildFolderCount, FieldUris.ChildFolderCount, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DisplayName property. - */ - public static final PropertyDefinition DisplayName = - new StringPropertyDefinition( - XmlElementNames.DisplayName, FieldUris.DisplayName, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the UnreadCount property. - */ - public static final PropertyDefinition UnreadCount = - new IntPropertyDefinition( - XmlElementNames.UnreadCount, FieldUris.UnreadCount, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the TotalCount property. - */ - public static final PropertyDefinition TotalCount = - new IntPropertyDefinition( - XmlElementNames.TotalCount, FieldUris.TotalCount, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ManagedFolderInformation property. - */ - public static final PropertyDefinition ManagedFolderInformation = - new ComplexPropertyDefinition( - ManagedFolderInformation.class, - XmlElementNames.ManagedFolderInformation, - FieldUris.ManagedFolderInformation, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - public ManagedFolderInformation createComplexProperty() { - return new ManagedFolderInformation(); - } - }); - - /** - * Defines the EffectiveRights property. - */ - public static final PropertyDefinition EffectiveRights = - new EffectiveRightsPropertyDefinition( - XmlElementNames.EffectiveRights, FieldUris.EffectiveRights, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Permissions property. - */ - public static final PropertyDefinition Permissions = - new PermissionSetPropertyDefinition( - XmlElementNames.PermissionSet, FieldUris.PermissionSet, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1); - - /** This must be declared after the property definitions. */ - protected static final FolderSchema Instance = new FolderSchema(); - - /** - * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN - * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(Id); - this.registerProperty(ParentFolderId); - this.registerProperty(FolderClass); - this.registerProperty(DisplayName); - this.registerProperty(TotalCount); - this.registerProperty(ChildFolderCount); - this.registerProperty(ServiceObjectSchema.extendedProperties); - this.registerProperty(ManagedFolderInformation); - this.registerProperty(EffectiveRights); - this.registerProperty(Permissions); - this.registerProperty(UnreadCount); - } + /** + * Field URIs for folders. + */ + private static class FieldUris { + + /** + * The Constant FolderId. + */ + public final static String FolderId = "folder:FolderId"; + + /** + * The Constant ParentFolderId. + */ + public final static String ParentFolderId = "folder:ParentFolderId"; + + /** + * The Constant DisplayName. + */ + public final static String DisplayName = "folder:DisplayName"; + + /** + * The Constant UnreadCount. + */ + public final static String UnreadCount = "folder:UnreadCount"; + + /** + * The Constant TotalCount. + */ + public final static String TotalCount = "folder:TotalCount"; + + /** + * The Constant ChildFolderCount. + */ + public final static String ChildFolderCount = "folder:ChildFolderCount"; + + /** + * The Constant FolderClass. + */ + public final static String FolderClass = "folder:FolderClass"; + + /** + * The Constant ManagedFolderInformation. + */ + public final static String ManagedFolderInformation = + "folder:ManagedFolderInformation"; + + /** + * The Constant EffectiveRights. + */ + public final static String EffectiveRights = "folder:EffectiveRights"; + + /** + * The Constant PermissionSet. + */ + public final static String PermissionSet = "folder:PermissionSet"; + } + + + /** + * Defines the Id property. + */ + public static final PropertyDefinition Id = + new ComplexPropertyDefinition( + FolderId.class, + XmlElementNames.FolderId, FieldUris.FolderId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public FolderId createComplexProperty() { + return new FolderId(); + } + } + + ); + + /** + * Defines the FolderClass property. + */ + public static final PropertyDefinition FolderClass = + new StringPropertyDefinition( + XmlElementNames.FolderClass, FieldUris.FolderClass, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ParentFolderId property. + */ + public static final PropertyDefinition ParentFolderId = + new ComplexPropertyDefinition( + FolderId.class, + XmlElementNames.ParentFolderId, FieldUris.ParentFolderId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public FolderId createComplexProperty() { + return new FolderId(); + } + }); + + /** + * Defines the ChildFolderCount property. + */ + public static final PropertyDefinition ChildFolderCount = + new IntPropertyDefinition( + XmlElementNames.ChildFolderCount, FieldUris.ChildFolderCount, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DisplayName property. + */ + public static final PropertyDefinition DisplayName = + new StringPropertyDefinition( + XmlElementNames.DisplayName, FieldUris.DisplayName, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the UnreadCount property. + */ + public static final PropertyDefinition UnreadCount = + new IntPropertyDefinition( + XmlElementNames.UnreadCount, FieldUris.UnreadCount, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the TotalCount property. + */ + public static final PropertyDefinition TotalCount = + new IntPropertyDefinition( + XmlElementNames.TotalCount, FieldUris.TotalCount, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ManagedFolderInformation property. + */ + public static final PropertyDefinition ManagedFolderInformation = + new ComplexPropertyDefinition( + ManagedFolderInformation.class, + XmlElementNames.ManagedFolderInformation, + FieldUris.ManagedFolderInformation, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + public ManagedFolderInformation createComplexProperty() { + return new ManagedFolderInformation(); + } + }); + + /** + * Defines the EffectiveRights property. + */ + public static final PropertyDefinition EffectiveRights = + new EffectiveRightsPropertyDefinition( + XmlElementNames.EffectiveRights, FieldUris.EffectiveRights, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Permissions property. + */ + public static final PropertyDefinition Permissions = + new PermissionSetPropertyDefinition( + XmlElementNames.PermissionSet, FieldUris.PermissionSet, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1); + + /** + * This must be declared after the property definitions. + */ + protected static final FolderSchema Instance = new FolderSchema(); + + /** + * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN + * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(Id); + this.registerProperty(ParentFolderId); + this.registerProperty(FolderClass); + this.registerProperty(DisplayName); + this.registerProperty(TotalCount); + this.registerProperty(ChildFolderCount); + this.registerProperty(ServiceObjectSchema.extendedProperties); + this.registerProperty(ManagedFolderInformation); + this.registerProperty(EffectiveRights); + this.registerProperty(Permissions); + this.registerProperty(UnreadCount); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java index d06e09256..d3f8b19a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum FolderTraversal { - // Only direct sub-folders are retrieved. - /** The Shallow. */ - Shallow, + // Only direct sub-folders are retrieved. + /** + * The Shallow. + */ + Shallow, - // The entire hierarchy of sub-folders is retrieved. - /** The Deep. */ - Deep, + // The entire hierarchy of sub-folders is retrieved. + /** + * The Deep. + */ + Deep, - // Only soft deleted folders are retrieved. - /** The Soft deleted. */ - SoftDeleted + // Only soft deleted folders are retrieved. + /** + * The Soft deleted. + */ + SoftDeleted } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderView.java b/src/main/java/microsoft/exchange/webservices/data/FolderView.java index 2fe20f394..efe20b125 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderView.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderView.java @@ -12,106 +12,98 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the view settings in a folder search operation. - * - * */ public final class FolderView extends PagedView { - /** The traversal. */ - private FolderTraversal traversal = FolderTraversal.Shallow; + /** + * The traversal. + */ + private FolderTraversal traversal = FolderTraversal.Shallow; - /** - * Gets the name of the view XML element. - * - * @return Xml Element name - */ - @Override - protected String getViewXmlElementName() { - return XmlElementNames.IndexedPageFolderView; - } + /** + * Gets the name of the view XML element. + * + * @return Xml Element name + */ + @Override + protected String getViewXmlElementName() { + return XmlElementNames.IndexedPageFolderView; + } - /** - * Gets the type of service object this view applies to. - * - * @return A ServiceObjectType value. - */ - @Override - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Folder; - } + /** + * Gets the type of service object this view applies to. + * + * @return A ServiceObjectType value. + */ + @Override + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Folder; + } - /** - * Writes the attributes to XML. - * - * @param writer - * The writer - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) { - try { - writer.writeAttributeValue(XmlAttributeNames.Traversal, this - .getTraversal()); - } catch (ServiceXmlSerializationException e) { - e.printStackTrace(); - } - } + /** + * Writes the attributes to XML. + * + * @param writer The writer + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) { + try { + writer.writeAttributeValue(XmlAttributeNames.Traversal, this + .getTraversal()); + } catch (ServiceXmlSerializationException e) { + e.printStackTrace(); + } + } - /** - * Initializes a new instance of the FolderView class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - */ - public FolderView(int pageSize) { - super(pageSize); - } + /** + * Initializes a new instance of the FolderView class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + */ + public FolderView(int pageSize) { + super(pageSize); + } - /** - * Initializes a new instance of the FolderView class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - * @param offset - * The offset of the view from the base point. - */ - public FolderView(int pageSize, int offset) { - super(pageSize, offset); - } + /** + * Initializes a new instance of the FolderView class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + * @param offset The offset of the view from the base point. + */ + public FolderView(int pageSize, int offset) { + super(pageSize, offset); + } - /** - * Initializes a new instance of the FolderView class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - * @param offset - * The offset of the view from the base point. - * @param offsetBasePoint - * The base point of the offset. - */ - public FolderView(int pageSize, int offset, - OffsetBasePoint offsetBasePoint) { - super(pageSize, offset, offsetBasePoint); - } + /** + * Initializes a new instance of the FolderView class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + * @param offset The offset of the view from the base point. + * @param offsetBasePoint The base point of the offset. + */ + public FolderView(int pageSize, int offset, + OffsetBasePoint offsetBasePoint) { + super(pageSize, offset, offsetBasePoint); + } - /** - * Gets the search traversal mode. Defaults to FolderTraversal.Shallow. - * - * @return the traversal - */ - public FolderTraversal getTraversal() { - return traversal; - } + /** + * Gets the search traversal mode. Defaults to FolderTraversal.Shallow. + * + * @return the traversal + */ + public FolderTraversal getTraversal() { + return traversal; + } - /** - * Sets the search traversal mode. Defaults to FolderTraversal.Shallow. - * - * @param traversal - * the new traversal - */ - public void setTraversal(FolderTraversal traversal) { - this.traversal = traversal; - } + /** + * Sets the search traversal mode. Defaults to FolderTraversal.Shallow. + * + * @param traversal the new traversal + */ + public void setTraversal(FolderTraversal traversal) { + this.traversal = traversal; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java index 0bef735b6..3603dcc2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java @@ -11,50 +11,45 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a folder Id provided by a Folder object. + * Represents a folder Id provided by a Folder object. */ class FolderWrapper extends AbstractFolderIdWrapper { - /** - * The Folder object providing the Id. - */ - private Folder folder; + /** + * The Folder object providing the Id. + */ + private Folder folder; - /** - * Initializes a new instance of FolderWrapper. - * - * @param folder - * the folder - * @throws ServiceLocalException - * the service local exception - */ - protected FolderWrapper(Folder folder) throws ServiceLocalException { - EwsUtilities.EwsAssert(folder != null, "FolderWrapper.ctor", - "folder is null"); - EwsUtilities.EwsAssert(!folder.isNew(), "FolderWrapper.ctor", - "folder does not have an Id"); - this.folder = folder; - } + /** + * Initializes a new instance of FolderWrapper. + * + * @param folder the folder + * @throws ServiceLocalException the service local exception + */ + protected FolderWrapper(Folder folder) throws ServiceLocalException { + EwsUtilities.EwsAssert(folder != null, "FolderWrapper.ctor", + "folder is null"); + EwsUtilities.EwsAssert(!folder.isNew(), "FolderWrapper.ctor", + "folder does not have an Id"); + this.folder = folder; + } - /** - * Obtains the Folder object associated with the wrapper. - * - * @return The Folder object associated with the wrapper - */ - public Folder getFolder() { - return this.folder; - } + /** + * Obtains the Folder object associated with the wrapper. + * + * @return The Folder object associated with the wrapper + */ + public Folder getFolder() { + return this.folder; + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.folder.getId().writeToXml(writer); - } + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.folder.getId().writeToXml(writer); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index 4f90af932..e685ce270 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -15,47 +15,43 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class FormatException extends Exception { - /** - * Instantiates a new format exception. - */ - public FormatException() { - super(); - - } - - /** - * Instantiates a new format exception. - * - * @param arg0 - * the arg0 - * @param arg1 - * the arg1 - */ - public FormatException(final String arg0, final Throwable arg1) { - super(arg0, arg1); - - } - - /** - * Instantiates a new format exception. - * - * @param arg0 - * the arg0 - */ - public FormatException(final String arg0) { - super(arg0); - - } - - /** - * Instantiates a new format exception. - * - * @param arg0 - * the arg0 - */ - public FormatException(final Throwable arg0) { - super(arg0); - - } + /** + * Instantiates a new format exception. + */ + public FormatException() { + super(); + + } + + /** + * Instantiates a new format exception. + * + * @param arg0 the arg0 + * @param arg1 the arg1 + */ + public FormatException(final String arg0, final Throwable arg1) { + super(arg0, arg1); + + } + + /** + * Instantiates a new format exception. + * + * @param arg0 the arg0 + */ + public FormatException(final String arg0) { + super(arg0); + + } + + /** + * Instantiates a new format exception. + * + * @param arg0 the arg0 + */ + public FormatException(final Throwable arg0) { + super(arg0); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java index e129a9f93..ff32757e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java +++ b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java @@ -16,56 +16,68 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum FreeBusyViewType { - // No view could be returned. This value cannot be specified in a call to - // GetUserAvailability. - /** The None. */ - None, + // No view could be returned. This value cannot be specified in a call to + // GetUserAvailability. + /** + * The None. + */ + None, - // Represents an aggregated free/busy stream. In cross-forest scenarios in - // which the target user in one forest - // does not have an Availability service configured, the Availability - // service of the requestor retrieves the - // target users free/busy information from the free/busy public folder. - // Because public folders only store - // free/busy information in merged form, MergedOnly is the only available - // information. - /** The Merged only. */ - MergedOnly, + // Represents an aggregated free/busy stream. In cross-forest scenarios in + // which the target user in one forest + // does not have an Availability service configured, the Availability + // service of the requestor retrieves the + // target users free/busy information from the free/busy public folder. + // Because public folders only store + // free/busy information in merged form, MergedOnly is the only available + // information. + /** + * The Merged only. + */ + MergedOnly, - // Represents the legacy status information: free, busy, tentative, and OOF. - // This also includes the start/end - // times of the appointments. This view is richer than the legacy free/busy - // view because individual meeting - // start and end times are provided instead of an aggregated free/busy - // stream. - /** The Free busy. */ - FreeBusy, + // Represents the legacy status information: free, busy, tentative, and OOF. + // This also includes the start/end + // times of the appointments. This view is richer than the legacy free/busy + // view because individual meeting + // start and end times are provided instead of an aggregated free/busy + // stream. + /** + * The Free busy. + */ + FreeBusy, - // Represents all the properties in FreeBusy with a stream of merged - // free/busy availability information. - /** The Free busy merged. */ - FreeBusyMerged, + // Represents all the properties in FreeBusy with a stream of merged + // free/busy availability information. + /** + * The Free busy merged. + */ + FreeBusyMerged, - // Represents the legacy status information: free, busy, tentative, and OOF; - // the start/end times of the - // appointments; and various properties of the appointment such as subject, - // location, and importance. - // This requested view will return the maximum amount of information for - // which the requesting user is privileged. - // If merged free/busy information only is available, as with requesting - // information for users in a Microsoft - // Exchange Server 2003 forest, MergedOnly will be returned. Otherwise, - // FreeBusy or Detailed will be returned. - /** The Detailed. */ - Detailed, + // Represents the legacy status information: free, busy, tentative, and OOF; + // the start/end times of the + // appointments; and various properties of the appointment such as subject, + // location, and importance. + // This requested view will return the maximum amount of information for + // which the requesting user is privileged. + // If merged free/busy information only is available, as with requesting + // information for users in a Microsoft + // Exchange Server 2003 forest, MergedOnly will be returned. Otherwise, + // FreeBusy or Detailed will be returned. + /** + * The Detailed. + */ + Detailed, - // Represents all the properties in Detailed with a stream of merged - // free/busy availability - // information. If only merged free/busy information is available, for - // example if the mailbox exists on a computer - // running Exchange 2003, MergedOnly will be returned. Otherwise, - // FreeBusyMerged or DetailedMerged will be returned. - /** The Detailed merged. */ - DetailedMerged + // Represents all the properties in Detailed with a stream of merged + // free/busy availability + // information. If only merged free/busy information is available, for + // example if the mailbox exists on a computer + // running Exchange 2003, MergedOnly will be returned. Otherwise, + // FreeBusyMerged or DetailedMerged will be returned. + /** + * The Detailed merged. + */ + DetailedMerged } diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java index 6f4310748..3467f598f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java @@ -12,39 +12,36 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a strongly typed item attachment. - * - * @param - * Item type. + * + * @param Item type. */ public final class GenericItemAttachment extends - ItemAttachment { + ItemAttachment { - /** - * Initializes a new instance of the GenericItemAttachment class. - * - * @param owner - * the owner - */ - protected GenericItemAttachment(Item owner) { - super(owner); - } + /** + * Initializes a new instance of the GenericItemAttachment class. + * + * @param owner the owner + */ + protected GenericItemAttachment(Item owner) { + super(owner); + } - /** - * Gets the item associated with the attachment. - * - * @return the t item - */ - public TItem getTItem() { - return (TItem)super.getItem(); - } + /** + * Gets the item associated with the attachment. + * + * @return the t item + */ + public TItem getTItem() { + return (TItem) super.getItem(); + } - /** - * Sets the t item. - * - * @param value - * the new t item - */ - protected void setTItem(TItem value) { - super.setItem(value); - } + /** + * Sets the t item. + * + * @param value the new t item + */ + protected void setTItem(TItem value) { + super.setItem(value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java index 9181ea07c..2dbd08d1a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java @@ -15,94 +15,87 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents generic property definition. - * + * * @param Property type. */ -class GenericPropertyDefinition extends -TypedPropertyDefinition { +class GenericPropertyDefinition extends + TypedPropertyDefinition { - private Class instance; - /** - * Initializes a new instance of the "GenericPropertyDefinition<T>" - * class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected GenericPropertyDefinition(Class cls, - String xmlElementName, String uri, - ExchangeVersion version) { - super(xmlElementName, uri, version); - this.instance = cls; - } + private Class instance; - /** - * Initializes a new instance of the "GenericPropertyDefinition<T>" - * class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected GenericPropertyDefinition(Class cls, - String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - this.instance = cls; - } + /** + * Initializes a new instance of the "GenericPropertyDefinition<T>" + * class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected GenericPropertyDefinition(Class cls, + String xmlElementName, String uri, + ExchangeVersion version) { + super(xmlElementName, uri, version); + this.instance = cls; + } - /** - * Initializes a new instance of the GenericPropertyDefinition class. - * @param xmlElementName Name of the XML element. - * @param uri The URI. - * @param flags The flags. - * @param version The version. - * @param isNullable if set to true, property value is nullable. - */ - protected GenericPropertyDefinition( - Class cls, - String xmlElementName, - String uri, - EnumSet flags, - ExchangeVersion version, - boolean isNullable) { - super(xmlElementName,uri,flags,version,isNullable); - this.instance = cls; - } + /** + * Initializes a new instance of the "GenericPropertyDefinition<T>" + * class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected GenericPropertyDefinition(Class cls, + String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + this.instance = cls; + } + /** + * Initializes a new instance of the GenericPropertyDefinition class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + * @param isNullable if set to true, property value is nullable. + */ + protected GenericPropertyDefinition( + Class cls, + String xmlElementName, + String uri, + EnumSet flags, + ExchangeVersion version, + boolean isNullable) { + super(xmlElementName, uri, flags, version, isNullable); + this.instance = cls; + } - /** - * Parses the specified value. - * - * @param value The value - * - * @return Double value from parsed value. - * - * @throws java.text.ParseException - * @throws IllegalAccessException - * @throws InstantiationException - */ - @Override - protected Object parse(String value) throws InstantiationException, - IllegalAccessException, ParseException { - - return EwsUtilities.parse(instance,value); - } - /** - * Gets the property type. - */ - @Override - public Class getType() { - return instance; - } + /** + * Parses the specified value. + * + * @param value The value + * @return Double value from parsed value. + * @throws java.text.ParseException + * @throws IllegalAccessException + * @throws InstantiationException + */ + @Override + protected Object parse(String value) throws InstantiationException, + IllegalAccessException, ParseException { + + return EwsUtilities.parse(instance, value); + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return instance; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java index 24ec52640..eab974b2f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java @@ -10,209 +10,204 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a GetAttachment request. - * */ final class GetAttachmentRequest extends - MultiResponseServiceRequest { - - /** The attachments. */ - private List attachments = new ArrayList(); - - /** The additional properties. */ - private List additionalProperties = - new ArrayList(); - - /** The body type. */ - private BodyType bodyType; - - /** - * Initializes a new instance of the GetAttachmentRequest class. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - GetAttachmentRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getAttachments().iterator(), - "Attachments"); - for (int i = 0; i < this.getAdditionalProperties().size(); i++) { - EwsUtilities.validateParam(this.getAdditionalProperties().get(i), - String.format("AdditionalProperties[%d]", i)); - } - } - - /** - * Creates the service response. - * - * @param service - * The service. - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected GetAttachmentResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new GetAttachmentResponse(this.getAttachments().get( - responseIndex)); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getAttachments().size(); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetAttachment; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetAttachmentResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetAttachmentResponseMessage; - } - - /** - * Writes XML elements. - * - * @param writer - * The writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - if ((this.getBodyType() != null) - || this.getAdditionalProperties().size() > 0) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.AttachmentShape); - - if (this.getBodyType() != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.BodyType, this.getBodyType()); - } - - if (this.getAdditionalProperties().size() > 0) { - PropertySet.writeAdditionalPropertiesToXml(writer, this - .getAdditionalProperties().iterator()); - } - - writer.writeEndElement(); // AttachmentShape - } - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.AttachmentIds); - - for (Attachment attachment : this.getAttachments()) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.AttachmentId); - writer - .writeAttributeValue(XmlAttributeNames.Id, attachment - .getId()); - writer.writeEndElement(); - } - - writer.writeEndElement(); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the attachments. - * - * @return the attachments - */ - public List getAttachments() { - return this.attachments; - } - - /** - * Gets the additional properties. - * - * @return the additional properties - */ - public List getAdditionalProperties() { - return this.additionalProperties; - } - - /** - * Gets the type of the body. - * - * @return the body type - */ - public BodyType getBodyType() { - - return this.bodyType; - - } - - /** - * Sets the body type. - * - * @param bodyType - * the new body type - */ - public void setBodyType(BodyType bodyType) { - this.bodyType = bodyType; - } - -} \ No newline at end of file + MultiResponseServiceRequest { + + /** + * The attachments. + */ + private List attachments = new ArrayList(); + + /** + * The additional properties. + */ + private List additionalProperties = + new ArrayList(); + + /** + * The body type. + */ + private BodyType bodyType; + + /** + * Initializes a new instance of the GetAttachmentRequest class. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + GetAttachmentRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getAttachments().iterator(), + "Attachments"); + for (int i = 0; i < this.getAdditionalProperties().size(); i++) { + EwsUtilities.validateParam(this.getAdditionalProperties().get(i), + String.format("AdditionalProperties[%d]", i)); + } + } + + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected GetAttachmentResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new GetAttachmentResponse(this.getAttachments().get( + responseIndex)); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getAttachments().size(); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetAttachment; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetAttachmentResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetAttachmentResponseMessage; + } + + /** + * Writes XML elements. + * + * @param writer The writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + if ((this.getBodyType() != null) + || this.getAdditionalProperties().size() > 0) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.AttachmentShape); + + if (this.getBodyType() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.BodyType, this.getBodyType()); + } + + if (this.getAdditionalProperties().size() > 0) { + PropertySet.writeAdditionalPropertiesToXml(writer, this + .getAdditionalProperties().iterator()); + } + + writer.writeEndElement(); // AttachmentShape + } + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.AttachmentIds); + + for (Attachment attachment : this.getAttachments()) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.AttachmentId); + writer + .writeAttributeValue(XmlAttributeNames.Id, attachment + .getId()); + writer.writeEndElement(); + } + + writer.writeEndElement(); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the attachments. + * + * @return the attachments + */ + public List getAttachments() { + return this.attachments; + } + + /** + * Gets the additional properties. + * + * @return the additional properties + */ + public List getAdditionalProperties() { + return this.additionalProperties; + } + + /** + * Gets the type of the body. + * + * @return the body type + */ + public BodyType getBodyType() { + + return this.bodyType; + + } + + /** + * Sets the body type. + * + * @param bodyType the new body type + */ + public void setBodyType(BodyType bodyType) { + this.bodyType = bodyType; + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index 56460c6fe..20ac52c0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -12,62 +12,60 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to an individual attachment retrieval request. - * */ final class GetAttachmentResponse extends ServiceResponse { - /** The attachment. */ - private Attachment attachment; + /** + * The attachment. + */ + private Attachment attachment; - /** - * Initializes a new instance of the GetAttachmentResponse class. - * - * @param attachment - * the attachment - */ - protected GetAttachmentResponse(Attachment attachment) { - super(); - EwsUtilities.EwsAssert(attachment != null, - "GetAttachmentResponse.ctor", "attachment is null"); + /** + * Initializes a new instance of the GetAttachmentResponse class. + * + * @param attachment the attachment + */ + protected GetAttachmentResponse(Attachment attachment) { + super(); + EwsUtilities.EwsAssert(attachment != null, + "GetAttachmentResponse.ctor", "attachment is null"); - this.attachment = attachment; - } + this.attachment = attachment; + } - /** - * Reads response elements from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.Attachments); - if (!reader.isEmptyElement()) { - XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); - reader.read(x); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.Attachments); + if (!reader.isEmptyElement()) { + XmlNodeType x = new XmlNodeType(XmlNodeType.START_ELEMENT); + reader.read(x); - this.attachment.loadFromXml(reader, reader.getLocalName()); + this.attachment.loadFromXml(reader, reader.getLocalName()); - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.Attachments); - } else { - reader.read(); - } - } + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.Attachments); + } else { + reader.read(); + } + } - /** - * Gets the attachment that was retrieved. - * - * @return the attachment - */ - protected Attachment getAttachment() { - return this.attachment; - } + /** + * Gets the attachment that was retrieved. + * + * @return the attachment + */ + protected Attachment getAttachment() { + return this.attachment; + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java index 1bf19f11f..e5390675a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java @@ -17,133 +17,131 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a GetDelegate request. */ class GetDelegateRequest extends - DelegateManagementRequestBase { - - /** The user ids. */ - private List userIds = new ArrayList(); - - /** The include permissions. */ - private boolean includePermissions; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected GetDelegateRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Creates the response. - * - * @return Service response. - */ - @Override - protected GetDelegateResponse createResponse() { - return new GetDelegateResponse(true); - } - - /** - * Writes XML attributes. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.IncludePermissions, this - .getIncludePermissions()); - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - - if (this.getUserIds().size() > 0) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.UserIds); - - for (UserId userId : this.getUserIds()) { - userId.writeToXml(writer, XmlElementNames.UserId); - } - - writer.writeEndElement(); // UserIds - } - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetDelegateResponse; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetDelegate; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the user ids. The user ids. - * - * @return the user ids - */ - public List getUserIds() { - return this.userIds; - } - - /** - * Gets a value indicating whether permissions are included. - * - * @return the include permissions - */ - public boolean getIncludePermissions() { - return this.includePermissions; - - } - - /** - * Sets the include permissions. - * - * @param includePermissions - * the new include permissions - */ - public void setIncludePermissions(boolean includePermissions) { - this.includePermissions = includePermissions; - } + DelegateManagementRequestBase { + + /** + * The user ids. + */ + private List userIds = new ArrayList(); + + /** + * The include permissions. + */ + private boolean includePermissions; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected GetDelegateRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Creates the response. + * + * @return Service response. + */ + @Override + protected GetDelegateResponse createResponse() { + return new GetDelegateResponse(true); + } + + /** + * Writes XML attributes. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.IncludePermissions, this + .getIncludePermissions()); + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + + if (this.getUserIds().size() > 0) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.UserIds); + + for (UserId userId : this.getUserIds()) { + userId.writeToXml(writer, XmlElementNames.UserId); + } + + writer.writeEndElement(); // UserIds + } + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetDelegateResponse; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetDelegate; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the user ids. The user ids. + * + * @return the user ids + */ + public List getUserIds() { + return this.userIds; + } + + /** + * Gets a value indicating whether permissions are included. + * + * @return the include permissions + */ + public boolean getIncludePermissions() { + return this.includePermissions; + + } + + /** + * Sets the include permissions. + * + * @param includePermissions the new include permissions + */ + public void setIncludePermissions(boolean includePermissions) { + this.includePermissions = includePermissions; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java index e97c75583..2d251469b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java @@ -15,55 +15,54 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetDelegateResponse extends DelegateManagementResponse { - /** - * Represents the response to a delegate user retrieval operation. - */ - private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope = - MeetingRequestsDeliveryScope.NoForward; + /** + * Represents the response to a delegate user retrieval operation. + */ + private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope = + MeetingRequestsDeliveryScope.NoForward; - /** - * Initializes a new instance of the class. - * @param readDelegateUsers - * the read delegate users - */ - protected GetDelegateResponse(boolean readDelegateUsers) { - super(readDelegateUsers, null); - } + /** + * Initializes a new instance of the class. + * + * @param readDelegateUsers the read delegate users + */ + protected GetDelegateResponse(boolean readDelegateUsers) { + super(readDelegateUsers, null); + } - /** - * Reads response elements from XML - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - if (this.getErrorCode() == ServiceError.NoError) { - // This is a hack. If there were no response messages, the reader - // will already be on the - // DeliverMeetingRequests start element, so we don't need to read - // it. - if (this.getDelegateUserResponses().size() > 0) { - reader.read(); - } - if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.DeliverMeetingRequests)) - { - this.meetingRequestsDeliveryScope = reader - .readElementValue(MeetingRequestsDeliveryScope.class); - } - } - } + if (this.getErrorCode() == ServiceError.NoError) { + // This is a hack. If there were no response messages, the reader + // will already be on the + // DeliverMeetingRequests start element, so we don't need to read + // it. + if (this.getDelegateUserResponses().size() > 0) { + reader.read(); + } + if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.DeliverMeetingRequests)) { + this.meetingRequestsDeliveryScope = reader + .readElementValue(MeetingRequestsDeliveryScope.class); + } + } + } - /** - * Gets a value indicating if and how meeting requests are delivered to - * delegates. - * @return the meeting requests delivery scope - */ - protected MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { - return this.meetingRequestsDeliveryScope; - } + /** + * Gets a value indicating if and how meeting requests are delivered to + * delegates. + * + * @return the meeting requests delivery scope + */ + protected MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { + return this.meetingRequestsDeliveryScope; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java index ac2e617fd..c500bd33b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java @@ -10,268 +10,255 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.net.URI; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a GetDomainSettings request. - * */ class GetDomainSettingsRequest extends AutodiscoverRequest { - /** - * Action Uri of Autodiscover.GetDomainSettings method. - */ - private static final String GetDomainSettingsActionUri = - EwsUtilities.AutodiscoverSoapNamespace + - "/Autodiscover/GetDomainSettings"; - - /** The domains. */ - private List domains; - - /** The settings. */ - private List settings; - - private ExchangeVersion requestedVersion; - - /** - * Initializes a new instance of the - * class. - * - * @param service - * the service - * @param url - * the url - */ - protected GetDomainSettingsRequest(AutodiscoverService service, URI url) { - super(service, url); - } - - /** - * Validates the request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - EwsUtilities.validateParam(this.getDomains(), "domains"); - EwsUtilities.validateParam(this.getSettings(), "settings"); - - if (this.getSettings().size() == 0) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSettingsCount); - } - - if (domains.size() == 0) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverDomainsCount); - } - - for (String domain : this.getDomains()) { - if (domain == null || domain.isEmpty()) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverDomain); - } - } - } - - /** - * Executes this instance. - * - * @return the gets the domain settings response collection - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected GetDomainSettingsResponseCollection execute() - throws ServiceLocalException, Exception { - GetDomainSettingsResponseCollection responses = - (GetDomainSettingsResponseCollection) this - .internalExecute(); - if (responses.getErrorCode() == AutodiscoverErrorCode.NoError) { - this.PostProcessResponses(responses); - } - return responses; - } - - /** - * Post-process responses to GetDomainSettings. - * - * @param responses - * The GetDomainSettings responses. - */ - private void PostProcessResponses( - GetDomainSettingsResponseCollection responses) { - // Note:The response collection may not include all of the requested - // domains if the request has been throttled. - for (int index = 0; index < responses.getCount(); index++) { - responses.getResponses().get(index).setDomain( - this.getDomains().get(index)); - } - } - - /** - * Gets the name of the request XML element. - * - * @return Request XML element name. - */ - @Override - protected String getRequestXmlElementName() { - return XmlElementNames.GetDomainSettingsRequestMessage; - } - - /** - * Gets the name of the response XML element. - * - * @return Response XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetDomainSettingsResponseMessage; - } - - /** - * Gets the WS-Addressing action name. - * - * @return WS-Addressing action name. - */ - @Override - protected String getWsAddressingActionName() { - return GetDomainSettingsActionUri; - } - - /** - * Creates the service response. - * - * @return AutodiscoverResponse - */ - @Override - protected AutodiscoverResponse createServiceResponse() { - return new GetDomainSettingsResponseCollection(); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue("xmlns", - EwsUtilities.AutodiscoverSoapNamespacePrefix, - EwsUtilities.AutodiscoverSoapNamespace); - } - - /** - * Writes request to XML. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.Request); - - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.Domains); - - for (String domain : this.getDomains()) { - if (!(domain == null || domain.isEmpty())) { - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.Domain, domain); - } - } - writer.writeEndElement(); // Domains - - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.RequestedSettings); - for (DomainSettingName setting : settings) { - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.Setting, setting); - } - - writer.writeEndElement(); // RequestedSettings - - if (this.requestedVersion!= null) - { - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.RequestedVersion, this.requestedVersion); - } - - writer.writeEndElement(); // Request - } - - /** - * Gets the domains. - * - * @return the domains - */ - protected List getDomains() { - return domains; - } - - /** - * Sets the domains. - * - * @param value - * the new domains - */ - protected void setDomains(List value) { - domains = value; - } - - /** - * Gets or sets the settings. - * - * @return the settings - */ - protected List getSettings() { - return settings; - } - - /** - * Sets the settings. - * - * @param value - * the new settings - */ - protected void setSettings(List value) { - settings = value; - } - - /** - * Gets or sets the requestedVersion. - * - * @return the requestedVersion - */ - protected ExchangeVersion getRequestedVersion(){ - return requestedVersion; - } - /** - * Sets the requestedVersion. - * - * @param value - * the new requestedVersion - */ - protected void setRequestedVersion(ExchangeVersion value) - { - requestedVersion=value; - } + /** + * Action Uri of Autodiscover.GetDomainSettings method. + */ + private static final String GetDomainSettingsActionUri = + EwsUtilities.AutodiscoverSoapNamespace + + "/Autodiscover/GetDomainSettings"; + + /** + * The domains. + */ + private List domains; + + /** + * The settings. + */ + private List settings; + + private ExchangeVersion requestedVersion; + + /** + * Initializes a new instance of the + * class. + * + * @param service the service + * @param url the url + */ + protected GetDomainSettingsRequest(AutodiscoverService service, URI url) { + super(service, url); + } + + /** + * Validates the request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + EwsUtilities.validateParam(this.getDomains(), "domains"); + EwsUtilities.validateParam(this.getSettings(), "settings"); + + if (this.getSettings().size() == 0) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSettingsCount); + } + + if (domains.size() == 0) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverDomainsCount); + } + + for (String domain : this.getDomains()) { + if (domain == null || domain.isEmpty()) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverDomain); + } + } + } + + /** + * Executes this instance. + * + * @return the gets the domain settings response collection + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected GetDomainSettingsResponseCollection execute() + throws ServiceLocalException, Exception { + GetDomainSettingsResponseCollection responses = + (GetDomainSettingsResponseCollection) this + .internalExecute(); + if (responses.getErrorCode() == AutodiscoverErrorCode.NoError) { + this.PostProcessResponses(responses); + } + return responses; + } + + /** + * Post-process responses to GetDomainSettings. + * + * @param responses The GetDomainSettings responses. + */ + private void PostProcessResponses( + GetDomainSettingsResponseCollection responses) { + // Note:The response collection may not include all of the requested + // domains if the request has been throttled. + for (int index = 0; index < responses.getCount(); index++) { + responses.getResponses().get(index).setDomain( + this.getDomains().get(index)); + } + } + + /** + * Gets the name of the request XML element. + * + * @return Request XML element name. + */ + @Override + protected String getRequestXmlElementName() { + return XmlElementNames.GetDomainSettingsRequestMessage; + } + + /** + * Gets the name of the response XML element. + * + * @return Response XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetDomainSettingsResponseMessage; + } + + /** + * Gets the WS-Addressing action name. + * + * @return WS-Addressing action name. + */ + @Override + protected String getWsAddressingActionName() { + return GetDomainSettingsActionUri; + } + + /** + * Creates the service response. + * + * @return AutodiscoverResponse + */ + @Override + protected AutodiscoverResponse createServiceResponse() { + return new GetDomainSettingsResponseCollection(); + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue("xmlns", + EwsUtilities.AutodiscoverSoapNamespacePrefix, + EwsUtilities.AutodiscoverSoapNamespace); + } + + /** + * Writes request to XML. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.Request); + + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.Domains); + + for (String domain : this.getDomains()) { + if (!(domain == null || domain.isEmpty())) { + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.Domain, domain); + } + } + writer.writeEndElement(); // Domains + + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.RequestedSettings); + for (DomainSettingName setting : settings) { + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.Setting, setting); + } + + writer.writeEndElement(); // RequestedSettings + + if (this.requestedVersion != null) { + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.RequestedVersion, this.requestedVersion); + } + + writer.writeEndElement(); // Request + } + + /** + * Gets the domains. + * + * @return the domains + */ + protected List getDomains() { + return domains; + } + + /** + * Sets the domains. + * + * @param value the new domains + */ + protected void setDomains(List value) { + domains = value; + } + + /** + * Gets or sets the settings. + * + * @return the settings + */ + protected List getSettings() { + return settings; + } + + /** + * Sets the settings. + * + * @param value the new settings + */ + protected void setSettings(List value) { + settings = value; + } + + /** + * Gets or sets the requestedVersion. + * + * @return the requestedVersion + */ + protected ExchangeVersion getRequestedVersion() { + return requestedVersion; + } + + /** + * Sets the requestedVersion. + * + * @param value the new requestedVersion + */ + protected void setRequestedVersion(ExchangeVersion value) { + requestedVersion = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index 5877332d5..e3be31617 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -17,223 +17,220 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a GetDomainSettings call for an individual domain. - * */ public final class GetDomainSettingsResponse extends AutodiscoverResponse { - /** The domain. */ - private String domain; - - /** The redirect target. */ - private String redirectTarget; - - /** The settings. */ - private Map settings; - - /** The domain setting errors. */ - private Collection domainSettingErrors; - - /** - * Initializes a new instance of the - * class. - */ - public GetDomainSettingsResponse() { - super(); - this.domain = ""; - this.settings = new HashMap(); - this.domainSettingErrors = new ArrayList(); - } - - /** - * Gets the domain this response applies to. - * - * @return the domain - */ - public String getDomain() { - return this.domain; - } - - /** - * Sets the domain. - * - * @param value - * the new domain - */ - protected void setDomain(String value) { - this.domain = value; - } - - /** - * Gets the redirectionTarget (URL or email address). - * - * @return the redirect target - */ - public String getRedirectTarget() { - return this.redirectTarget; - } - - /** - * Gets the requested settings for the domain. - * - * @return the settings - */ - public Map getSettings() { - return this.settings; - } - - /** - * Gets error information for settings that could not be returned. - * - * @return the domain setting errors - */ - public Collection getDomainSettingErrors() { - return this.domainSettingErrors; - } - - /** - * Loads response from XML. - * - * @param reader - * The reader. - * @param endElementName - * End element name. - * @throws Exception - * the exception - */ - @Override - protected void loadFromXml(EwsXmlReader reader, String endElementName) - throws Exception { - do { - reader.read(); - - if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName() - .equals(XmlElementNames.RedirectTarget)) { - this.redirectTarget = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.DomainSettingErrors)) { - this.loadDomainSettingErrorsFromXml(reader); - } else if (reader.getLocalName().equals( - XmlElementNames.DomainSettings)) { - try { - this.loadDomainSettingsFromXml(reader); - } catch (Exception e) { - e.printStackTrace(); - } - } else { - super.loadFromXml(reader, endElementName); - break; - } - } - } while (!reader - .isEndElement(XmlNamespace.Autodiscover, endElementName)); - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadDomainSettingsFromXml(EwsXmlReader reader) - throws Exception { - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.DomainSetting))) { - String settingClass = reader.readAttributeValue( - XmlNamespace.XmlSchemaInstance, - XmlAttributeNames.Type); - - if (settingClass - .equals(XmlElementNames.DomainStringSetting)) { - - this.readSettingFromXml(reader); - } else { - EwsUtilities - .EwsAssert( - false, - "GetDomainSettingsResponse." + - "LoadDomainSettingsFromXml", - String - .format( - "%s,%s", - "Invalid setting " + - "class '%s' returned", - settingClass)); - break; - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.DomainSettings)); - }else { - reader.read(); - } - } - - /** - * Reads domain setting from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - private void readSettingFromXml(EwsXmlReader reader) throws Exception { - DomainSettingName name = null; - Object value = null; - - do { - reader.read(); - - if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - XmlElementNames.DomainStringSetting)) { - name = reader.readElementValue(DomainSettingName.class); - } else if (reader.getLocalName().equals(XmlElementNames.Value)) { - value = reader.readElementValue(); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.DomainSetting)); - - EwsUtilities.EwsAssert(name != null, - "GetDomainSettingsResponse.ReadSettingFromXml", - "Missing name element in domain setting"); - - this.settings.put(name, value); - } - - /** - * Loads the domain setting errors. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - private void loadDomainSettingErrorsFromXml(EwsXmlReader reader) - throws Exception { - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.DomainSettingError))) { - DomainSettingError error = new DomainSettingError(); - error.loadFromXml(reader); - domainSettingErrors.add(error); - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.DomainSettingErrors)); - } else { - reader.read(); - } - } + /** + * The domain. + */ + private String domain; + + /** + * The redirect target. + */ + private String redirectTarget; + + /** + * The settings. + */ + private Map settings; + + /** + * The domain setting errors. + */ + private Collection domainSettingErrors; + + /** + * Initializes a new instance of the + * class. + */ + public GetDomainSettingsResponse() { + super(); + this.domain = ""; + this.settings = new HashMap(); + this.domainSettingErrors = new ArrayList(); + } + + /** + * Gets the domain this response applies to. + * + * @return the domain + */ + public String getDomain() { + return this.domain; + } + + /** + * Sets the domain. + * + * @param value the new domain + */ + protected void setDomain(String value) { + this.domain = value; + } + + /** + * Gets the redirectionTarget (URL or email address). + * + * @return the redirect target + */ + public String getRedirectTarget() { + return this.redirectTarget; + } + + /** + * Gets the requested settings for the domain. + * + * @return the settings + */ + public Map getSettings() { + return this.settings; + } + + /** + * Gets error information for settings that could not be returned. + * + * @return the domain setting errors + */ + public Collection getDomainSettingErrors() { + return this.domainSettingErrors; + } + + /** + * Loads response from XML. + * + * @param reader The reader. + * @param endElementName End element name. + * @throws Exception the exception + */ + @Override + protected void loadFromXml(EwsXmlReader reader, String endElementName) + throws Exception { + do { + reader.read(); + + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName() + .equals(XmlElementNames.RedirectTarget)) { + this.redirectTarget = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.DomainSettingErrors)) { + this.loadDomainSettingErrorsFromXml(reader); + } else if (reader.getLocalName().equals( + XmlElementNames.DomainSettings)) { + try { + this.loadDomainSettingsFromXml(reader); + } catch (Exception e) { + e.printStackTrace(); + } + } else { + super.loadFromXml(reader, endElementName); + break; + } + } + } while (!reader + .isEndElement(XmlNamespace.Autodiscover, endElementName)); + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadDomainSettingsFromXml(EwsXmlReader reader) + throws Exception { + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.DomainSetting))) { + String settingClass = reader.readAttributeValue( + XmlNamespace.XmlSchemaInstance, + XmlAttributeNames.Type); + + if (settingClass + .equals(XmlElementNames.DomainStringSetting)) { + + this.readSettingFromXml(reader); + } else { + EwsUtilities + .EwsAssert( + false, + "GetDomainSettingsResponse." + + "LoadDomainSettingsFromXml", + String + .format( + "%s,%s", + "Invalid setting " + + "class '%s' returned", + settingClass)); + break; + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.DomainSettings)); + } else { + reader.read(); + } + } + + /** + * Reads domain setting from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + private void readSettingFromXml(EwsXmlReader reader) throws Exception { + DomainSettingName name = null; + Object value = null; + + do { + reader.read(); + + if (reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + XmlElementNames.DomainStringSetting)) { + name = reader.readElementValue(DomainSettingName.class); + } else if (reader.getLocalName().equals(XmlElementNames.Value)) { + value = reader.readElementValue(); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.DomainSetting)); + + EwsUtilities.EwsAssert(name != null, + "GetDomainSettingsResponse.ReadSettingFromXml", + "Missing name element in domain setting"); + + this.settings.put(name, value); + } + + /** + * Loads the domain setting errors. + * + * @param reader The reader. + * @throws Exception the exception + */ + private void loadDomainSettingErrorsFromXml(EwsXmlReader reader) + throws Exception { + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if ((reader.getNodeType().nodeType == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.DomainSettingError))) { + DomainSettingError error = new DomainSettingError(); + error.loadFromXml(reader); + domainSettingErrors.add(error); + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.DomainSettingErrors)); + } else { + reader.read(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java index ed344643d..47349dd8c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java @@ -14,42 +14,42 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a collection of responses to GetDomainSettings. */ public final class GetDomainSettingsResponseCollection extends - AutodiscoverResponseCollection { + AutodiscoverResponseCollection { - /** - * Initializes a new instance of the AutodiscoverResponseCollection class. - */ - protected GetDomainSettingsResponseCollection() { - } + /** + * Initializes a new instance of the AutodiscoverResponseCollection class. + */ + protected GetDomainSettingsResponseCollection() { + } - /** - * Create a response instance. - * - * @return GetDomainSettingsResponse. - */ - @Override - protected GetDomainSettingsResponse createResponseInstance() { - return new GetDomainSettingsResponse(); - } + /** + * Create a response instance. + * + * @return GetDomainSettingsResponse. + */ + @Override + protected GetDomainSettingsResponse createResponseInstance() { + return new GetDomainSettingsResponse(); + } - /** - * Gets the name of the response collection XML element. - * - * @return Response collection XMl element name. - */ - @Override - protected String getResponseCollectionXmlElementName() { - return XmlElementNames.DomainResponses; - } + /** + * Gets the name of the response collection XML element. + * + * @return Response collection XMl element name. + */ + @Override + protected String getResponseCollectionXmlElementName() { + return XmlElementNames.DomainResponses; + } - /** - * Gets the name of the response instance XML element. - * - * @return Response instance XMl element name. - */ - @Override - protected String getResponseInstanceXmlElementName() { - return XmlElementNames.DomainResponse; - } + /** + * Gets the name of the response instance XML element. + * + * @return Response instance XMl element name. + */ + @Override + protected String getResponseInstanceXmlElementName() { + return XmlElementNames.DomainResponse; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java index a97ad5ec5..8ae11267f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java @@ -14,162 +14,155 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * GetEvents request. - * */ class GetEventsRequest extends MultiResponseServiceRequest { - /** The subscription id. */ - private String subscriptionId; - - /** The watermark. */ - private String watermark; - - /** - * Initializes a new instance. - * - * @param service - * the service - * @throws Exception - */ - protected GetEventsRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response - */ - @Override - protected GetEventsResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new GetEventsResponse(); - } - - /** - * Gets the expected response message count. - * @return Response count - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetEvents; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetEventsResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetEventsResponseMessage; - } - - /** - * Validates the request. - * - * @throws Exception - * the exception - */ - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateNonBlankStringParam(this. - getSubscriptionId(), "SubscriptionId"); - EwsUtilities.validateNonBlankStringParam(this. - getWatermark(), "Watermark"); - } - - /** - * Writes the elements to XML writer. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.SubscriptionId, this.getSubscriptionId()); - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.Watermark, this.getWatermark()); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * gets the subscriptionId. - * - * @return the subscriptionId. - * - */ - public String getSubscriptionId() { - return subscriptionId; - } - - /** - * Sets the subscriptionId. - * - * @param subscriptionId - * the subscriptionId. - */ - public void setSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - } - - /** - * gets the watermark. - * - * @return the watermark. - * - */ - public String getWatermark() { - return watermark; - } - - /** - * Sets the watermark. - * - * @param watermark - * the new watermark - */ - public void setWatermark(String watermark) { - this.watermark = watermark; - } + /** + * The subscription id. + */ + private String subscriptionId; + + /** + * The watermark. + */ + private String watermark; + + /** + * Initializes a new instance. + * + * @param service the service + * @throws Exception + */ + protected GetEventsRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response + */ + @Override + protected GetEventsResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new GetEventsResponse(); + } + + /** + * Gets the expected response message count. + * + * @return Response count + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetEvents; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetEventsResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetEventsResponseMessage; + } + + /** + * Validates the request. + * + * @throws Exception the exception + */ + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateNonBlankStringParam(this. + getSubscriptionId(), "SubscriptionId"); + EwsUtilities.validateNonBlankStringParam(this. + getWatermark(), "Watermark"); + } + + /** + * Writes the elements to XML writer. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.SubscriptionId, this.getSubscriptionId()); + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.Watermark, this.getWatermark()); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * gets the subscriptionId. + * + * @return the subscriptionId. + */ + public String getSubscriptionId() { + return subscriptionId; + } + + /** + * Sets the subscriptionId. + * + * @param subscriptionId the subscriptionId. + */ + public void setSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + } + + /** + * gets the watermark. + * + * @return the watermark. + */ + public String getWatermark() { + return watermark; + } + + /** + * Sets the watermark. + * + * @param watermark the new watermark + */ + public void setWatermark(String watermark) { + this.watermark = watermark; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java index 8df24f164..0fa596bb1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java @@ -12,42 +12,40 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a subscription event retrieval operation. - * */ final class GetEventsResponse extends ServiceResponse { - /** The results. */ - private GetEventsResults results = new GetEventsResults(); + /** + * The results. + */ + private GetEventsResults results = new GetEventsResults(); - /** - * Initializes a new instance. - */ - protected GetEventsResponse() { - super(); - } + /** + * Initializes a new instance. + */ + protected GetEventsResponse() { + super(); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - this.results.loadFromXml(reader); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + this.results.loadFromXml(reader); + } - /** - * gets the results. - * - * @return the results. - * - */ - protected GetEventsResults getResults() { - return results; - } + /** + * gets the results. + * + * @return the results. + */ + protected GetEventsResults getResults() { + return results; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java index 9d54bff51..28680720e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java @@ -10,236 +10,227 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; +import java.util.*; /** - *Represents a collection of notification events. + * Represents a collection of notification events. */ public final class GetEventsResults { - /** - * Watermark in event. - */ - private String newWatermark; - - /** - * Subscription id. - */ - private String subscriptionId; - - /** - * Previous watermark. - */ - private String previousWatermark; - - /** - * True if more events available for this subscription. - */ - private boolean moreEventsAvailable; - - /** - * Collection of notification events. - */ - private Collection events = - new ArrayList(); - - /** - * Map XML element name to notification event type. If you add a new - * notification event type, you'll need to add a new entry to the Map here. - */ - private static LazyMember> - xmlElementNameToEventTypeMap = - new LazyMember>( - new ILazyMember>() { - @Override - public Map createInstance() { - Map result = - new HashMap(); - result.put(XmlElementNames.CopiedEvent, EventType.Copied); - result.put(XmlElementNames.CreatedEvent, EventType.Created); - result.put(XmlElementNames.DeletedEvent, EventType.Deleted); - result.put(XmlElementNames.ModifiedEvent, - EventType.Modified); - result.put(XmlElementNames.MovedEvent, EventType.Moved); - result.put(XmlElementNames.NewMailEvent, EventType.NewMail); - result.put(XmlElementNames.StatusEvent, EventType.Status); - result.put(XmlElementNames.FreeBusyChangedEvent, - EventType.FreeBusyChanged); - return result; - } - }); - - /** - * Gets the XML element name to event type mapping. - * @return The XML element name to event type mapping. - */ - protected static Map getXmlElementNameToEventTypeMap() { - return GetEventsResults.xmlElementNameToEventTypeMap.getMember(); - } - - /** - * Initializes a new instance. - */ - protected GetEventsResults() { - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.Notification); - - this.subscriptionId = reader.readElementValue(XmlNamespace.Types, - XmlElementNames.SubscriptionId); - this.previousWatermark = reader.readElementValue(XmlNamespace.Types, - XmlElementNames.PreviousWatermark); - this.moreEventsAvailable = reader.readElementValue(Boolean.class, - XmlNamespace.Types, XmlElementNames.MoreEvents); - - do { - reader.read(); - - if (reader.isStartElement()) { - String eventElementName = reader.getLocalName(); - EventType eventType; - - if (xmlElementNameToEventTypeMap.getMember().containsKey( - eventElementName)) { - eventType = xmlElementNameToEventTypeMap.getMember().get( - eventElementName); - this.newWatermark = reader.readElementValue( - XmlNamespace.Types, XmlElementNames.Watermark); - if (eventType == EventType.Status) { - // We don't need to return status events - reader.readEndElementIfNecessary(XmlNamespace.Types, - eventElementName); - } else { - this.loadNotificationEventFromXml(reader, - eventElementName, eventType); - } - } else { - reader.skipCurrentElement(); - } - - } - - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.Notification)); - } - - /** - * Loads a notification event from XML. - * - * @param reader - * the reader - * @param eventElementName - * the event element name - * @param eventType - * the event type - * @throws Exception - * the exception - */ - private void loadNotificationEventFromXml(EwsServiceXmlReader reader, - String eventElementName, EventType eventType) throws Exception { - Date date = reader.readElementValue(Date.class, XmlNamespace.Types, - XmlElementNames.TimeStamp); - - NotificationEvent notificationEvent; - - reader.read(); - - if (reader.getLocalName().equals(XmlElementNames.FolderId)) { - notificationEvent = new FolderEvent(eventType, date); - } else { - notificationEvent = new ItemEvent(eventType, date); - } - - notificationEvent.loadFromXml(reader, eventElementName); - this.events.add(notificationEvent); - } - - /** - * Gets the Id of the subscription the collection is associated with. - * - * @return the subscription id - */ - protected String getSubscriptionId() { - return subscriptionId; - } - - /** - * Gets the subscription's previous watermark. - * - * @return the previous watermark - */ - protected String getPreviousWatermark() { - return previousWatermark; - } - - /** - * Gets the subscription's new watermark. - * - * @return the new watermark - */ - protected String getNewWatermark() { - return newWatermark; - } - - /** - * Gets a value indicating whether more events are available on the Exchange - * server. - * - * @return true, if is more events available - */ - protected boolean isMoreEventsAvailable() { - return moreEventsAvailable; - } - - /** - * Gets the collection of folder events. - * - * @return the folder events - */ - public Iterable getFolderEvents() { - Collection folderEvents = new ArrayList(); - for (Object event : this.events) { - if (event instanceof FolderEvent) { - folderEvents.add((FolderEvent)event); - } - } - return folderEvents; - } - - /** - * Gets the collection of item events. - * - * @return the item events - */ - public Iterable getItemEvents() { - Collection itemEvents = new ArrayList(); - for (Object event : this.events) { - if (event instanceof ItemEvent) { - itemEvents.add((ItemEvent)event); - } - } - return itemEvents; - } - - /** - * Gets the collection of all events. - * - * @return the all events - */ - public Collection getAllEvents() { - return this.events; - } + /** + * Watermark in event. + */ + private String newWatermark; + + /** + * Subscription id. + */ + private String subscriptionId; + + /** + * Previous watermark. + */ + private String previousWatermark; + + /** + * True if more events available for this subscription. + */ + private boolean moreEventsAvailable; + + /** + * Collection of notification events. + */ + private Collection events = + new ArrayList(); + + /** + * Map XML element name to notification event type. If you add a new + * notification event type, you'll need to add a new entry to the Map here. + */ + private static LazyMember> + xmlElementNameToEventTypeMap = + new LazyMember>( + new ILazyMember>() { + @Override + public Map createInstance() { + Map result = + new HashMap(); + result.put(XmlElementNames.CopiedEvent, EventType.Copied); + result.put(XmlElementNames.CreatedEvent, EventType.Created); + result.put(XmlElementNames.DeletedEvent, EventType.Deleted); + result.put(XmlElementNames.ModifiedEvent, + EventType.Modified); + result.put(XmlElementNames.MovedEvent, EventType.Moved); + result.put(XmlElementNames.NewMailEvent, EventType.NewMail); + result.put(XmlElementNames.StatusEvent, EventType.Status); + result.put(XmlElementNames.FreeBusyChangedEvent, + EventType.FreeBusyChanged); + return result; + } + }); + + /** + * Gets the XML element name to event type mapping. + * + * @return The XML element name to event type mapping. + */ + protected static Map getXmlElementNameToEventTypeMap() { + return GetEventsResults.xmlElementNameToEventTypeMap.getMember(); + } + + /** + * Initializes a new instance. + */ + protected GetEventsResults() { + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.Notification); + + this.subscriptionId = reader.readElementValue(XmlNamespace.Types, + XmlElementNames.SubscriptionId); + this.previousWatermark = reader.readElementValue(XmlNamespace.Types, + XmlElementNames.PreviousWatermark); + this.moreEventsAvailable = reader.readElementValue(Boolean.class, + XmlNamespace.Types, XmlElementNames.MoreEvents); + + do { + reader.read(); + + if (reader.isStartElement()) { + String eventElementName = reader.getLocalName(); + EventType eventType; + + if (xmlElementNameToEventTypeMap.getMember().containsKey( + eventElementName)) { + eventType = xmlElementNameToEventTypeMap.getMember().get( + eventElementName); + this.newWatermark = reader.readElementValue( + XmlNamespace.Types, XmlElementNames.Watermark); + if (eventType == EventType.Status) { + // We don't need to return status events + reader.readEndElementIfNecessary(XmlNamespace.Types, + eventElementName); + } else { + this.loadNotificationEventFromXml(reader, + eventElementName, eventType); + } + } else { + reader.skipCurrentElement(); + } + + } + + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.Notification)); + } + + /** + * Loads a notification event from XML. + * + * @param reader the reader + * @param eventElementName the event element name + * @param eventType the event type + * @throws Exception the exception + */ + private void loadNotificationEventFromXml(EwsServiceXmlReader reader, + String eventElementName, EventType eventType) throws Exception { + Date date = reader.readElementValue(Date.class, XmlNamespace.Types, + XmlElementNames.TimeStamp); + + NotificationEvent notificationEvent; + + reader.read(); + + if (reader.getLocalName().equals(XmlElementNames.FolderId)) { + notificationEvent = new FolderEvent(eventType, date); + } else { + notificationEvent = new ItemEvent(eventType, date); + } + + notificationEvent.loadFromXml(reader, eventElementName); + this.events.add(notificationEvent); + } + + /** + * Gets the Id of the subscription the collection is associated with. + * + * @return the subscription id + */ + protected String getSubscriptionId() { + return subscriptionId; + } + + /** + * Gets the subscription's previous watermark. + * + * @return the previous watermark + */ + protected String getPreviousWatermark() { + return previousWatermark; + } + + /** + * Gets the subscription's new watermark. + * + * @return the new watermark + */ + protected String getNewWatermark() { + return newWatermark; + } + + /** + * Gets a value indicating whether more events are available on the Exchange + * server. + * + * @return true, if is more events available + */ + protected boolean isMoreEventsAvailable() { + return moreEventsAvailable; + } + + /** + * Gets the collection of folder events. + * + * @return the folder events + */ + public Iterable getFolderEvents() { + Collection folderEvents = new ArrayList(); + for (Object event : this.events) { + if (event instanceof FolderEvent) { + folderEvents.add((FolderEvent) event); + } + } + return folderEvents; + } + + /** + * Gets the collection of item events. + * + * @return the item events + */ + public Iterable getItemEvents() { + Collection itemEvents = new ArrayList(); + for (Object event : this.events) { + if (event instanceof ItemEvent) { + itemEvents.add((ItemEvent) event); + } + } + return itemEvents; + } + + /** + * Gets the collection of all events. + * + * @return the all events + */ + public Collection getAllEvents() { + return this.events; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java index 3a6f7bc2a..8f9eda848 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java @@ -12,42 +12,37 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a GetFolder request. - * */ final class GetFolderRequest extends GetFolderRequestBase { - // private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + // private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - /** - * Initializes a new instance of the GetFolderRequest class. - * - * @param service - * the service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected GetFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the GetFolderRequest class. + * + * @param service the service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected GetFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * The service - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected GetFolderResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new GetFolderResponse(this.getFolderIds() - .getFolderIdWrapperList(responseIndex).getFolder(), this - .getPropertySet()); - } + /** + * Creates the service response. + * + * @param service The service + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected GetFolderResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new GetFolderResponse(this.getFolderIds() + .getFolderIdWrapperList(responseIndex).getFolder(), this + .getPropertySet()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java index 4f2c62d21..afc1d48a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java @@ -12,121 +12,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract GetFolder request. - * - * @param - * the generic type + * + * @param the generic type */ abstract class GetFolderRequestBase extends - GetRequest { + GetRequest { - /** The folder ids. */ - private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + /** + * The folder ids. + */ + private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected GetFolderRequestBase(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected GetFolderRequestBase(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Validate request. - * - * @throws Exception - * the exception - */ - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getFolderIds().iterator(), - "FolderIds"); - this.getFolderIds().validate( - this.getService().getRequestedServerVersion()); - } + /** + * Validate request. + * + * @throws Exception the exception + */ + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getFolderIds().iterator(), + "FolderIds"); + this.getFolderIds().validate( + this.getService().getRequestedServerVersion()); + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages - */ - protected int getExpectedResponseMessageCount() { - return this.getFolderIds().getCount(); - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages + */ + protected int getExpectedResponseMessageCount() { + return this.getFolderIds().getCount(); + } - /** - * Gets the type of the service object this request applies to. - * - * @return The type of service object the request applies to - */ - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Folder; - } + /** + * Gets the type of the service object this request applies to. + * + * @return The type of service object the request applies to + */ + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Folder; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - this.getFolderIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.FolderIds); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + this.getFolderIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.FolderIds); + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - protected String getXmlElementName() { - return XmlElementNames.GetFolder; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getXmlElementName() { + return XmlElementNames.GetFolder; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - protected String getResponseXmlElementName() { - return XmlElementNames.GetFolderResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + protected String getResponseXmlElementName() { + return XmlElementNames.GetFolderResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetFolderResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetFolderResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported - */ - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported + */ + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the folder ids. - * - * @return the folder ids - */ - public FolderIdWrapperList getFolderIds() { - return this.folderIds; - } + /** + * Gets the folder ids. + * + * @return the folder ids + */ + public FolderIdWrapperList getFolderIds() { + return this.folderIds; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java index 196e3a19c..c59391912 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java @@ -12,40 +12,35 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a GetFolder request specialized to return ServiceResponse. - * */ final class GetFolderRequestForLoad extends - GetFolderRequestBase { + GetFolderRequestBase { - /** - * Initializes a new instance of the GetFolderRequestForLoad class. - * - * @param exchangeService - * the exchange service - * @param throwonerror - * the throwonerror - * @throws Exception - */ - protected GetFolderRequestForLoad(ExchangeService exchangeService, - ServiceErrorHandling throwonerror) throws Exception { - super(exchangeService, throwonerror); - } + /** + * Initializes a new instance of the GetFolderRequestForLoad class. + * + * @param exchangeService the exchange service + * @param throwonerror the throwonerror + * @throws Exception + */ + protected GetFolderRequestForLoad(ExchangeService exchangeService, + ServiceErrorHandling throwonerror) throws Exception { + super(exchangeService, throwonerror); + } - /** - * Creates the service response. - * - * @param service - * The Service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new GetFolderResponse(this.getFolderIds() - .getFolderIdWrapperList(responseIndex).getFolder(), this - .getPropertySet()); - } + /** + * Creates the service response. + * + * @param service The Service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new GetFolderResponse(this.getFolderIds() + .getFolderIdWrapperList(responseIndex).getFolder(), this + .getPropertySet()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index 9ca80d9a1..88409d99e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -14,98 +14,91 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to an individual folder retrieval operation. - * */ public final class GetFolderResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The folder. */ - private Folder folder; + /** + * The folder. + */ + private Folder folder; - /** The property set. */ - private PropertySet propertySet; + /** + * The property set. + */ + private PropertySet propertySet; - /** - * Initializes a new instance of the GetFolderResponse class. - * - * @param folder - * The folder. - * @param propertySet - * The property set from the request. - */ - protected GetFolderResponse(Folder folder, PropertySet propertySet) { - super(); - this.folder = folder; - this.propertySet = propertySet; - EwsUtilities.EwsAssert(this.propertySet != null, - "GetFolderResponse.ctor", "PropertySet should not be null"); - } + /** + * Initializes a new instance of the GetFolderResponse class. + * + * @param folder The folder. + * @param propertySet The property set from the request. + */ + protected GetFolderResponse(Folder folder, PropertySet propertySet) { + super(); + this.folder = folder; + this.propertySet = propertySet; + EwsUtilities.EwsAssert(this.propertySet != null, + "GetFolderResponse.ctor", "PropertySet should not be null"); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - List folders = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Folders, this, true, /* clearPropertyBag */ - this.propertySet, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ - this.folder = folders.get(0); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + List folders = reader.readServiceObjectsCollectionFromXml( + XmlElementNames.Folders, this, true, /* clearPropertyBag */ + this.propertySet, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ + this.folder = folders.get(0); + } - /** - * Gets the object instance delegate. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the object instance delegate - * @throws Exception - * the exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service the service + * @param xmlElementName the xml element name + * @return the object instance delegate + * @throws Exception the exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } - /** - * Gets the folder instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return folder - * @throws Exception - * the exception - */ - private Folder getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - if (this.getFolder() != null) { - return this.getFolder(); - } else { - return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, - service, xmlElementName); - } - } + /** + * Gets the folder instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return folder + * @throws Exception the exception + */ + private Folder getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + if (this.getFolder() != null) { + return this.getFolder(); + } else { + return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, + service, xmlElementName); + } + } - /** - * Gets the folder that was retrieved. - * - * @return folder - */ - public Folder getFolder() { - return this.folder; - } + /** + * Gets the folder that was retrieved. + * + * @return folder + */ + public Folder getFolder() { + return this.folder; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index a55e233c3..2e250e702 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -12,111 +12,119 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; -/*** +/** * Represents a GetInboxRules request. */ -final class GetInboxRulesRequest extends SimpleServiceRequestBase{ +final class GetInboxRulesRequest extends SimpleServiceRequestBase { - /** - * The smtp address of the mailbox from which to get the inbox rules. - */ - private String mailboxSmtpAddress; + /** + * The smtp address of the mailbox from which to get the inbox rules. + */ + private String mailboxSmtpAddress; - /** - * Initializes a new instance of the GetInboxRulesRequest class. - * @param service The service. - * @throws Exception - */ - protected GetInboxRulesRequest(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes a new instance of the GetInboxRulesRequest class. + * + * @param service The service. + * @throws Exception + */ + protected GetInboxRulesRequest(ExchangeService service) throws Exception { + super(service); + } - /** - * Gets or sets the address of the mailbox - * from which to get the inbox rules. - * @return the mailboxSmtpAddress - */ - protected String getmailboxSmtpAddress() { - return this.mailboxSmtpAddress; - } + /** + * Gets or sets the address of the mailbox + * from which to get the inbox rules. + * + * @return the mailboxSmtpAddress + */ + protected String getmailboxSmtpAddress() { + return this.mailboxSmtpAddress; + } - /** - * sets the address of the mailbox from which to get the inbox rules. - */ - protected void setmailboxSmtpAddress(String value) { - this.mailboxSmtpAddress = value; - } + /** + * sets the address of the mailbox from which to get the inbox rules. + */ + protected void setmailboxSmtpAddress(String value) { + this.mailboxSmtpAddress = value; + } - /** - * Gets the name of the XML element. - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetInboxRules; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetInboxRules; + } - /** - * Writes XML elements. - * @param writer The writer. - * @throws javax.xml.stream.XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - if (!(this.mailboxSmtpAddress == null || - this.mailboxSmtpAddress.isEmpty())) { - writer.writeElementValue( - XmlNamespace.Messages, - XmlElementNames.MailboxSmtpAddress, - this.mailboxSmtpAddress); - } - } + /** + * Writes XML elements. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + if (!(this.mailboxSmtpAddress == null || + this.mailboxSmtpAddress.isEmpty())) { + writer.writeElementValue( + XmlNamespace.Messages, + XmlElementNames.MailboxSmtpAddress, + this.mailboxSmtpAddress); + } + } - /** - * Gets the name of the response XML element. - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetInboxRulesResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetInboxRulesResponse; + } - /** - * Parses the response. - * @param reader The reader. - * @return Response object. - * @throws Exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetInboxRulesResponse response = new GetInboxRulesResponse(); - response.loadFromXml(reader, XmlElementNames.GetInboxRulesResponse); - return response; - } + /** + * Parses the response. + * + * @param reader The reader. + * @return Response object. + * @throws Exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetInboxRulesResponse response = new GetInboxRulesResponse(); + response.loadFromXml(reader, XmlElementNames.GetInboxRulesResponse); + return response; + } - /** - * Gets the request version. - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } - /** - * Executes this request. - * @return Service response. - * @throws Exception - * @throws ServiceLocalException - */ - protected GetInboxRulesResponse execute() - throws ServiceLocalException, Exception { - GetInboxRulesResponse serviceResponse = - (GetInboxRulesResponse)this.internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Service response. + * @throws Exception + * @throws ServiceLocalException + */ + protected GetInboxRulesResponse execute() + throws ServiceLocalException, Exception { + GetInboxRulesResponse serviceResponse = + (GetInboxRulesResponse) this.internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java index f6d558963..b7a70441f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java @@ -13,46 +13,47 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a GetInboxRules operation. */ -final class GetInboxRulesResponse extends ServiceResponse{ - /** - * Rule collection. - */ - private RuleCollection ruleCollection; +final class GetInboxRulesResponse extends ServiceResponse { + /** + * Rule collection. + */ + private RuleCollection ruleCollection; - /** - * Initializes a new instance of the - * class. - */ - protected GetInboxRulesResponse() { - super(); - this.ruleCollection = new RuleCollection(); - } + /** + * Initializes a new instance of the + * class. + */ + protected GetInboxRulesResponse() { + super(); + this.ruleCollection = new RuleCollection(); + } - /** - * Reads response elements from XML. - * @param reader The reader. - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.read(); - this.ruleCollection.setOutlookRuleBlobExists(reader. - readElementValue(Boolean.class, - XmlNamespace.Messages, - XmlElementNames.OutlookRuleBlobExists)); - reader.read(); - if (reader.isStartElement(XmlNamespace.NotSpecified, XmlElementNames.InboxRules)) { - this.ruleCollection.loadFromXml(reader, - XmlNamespace.NotSpecified, - XmlElementNames.InboxRules); - } - } + /** + * Reads response elements from XML. + * + * @param reader The reader. + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.read(); + this.ruleCollection.setOutlookRuleBlobExists(reader. + readElementValue(Boolean.class, + XmlNamespace.Messages, + XmlElementNames.OutlookRuleBlobExists)); + reader.read(); + if (reader.isStartElement(XmlNamespace.NotSpecified, XmlElementNames.InboxRules)) { + this.ruleCollection.loadFromXml(reader, + XmlNamespace.NotSpecified, + XmlElementNames.InboxRules); + } + } - /** - * Gets the rule collection in the response. - */ - protected RuleCollection getRules() { - return this.ruleCollection; - } + /** + * Gets the rule collection in the response. + */ + protected RuleCollection getRules() { + return this.ruleCollection; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java index 1909fade1..c72cbc4a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java @@ -15,34 +15,30 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetItemRequest extends GetItemRequestBase { - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected GetItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected GetItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response - */ - protected GetItemResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new GetItemResponse(this.getItemIds().getItemIdWrapperList( - responseIndex), this.getPropertySet()); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response + */ + protected GetItemResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new GetItemResponse(this.getItemIds().getItemIdWrapperList( + responseIndex), this.getPropertySet()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java index 34609933f..4be0e2c34 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java @@ -12,121 +12,116 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract GetItem request. - * - * @param - * the generic type + * + * @param the generic type */ abstract class GetItemRequestBase extends - GetRequest { + GetRequest { - /** The item ids. */ - private ItemIdWrapperList itemIds = new ItemIdWrapperList(); + /** + * The item ids. + */ + private ItemIdWrapperList itemIds = new ItemIdWrapperList(); - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected GetItemRequestBase(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected GetItemRequestBase(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Validate request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getItemIds().iterator(), - "ItemIds"); - } + /** + * Validate request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getItemIds().iterator(), + "ItemIds"); + } - /** - *Gets the expected response message count. - * - * @return Number of expected response messages - */ - protected int getExpectedResponseMessageCount() { - return this.itemIds.getCount(); - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages + */ + protected int getExpectedResponseMessageCount() { + return this.itemIds.getCount(); + } - /** - *Gets the type of the service object this request applies to. - * - * @return The type of service object the request applies to - */ - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Item; - } + /** + * Gets the type of the service object this request applies to. + * + * @return The type of service object the request applies to + */ + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Item; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); - this.itemIds.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ItemIds); - } + this.itemIds.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ItemIds); + } - /** - *Gets the name of the XML element. - * - * @return XML element name - */ - protected String getXmlElementName() { - return XmlElementNames.GetItem; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getXmlElementName() { + return XmlElementNames.GetItem; + } - /** - *Gets the name of the XML element. - * - * @return XML element name - */ - protected String getResponseXmlElementName() { - return XmlElementNames.GetItemResponse; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getResponseXmlElementName() { + return XmlElementNames.GetItemResponse; + } - /** - *Gets the name of the XML element. - * - * @return XML element name - */ - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetItemResponseMessage; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetItemResponseMessage; + } - /** - *Gets the request version. - * - * @return Earliest Exchange version in which this request is supported - */ - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported + */ + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the item ids. - * - * @return the item ids - */ - public ItemIdWrapperList getItemIds() { - return this.itemIds; - } + /** + * Gets the item ids. + * + * @return the item ids + */ + public ItemIdWrapperList getItemIds() { + return this.itemIds; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java index 5f5c5bcd3..623ce5042 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java @@ -15,35 +15,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetItemRequestForLoad extends GetItemRequestBase { - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected GetItemRequestForLoad(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected GetItemRequestForLoad(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new GetItemResponse(this.getItemIds().getItemIdWrapperList( - responseIndex), this.getPropertySet()); + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new GetItemResponse(this.getItemIds().getItemIdWrapperList( + responseIndex), this.getPropertySet()); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index 8c0ac3801..52ff30450 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -16,102 +16,94 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a response to an individual item retrieval operation. */ public final class GetItemResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The item. */ - private Item item; + /** + * The item. + */ + private Item item; - /** The property set. */ - private PropertySet propertySet; + /** + * The property set. + */ + private PropertySet propertySet; - /** - * Initializes a new instance of the class. - * - * @param item - * the item - * @param propertySet - * the property set - */ - protected GetItemResponse(Item item, PropertySet propertySet) { - super(); - this.item = item; - this.propertySet = propertySet; - EwsUtilities.EwsAssert(this.propertySet != null, - "GetItemResponse.ctor", "PropertySet should not be null"); - } + /** + * Initializes a new instance of the class. + * + * @param item the item + * @param propertySet the property set + */ + protected GetItemResponse(Item item, PropertySet propertySet) { + super(); + this.item = item; + this.propertySet = propertySet; + EwsUtilities.EwsAssert(this.propertySet != null, + "GetItemResponse.ctor", "PropertySet should not be null"); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws InstantiationException, IllegalAccessException, Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws InstantiationException, IllegalAccessException, Exception { + super.readElementsFromXml(reader); - List items = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Items, this, - true, /* clearPropertyBag */ - this.propertySet, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ + List items = reader.readServiceObjectsCollectionFromXml( + XmlElementNames.Items, this, + true, /* clearPropertyBag */ + this.propertySet, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ - this.item = items.get(0); - } + this.item = items.get(0); + } - /** - * Gets Item instance. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return Item - * @throws Exception - * the exception - */ - @SuppressWarnings("unused") - private Item getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - if (this.getItem() != null) { - return this.getItem(); - } else { - return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, - service, xmlElementName); + /** + * Gets Item instance. + * + * @param service the service + * @param xmlElementName the xml element name + * @return Item + * @throws Exception the exception + */ + @SuppressWarnings("unused") + private Item getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + if (this.getItem() != null) { + return this.getItem(); + } else { + return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, + service, xmlElementName); - } - } + } + } - /** - * Gets the item that was retrieved. - * - * @return the item - */ - public Item getItem() { - return this.item; - } + /** + * Gets the item that was retrieved. + * + * @return the item + */ + public Item getItem() { + return this.item; + } - /** - * Gets the object instance delegate. - * - * @param service - * accepts ExchangeService - * @param xmlElementName - * accepts String - * @return Name - * @throws Exception - * throws exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service accepts ExchangeService + * @param xmlElementName accepts String + * @return Name + * @throws Exception throws exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return getObjectInstance(service, xmlElementName); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index 3178016d5..5c5470198 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -12,84 +12,89 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; -public final class GetPasswordExpirationDateRequest extends SimpleServiceRequestBase { +public final class GetPasswordExpirationDateRequest extends SimpleServiceRequestBase { - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - // TODO Auto-generated method stub - return ExchangeVersion.Exchange2010_SP1; - } + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + // TODO Auto-generated method stub + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * Initializes a new instance of the GetPasswordExpirationDateRequest class + * + * @throws Exception + */ + protected GetPasswordExpirationDateRequest(ExchangeService service) throws Exception { + super(service); + } + + protected String getResponseXmlElementName() { + return XmlElementNames.GetPasswordExpirationDateResponse; + } + + /** + * Gets the name of the XML Element. + * returns XML element name + */ + protected String getXmlElementName() { + return XmlElementNames.GetPasswordExpirationDateRequest; + } - /** - * Initializes a new instance of the GetPasswordExpirationDateRequest class - * @throws Exception - */ - protected GetPasswordExpirationDateRequest(ExchangeService service) throws Exception{ - super(service); - } - - protected String getResponseXmlElementName(){ - return XmlElementNames.GetPasswordExpirationDateResponse; - } - - /** - * Gets the name of the XML Element. - * returns XML element name - */ - protected String getXmlElementName(){ - return XmlElementNames.GetPasswordExpirationDateRequest; - } + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceLocalException, InstantiationException, + IllegalAccessException, ServiceValidationException, Exception { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.MailboxSmtpAddress, + this.getMailboxSmtpAddress()); + } - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceLocalException, InstantiationException, - IllegalAccessException, ServiceValidationException, Exception { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.MailboxSmtpAddress, - this.getMailboxSmtpAddress()); - } + /** + * Parses the response + * + * @return GEtPasswordExpirationDateResponse + */ + protected Object parseResponse(EwsServiceXmlReader reader) throws Exception { + GetPasswordExpirationDateResponse response = new GetPasswordExpirationDateResponse(); + response.loadFromXml(reader, XmlElementNames.GetPasswordExpirationDateResponse); + return response; - /** - * Parses the response - * @return GEtPasswordExpirationDateResponse - */ - protected Object parseResponse(EwsServiceXmlReader reader)throws Exception{ - GetPasswordExpirationDateResponse response = new GetPasswordExpirationDateResponse(); - response.loadFromXml(reader,XmlElementNames.GetPasswordExpirationDateResponse); - return response; - - } - - /** - * Gets the request version - * @return Earliest Exchange version in which this request is supported. - *//* - protected ExchangeVersion getMinimumRequiredServerVersion(){ + } + + /** + * Gets the request version + * @return Earliest Exchange version in which this request is supported. + *//* + protected ExchangeVersion getMinimumRequiredServerVersion(){ return ExchangeVersion.Exchange2010_SP1; }*/ - - /** - * Executes this request. - * @return Service response. - */ - protected GetPasswordExpirationDateResponse execute()throws Exception{ - GetPasswordExpirationDateResponse serviceResponse = (GetPasswordExpirationDateResponse)this.internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } - - /** - * Gets mailbox smtp address. - * @return The mailbox smtp address. - */ - protected String getMailboxSmtpAddress(){ - return this.mailboxSmtpAddress; - } - protected void setMailboxSmtpAddress(String mailboxSmtpAddress){ - this. mailboxSmtpAddress = mailboxSmtpAddress; - } - - private String mailboxSmtpAddress; + /** + * Executes this request. + * + * @return Service response. + */ + protected GetPasswordExpirationDateResponse execute() throws Exception { + GetPasswordExpirationDateResponse serviceResponse = + (GetPasswordExpirationDateResponse) this.internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } + + /** + * Gets mailbox smtp address. + * + * @return The mailbox smtp address. + */ + protected String getMailboxSmtpAddress() { + return this.mailboxSmtpAddress; + } + + protected void setMailboxSmtpAddress(String mailboxSmtpAddress) { + this.mailboxSmtpAddress = mailboxSmtpAddress; + } + + private String mailboxSmtpAddress; } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java index 7d0550ea1..a9f35a33e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java @@ -13,32 +13,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; public class GetPasswordExpirationDateResponse extends ServiceResponse { - private Date passwordExpirationDate; + private Date passwordExpirationDate; - /** - * Initializes a new instance of the GetPasswordExpirationDateResponse class. - */ - protected GetPasswordExpirationDateResponse(){ - super(); - } - - /** - * Reads response elements from XML - * @param reader The Reader - */ - protected void readElementsFromXml(EwsServiceXmlReader reader)throws Exception{ - super.readElementsFromXml(reader); - this.passwordExpirationDate = reader.readElementValueAsDateTime( - XmlNamespace.NotSpecified, - XmlElementNames.PasswordExpirationDate); - - } - - /** - * Get password expiration date. - * @return Password expiration date. - */ - public Date getPasswordExpirationDate(){ - return this.passwordExpirationDate; - } + /** + * Initializes a new instance of the GetPasswordExpirationDateResponse class. + */ + protected GetPasswordExpirationDateResponse() { + super(); + } + + /** + * Reads response elements from XML + * + * @param reader The Reader + */ + protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception { + super.readElementsFromXml(reader); + this.passwordExpirationDate = reader.readElementValueAsDateTime( + XmlNamespace.NotSpecified, + XmlElementNames.PasswordExpirationDate); + + } + + /** + * Get password expiration date. + * + * @return Password expiration date. + */ + public Date getPasswordExpirationDate() { + return this.passwordExpirationDate; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 53b6fbc1e..75c9f97c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -12,118 +12,112 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a GetPhoneCall request. - * */ final class GetPhoneCallRequest extends SimpleServiceRequestBase { - /** The id. */ - private PhoneCallId id; + /** + * The id. + */ + private PhoneCallId id; - /** - * Initializes a new instance of the GetPhoneCallRequest class. - * - * @param service - * the service - * @throws Exception - */ - protected GetPhoneCallRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the GetPhoneCallRequest class. + * + * @param service the service + * @throws Exception + */ + protected GetPhoneCallRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetPhoneCall; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetPhoneCall; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.id.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.PhoneCallId); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.id.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.PhoneCallId); + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetPhoneCallResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetPhoneCallResponse; + } - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetPhoneCallResponse response = new GetPhoneCallResponse(getService()); - response.loadFromXml(reader, XmlElementNames.GetPhoneCallResponse); - return response; - } + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetPhoneCallResponse response = new GetPhoneCallResponse(getService()); + response.loadFromXml(reader, XmlElementNames.GetPhoneCallResponse); + return response; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected GetPhoneCallResponse execute() throws Exception { - GetPhoneCallResponse serviceResponse = (GetPhoneCallResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected GetPhoneCallResponse execute() throws Exception { + GetPhoneCallResponse serviceResponse = (GetPhoneCallResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } - /** - * Gets the Id of the phone call. - * - * @return the id - */ - protected PhoneCallId getId() { - return id; - } + /** + * Gets the Id of the phone call. + * + * @return the id + */ + protected PhoneCallId getId() { + return id; + } - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(PhoneCallId id) { - this.id = id; - } + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(PhoneCallId id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java index bae8a1263..2e78632c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java @@ -11,54 +11,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents the response to a GetPhoneCall operation. - * + * Represents the response to a GetPhoneCall operation. */ final class GetPhoneCallResponse extends ServiceResponse { - /** The phone call. */ - private PhoneCall phoneCall; - - /** - * Initializes a new instance of the GetPhoneCallResponse class. - * - * @param service - * the service - */ - protected GetPhoneCallResponse(ExchangeService service) { - super(); - EwsUtilities.EwsAssert(service != null, "GetPhoneCallResponse.ctor", - "service is null"); - - this.phoneCall = new PhoneCall(service); - } - - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.PhoneCallInformation); - this.phoneCall.loadFromXml(reader, XmlNamespace.Messages, - XmlElementNames.PhoneCallInformation); - reader.readEndElementIfNecessary(XmlNamespace.Messages, - XmlElementNames.PhoneCallInformation); - } - - /** - * Gets the phone call. - * - * @return the phone call - */ - protected PhoneCall getPhoneCall() { - return phoneCall; - } + /** + * The phone call. + */ + private PhoneCall phoneCall; + + /** + * Initializes a new instance of the GetPhoneCallResponse class. + * + * @param service the service + */ + protected GetPhoneCallResponse(ExchangeService service) { + super(); + EwsUtilities.EwsAssert(service != null, "GetPhoneCallResponse.ctor", + "service is null"); + + this.phoneCall = new PhoneCall(service); + } + + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.PhoneCallInformation); + this.phoneCall.loadFromXml(reader, XmlNamespace.Messages, + XmlElementNames.PhoneCallInformation); + reader.readEndElementIfNecessary(XmlNamespace.Messages, + XmlElementNames.PhoneCallInformation); + } + + /** + * Gets the phone call. + * + * @return the phone call + */ + protected PhoneCall getPhoneCall() { + return phoneCall; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java index 89232772c..6b659d133 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java @@ -12,84 +12,78 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Get request. - * - * @param - * the generic type - * @param - * the generic type + * + * @param the generic type + * @param the generic type */ -abstract class GetRequest - extends MultiResponseServiceRequest { +abstract class GetRequest + extends MultiResponseServiceRequest { - /** The property set. */ - private PropertySet propertySet; + /** + * The property set. + */ + private PropertySet propertySet; - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected GetRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected GetRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Validate request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParam(this.propertySet, "PropertySet"); - this.propertySet - .validateForRequest(this, false /* summaryPropertiesOnly */); - } + /** + * Validate request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParam(this.propertySet, "PropertySet"); + this.propertySet + .validateForRequest(this, false /* summaryPropertiesOnly */); + } - /** - * Gets the type of the service object this request applies to. - * - * @return The type of service object the request applies to - */ - protected abstract ServiceObjectType getServiceObjectType(); + /** + * Gets the type of the service object this request applies to. + * + * @return The type of service object the request applies to + */ + protected abstract ServiceObjectType getServiceObjectType(); - /** - * Gets the type of the service object this request applies to. - * - * @param writer - * the writer - * @throws Exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.propertySet.writeToXml(writer, this.getServiceObjectType()); - } + /** + * Gets the type of the service object this request applies to. + * + * @param writer the writer + * @throws Exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.propertySet.writeToXml(writer, this.getServiceObjectType()); + } - /** - * Gets the property set. - * - * @return the property set - */ - public PropertySet getPropertySet() { - return this.propertySet; - } + /** + * Gets the property set. + * + * @return the property set + */ + public PropertySet getPropertySet() { + return this.propertySet; + } - /** - * Sets the property set. - * - * @param propertySet - * the new property set - */ - public void setPropertySet(PropertySet propertySet) { - this.propertySet = propertySet; - } + /** + * Sets the property set. + * + * @param propertySet the new property set + */ + public void setPropertySet(PropertySet propertySet) { + this.propertySet = propertySet; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 46fefcdc2..16cebf85a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -15,87 +15,82 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetRoomListsRequest extends SimpleServiceRequestBase { - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected GetRoomListsRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected GetRoomListsRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetRoomListsRequest; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetRoomListsRequest; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) { - // Don't have parameter in request - } + /** + * Writes XML elements. + * + * @param writer the writer + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) { + // Don't have parameter in request + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetRoomListsResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetRoomListsResponse; + } - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetRoomListsResponse response = new GetRoomListsResponse(); - response.loadFromXml(reader, XmlElementNames.GetRoomListsResponse); - return response; - } + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetRoomListsResponse response = new GetRoomListsResponse(); + response.loadFromXml(reader, XmlElementNames.GetRoomListsResponse); + return response; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Executes this request. - * - * @return Service response - * @throws Exception - * the exception - */ - protected GetRoomListsResponse execute() throws Exception { - GetRoomListsResponse serviceResponse = (GetRoomListsResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Service response + * @throws Exception the exception + */ + protected GetRoomListsResponse execute() throws Exception { + GetRoomListsResponse serviceResponse = (GetRoomListsResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java index 89cf97074..cfaf8cd55 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java @@ -15,60 +15,60 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetRoomListsResponse extends ServiceResponse { - /** The room lists. */ - private EmailAddressCollection roomLists = new EmailAddressCollection(); + /** + * The room lists. + */ + private EmailAddressCollection roomLists = new EmailAddressCollection(); - /** - * Represents the response to a GetRoomLists operation. - */ - protected GetRoomListsResponse() { - super(); - } + /** + * Represents the response to a GetRoomLists operation. + */ + protected GetRoomListsResponse() { + super(); + } - /** - * Gets all room list returned. - * - * @return the room lists - */ - public EmailAddressCollection getRoomLists() { - return this.roomLists; - } + /** + * Gets all room list returned. + * + * @return the room lists + */ + public EmailAddressCollection getRoomLists() { + return this.roomLists; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - this.roomLists.clear(); - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + this.roomLists.clear(); + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.RoomLists); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.RoomLists); - if (!reader.isEmptyElement()) { - // Because we don't have an element for count of returned object, - // we have to test the element to determine if it is return object - // or EndElement - reader.read(); - while (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.Address)) { - EmailAddress emailAddress = new EmailAddress(); - emailAddress.loadFromXml(reader, XmlElementNames.Address); - this.roomLists.add(emailAddress); - reader.read(); - } - reader.ensureCurrentNodeIsEndElement(XmlNamespace.Messages, - XmlElementNames.RoomLists); - } else { - reader.read(); - } - return; - } + if (!reader.isEmptyElement()) { + // Because we don't have an element for count of returned object, + // we have to test the element to determine if it is return object + // or EndElement + reader.read(); + while (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.Address)) { + EmailAddress emailAddress = new EmailAddress(); + emailAddress.loadFromXml(reader, XmlElementNames.Address); + this.roomLists.add(emailAddress); + reader.read(); + } + reader.ensureCurrentNodeIsEndElement(XmlNamespace.Messages, + XmlElementNames.RoomLists); + } else { + reader.read(); + } + return; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index 6189ad071..5b6f350b5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -15,114 +15,109 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetRoomsRequest extends SimpleServiceRequestBase { - /** - * Represents a GetRooms request. - * - * @param service - * the service - * @throws Exception - */ - protected GetRoomsRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Represents a GetRooms request. + * + * @param service the service + * @throws Exception + */ + protected GetRoomsRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetRoomsRequest; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetRoomsRequest; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getRoomList().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.RoomList); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getRoomList().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.RoomList); + } - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetRoomsResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetRoomsResponse; + } - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetRoomsResponse response = new GetRoomsResponse(); - response.loadFromXml(reader, XmlElementNames.GetRoomsResponse); - return response; - } + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetRoomsResponse response = new GetRoomsResponse(); + response.loadFromXml(reader, XmlElementNames.GetRoomsResponse); + return response; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected GetRoomsResponse execute() throws Exception { - GetRoomsResponse serviceResponse = (GetRoomsResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected GetRoomsResponse execute() throws Exception { + GetRoomsResponse serviceResponse = (GetRoomsResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } - /** - * Gets the room list to retrieve rooms from. - * - * @return the room list - */ - protected EmailAddress getRoomList() { - return this.roomList; - } + /** + * Gets the room list to retrieve rooms from. + * + * @return the room list + */ + protected EmailAddress getRoomList() { + return this.roomList; + } - /** - * Sets the room list. - * - * @param value - * the new room list - */ - protected void setRoomList(EmailAddress value) { - this.roomList = value; - } + /** + * Sets the room list. + * + * @param value the new room list + */ + protected void setRoomList(EmailAddress value) { + this.roomList = value; + } - /** The room list. */ - private EmailAddress roomList; + /** + * The room list. + */ + private EmailAddress roomList; } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java index 12e5ba804..90165cd6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java @@ -18,62 +18,62 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetRoomsResponse extends ServiceResponse { - /** The rooms. */ - private Collection rooms = new ArrayList(); + /** + * The rooms. + */ + private Collection rooms = new ArrayList(); - /** - * Initializes a new instance of the class. - */ - protected GetRoomsResponse() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected GetRoomsResponse() { + super(); + } - /** - * Gets collection for all rooms returned. - * - * @return the rooms - */ - public Collection getRooms() { - return this.rooms; - } + /** + * Gets collection for all rooms returned. + * + * @return the rooms + */ + public Collection getRooms() { + return this.rooms; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - this.rooms.clear(); - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + this.rooms.clear(); + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Rooms); + reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Rooms); - if (!reader.isEmptyElement()) { - // Because we don't have an element for count of returned object, - // we have to test the element to determine if it is StartElement of - // return object or EndElement - reader.read(); - while (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.Room)) { - reader.read(); // skip the start + if (!reader.isEmptyElement()) { + // Because we don't have an element for count of returned object, + // we have to test the element to determine if it is StartElement of + // return object or EndElement + reader.read(); + while (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.Room)) { + reader.read(); // skip the start - EmailAddress emailAddress = new EmailAddress(); - emailAddress.loadFromXml(reader, XmlElementNames.RoomId); - this.rooms.add(emailAddress); + EmailAddress emailAddress = new EmailAddress(); + emailAddress.loadFromXml(reader, XmlElementNames.RoomId); + this.rooms.add(emailAddress); - reader.readEndElement(XmlNamespace.Types, XmlElementNames.Room); - reader.read(); - } + reader.readEndElement(XmlNamespace.Types, XmlElementNames.Room); + reader.read(); + } - reader.ensureCurrentNodeIsEndElement(XmlNamespace.Messages, - XmlElementNames.Rooms); - } else { - reader.read(); - } - } + reader.ensureCurrentNodeIsEndElement(XmlNamespace.Messages, + XmlElementNames.Rooms); + } else { + reader.read(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java index 6bfa5fdd7..0b4d0fa1d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java @@ -16,147 +16,141 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a GetServerTimeZones request. */ class GetServerTimeZonesRequest extends - MultiResponseServiceRequest { - - /** The ids. */ - private Iterable ids; - - /** - * Gets the XML element name associated with the transition. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - if (this.ids != null) { - EwsUtilities.validateParamCollection(this.getIds().iterator(), - "Ids"); - } - } - - /** - * Initializes a new instance of the "GetServerTimeZonesRequest" class. - * - * @param service - * the service - * @throws Exception - */ - protected GetServerTimeZonesRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected GetServerTimeZonesResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new GetServerTimeZonesResponse(); - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetServerTimeZonesResponseMessage; - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name, - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetServerTimeZones; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetServerTimeZonesResponse; - } - - /** - * Gets the minimum server version required to process this request. - * - * @return Exchange server version. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - if (this.getIds() != null) { - writer - .writeStartElement(XmlNamespace.Messages, - XmlElementNames.Ids); - - for (String id : this.getIds()) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.Id, id); - } - - writer.writeEndElement(); // Ids - } - } - - /** - * Gets the ids of the time zones that should be returned by the - * server. - * - * @return the ids - */ - protected Iterable getIds() { - return this.ids; - } - - /** - * Sets the ids. - * - * @param ids - * the new ids - */ - protected void setIds(Iterable ids) { - this.ids = ids; - } + MultiResponseServiceRequest { + + /** + * The ids. + */ + private Iterable ids; + + /** + * Gets the XML element name associated with the transition. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + if (this.ids != null) { + EwsUtilities.validateParamCollection(this.getIds().iterator(), + "Ids"); + } + } + + /** + * Initializes a new instance of the "GetServerTimeZonesRequest" class. + * + * @param service the service + * @throws Exception + */ + protected GetServerTimeZonesRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected GetServerTimeZonesResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new GetServerTimeZonesResponse(); + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetServerTimeZonesResponseMessage; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name, + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetServerTimeZones; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetServerTimeZonesResponse; + } + + /** + * Gets the minimum server version required to process this request. + * + * @return Exchange server version. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + if (this.getIds() != null) { + writer + .writeStartElement(XmlNamespace.Messages, + XmlElementNames.Ids); + + for (String id : this.getIds()) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.Id, id); + } + + writer.writeEndElement(); // Ids + } + } + + /** + * Gets the ids of the time zones that should be returned by the + * server. + * + * @return the ids + */ + protected Iterable getIds() { + return this.ids; + } + + /** + * Sets the ids. + * + * @param ids the new ids + */ + protected void setIds(Iterable ids) { + this.ids = ids; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java index 7fa980667..a370af14a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java @@ -10,81 +10,75 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.Collection; -import javax.xml.stream.XMLStreamException; - /** * Represents the response to a GetServerTimeZones request. */ class GetServerTimeZonesResponse extends ServiceResponse { - /** The time zones. */ - private Collection timeZones = - new ArrayList(); + /** + * The time zones. + */ + private Collection timeZones = + new ArrayList(); - /** - * Initializes a new instance of the class. - */ - protected GetServerTimeZonesResponse() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected GetServerTimeZonesResponse() { + super(); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceLocalException, Exception { + super.readElementsFromXml(reader); - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.TimeZoneDefinitions); + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.TimeZoneDefinitions); - if (!reader.isEmptyElement()) { - do { - reader.read(); + if (!reader.isEmptyElement()) { + do { + reader.read(); - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.TimeZoneDefinition)) { - TimeZoneDefinition timeZoneDefinition = - new TimeZoneDefinition(); - timeZoneDefinition.loadFromXml(reader); + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.TimeZoneDefinition)) { + TimeZoneDefinition timeZoneDefinition = + new TimeZoneDefinition(); + timeZoneDefinition.loadFromXml(reader); - this.timeZones.add(timeZoneDefinition); - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.TimeZoneDefinitions)); - } else { - reader.read(); - } - } + this.timeZones.add(timeZoneDefinition); + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.TimeZoneDefinitions)); + } else { + reader.read(); + } + } - /** - * Reads response elements from XML. - * - * @return the time zones - */ - public Collection getTimeZones() { - return this.timeZones; - } + /** + * Reads response elements from XML. + * + * @return the time zones + */ + public Collection getTimeZones() { + return this.timeZones; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index c1b149326..3c6ca5987 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -13,118 +13,124 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; /** - * Defines the GetStreamingEventsRequest class. + * Defines the GetStreamingEventsRequest class. */ class GetStreamingEventsRequest extends HangingServiceRequestBase { - protected final static int HeartbeatFrequencyDefault = 45000; ////45s in ms - private static int heartbeatFrequency = HeartbeatFrequencyDefault; - - private Iterable subscriptionIds; - private int connectionTimeout; - - /** - * Initializes a new instance of the GetStreamingEventsRequest class. - * @param service The service - * @param serviceObjectHandler The serviceObjectHandler - * @param subscriptionIds The subscriptionIds - * @param connectionTimeout The connectionTimeout - * @throws microsoft.exchange.webservices.data.ServiceVersionException - */ - protected GetStreamingEventsRequest(ExchangeService service, - IHandleResponseObject serviceObjectHandler, - Iterable subscriptionIds,int connectionTimeout) - throws ServiceVersionException { - super(service, serviceObjectHandler, - GetStreamingEventsRequest.heartbeatFrequency); - this.subscriptionIds = subscriptionIds; - this.connectionTimeout = connectionTimeout; - } - - /** - * Gets the name of the XML element. - * @return XmlElementNames - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetStreamingEvents; - } - - /** - * Gets the name of the response XML element. - * @return XmlElementNames - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetStreamingEventsResponse; - } - - /** - * Writes the elements to XML writer. - * @param writer The writer - * @throws javax.xml.stream.XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SubscriptionIds); - - for (String id : this.subscriptionIds) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.SubscriptionId, - id); - } - - writer.writeEndElement(); - - writer.writeElementValue( - XmlNamespace.Messages, - XmlElementNames.ConnectionTimeout, - this.connectionTimeout); - } - - /** - * Gets the request version. - * @return ExchangeVersion - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } - - /** - * Parses the response. - * @param reader The reader - * @return response - * @throws Exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.ResponseMessages); - - GetStreamingEventsResponse response = - new GetStreamingEventsResponse(this); - response.loadFromXml(reader, XmlElementNames. - GetStreamingEventsResponseMessage); - - reader.readEndElementIfNecessary(XmlNamespace.Messages, - XmlElementNames.ResponseMessages); - - return response; - } - - /** - * region Test hooks - * Allow test code to change heartbeat value - */ - protected static void setHeartbeatFrequency(int heartbeatFrequency) { - GetStreamingEventsRequest.heartbeatFrequency = heartbeatFrequency; - } + protected final static int HeartbeatFrequencyDefault = 45000; ////45s in ms + private static int heartbeatFrequency = HeartbeatFrequencyDefault; + + private Iterable subscriptionIds; + private int connectionTimeout; + + /** + * Initializes a new instance of the GetStreamingEventsRequest class. + * + * @param service The service + * @param serviceObjectHandler The serviceObjectHandler + * @param subscriptionIds The subscriptionIds + * @param connectionTimeout The connectionTimeout + * @throws microsoft.exchange.webservices.data.ServiceVersionException + */ + protected GetStreamingEventsRequest(ExchangeService service, + IHandleResponseObject serviceObjectHandler, + Iterable subscriptionIds, int connectionTimeout) + throws ServiceVersionException { + super(service, serviceObjectHandler, + GetStreamingEventsRequest.heartbeatFrequency); + this.subscriptionIds = subscriptionIds; + this.connectionTimeout = connectionTimeout; + } + + /** + * Gets the name of the XML element. + * + * @return XmlElementNames + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetStreamingEvents; + } + + /** + * Gets the name of the response XML element. + * + * @return XmlElementNames + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetStreamingEventsResponse; + } + + /** + * Writes the elements to XML writer. + * + * @param writer The writer + * @throws javax.xml.stream.XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SubscriptionIds); + + for (String id : this.subscriptionIds) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.SubscriptionId, + id); + } + + writer.writeEndElement(); + + writer.writeElementValue( + XmlNamespace.Messages, + XmlElementNames.ConnectionTimeout, + this.connectionTimeout); + } + + /** + * Gets the request version. + * + * @return ExchangeVersion + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * Parses the response. + * + * @param reader The reader + * @return response + * @throws Exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.ResponseMessages); + + GetStreamingEventsResponse response = + new GetStreamingEventsResponse(this); + response.loadFromXml(reader, XmlElementNames. + GetStreamingEventsResponseMessage); + + reader.readEndElementIfNecessary(XmlNamespace.Messages, + XmlElementNames.ResponseMessages); + + return response; + } + + /** + * region Test hooks + * Allow test code to change heartbeat value + */ + protected static void setHeartbeatFrequency(int heartbeatFrequency) { + GetStreamingEventsRequest.heartbeatFrequency = heartbeatFrequency; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index 8fe95cc6f..b9793e05d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -17,116 +17,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the response to a subscription event retrieval operation. */ final class GetStreamingEventsResponse extends ServiceResponse { - - private GetStreamingEventsResults results = new GetStreamingEventsResults(); - private HangingServiceRequestBase request; - - /** - * Enumeration of ConnectionStatus that can be returned by the server. - */ - private enum ConnectionStatus - { - /** - * Simple heartbeat - */ - OK, - - /** - * Server is closing the connection. - */ - Closed - } - - /** - * Initializes a new instance of the GetStreamingEventsResponse class. - * @param request The request - * Request to disconnect when we get a close message. - */ - protected GetStreamingEventsResponse(HangingServiceRequestBase request) { - super(); - List string = new ArrayList(); - this.setErrorSubscriptionIds(string); - this.request = request; - } - - /** - * Reads response elements from XML. - * @throws Exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - - reader.read(); - - if(reader.getLocalName().equals(XmlElementNames.Notifications)) { - this.results.loadFromXml(reader); - } - else if(reader.getLocalName().equals(XmlElementNames.ConnectionStatus)) { - String connectionStatus = reader.readElementValue(XmlNamespace. - Messages,XmlElementNames.ConnectionStatus); - - if (connectionStatus.equals(ConnectionStatus.Closed.toString())) { - this.request.disconnect( - HangingRequestDisconnectReason.Clean, null); - } - } - } - - /** - * Loads extra error details from XML - * @throws Exception - */ - @Override - protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, - String xmlElementName) throws Exception { - boolean baseReturnVal = super. - loadExtraErrorDetailsFromXml(reader, xmlElementName); - - if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.ErrorSubscriptionIds)) { - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT && - reader.getLocalName().equals(XmlElementNames.SubscriptionId)) { - this.getErrorSubscriptionIds().add( - reader.readElementValue(XmlNamespace.Messages, - XmlElementNames.SubscriptionId)); - } - } - while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.ErrorSubscriptionIds)); - - return true; - } - else { - return baseReturnVal; - } - } - + + private GetStreamingEventsResults results = new GetStreamingEventsResults(); + private HangingServiceRequestBase request; + + + /** + * Enumeration of ConnectionStatus that can be returned by the server. + */ + private enum ConnectionStatus { /** - * Gets event results from subscription. + * Simple heartbeat */ - protected GetStreamingEventsResults getResults() { - return this.results; - } - - private List errorSubscriptionIds; + OK, /** - * Gets the error subscription ids. + * Server is closing the connection. */ - protected List getErrorSubscriptionIds() { - return this.errorSubscriptionIds; + Closed + } + + /** + * Initializes a new instance of the GetStreamingEventsResponse class. + * + * @param request The request + * Request to disconnect when we get a close message. + */ + protected GetStreamingEventsResponse(HangingServiceRequestBase request) { + super(); + List string = new ArrayList(); + this.setErrorSubscriptionIds(string); + this.request = request; + } + + /** + * Reads response elements from XML. + * + * @throws Exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + + reader.read(); + + if (reader.getLocalName().equals(XmlElementNames.Notifications)) { + this.results.loadFromXml(reader); + } else if (reader.getLocalName().equals(XmlElementNames.ConnectionStatus)) { + String connectionStatus = reader.readElementValue(XmlNamespace. + Messages, XmlElementNames.ConnectionStatus); + + if (connectionStatus.equals(ConnectionStatus.Closed.toString())) { + this.request.disconnect( + HangingRequestDisconnectReason.Clean, null); + } } - - /** - * Sets the error subscription ids. - */ - private void setErrorSubscriptionIds(List value) { - this.errorSubscriptionIds = value; + } + + /** + * Loads extra error details from XML + * + * @throws Exception + */ + @Override + protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, + String xmlElementName) throws Exception { + boolean baseReturnVal = super. + loadExtraErrorDetailsFromXml(reader, xmlElementName); + + if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.ErrorSubscriptionIds)) { + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT && + reader.getLocalName().equals(XmlElementNames.SubscriptionId)) { + this.getErrorSubscriptionIds().add( + reader.readElementValue(XmlNamespace.Messages, + XmlElementNames.SubscriptionId)); + } + } + while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.ErrorSubscriptionIds)); + + return true; + } else { + return baseReturnVal; } - + } + + /** + * Gets event results from subscription. + */ + protected GetStreamingEventsResults getResults() { + return this.results; + } + + private List errorSubscriptionIds; + + /** + * Gets the error subscription ids. + */ + protected List getErrorSubscriptionIds() { + return this.errorSubscriptionIds; + } + + /** + * Sets the error subscription ids. + */ + private void setErrorSubscriptionIds(List value) { + this.errorSubscriptionIds = value; + } + } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index a44319819..71cb775ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -17,130 +17,130 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of notification events. */ - final class GetStreamingEventsResults { - - /** - * Structure to track a subscription and its associated notification events. - */ - protected static class NotificationGroup { - /** - * Subscription Id - */ - protected String subscriptionId; - - /** - * Events in the response associated with the subscription id. - */ - protected Collection events; - } - - /** - * Collection of notification events. - */ - private Collection events = - new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - protected GetStreamingEventsResults() { - } - - /** - * Loads from XML. - * @param reader The reader. - * @throws Exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.Notification); - - do { - NotificationGroup notifications = new NotificationGroup(); - notifications.subscriptionId = reader.readElementValue( - XmlNamespace.Types, - XmlElementNames.SubscriptionId); - notifications.events = new ArrayList(); - - synchronized(this) { - this.events.add(notifications); - } - - do { - reader.read(); - - if (reader.isStartElement()) { - String eventElementName = reader.getLocalName(); - EventType eventType; - if (GetEventsResults.getXmlElementNameToEventTypeMap().containsKey(eventElementName)) - { - eventType = GetEventsResults.getXmlElementNameToEventTypeMap(). - get(eventElementName); - if (eventType == EventType.Status) { - // We don't need to return status events - reader.readEndElementIfNecessary(XmlNamespace.Types, - eventElementName); - } - else { - this.loadNotificationEventFromXml( - reader, - eventElementName, - eventType, - notifications); - } - } - else { - reader.skipCurrentElement(); - } - } - } - while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.Notification)); - - reader.read(); - } - while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.Notifications)); - } - - /** - * Loads a notification event from XML. - * @param reader The reader. - * @param eventElementName Name of the event XML element. - * @param eventType Type of the event. - * @param notifications Collection of notifications - * @throws Exception - */ - private void loadNotificationEventFromXml( - EwsServiceXmlReader reader, - String eventElementName, - EventType eventType, - NotificationGroup notifications) throws Exception { - Date timestamp = reader.readElementValue(Date.class,XmlNamespace.Types, - XmlElementNames.TimeStamp); - - NotificationEvent notificationEvent; - - reader.read(); - - if (reader.getLocalName().equals(XmlElementNames.FolderId)) { - notificationEvent = new FolderEvent(eventType, timestamp); - } - else { - notificationEvent = new ItemEvent(eventType, timestamp); - } - - notificationEvent.loadFromXml(reader, eventElementName); - notifications.events.add(notificationEvent); - } - - /** - * Gets the notification collection. - * @value The notification collection. - */ - protected Collection getNotifications() { - return this.events; - } +final class GetStreamingEventsResults { + + /** + * Structure to track a subscription and its associated notification events. + */ + protected static class NotificationGroup { + /** + * Subscription Id + */ + protected String subscriptionId; + + /** + * Events in the response associated with the subscription id. + */ + protected Collection events; + } + + + /** + * Collection of notification events. + */ + private Collection events = + new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + protected GetStreamingEventsResults() { + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.Notification); + + do { + NotificationGroup notifications = new NotificationGroup(); + notifications.subscriptionId = reader.readElementValue( + XmlNamespace.Types, + XmlElementNames.SubscriptionId); + notifications.events = new ArrayList(); + + synchronized (this) { + this.events.add(notifications); + } + + do { + reader.read(); + + if (reader.isStartElement()) { + String eventElementName = reader.getLocalName(); + EventType eventType; + if (GetEventsResults.getXmlElementNameToEventTypeMap().containsKey(eventElementName)) { + eventType = GetEventsResults.getXmlElementNameToEventTypeMap(). + get(eventElementName); + if (eventType == EventType.Status) { + // We don't need to return status events + reader.readEndElementIfNecessary(XmlNamespace.Types, + eventElementName); + } else { + this.loadNotificationEventFromXml( + reader, + eventElementName, + eventType, + notifications); + } + } else { + reader.skipCurrentElement(); + } + } + } + while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.Notification)); + + reader.read(); + } + while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.Notifications)); + } + + /** + * Loads a notification event from XML. + * + * @param reader The reader. + * @param eventElementName Name of the event XML element. + * @param eventType Type of the event. + * @param notifications Collection of notifications + * @throws Exception + */ + private void loadNotificationEventFromXml( + EwsServiceXmlReader reader, + String eventElementName, + EventType eventType, + NotificationGroup notifications) throws Exception { + Date timestamp = reader.readElementValue(Date.class, XmlNamespace.Types, + XmlElementNames.TimeStamp); + + NotificationEvent notificationEvent; + + reader.read(); + + if (reader.getLocalName().equals(XmlElementNames.FolderId)) { + notificationEvent = new FolderEvent(eventType, timestamp); + } else { + notificationEvent = new ItemEvent(eventType, timestamp); + } + + notificationEvent.loadFromXml(reader, eventElementName); + notifications.events.add(notificationEvent); + } + + /** + * Gets the notification collection. + * + * @value The notification collection. + */ + protected Collection getNotifications() { + return this.events; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index 5f52598b4..baf0bcdca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -11,293 +11,289 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a GetUserAvailability request. - * + * Represents a GetUserAvailability request. */ final class GetUserAvailabilityRequest extends SimpleServiceRequestBase { - /** The attendees. */ - private Iterable attendees; - - /** The time window. */ - private TimeWindow timeWindow; - - /** The requested data. */ - private AvailabilityData requestedData = - AvailabilityData.FreeBusyAndSuggestions; - - /** The options. */ - private AvailabilityOptions options; - - /** - * Initializes a new instance of the "GetUserAvailabilityRequest" class. - * - * @param service - * the service - * @throws Exception - */ - protected GetUserAvailabilityRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetUserAvailabilityRequest; - } - - /** - * Gets a value indicating whether free/busy data is requested. - * - * @return true, if is free busy view requested - */ - protected boolean isFreeBusyViewRequested() { - return this.requestedData == AvailabilityData.FreeBusy || - this.requestedData == AvailabilityData. - FreeBusyAndSuggestions; - } - - /** - * Gets a value indicating whether suggestions are requested. - * - * @return true, if is suggestions view requested - */ - protected boolean isSuggestionsViewRequested() { - return this.requestedData == AvailabilityData.Suggestions || - this.requestedData == AvailabilityData. - FreeBusyAndSuggestions; - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - this.options.validate(this.timeWindow.getDuration()); - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // Only serialize the TimeZone property against an Exchange 2007 SP1 - // server. - // Against Exchange 2010, the time zone is emitted in the request's SOAP - // header. - //if (writer.getService().getRequestedServerVersion() == - //ExchangeVersion.Exchange2007_SP1) { - LegacyAvailabilityTimeZone legacyTimeZone = - new LegacyAvailabilityTimeZone(); - - legacyTimeZone.writeToXml(writer, XmlElementNames.TimeZone); - - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.MailboxDataArray); - - for (AttendeeInfo attendee : this.attendees) { - attendee.writeToXml(writer); - } - - writer.writeEndElement(); // MailboxDataArray - - this.options.writeToXml(writer, this); - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetUserAvailabilityResponse; - } - - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetUserAvailabilityResults serviceResponse = - new GetUserAvailabilityResults(); - - if (this.isFreeBusyViewRequested()) { - serviceResponse - .setAttendeesAvailability(new ServiceResponseCollection - ()); - - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.FreeBusyResponseArray); - - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Messages, - XmlElementNames.FreeBusyResponse)) { - AttendeeAvailability freeBusyResponse = - new AttendeeAvailability(); - - freeBusyResponse.loadFromXml(reader, - XmlElementNames.ResponseMessage); - - if (freeBusyResponse.getErrorCode().equals( - ServiceError.NoError)) { - freeBusyResponse.loadFreeBusyViewFromXml(reader, - this.options.getRequestedFreeBusyView()); - } - - serviceResponse.getAttendeesAvailability().add( - freeBusyResponse); - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.FreeBusyResponseArray)); - } - - if (this.isSuggestionsViewRequested()) { - serviceResponse.setSuggestionsResponse(new SuggestionsResponse()); - - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.SuggestionsResponse); - - serviceResponse.getSuggestionsResponse().loadFromXml(reader, - XmlElementNames.ResponseMessage); - - if (serviceResponse.getSuggestionsResponse().getErrorCode().equals( - ServiceError.NoError)) { - serviceResponse.getSuggestionsResponse() - .loadSuggestedDaysFromXml(reader); - } - - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.SuggestionsResponse); - } - - return serviceResponse; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected GetUserAvailabilityResults execute() throws Exception { - return (GetUserAvailabilityResults)this.internalExecute(); - } - - /** - * Gets the attendees. - * - * @return the attendees - */ - public Iterable getAttendees() { - return attendees; - } - - /** - * Sets the attendees. - * - * @param attendees - * the new attendees - */ - public void setAttendees(Iterable attendees) { - this.attendees = attendees; - } - - /** - * Gets the time window in which to retrieve user availability - * information. - * - * @return the time window - */ - public TimeWindow getTimeWindow() { - return timeWindow; - } - - /** - * Sets the time window. - * - * @param timeWindow - * the new time window - */ - public void setTimeWindow(TimeWindow timeWindow) { - this.timeWindow = timeWindow; - } - - /** - * Gets a value indicating what data is requested (free/busy and/or - * suggestions). - * - * @return the requested data - */ - public AvailabilityData getRequestedData() { - return requestedData; - } - - /** - * Sets the requested data. - * - * @param requestedData - * the new requested data - */ - public void setRequestedData(AvailabilityData requestedData) { - this.requestedData = requestedData; - } - - /** - * Gets an object that allows you to specify options controlling the - * information returned by the GetUserAvailability request. - * - * @return the options - */ - public AvailabilityOptions getOptions() { - return options; - } - - /** - * Sets the options. - * - * @param options - * the new options - */ - public void setOptions(AvailabilityOptions options) { - this.options = options; - } + /** + * The attendees. + */ + private Iterable attendees; + + /** + * The time window. + */ + private TimeWindow timeWindow; + + /** + * The requested data. + */ + private AvailabilityData requestedData = + AvailabilityData.FreeBusyAndSuggestions; + + /** + * The options. + */ + private AvailabilityOptions options; + + /** + * Initializes a new instance of the "GetUserAvailabilityRequest" class. + * + * @param service the service + * @throws Exception + */ + protected GetUserAvailabilityRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetUserAvailabilityRequest; + } + + /** + * Gets a value indicating whether free/busy data is requested. + * + * @return true, if is free busy view requested + */ + protected boolean isFreeBusyViewRequested() { + return this.requestedData == AvailabilityData.FreeBusy || + this.requestedData == AvailabilityData. + FreeBusyAndSuggestions; + } + + /** + * Gets a value indicating whether suggestions are requested. + * + * @return true, if is suggestions view requested + */ + protected boolean isSuggestionsViewRequested() { + return this.requestedData == AvailabilityData.Suggestions || + this.requestedData == AvailabilityData. + FreeBusyAndSuggestions; + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + this.options.validate(this.timeWindow.getDuration()); + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // Only serialize the TimeZone property against an Exchange 2007 SP1 + // server. + // Against Exchange 2010, the time zone is emitted in the request's SOAP + // header. + //if (writer.getService().getRequestedServerVersion() == + //ExchangeVersion.Exchange2007_SP1) { + LegacyAvailabilityTimeZone legacyTimeZone = + new LegacyAvailabilityTimeZone(); + + legacyTimeZone.writeToXml(writer, XmlElementNames.TimeZone); + + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.MailboxDataArray); + + for (AttendeeInfo attendee : this.attendees) { + attendee.writeToXml(writer); + } + + writer.writeEndElement(); // MailboxDataArray + + this.options.writeToXml(writer, this); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetUserAvailabilityResponse; + } + + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetUserAvailabilityResults serviceResponse = + new GetUserAvailabilityResults(); + + if (this.isFreeBusyViewRequested()) { + serviceResponse + .setAttendeesAvailability(new ServiceResponseCollection + ()); + + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.FreeBusyResponseArray); + + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Messages, + XmlElementNames.FreeBusyResponse)) { + AttendeeAvailability freeBusyResponse = + new AttendeeAvailability(); + + freeBusyResponse.loadFromXml(reader, + XmlElementNames.ResponseMessage); + + if (freeBusyResponse.getErrorCode().equals( + ServiceError.NoError)) { + freeBusyResponse.loadFreeBusyViewFromXml(reader, + this.options.getRequestedFreeBusyView()); + } + + serviceResponse.getAttendeesAvailability().add( + freeBusyResponse); + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.FreeBusyResponseArray)); + } + + if (this.isSuggestionsViewRequested()) { + serviceResponse.setSuggestionsResponse(new SuggestionsResponse()); + + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.SuggestionsResponse); + + serviceResponse.getSuggestionsResponse().loadFromXml(reader, + XmlElementNames.ResponseMessage); + + if (serviceResponse.getSuggestionsResponse().getErrorCode().equals( + ServiceError.NoError)) { + serviceResponse.getSuggestionsResponse() + .loadSuggestedDaysFromXml(reader); + } + + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.SuggestionsResponse); + } + + return serviceResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected GetUserAvailabilityResults execute() throws Exception { + return (GetUserAvailabilityResults) this.internalExecute(); + } + + /** + * Gets the attendees. + * + * @return the attendees + */ + public Iterable getAttendees() { + return attendees; + } + + /** + * Sets the attendees. + * + * @param attendees the new attendees + */ + public void setAttendees(Iterable attendees) { + this.attendees = attendees; + } + + /** + * Gets the time window in which to retrieve user availability + * information. + * + * @return the time window + */ + public TimeWindow getTimeWindow() { + return timeWindow; + } + + /** + * Sets the time window. + * + * @param timeWindow the new time window + */ + public void setTimeWindow(TimeWindow timeWindow) { + this.timeWindow = timeWindow; + } + + /** + * Gets a value indicating what data is requested (free/busy and/or + * suggestions). + * + * @return the requested data + */ + public AvailabilityData getRequestedData() { + return requestedData; + } + + /** + * Sets the requested data. + * + * @param requestedData the new requested data + */ + public void setRequestedData(AvailabilityData requestedData) { + this.requestedData = requestedData; + } + + /** + * Gets an object that allows you to specify options controlling the + * information returned by the GetUserAvailability request. + * + * @return the options + */ + public AvailabilityOptions getOptions() { + return options; + } + + /** + * Sets the options. + * + * @param options the new options + */ + public void setOptions(AvailabilityOptions options) { + this.options = options; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java index d70d06c90..6916676f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java @@ -14,81 +14,81 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the results of a GetUserAvailability operation. - * */ public final class GetUserAvailabilityResults { - /** The attendees availability. */ - private ServiceResponseCollection - attendeesAvailability; + /** + * The attendees availability. + */ + private ServiceResponseCollection + attendeesAvailability; - /** The suggestions response. */ - private SuggestionsResponse suggestionsResponse; + /** + * The suggestions response. + */ + private SuggestionsResponse suggestionsResponse; - /** - * Initializes a new instance of the GetUserAvailabilityResults class. - */ - protected GetUserAvailabilityResults() { - } + /** + * Initializes a new instance of the GetUserAvailabilityResults class. + */ + protected GetUserAvailabilityResults() { + } - /** - * Gets the suggestions response for the requested meeting time. - * - * @return the suggestions response - */ - protected SuggestionsResponse getSuggestionsResponse() { - return this.suggestionsResponse; - } + /** + * Gets the suggestions response for the requested meeting time. + * + * @return the suggestions response + */ + protected SuggestionsResponse getSuggestionsResponse() { + return this.suggestionsResponse; + } - /** - * Sets the suggestions response. - * - * @param value - * the new suggestions response - */ - protected void setSuggestionsResponse(SuggestionsResponse value) { - this.suggestionsResponse = value; - } + /** + * Sets the suggestions response. + * + * @param value the new suggestions response + */ + protected void setSuggestionsResponse(SuggestionsResponse value) { + this.suggestionsResponse = value; + } - /** - * Gets a collection of AttendeeAvailability objects representing - * availability information for each of the specified attendees. - * - * @return the attendees availability - */ - public ServiceResponseCollection - getAttendeesAvailability() { - return this.attendeesAvailability; - } + /** + * Gets a collection of AttendeeAvailability objects representing + * availability information for each of the specified attendees. + * + * @return the attendees availability + */ + public ServiceResponseCollection + getAttendeesAvailability() { + return this.attendeesAvailability; + } - /** - * Sets the attendees availability. - * - * @param value - * the new attendees availability - */ - protected void setAttendeesAvailability( - ServiceResponseCollection value) { - this.attendeesAvailability = value; - } + /** + * Sets the attendees availability. + * + * @param value the new attendees availability + */ + protected void setAttendeesAvailability( + ServiceResponseCollection value) { + this.attendeesAvailability = value; + } - /** - * Gets a collection of suggested meeting times for the specified time - * period. - * - * @return the suggestions - * @throws microsoft.exchange.webservices.data.ServiceResponseException - * the service response exception - */ - public Collection getSuggestions() - throws ServiceResponseException { - if (this.suggestionsResponse == null) { - return null; - } else { - this.suggestionsResponse.throwIfNecessary(); + /** + * Gets a collection of suggested meeting times for the specified time + * period. + * + * @return the suggestions + * @throws microsoft.exchange.webservices.data.ServiceResponseException the service response exception + */ + public Collection getSuggestions() + throws ServiceResponseException { + if (this.suggestionsResponse == null) { + return null; + } else { + this.suggestionsResponse.throwIfNecessary(); - return this.suggestionsResponse.getSuggestions(); - } + return this.suggestionsResponse.getSuggestions(); + } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java index 616d7e3bb..12374443e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java @@ -16,228 +16,224 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class GetUserConfigurationRequest. */ class GetUserConfigurationRequest extends - MultiResponseServiceRequest { - - /** The name. */ - private String name; - - /** The parent folder id. */ - private FolderId parentFolderId; - - /** The properties. */ - private EnumSet properties; - - /** The user configuration. */ - private UserConfiguration userConfiguration; - - /** - * Validate request. - * - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - - EwsUtilities.validateParam(this.name, "name"); - EwsUtilities.validateParam(this.parentFolderId, "parentFolderId"); - this.getParentFolderId().validate( - this.getService().getRequestedServerVersion()); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - * @throws Exception - * the exception - */ - @Override - protected GetUserConfigurationResponse createServiceResponse( - ExchangeService service, int responseIndex) throws Exception { - // In the case of UserConfiguration.Load(), this.userConfiguration is - // set. - if (this.userConfiguration == null) { - this.userConfiguration = new UserConfiguration(service, - this.properties); - this.userConfiguration.setName(this.name); - this.userConfiguration.setParentFolderId(this.parentFolderId); - } - - return new GetUserConfigurationResponse(this.userConfiguration); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetUserConfiguration; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetUserConfigurationResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.GetUserConfigurationResponseMessage; - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - final String EnumDelimiter = ","; - - // Write UserConfiguationName element - UserConfiguration.writeUserConfigurationNameToXml(writer, - XmlNamespace.Messages, this.name, this.parentFolderId); - - // Write UserConfigurationProperties element - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.UserConfigurationProperties, this.properties - .toString().replace(EnumDelimiter, ""). - replace("[", "").replace("]", "")); - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected GetUserConfigurationRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Gets the name. The name. - * - * @return the name - */ - protected String getName() { - return this.name; - } - - /** - * Sets the name. - * - * @param name - * the new name - */ - protected void setName(String name) { - this.name = name; - } - - /** - * Gets the parent folder Id. The parent folder Id. - * - * @return the parent folder id - */ - protected FolderId getParentFolderId() { - return this.parentFolderId; - } - - /** - * Sets the parent folder id. - * - * @param parentFolderId - * the new parent folder id - */ - protected void setParentFolderId(FolderId parentFolderId) { - this.parentFolderId = parentFolderId; - } - - /** - * Gets the user configuration. The user - * configuration. - * - * @return the user configuration - */ - protected UserConfiguration getUserConfiguration() { - return this.userConfiguration; - } - - /** - * Sets the user configuration. - * - * @param userConfiguration - * the new user configuration - */ - protected void setUserConfiguration(UserConfiguration userConfiguration) { - this.userConfiguration = userConfiguration; - this.name = this.userConfiguration.getName(); - this.parentFolderId = this.userConfiguration.getParentFolderId(); - } - - /** - * Gets the properties. - * - * @return the properties - */ - protected EnumSet getProperties() { - return this.properties; - } - - /** - * Sets the properties. - * - * @param properties - * the new properties - */ - protected void setProperties( - EnumSet properties) { - this.properties = properties; - } + MultiResponseServiceRequest { + + /** + * The name. + */ + private String name; + + /** + * The parent folder id. + */ + private FolderId parentFolderId; + + /** + * The properties. + */ + private EnumSet properties; + + /** + * The user configuration. + */ + private UserConfiguration userConfiguration; + + /** + * Validate request. + * + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + + EwsUtilities.validateParam(this.name, "name"); + EwsUtilities.validateParam(this.parentFolderId, "parentFolderId"); + this.getParentFolderId().validate( + this.getService().getRequestedServerVersion()); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + * @throws Exception the exception + */ + @Override + protected GetUserConfigurationResponse createServiceResponse( + ExchangeService service, int responseIndex) throws Exception { + // In the case of UserConfiguration.Load(), this.userConfiguration is + // set. + if (this.userConfiguration == null) { + this.userConfiguration = new UserConfiguration(service, + this.properties); + this.userConfiguration.setName(this.name); + this.userConfiguration.setParentFolderId(this.parentFolderId); + } + + return new GetUserConfigurationResponse(this.userConfiguration); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetUserConfiguration; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetUserConfigurationResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.GetUserConfigurationResponseMessage; + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + final String EnumDelimiter = ","; + + // Write UserConfiguationName element + UserConfiguration.writeUserConfigurationNameToXml(writer, + XmlNamespace.Messages, this.name, this.parentFolderId); + + // Write UserConfigurationProperties element + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.UserConfigurationProperties, this.properties + .toString().replace(EnumDelimiter, ""). + replace("[", "").replace("]", "")); + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected GetUserConfigurationRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Gets the name. The name. + * + * @return the name + */ + protected String getName() { + return this.name; + } + + /** + * Sets the name. + * + * @param name the new name + */ + protected void setName(String name) { + this.name = name; + } + + /** + * Gets the parent folder Id. The parent folder Id. + * + * @return the parent folder id + */ + protected FolderId getParentFolderId() { + return this.parentFolderId; + } + + /** + * Sets the parent folder id. + * + * @param parentFolderId the new parent folder id + */ + protected void setParentFolderId(FolderId parentFolderId) { + this.parentFolderId = parentFolderId; + } + + /** + * Gets the user configuration. The user + * configuration. + * + * @return the user configuration + */ + protected UserConfiguration getUserConfiguration() { + return this.userConfiguration; + } + + /** + * Sets the user configuration. + * + * @param userConfiguration the new user configuration + */ + protected void setUserConfiguration(UserConfiguration userConfiguration) { + this.userConfiguration = userConfiguration; + this.name = this.userConfiguration.getName(); + this.parentFolderId = this.userConfiguration.getParentFolderId(); + } + + /** + * Gets the properties. + * + * @return the properties + */ + protected EnumSet getProperties() { + return this.properties; + } + + /** + * Sets the properties. + * + * @param properties the new properties + */ + protected void setProperties( + EnumSet properties) { + this.properties = properties; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java index d7bcb5afd..930829203 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java @@ -17,58 +17,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class GetUserConfigurationResponse extends ServiceResponse { - /** The user configuration. */ - private UserConfiguration userConfiguration; + /** + * The user configuration. + */ + private UserConfiguration userConfiguration; - /** - * Initializes a new instance of the class. - * - * @param userConfiguration - * the user configuration - */ - protected GetUserConfigurationResponse( - UserConfiguration userConfiguration) { - super(); - EwsUtilities.EwsAssert(userConfiguration != null, - "GetUserConfigurationResponse.ctor", - "userConfiguration is null"); + /** + * Initializes a new instance of the class. + * + * @param userConfiguration the user configuration + */ + protected GetUserConfigurationResponse( + UserConfiguration userConfiguration) { + super(); + EwsUtilities.EwsAssert(userConfiguration != null, + "GetUserConfigurationResponse.ctor", + "userConfiguration is null"); - this.userConfiguration = userConfiguration; - } + this.userConfiguration = userConfiguration; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, Exception { - super.readElementsFromXml(reader); - this.userConfiguration.loadFromXml(reader); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceLocalException, Exception { + super.readElementsFromXml(reader); + this.userConfiguration.loadFromXml(reader); + } - /** - * Gets the user configuration that was created. - * - * @return the user configuration - */ - public UserConfiguration getUserConfiguration() { - return this.userConfiguration; - } + /** + * Gets the user configuration that was created. + * + * @return the user configuration + */ + public UserConfiguration getUserConfiguration() { + return this.userConfiguration; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index a04d3ad6a..be49852a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -17,148 +17,141 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class GetUserOofSettingsRequest extends SimpleServiceRequestBase { - /** The smtp address. */ - private String smtpAddress; - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.GetUserOofSettingsRequest; - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); - } - - /** - * Validate request. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, - this.getSmtpAddress()); - writer.writeEndElement(); // Mailbox - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetUserOofSettingsResponse; - } - - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - GetUserOofSettingsResponse serviceResponse = - new GetUserOofSettingsResponse(); - - serviceResponse.loadFromXml(reader, XmlElementNames.ResponseMessage); - if (serviceResponse.getErrorCode() == ServiceError.NoError) { - reader.readStartElement(XmlNamespace.Types, - XmlElementNames.OofSettings); - - serviceResponse.setOofSettings(new OofSettings()); - serviceResponse.getOofSettings().loadFromXml(reader, - reader.getLocalName()); - - serviceResponse.getOofSettings().setAllowExternalOof( - reader.readElementValue(OofExternalAudience.class, - XmlNamespace.Messages, - XmlElementNames.AllowExternalOof)); - } - - return serviceResponse; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected GetUserOofSettingsRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected GetUserOofSettingsResponse execute() throws Exception { - GetUserOofSettingsResponse serviceResponse = - (GetUserOofSettingsResponse) this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } - - /** - * Gets the SMTP address. - * - * @return the smtp address - */ - protected String getSmtpAddress() { - return this.smtpAddress; - } - - /** - * Sets the smtp address. - * - * @param smtpAddress - * the new smtp address - */ - protected void setSmtpAddress(String smtpAddress) { - this.smtpAddress = smtpAddress; - } + /** + * The smtp address. + */ + private String smtpAddress; + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.GetUserOofSettingsRequest; + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); + } + + /** + * Validate request. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, + this.getSmtpAddress()); + writer.writeEndElement(); // Mailbox + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetUserOofSettingsResponse; + } + + /** + * Parses the response. + * + * @param reader the reader + * @return Response object + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + GetUserOofSettingsResponse serviceResponse = + new GetUserOofSettingsResponse(); + + serviceResponse.loadFromXml(reader, XmlElementNames.ResponseMessage); + if (serviceResponse.getErrorCode() == ServiceError.NoError) { + reader.readStartElement(XmlNamespace.Types, + XmlElementNames.OofSettings); + + serviceResponse.setOofSettings(new OofSettings()); + serviceResponse.getOofSettings().loadFromXml(reader, + reader.getLocalName()); + + serviceResponse.getOofSettings().setAllowExternalOof( + reader.readElementValue(OofExternalAudience.class, + XmlNamespace.Messages, + XmlElementNames.AllowExternalOof)); + } + + return serviceResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected GetUserOofSettingsRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected GetUserOofSettingsResponse execute() throws Exception { + GetUserOofSettingsResponse serviceResponse = + (GetUserOofSettingsResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } + + /** + * Gets the SMTP address. + * + * @return the smtp address + */ + protected String getSmtpAddress() { + return this.smtpAddress; + } + + /** + * Sets the smtp address. + * + * @param smtpAddress the new smtp address + */ + protected void setSmtpAddress(String smtpAddress) { + this.smtpAddress = smtpAddress; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java index 45fd0a5d2..763fbd41b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java @@ -15,33 +15,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class GetUserOofSettingsResponse extends ServiceResponse { - /** The oof settings. */ - private OofSettings oofSettings; + /** + * The oof settings. + */ + private OofSettings oofSettings; - /** - * Initializes a new instance of the class. - */ - protected GetUserOofSettingsResponse() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected GetUserOofSettingsResponse() { + super(); + } - /** - * Gets the OOF settings. The oof settings. - * - * @return the oof settings - */ - public OofSettings getOofSettings() { - return this.oofSettings; - } + /** + * Gets the OOF settings. The oof settings. + * + * @return the oof settings + */ + public OofSettings getOofSettings() { + return this.oofSettings; + } - /** - * Sets the oof settings. - * - * @param value - * the new oof settings - */ - protected void setOofSettings(OofSettings value) { - this.oofSettings = value; - } + /** + * Sets the oof settings. + * + * @param value the new oof settings + */ + protected void setOofSettings(OofSettings value) { + this.oofSettings = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index baebb25cc..e3e6ae039 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -10,336 +10,319 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import org.apache.commons.codec.binary.*; - +import javax.xml.stream.XMLStreamException; import java.net.URI; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** - *Represents a GetUserSettings request. - * + * Represents a GetUserSettings request. */ class GetUserSettingsRequest extends AutodiscoverRequest { - /** - * Action Uri of Autodiscover.GetUserSettings method. - */ - // / - private static final String GetUserSettingsActionUri = EwsUtilities. - AutodiscoverSoapNamespace + - "/Autodiscover/GetUserSettings"; - private List smtpAddresses; - private List settings; - - - // Expect this request to return the partner token. - - private boolean expectPartnerToken = false; - private String partnerTokenReference; - private String partnerToken; - - /** - * Initializes a new instance of the - * class. - * - * @param service - * the service - * @param url - * the url - * @throws ServiceValidationException - */ - protected GetUserSettingsRequest(AutodiscoverService service, URI url) throws ServiceValidationException { - this(service, url, false); - } - - /** - * Initializes a new instance of the - * class. - * - * @param service - * Autodiscover service associated with this request - * @param url - * URL of Autodiscover service. - * @throws ServiceValidationException - * - */ - protected GetUserSettingsRequest(AutodiscoverService service, URI url, boolean expectPartnerToken) throws ServiceValidationException - - { - super(service, url); - this.expectPartnerToken = expectPartnerToken; - - // make an explicit https check. - if (expectPartnerToken && !url.getScheme().equalsIgnoreCase("https")) { - throw new ServiceValidationException(Strings.HttpsIsRequired); - } - } - /** - * Validates the request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - EwsUtilities.validateParam(this.getSmtpAddresses(), "smtpAddresses"); - EwsUtilities.validateParam(this.getSettings(), "settings"); - - if (this.getSettings().size() == 0) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSettingsCount); - } - - if (this.getSmtpAddresses().size() == 0) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSmtpAddressesCount); - } - - for (String smtpAddress : this.getSmtpAddresses()) { - if (smtpAddress == null || smtpAddress.isEmpty()) { - throw new ServiceValidationException( - Strings.InvalidAutodiscoverSmtpAddress); - } - } - } - - /** - * Executes this instance. - * - * @return the gets the user settings response collection - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected GetUserSettingsResponseCollection execute() - throws ServiceLocalException, Exception { - GetUserSettingsResponseCollection responses = - (GetUserSettingsResponseCollection) this - .internalExecute(); - if (responses.getErrorCode() == AutodiscoverErrorCode.NoError) { - this.postProcessResponses(responses); - } - return responses; - } - - /** - * Post-process responses to GetUserSettings. - * - * @param responses - * The GetUserSettings responses. - */ - private void postProcessResponses( - GetUserSettingsResponseCollection responses) { - // Note:The response collection may not include all of the requested - // users if the request has been throttled. - for (int index = 0; index < responses.getCount(); index++) { - responses.getResponses().get(index).setSmtpAddress( - this.getSmtpAddresses().get(index)); - } - } - - /** - * Gets the name of the request XML element. - * - * @return Request XML element name. - */ - @Override - protected String getRequestXmlElementName() { - return XmlElementNames.GetUserSettingsRequestMessage; - } - - /** - * Gets the name of the response XML element. - * - * @return Response XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.GetUserSettingsResponseMessage; - } - - /** - * Gets the WS-Addressing action name. - * - * @return WS-Addressing action name. - * - */ - @Override - protected String getWsAddressingActionName() { - return GetUserSettingsActionUri; - } - - /** - * Creates the service response. - * - * @return AutodiscoverResponse - */ - @Override - protected AutodiscoverResponse createServiceResponse() { - return new GetUserSettingsResponseCollection(); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue("xmlns", - EwsUtilities.AutodiscoverSoapNamespacePrefix, - EwsUtilities.AutodiscoverSoapNamespace); - } - - /** - * @throws XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Override - protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, - ServiceXmlSerializationException { - if (this.expectPartnerToken) { - writer - .writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.BinarySecret, - new String(org.apache.commons.codec.binary.Base64. - encodeBase64(ExchangeServiceBase.getSessionKey()))); - } - } - - /** - * Writes request to XML. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.Request); - - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.Users); - - for (String smtpAddress : this.getSmtpAddresses()) { - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.User); - - if (!(smtpAddress == null || smtpAddress.isEmpty())) { - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.Mailbox, smtpAddress); - } - writer.writeEndElement(); // User - } - writer.writeEndElement(); // Users - - writer.writeStartElement(XmlNamespace.Autodiscover, - XmlElementNames.RequestedSettings); - for (UserSettingName setting : this.getSettings()) { - writer.writeElementValue(XmlNamespace.Autodiscover, - XmlElementNames.Setting, setting); - } - - writer.writeEndElement(); // RequestedSettings - - writer.writeEndElement(); // Request - } - - /** Read the partner token soap header. - * @param reader ewsxmlreader - * @throws Exception - */ - @Override - protected void readSoapHeader(EwsXmlReader reader) throws Exception - { - super.readSoapHeader(reader); - - if (this.expectPartnerToken) { - if (reader.isStartElement(XmlNamespace.Autodiscover, - XmlElementNames.PartnerToken)) { - this.partnerToken = reader.readInnerXml(); - } - - if (reader.isStartElement(XmlNamespace.Autodiscover, - XmlElementNames.PartnerTokenReference)) { - partnerTokenReference = reader.readInnerXml(); - } - } + /** + * Action Uri of Autodiscover.GetUserSettings method. + */ + // / + private static final String GetUserSettingsActionUri = EwsUtilities. + AutodiscoverSoapNamespace + + "/Autodiscover/GetUserSettings"; + private List smtpAddresses; + private List settings; + + + // Expect this request to return the partner token. + + private boolean expectPartnerToken = false; + private String partnerTokenReference; + private String partnerToken; + + /** + * Initializes a new instance of the + * class. + * + * @param service the service + * @param url the url + * @throws ServiceValidationException + */ + protected GetUserSettingsRequest(AutodiscoverService service, URI url) throws ServiceValidationException { + this(service, url, false); + } + + /** + * Initializes a new instance of the + * class. + * + * @param service Autodiscover service associated with this request + * @param url URL of Autodiscover service. + * @throws ServiceValidationException + */ + protected GetUserSettingsRequest(AutodiscoverService service, URI url, boolean expectPartnerToken) + throws ServiceValidationException + + { + super(service, url); + this.expectPartnerToken = expectPartnerToken; + + // make an explicit https check. + if (expectPartnerToken && !url.getScheme().equalsIgnoreCase("https")) { + throw new ServiceValidationException(Strings.HttpsIsRequired); + } + } + + /** + * Validates the request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + EwsUtilities.validateParam(this.getSmtpAddresses(), "smtpAddresses"); + EwsUtilities.validateParam(this.getSettings(), "settings"); + + if (this.getSettings().size() == 0) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSettingsCount); + } + + if (this.getSmtpAddresses().size() == 0) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSmtpAddressesCount); + } + + for (String smtpAddress : this.getSmtpAddresses()) { + if (smtpAddress == null || smtpAddress.isEmpty()) { + throw new ServiceValidationException( + Strings.InvalidAutodiscoverSmtpAddress); + } + } + } + + /** + * Executes this instance. + * + * @return the gets the user settings response collection + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected GetUserSettingsResponseCollection execute() + throws ServiceLocalException, Exception { + GetUserSettingsResponseCollection responses = + (GetUserSettingsResponseCollection) this + .internalExecute(); + if (responses.getErrorCode() == AutodiscoverErrorCode.NoError) { + this.postProcessResponses(responses); + } + return responses; + } + + /** + * Post-process responses to GetUserSettings. + * + * @param responses The GetUserSettings responses. + */ + private void postProcessResponses( + GetUserSettingsResponseCollection responses) { + // Note:The response collection may not include all of the requested + // users if the request has been throttled. + for (int index = 0; index < responses.getCount(); index++) { + responses.getResponses().get(index).setSmtpAddress( + this.getSmtpAddresses().get(index)); + } + } + + /** + * Gets the name of the request XML element. + * + * @return Request XML element name. + */ + @Override + protected String getRequestXmlElementName() { + return XmlElementNames.GetUserSettingsRequestMessage; + } + + /** + * Gets the name of the response XML element. + * + * @return Response XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.GetUserSettingsResponseMessage; + } + + /** + * Gets the WS-Addressing action name. + * + * @return WS-Addressing action name. + */ + @Override + protected String getWsAddressingActionName() { + return GetUserSettingsActionUri; + } + + /** + * Creates the service response. + * + * @return AutodiscoverResponse + */ + @Override + protected AutodiscoverResponse createServiceResponse() { + return new GetUserSettingsResponseCollection(); + } + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue("xmlns", + EwsUtilities.AutodiscoverSoapNamespacePrefix, + EwsUtilities.AutodiscoverSoapNamespace); + } + + /** + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Override + protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, + ServiceXmlSerializationException { + if (this.expectPartnerToken) { + writer + .writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.BinarySecret, + new String(org.apache.commons.codec.binary.Base64. + encodeBase64(ExchangeServiceBase.getSessionKey()))); + } + } + + /** + * Writes request to XML. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.Request); + + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.Users); + + for (String smtpAddress : this.getSmtpAddresses()) { + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.User); + + if (!(smtpAddress == null || smtpAddress.isEmpty())) { + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.Mailbox, smtpAddress); + } + writer.writeEndElement(); // User + } + writer.writeEndElement(); // Users + + writer.writeStartElement(XmlNamespace.Autodiscover, + XmlElementNames.RequestedSettings); + for (UserSettingName setting : this.getSettings()) { + writer.writeElementValue(XmlNamespace.Autodiscover, + XmlElementNames.Setting, setting); } - /** - * Gets the SMTP addresses. - * - * @return the smtp addresses - */ - protected List getSmtpAddresses() { - return smtpAddresses; - } - - /** - * Sets the smtp addresses. - * - * @param value - * the new smtp addresses - */ - protected void setSmtpAddresses(List value) { - this.smtpAddresses = value; - } - - /** - * Gets the settings. - * - * @return the settings - */ - protected List getSettings() { - return settings; - } - - /** - * Sets the settings. - * - * @param value - * the new settings - */ - protected void setSettings(List value) { - this.settings = value; - - } - - /** - * Gets the partner token. - */ - protected String getPartnerToken() { - return partnerToken; - } - - private void setPartnerToken(String value) { - partnerToken = value; - } - - /**

- * Gets the partner token reference. - */ - protected String getPartnerTokenReference() { - return partnerTokenReference; - - } - - private void setPartnerTokenReference(String tokenReference) { - partnerTokenReference = tokenReference; - } + writer.writeEndElement(); // RequestedSettings + + writer.writeEndElement(); // Request + } + + /** + * Read the partner token soap header. + * + * @param reader ewsxmlreader + * @throws Exception + */ + @Override + protected void readSoapHeader(EwsXmlReader reader) throws Exception { + super.readSoapHeader(reader); + + if (this.expectPartnerToken) { + if (reader.isStartElement(XmlNamespace.Autodiscover, + XmlElementNames.PartnerToken)) { + this.partnerToken = reader.readInnerXml(); + } + + if (reader.isStartElement(XmlNamespace.Autodiscover, + XmlElementNames.PartnerTokenReference)) { + partnerTokenReference = reader.readInnerXml(); + } + } + } + + /** + * Gets the SMTP addresses. + * + * @return the smtp addresses + */ + protected List getSmtpAddresses() { + return smtpAddresses; + } + + /** + * Sets the smtp addresses. + * + * @param value the new smtp addresses + */ + protected void setSmtpAddresses(List value) { + this.smtpAddresses = value; + } + + /** + * Gets the settings. + * + * @return the settings + */ + protected List getSettings() { + return settings; + } + + /** + * Sets the settings. + * + * @param value the new settings + */ + protected void setSettings(List value) { + this.settings = value; + + } + + /** + * Gets the partner token. + */ + protected String getPartnerToken() { + return partnerToken; + } + + private void setPartnerToken(String value) { + partnerToken = value; + } + + /** + * + * Gets the partner token reference. + */ + protected String getPartnerTokenReference() { + return partnerTokenReference; + + } + + private void setPartnerTokenReference(String tokenReference) { + partnerTokenReference = tokenReference; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 9943e00d0..4da323055 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -17,269 +17,266 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a GetUsersSettings call for an individual user. - * */ public final class GetUserSettingsResponse extends AutodiscoverResponse { - /** The smtp address. */ - private String smtpAddress; + /** + * The smtp address. + */ + private String smtpAddress; - /** The redirect target. */ - private String redirectTarget; + /** + * The redirect target. + */ + private String redirectTarget; - /** The settings. */ - private Map settings; + /** + * The settings. + */ + private Map settings; - /** The user setting errors. */ - private Collection userSettingErrors; + /** + * The user setting errors. + */ + private Collection userSettingErrors; - /** - * Initializes a new instance of the - * class. - */ - public GetUserSettingsResponse() { - super(); - this.setSmtpAddress(null); - this.setSettings(new HashMap()); - this.setUserSettingErrors(new ArrayList()); - } + /** + * Initializes a new instance of the + * class. + */ + public GetUserSettingsResponse() { + super(); + this.setSmtpAddress(null); + this.setSettings(new HashMap()); + this.setUserSettingErrors(new ArrayList()); + } - /** - * Tries the get the user setting value. - * @param cls Type of user setting. - * @param setting The setting. - * @param value The setting value. - * @return True if setting was available. - */ - public boolean tryGetSettingValue(Class cls, - UserSettingName setting, OutParam value) { - Object objValue; - if (this.getSettings().containsKey(setting)) { - objValue = this.getSettings().get(setting); - value.setParam((T) objValue); - return true; - } - else { - value.setParam(null); - return false; - } - } + /** + * Tries the get the user setting value. + * + * @param cls Type of user setting. + * @param setting The setting. + * @param value The setting value. + * @return True if setting was available. + */ + public boolean tryGetSettingValue(Class cls, + UserSettingName setting, OutParam value) { + Object objValue; + if (this.getSettings().containsKey(setting)) { + objValue = this.getSettings().get(setting); + value.setParam((T) objValue); + return true; + } else { + value.setParam(null); + return false; + } + } - /** - * Gets the SMTP address this response applies to. - * - * @return the smtp address - */ - public String getSmtpAddress() { - return this.smtpAddress; - } + /** + * Gets the SMTP address this response applies to. + * + * @return the smtp address + */ + public String getSmtpAddress() { + return this.smtpAddress; + } - /** - * Sets the smtp address. - * - * @param value - * the new smtp address - */ - protected void setSmtpAddress(String value) { - this.smtpAddress = value; - } + /** + * Sets the smtp address. + * + * @param value the new smtp address + */ + protected void setSmtpAddress(String value) { + this.smtpAddress = value; + } - /** - * Gets the redirectionTarget (URL or email address). - * - * @return the redirect target - */ - public String getRedirectTarget() { - return this.redirectTarget; - } + /** + * Gets the redirectionTarget (URL or email address). + * + * @return the redirect target + */ + public String getRedirectTarget() { + return this.redirectTarget; + } - /** - * Sets the redirectionTarget (URL or email address). - */ - protected void setRedirectTarget(String value) { - this.redirectTarget = value; - } - - /** - * Gets the requested settings for the user. - * - * @return the settings - */ - public Map getSettings() { - return this.settings; - } + /** + * Sets the redirectionTarget (URL or email address). + */ + protected void setRedirectTarget(String value) { + this.redirectTarget = value; + } - /** - * sets the requested settings for the user. - */ - public void setSettings(Map settings) { - this.settings = settings; - } + /** + * Gets the requested settings for the user. + * + * @return the settings + */ + public Map getSettings() { + return this.settings; + } - /** - * Gets error information for settings that could not be returned. - * - * @return the user setting errors - */ - public Collection getUserSettingErrors() { - return this.userSettingErrors; - } + /** + * sets the requested settings for the user. + */ + public void setSettings(Map settings) { + this.settings = settings; + } - /** - * sets the requested settings for the user. - */ - protected void setUserSettingErrors(Collection value) { - this.userSettingErrors = value; - } - - /** - * Loads response from XML. - * - * @param reader - * The reader. - * @param endElementName - * End element name. - * @throws Exception - * the exception - */ - @Override - protected void loadFromXml(EwsXmlReader reader, String endElementName) - throws Exception { - do { - reader.read(); + /** + * Gets error information for settings that could not be returned. + * + * @return the user setting errors + */ + public Collection getUserSettingErrors() { + return this.userSettingErrors; + } - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName() - .equals(XmlElementNames.RedirectTarget)) { + /** + * sets the requested settings for the user. + */ + protected void setUserSettingErrors(Collection value) { + this.userSettingErrors = value; + } - this.setRedirectTarget(reader.readElementValue()); - } else if (reader.getLocalName().equals( - XmlElementNames.UserSettingErrors)) { - this.loadUserSettingErrorsFromXml(reader); - } else if (reader.getLocalName().equals( - XmlElementNames.UserSettings)) { - this.loadUserSettingsFromXml(reader); - } else { - super.loadFromXml(reader, endElementName); - } - } - } while (!reader - .isEndElement(XmlNamespace.Autodiscover, endElementName)); - } + /** + * Loads response from XML. + * + * @param reader The reader. + * @param endElementName End element name. + * @throws Exception the exception + */ + @Override + protected void loadFromXml(EwsXmlReader reader, String endElementName) + throws Exception { + do { + reader.read(); - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadUserSettingsFromXml(EwsXmlReader reader) - throws Exception { - if (!reader.isEmptyElement()) { - do { - reader.read(); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName() + .equals(XmlElementNames.RedirectTarget)) { - if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.UserSetting))) { - String settingClass = reader.readAttributeValue( - XmlNamespace.XmlSchemaInstance, - XmlAttributeNames.Type); + this.setRedirectTarget(reader.readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.UserSettingErrors)) { + this.loadUserSettingErrorsFromXml(reader); + } else if (reader.getLocalName().equals( + XmlElementNames.UserSettings)) { + this.loadUserSettingsFromXml(reader); + } else { + super.loadFromXml(reader, endElementName); + } + } + } while (!reader + .isEndElement(XmlNamespace.Autodiscover, endElementName)); + } - if (settingClass.equals(XmlElementNames.StringSetting)) { - this.readSettingFromXml(reader); - } else if (settingClass.equals(XmlElementNames.WebClientUrlCollectionSetting)) { - this.readSettingFromXml(reader); - } else if (settingClass.equals(XmlElementNames.AlternateMailboxCollectionSetting)) { - this.readSettingFromXml(reader); - } else if (settingClass.equals(XmlElementNames.ProtocolConnectionCollectionSetting)) { - this.readSettingFromXml(reader); - } else { - EwsUtilities.EwsAssert(false, - "GetUserSettingsResponse." + - "LoadUserSettingsFromXml", - String.format("%s,%s", - "Invalid setting class '%s' returned", - settingClass)); - break; - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.UserSettings)); - } else { - reader.read(); - } - } + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadUserSettingsFromXml(EwsXmlReader reader) + throws Exception { + if (!reader.isEmptyElement()) { + do { + reader.read(); - /** - * Reads user setting from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - private void readSettingFromXml(EwsXmlReader reader) throws Exception { - UserSettingName name = null; - Object value = null; + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.UserSetting))) { + String settingClass = reader.readAttributeValue( + XmlNamespace.XmlSchemaInstance, + XmlAttributeNames.Type); - do { - reader.read(); + if (settingClass.equals(XmlElementNames.StringSetting)) { + this.readSettingFromXml(reader); + } else if (settingClass.equals(XmlElementNames.WebClientUrlCollectionSetting)) { + this.readSettingFromXml(reader); + } else if (settingClass.equals(XmlElementNames.AlternateMailboxCollectionSetting)) { + this.readSettingFromXml(reader); + } else if (settingClass.equals(XmlElementNames.ProtocolConnectionCollectionSetting)) { + this.readSettingFromXml(reader); + } else { + EwsUtilities.EwsAssert(false, + "GetUserSettingsResponse." + + "LoadUserSettingsFromXml", + String.format("%s,%s", + "Invalid setting class '%s' returned", + settingClass)); + break; + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.UserSettings)); + } else { + reader.read(); + } + } - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.Name)) { - name = reader.readElementValue(UserSettingName.class); - } else if (reader.getLocalName().equals(XmlElementNames.Value)) { - value = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.WebClientUrls)) { + /** + * Reads user setting from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + private void readSettingFromXml(EwsXmlReader reader) throws Exception { + UserSettingName name = null; + Object value = null; - value = WebClientUrlCollection.loadFromXml(reader); - } else if (reader.getLocalName().equals( - XmlElementNames.ProtocolConnections)) { - value = ProtocolConnectionCollection.LoadFromXml(reader); - } else if (reader.getLocalName().equals( - XmlElementNames.AlternateMailboxes)) { - value = AlternateMailboxCollection.loadFromXml(reader); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.UserSetting)); + do { + reader.read(); - EwsUtilities.EwsAssert(name != null, - "GetUserSettingsResponse.ReadSettingFromXml", - "Missing name element in user setting"); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.Name)) { + name = reader.readElementValue(UserSettingName.class); + } else if (reader.getLocalName().equals(XmlElementNames.Value)) { + value = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.WebClientUrls)) { - this.getSettings().put(name, value); - } + value = WebClientUrlCollection.loadFromXml(reader); + } else if (reader.getLocalName().equals( + XmlElementNames.ProtocolConnections)) { + value = ProtocolConnectionCollection.LoadFromXml(reader); + } else if (reader.getLocalName().equals( + XmlElementNames.AlternateMailboxes)) { + value = AlternateMailboxCollection.loadFromXml(reader); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.UserSetting)); - /** - * Loads the user setting errors. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - private void loadUserSettingErrorsFromXml(EwsXmlReader reader) - throws Exception { - if (!reader.isEmptyElement()) { - do { - reader.read(); + EwsUtilities.EwsAssert(name != null, + "GetUserSettingsResponse.ReadSettingFromXml", + "Missing name element in user setting"); - if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.UserSettingError))) { - UserSettingError error = new UserSettingError(); - error.loadFromXml(reader); - this.getUserSettingErrors().add(error); - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.UserSettingErrors)); - } else { - reader.read(); - } - } + this.getSettings().put(name, value); + } + + /** + * Loads the user setting errors. + * + * @param reader The reader. + * @throws Exception the exception + */ + private void loadUserSettingErrorsFromXml(EwsXmlReader reader) + throws Exception { + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.UserSettingError))) { + UserSettingError error = new UserSettingError(); + error.loadFromXml(reader); + this.getUserSettingErrors().add(error); + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.UserSettingErrors)); + } else { + reader.read(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java index e4bd261ed..8b3f3e30b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java @@ -14,42 +14,42 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a collection of responses to GetUserSettings. */ public final class GetUserSettingsResponseCollection extends - AutodiscoverResponseCollection { + AutodiscoverResponseCollection { - /** - * Initializes a new instance of the AutodiscoverResponseCollection class. - */ - protected GetUserSettingsResponseCollection() { - } + /** + * Initializes a new instance of the AutodiscoverResponseCollection class. + */ + protected GetUserSettingsResponseCollection() { + } - /** - * Create a response instance. - * - * @return GetUserSettingsResponse. - */ - @Override - protected GetUserSettingsResponse createResponseInstance() { - return new GetUserSettingsResponse(); - } + /** + * Create a response instance. + * + * @return GetUserSettingsResponse. + */ + @Override + protected GetUserSettingsResponse createResponseInstance() { + return new GetUserSettingsResponse(); + } - /** - * Gets the name of the response collection XML element. - * - * @return Response collection XMl element name. - */ - @Override - protected String getResponseCollectionXmlElementName() { - return XmlElementNames.UserResponses; - } + /** + * Gets the name of the response collection XML element. + * + * @return Response collection XMl element name. + */ + @Override + protected String getResponseCollectionXmlElementName() { + return XmlElementNames.UserResponses; + } - /** - * Gets the name of the response instance XML element. - * - * @return Response instance XMl element name. - */ - @Override - protected String getResponseInstanceXmlElementName() { - return XmlElementNames.UserResponse; - } + /** + * Gets the name of the response instance XML element. + * + * @return Response instance XMl element name. + */ + @Override + protected String getResponseInstanceXmlElementName() { + return XmlElementNames.UserResponse; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java index 8e6e320ab..1b87898b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java @@ -11,353 +11,325 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a group member. + * Represents a group member. */ @RequiredServerVersion(version = ExchangeVersion.Exchange2010) public class GroupMember extends ComplexProperty implements - IComplexPropertyChangedDelegate { - - // AddressInformation field. - /** The address information. */ - private EmailAddress addressInformation; - - // Status field. - - /** The status. */ - private MemberStatus status; - - // / Member key field. - - /** The key. */ - private String key; - - /** - * Initializes a new instance of the GroupMember class. - */ - - public GroupMember() { - super(); - - // Key is assigned by server - this.key = null; - - // Member status is calculated by server - this.status = MemberStatus.Unrecognized; - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param smtpAddress - * The SMTP address of the member - */ - public GroupMember(String smtpAddress) { - this(); - this.setAddressInformation(new EmailAddress(smtpAddress)); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param address - * the address - * @param routingType - * The routing type of the address. - * @param mailboxType - * The mailbox type of the member. - * @throws ServiceLocalException - * the service local exception - */ - public GroupMember(String address, String routingType, - MailboxType mailboxType) throws ServiceLocalException { - this(); - - switch (mailboxType) { - case PublicGroup: - case PublicFolder: - case Mailbox: - case Contact: - case OneOff: - this.setAddressInformation(new EmailAddress(null, address, - routingType, mailboxType)); - break; - - default: - throw new ServiceLocalException(Strings.InvalidMailboxType); - } - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param smtpAddress - * The SMTP address of the member - * @param mailboxType - * The mailbox type of the member. - * @throws ServiceLocalException - * the service local exception - */ - public GroupMember(String smtpAddress, MailboxType mailboxType) - throws ServiceLocalException { - - this(smtpAddress, EmailAddress.SmtpRoutingType, mailboxType); - - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param name - * The name of the one-off member. - * @param address - * the address - * @param routingType - * The routing type of the address. - */ - public GroupMember(String name, String address, String routingType) { - this(); - - this.setAddressInformation(new EmailAddress(name, address, routingType, - MailboxType.OneOff)); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param name - * The name of the one-off member. - * @param smtpAddress - * The SMTP address of the member - */ - public GroupMember(String name, String smtpAddress) { - this(name, smtpAddress, EmailAddress.SmtpRoutingType); - - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param contactGroupId - * The Id of the contact group to link the member to. - */ - public GroupMember(ItemId contactGroupId) { - this(); - - this.setAddressInformation(new EmailAddress(null, null, null, - MailboxType.ContactGroup, contactGroupId)); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param contactId - * The Id of the contact member - * @param addressToLink - * The Id of the contact to link the member to. - */ - public GroupMember(ItemId contactId, String addressToLink) { - this(); - - this.setAddressInformation(new EmailAddress(null, addressToLink, null, - MailboxType.Contact, contactId)); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param addressInformation - * The e-mail address of the member. - * @throws Exception - * the exception - */ - public GroupMember(EmailAddress addressInformation) throws Exception { - this(); - - this.setAddressInformation(new EmailAddress(addressInformation)); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param member - * GroupMember class instance to copy. - * @throws Exception - * the exception - */ - protected GroupMember(GroupMember member) throws Exception { - this(); - - EwsUtilities.validateParam(member, "member"); - this.setAddressInformation(new EmailAddress(member - .getAddressInformation())); - } - - /** - * Initializes a new instance of the GroupMember class. - * - * @param contact - * The contact to link to. - * @param emailAddressKey - * The contact's e-mail address to link to. - * @throws Exception - * the exception - */ - public GroupMember(Contact contact, EmailAddressKey emailAddressKey) - throws Exception { - this(); - - EwsUtilities.validateParam(contact, "contact"); - EmailAddress emailAddress = contact.getEmailAddresses() - .getEmailAddress(emailAddressKey); - this.setAddressInformation(new EmailAddress(emailAddress)); - this.getAddressInformation().setId(contact.getId()); - } - - /** - * Gets the key of the member. - * - * @return the key - */ - public String getKey() { - - return this.key; - - } - - /** - * Gets the address information of the member. - * - * @return the address information - */ - public EmailAddress getAddressInformation() { - - return this.addressInformation; - } - - /** - * Sets the address information. - * - * @param value - * the new address information - */ - protected void setAddressInformation(EmailAddress value) { - - if (this.addressInformation != null) { - - this.addressInformation.removeChangeEvent(this); - } - - this.addressInformation = value; - - if (this.addressInformation != null) { - - this.addressInformation.addOnChangeEvent(this); - } - } - - /** - * Gets the status of the member. - * - * @return the status - */ - - public MemberStatus getStatus() { - - return this.status; - - } - - /** - * Reads the member Key attribute from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.key = reader.readAttributeValue(String.class, - XmlAttributeNames.Key); - } - - /** - * Tries to read Status or Mailbox elements from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.Status)) { - - this.status = EwsUtilities.parse(MemberStatus.class, reader - .readElementValue()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Mailbox)) { - - this.setAddressInformation(new EmailAddress()); - this.getAddressInformation().loadFromXml(reader, - reader.getLocalName()); - return true; - } else { - - return false; - } - } - - /** - * Writes the member key attribute to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - // if this.key is null or empty, writer skips the attribute - writer.writeAttributeValue(XmlAttributeNames.Key, this.key); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // No need to write member Status back to server - // Write only AddressInformation container element - this.getAddressInformation().writeToXml(writer, XmlNamespace.Types, - XmlElementNames.Mailbox); - } - - /** - * AddressInformation instance is changed. - * - * @param complexProperty - * Changed property. - */ - private void addressInformationChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * Complex property changed. - * - * @param complexProperty - * accepts ComplexProperty - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - - this.addressInformationChanged(complexProperty); - } + IComplexPropertyChangedDelegate { + + // AddressInformation field. + /** + * The address information. + */ + private EmailAddress addressInformation; + + // Status field. + + /** + * The status. + */ + private MemberStatus status; + + // / Member key field. + + /** + * The key. + */ + private String key; + + /** + * Initializes a new instance of the GroupMember class. + */ + + public GroupMember() { + super(); + + // Key is assigned by server + this.key = null; + + // Member status is calculated by server + this.status = MemberStatus.Unrecognized; + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param smtpAddress The SMTP address of the member + */ + public GroupMember(String smtpAddress) { + this(); + this.setAddressInformation(new EmailAddress(smtpAddress)); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param address the address + * @param routingType The routing type of the address. + * @param mailboxType The mailbox type of the member. + * @throws ServiceLocalException the service local exception + */ + public GroupMember(String address, String routingType, + MailboxType mailboxType) throws ServiceLocalException { + this(); + + switch (mailboxType) { + case PublicGroup: + case PublicFolder: + case Mailbox: + case Contact: + case OneOff: + this.setAddressInformation(new EmailAddress(null, address, + routingType, mailboxType)); + break; + + default: + throw new ServiceLocalException(Strings.InvalidMailboxType); + } + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param smtpAddress The SMTP address of the member + * @param mailboxType The mailbox type of the member. + * @throws ServiceLocalException the service local exception + */ + public GroupMember(String smtpAddress, MailboxType mailboxType) + throws ServiceLocalException { + + this(smtpAddress, EmailAddress.SmtpRoutingType, mailboxType); + + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param name The name of the one-off member. + * @param address the address + * @param routingType The routing type of the address. + */ + public GroupMember(String name, String address, String routingType) { + this(); + + this.setAddressInformation(new EmailAddress(name, address, routingType, + MailboxType.OneOff)); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param name The name of the one-off member. + * @param smtpAddress The SMTP address of the member + */ + public GroupMember(String name, String smtpAddress) { + this(name, smtpAddress, EmailAddress.SmtpRoutingType); + + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param contactGroupId The Id of the contact group to link the member to. + */ + public GroupMember(ItemId contactGroupId) { + this(); + + this.setAddressInformation(new EmailAddress(null, null, null, + MailboxType.ContactGroup, contactGroupId)); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param contactId The Id of the contact member + * @param addressToLink The Id of the contact to link the member to. + */ + public GroupMember(ItemId contactId, String addressToLink) { + this(); + + this.setAddressInformation(new EmailAddress(null, addressToLink, null, + MailboxType.Contact, contactId)); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param addressInformation The e-mail address of the member. + * @throws Exception the exception + */ + public GroupMember(EmailAddress addressInformation) throws Exception { + this(); + + this.setAddressInformation(new EmailAddress(addressInformation)); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param member GroupMember class instance to copy. + * @throws Exception the exception + */ + protected GroupMember(GroupMember member) throws Exception { + this(); + + EwsUtilities.validateParam(member, "member"); + this.setAddressInformation(new EmailAddress(member + .getAddressInformation())); + } + + /** + * Initializes a new instance of the GroupMember class. + * + * @param contact The contact to link to. + * @param emailAddressKey The contact's e-mail address to link to. + * @throws Exception the exception + */ + public GroupMember(Contact contact, EmailAddressKey emailAddressKey) + throws Exception { + this(); + + EwsUtilities.validateParam(contact, "contact"); + EmailAddress emailAddress = contact.getEmailAddresses() + .getEmailAddress(emailAddressKey); + this.setAddressInformation(new EmailAddress(emailAddress)); + this.getAddressInformation().setId(contact.getId()); + } + + /** + * Gets the key of the member. + * + * @return the key + */ + public String getKey() { + + return this.key; + + } + + /** + * Gets the address information of the member. + * + * @return the address information + */ + public EmailAddress getAddressInformation() { + + return this.addressInformation; + } + + /** + * Sets the address information. + * + * @param value the new address information + */ + protected void setAddressInformation(EmailAddress value) { + + if (this.addressInformation != null) { + + this.addressInformation.removeChangeEvent(this); + } + + this.addressInformation = value; + + if (this.addressInformation != null) { + + this.addressInformation.addOnChangeEvent(this); + } + } + + /** + * Gets the status of the member. + * + * @return the status + */ + + public MemberStatus getStatus() { + + return this.status; + + } + + /** + * Reads the member Key attribute from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.key = reader.readAttributeValue(String.class, + XmlAttributeNames.Key); + } + + /** + * Tries to read Status or Mailbox elements from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.Status)) { + + this.status = EwsUtilities.parse(MemberStatus.class, reader + .readElementValue()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Mailbox)) { + + this.setAddressInformation(new EmailAddress()); + this.getAddressInformation().loadFromXml(reader, + reader.getLocalName()); + return true; + } else { + + return false; + } + } + + /** + * Writes the member key attribute to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + // if this.key is null or empty, writer skips the attribute + writer.writeAttributeValue(XmlAttributeNames.Key, this.key); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // No need to write member Status back to server + // Write only AddressInformation container element + this.getAddressInformation().writeToXml(writer, XmlNamespace.Types, + XmlElementNames.Mailbox); + } + + /** + * AddressInformation instance is changed. + * + * @param complexProperty Changed property. + */ + private void addressInformationChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * Complex property changed. + * + * @param complexProperty accepts ComplexProperty + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + + this.addressInformationChanged(complexProperty); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java index 0b918037b..f8d4c08b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java @@ -10,504 +10,440 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.Iterator; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a collection of members of GroupMember type. */ public final class GroupMemberCollection extends -ComplexPropertyCollection implements -ICustomXmlUpdateSerializer { - /** - * If the collection is cleared, then store PDL members collection is - * updated with "SetItemField". If the collection is not cleared, then store - * PDL members collection is updated with "AppendToItemField". - */ - private boolean collectionIsCleared = false; - - /** - * Initializes a new instance. - */ - public GroupMemberCollection() { - super(); - } - - /** - * Retrieves the XML element name corresponding to the provided - * GroupMember object. - * - * @param member - * the member - * @return The XML element name corresponding to the provided GroupMember - * object - */ - @Override - protected String getCollectionItemXmlElementName(GroupMember member) { - return XmlElementNames.Member; - } - - /** - ** Finds the member with the specified key in the collection.Members that - * have not yet been saved do not have a key. - * - * @param key - * the key - * @return The member with the specified key - * @throws Exception - * the exception - */ - public GroupMember find(String key) throws Exception { - EwsUtilities.validateParam(key, "key"); - - for (GroupMember item : this.getItems()) { - if (item.getKey().equals(key)) { - return item; - } - } - - return null; - } - - /** - *Clears the collection. - */ - public void clear() { - // mark the whole collection for deletion - this.internalClear(); - this.collectionIsCleared = true; - } - - /** - * Adds a member to the collection. - * - * @param member - * the member - * @throws Exception - * the exception - */ - public void add(GroupMember member) throws Exception { - EwsUtilities.validateParam(member, "member"); - EwsUtilities.EwsAssert(member.getKey() == null, - "GroupMemberCollection.Add", "member.Key is not null."); - EwsUtilities.EwsAssert(!this.contains(member), - "GroupMemberCollection.Add", - "The member is already in the collection"); - - this.internalAdd(member); - } - - /** - * Adds multiple members to the collection. - * - * @param members - * the members - * @throws Exception - * the exception - */ - public void addRange(Iterator members) throws Exception { - EwsUtilities.validateParam(members, "members"); - while (members.hasNext()) { - this.add(members.next()); - - } - } - - /** - * Adds a member linked to a Contact Group. - * - * @param contactGroupId - * the contact group id - * @throws Exception - * the exception - */ - public void addContactGroup(ItemId contactGroupId) throws Exception { - this.add(new GroupMember(contactGroupId)); - } - - /** - * Adds a member linked to a specific contact?s e-mail address. - * - * @param contactId - * the contact id - * @param addressToLink - * the address to link - * @throws Exception - * the exception - */ - public void addPersonalContact(ItemId contactId, String addressToLink) - throws Exception { - this.add(new GroupMember(contactId, addressToLink)); - } - - /** - * Adds a member linked to a contact?s first available e-mail address. - * - * @param contactId - * the contact id - * @throws Exception - * the exception - */ - public void addPersonalContact(ItemId contactId) throws Exception { - this.addPersonalContact(contactId, null); - } - - /** - * Adds a member linked to an Active Directory user. - * - * @param smtpAddress - * the smtp address - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addDirectoryUser(String smtpAddress) - throws ServiceLocalException, Exception { - this.addDirectoryUser(smtpAddress, new EmailAddress() - .getSmtpRoutingType()); - } - - /** - * Adds a member linked to an Active Directory user. - * - * @param address - * the address - * @param routingType - * the routing type - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addDirectoryUser(String address, String routingType) - throws ServiceLocalException, Exception { - this.add(new GroupMember(address, routingType, MailboxType.Mailbox)); - } - - /** - * Adds a member linked to an Active Directory contact. - * - * @param smtpAddress - * the smtp address - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addDirectoryContact(String smtpAddress) - throws ServiceLocalException, Exception { - this.addDirectoryContact(smtpAddress, new EmailAddress() - .getSmtpRoutingType()); - } - - /** - * Adds a member linked to an Active Directory contact. - * - * @param address - * the address - * @param routingType - * the routing type - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addDirectoryContact(String address, String routingType) - throws ServiceLocalException, Exception { - this.add(new GroupMember(address, routingType, MailboxType.Contact)); - } - - /** - * Adds a member linked to a Public Group. - * - * @param smtpAddress - * the smtp address - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addPublicGroup(String smtpAddress) - throws ServiceLocalException, Exception { - this.add(new GroupMember(smtpAddress, new EmailAddress() - .getSmtpRoutingType(), MailboxType.PublicGroup)); - } - - /** - * Adds a member linked to a mail-enabled Public Folder. - * - * @param smtpAddress - * the smtp address - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void addDirectoryPublicFolder(String smtpAddress) - throws ServiceLocalException, Exception { - this.add(new GroupMember(smtpAddress, new EmailAddress() - .getSmtpRoutingType(), MailboxType.PublicFolder)); - } - - /** - * Adds a one-off member. - * - * @param displayName - * the display name - * @param address - * the address - * @param routingType - * the routing type - * @throws Exception - * the exception - */ - public void addOneOff(String displayName, - String address, String routingType) - throws Exception { - this.add(new GroupMember(displayName, address, routingType)); - } - - /** - * Adds a one-off member. - * - * @param displayName - * the display name - * @param smtpAddress - * the smtp address - * @throws Exception - * the exception - */ - public void addOneOff(String displayName, String smtpAddress) - throws Exception { - this.addOneOff(displayName, smtpAddress, new EmailAddress() - .getSmtpRoutingType()); - } - - /** - * Adds a member that is linked to a specific e-mail address of a contact. - * - * @param contact - * the contact - * @param emailAddressKey - * the email address key - * @throws Exception - * the exception - */ - public void addContactEmailAddress(Contact contact, - EmailAddressKey emailAddressKey) throws Exception { - this.add(new GroupMember(contact, emailAddressKey)); - } - - /** - * Removes a member at the specified index. - * - * @param index - * the index - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("index", new Throwable( - Strings.IndexIsOutOfRange)); - - } - - this.internalRemoveAt(index); - } - - /** - * Removes a member from the collection. - * - * @param member - * the member - * @return True if the group member was successfully removed from the - * collection, false otherwise. - */ - public boolean remove(GroupMember member) { - return this.internalRemove(member); - } - - /** - * Writes the update to XML. - * - * @param writer - * the writer - * @param ownerObject - * the owner object - * @param propertyDefinition - * the property definition - * @return True if property generated serialization. - * @throws Exception - * the exception - */ - public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ownerObject, PropertyDefinition propertyDefinition) - throws Exception { - if (this.collectionIsCleared) { - - if (!this.getAddedItems().isEmpty()) { // not visible - - // Delete the whole members collection - this.writeDeleteMembersCollectionToXml(writer); - } else { - // The collection is cleared, so Set - this.writeSetOrAppendMembersToXml(writer, this.getAddedItems(), - true); - } - } else { - // The collection is not cleared, i.e. dl.Members.Clear() is not - // called. - // Append AddedItems. - this.writeSetOrAppendMembersToXml(writer, this.getAddedItems(), - false); - - // Since member replacement is not supported by server - // Delete old ModifiedItems, then recreate new instead. - this.writeDeleteMembersToXml(writer, this.getModifiedItems()); - this.writeSetOrAppendMembersToXml(writer, this.getModifiedItems(), - false); - - // Delete RemovedItems. - this.writeDeleteMembersToXml(writer, this.getRemovedItems()); - } - - return true; - } - - /** - * Writes the deletion update to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @return True if property generated serialization. - */ - public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) { - return false; - } - - /** - * Creates a GroupMember object from an XML element name. - * - * @param xmlElementName - * the xml element name - * @return An GroupMember object - */ - protected GroupMember createComplexProperty(String xmlElementName) { - return new GroupMember(); - } - - /** - *Clears the change log. - */ - protected void clearChangeLog() { - super.clearChangeLog(); - this.collectionIsCleared = false; - } - - /** - * Delete the whole members collection. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeDeleteMembersCollectionToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.DeleteItemField); - ContactGroupSchema.Members.writeToXml(writer); - writer.writeEndElement(); - } - - /** - * Generate XML to delete individual members. - * - * @param writer - * the writer - * @param members - * the members - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeDeleteMembersToXml(EwsServiceXmlWriter writer, - List members) throws XMLStreamException, - ServiceXmlSerializationException { - if (!members.isEmpty()) { - GroupMemberPropertyDefinition memberPropDef = - new GroupMemberPropertyDefinition(); - - for (GroupMember member : members) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.DeleteItemField); - - memberPropDef.setKey(member.getKey()); - memberPropDef.writeToXml(writer); - - writer.writeEndElement(); // DeleteItemField - } - } - } - - /** - * Write set or append members to xml. - * - * @param writer - * the writer - * @param members - * the members - * @param setMode - * the set mode - * @throws Exception - * the exception - */ - private void writeSetOrAppendMembersToXml(EwsServiceXmlWriter writer, - List members, boolean setMode) throws Exception { - if (!members.isEmpty()) { - writer.writeStartElement(XmlNamespace.Types, - setMode ? XmlElementNames.SetItemField - : XmlElementNames.AppendToItemField); - - ContactGroupSchema.Members.writeToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.DistributionList); - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Members); - - for (GroupMember member : members) { - member.writeToXml(writer, XmlElementNames.Member); - } - - writer.writeEndElement(); // Members - writer.writeEndElement(); // Group - writer.writeEndElement(); // setMode ? SetItemField : - // AppendItemField - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - for(GroupMember groupMember : this.getModifiedItems()) { - if(!(groupMember.getKey()==null || groupMember.getKey().isEmpty())) { - throw new ServiceValidationException(Strings. - ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst); - } - } - } + ComplexPropertyCollection implements + ICustomXmlUpdateSerializer { + /** + * If the collection is cleared, then store PDL members collection is + * updated with "SetItemField". If the collection is not cleared, then store + * PDL members collection is updated with "AppendToItemField". + */ + private boolean collectionIsCleared = false; + + /** + * Initializes a new instance. + */ + public GroupMemberCollection() { + super(); + } + + /** + * Retrieves the XML element name corresponding to the provided + * GroupMember object. + * + * @param member the member + * @return The XML element name corresponding to the provided GroupMember + * object + */ + @Override + protected String getCollectionItemXmlElementName(GroupMember member) { + return XmlElementNames.Member; + } + + /** + * * Finds the member with the specified key in the collection.Members that + * have not yet been saved do not have a key. + * + * @param key the key + * @return The member with the specified key + * @throws Exception the exception + */ + public GroupMember find(String key) throws Exception { + EwsUtilities.validateParam(key, "key"); + + for (GroupMember item : this.getItems()) { + if (item.getKey().equals(key)) { + return item; + } + } + + return null; + } + + /** + * Clears the collection. + */ + public void clear() { + // mark the whole collection for deletion + this.internalClear(); + this.collectionIsCleared = true; + } + + /** + * Adds a member to the collection. + * + * @param member the member + * @throws Exception the exception + */ + public void add(GroupMember member) throws Exception { + EwsUtilities.validateParam(member, "member"); + EwsUtilities.EwsAssert(member.getKey() == null, + "GroupMemberCollection.Add", "member.Key is not null."); + EwsUtilities.EwsAssert(!this.contains(member), + "GroupMemberCollection.Add", + "The member is already in the collection"); + + this.internalAdd(member); + } + + /** + * Adds multiple members to the collection. + * + * @param members the members + * @throws Exception the exception + */ + public void addRange(Iterator members) throws Exception { + EwsUtilities.validateParam(members, "members"); + while (members.hasNext()) { + this.add(members.next()); + + } + } + + /** + * Adds a member linked to a Contact Group. + * + * @param contactGroupId the contact group id + * @throws Exception the exception + */ + public void addContactGroup(ItemId contactGroupId) throws Exception { + this.add(new GroupMember(contactGroupId)); + } + + /** + * Adds a member linked to a specific contact?s e-mail address. + * + * @param contactId the contact id + * @param addressToLink the address to link + * @throws Exception the exception + */ + public void addPersonalContact(ItemId contactId, String addressToLink) + throws Exception { + this.add(new GroupMember(contactId, addressToLink)); + } + + /** + * Adds a member linked to a contact?s first available e-mail address. + * + * @param contactId the contact id + * @throws Exception the exception + */ + public void addPersonalContact(ItemId contactId) throws Exception { + this.addPersonalContact(contactId, null); + } + + /** + * Adds a member linked to an Active Directory user. + * + * @param smtpAddress the smtp address + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addDirectoryUser(String smtpAddress) + throws ServiceLocalException, Exception { + this.addDirectoryUser(smtpAddress, new EmailAddress() + .getSmtpRoutingType()); + } + + /** + * Adds a member linked to an Active Directory user. + * + * @param address the address + * @param routingType the routing type + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addDirectoryUser(String address, String routingType) + throws ServiceLocalException, Exception { + this.add(new GroupMember(address, routingType, MailboxType.Mailbox)); + } + + /** + * Adds a member linked to an Active Directory contact. + * + * @param smtpAddress the smtp address + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addDirectoryContact(String smtpAddress) + throws ServiceLocalException, Exception { + this.addDirectoryContact(smtpAddress, new EmailAddress() + .getSmtpRoutingType()); + } + + /** + * Adds a member linked to an Active Directory contact. + * + * @param address the address + * @param routingType the routing type + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addDirectoryContact(String address, String routingType) + throws ServiceLocalException, Exception { + this.add(new GroupMember(address, routingType, MailboxType.Contact)); + } + + /** + * Adds a member linked to a Public Group. + * + * @param smtpAddress the smtp address + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addPublicGroup(String smtpAddress) + throws ServiceLocalException, Exception { + this.add(new GroupMember(smtpAddress, new EmailAddress() + .getSmtpRoutingType(), MailboxType.PublicGroup)); + } + + /** + * Adds a member linked to a mail-enabled Public Folder. + * + * @param smtpAddress the smtp address + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void addDirectoryPublicFolder(String smtpAddress) + throws ServiceLocalException, Exception { + this.add(new GroupMember(smtpAddress, new EmailAddress() + .getSmtpRoutingType(), MailboxType.PublicFolder)); + } + + /** + * Adds a one-off member. + * + * @param displayName the display name + * @param address the address + * @param routingType the routing type + * @throws Exception the exception + */ + public void addOneOff(String displayName, + String address, String routingType) + throws Exception { + this.add(new GroupMember(displayName, address, routingType)); + } + + /** + * Adds a one-off member. + * + * @param displayName the display name + * @param smtpAddress the smtp address + * @throws Exception the exception + */ + public void addOneOff(String displayName, String smtpAddress) + throws Exception { + this.addOneOff(displayName, smtpAddress, new EmailAddress() + .getSmtpRoutingType()); + } + + /** + * Adds a member that is linked to a specific e-mail address of a contact. + * + * @param contact the contact + * @param emailAddressKey the email address key + * @throws Exception the exception + */ + public void addContactEmailAddress(Contact contact, + EmailAddressKey emailAddressKey) throws Exception { + this.add(new GroupMember(contact, emailAddressKey)); + } + + /** + * Removes a member at the specified index. + * + * @param index the index + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("index", new Throwable( + Strings.IndexIsOutOfRange)); + + } + + this.internalRemoveAt(index); + } + + /** + * Removes a member from the collection. + * + * @param member the member + * @return True if the group member was successfully removed from the + * collection, false otherwise. + */ + public boolean remove(GroupMember member) { + return this.internalRemove(member); + } + + /** + * Writes the update to XML. + * + * @param writer the writer + * @param ownerObject the owner object + * @param propertyDefinition the property definition + * @return True if property generated serialization. + * @throws Exception the exception + */ + public boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ownerObject, PropertyDefinition propertyDefinition) + throws Exception { + if (this.collectionIsCleared) { + + if (!this.getAddedItems().isEmpty()) { // not visible + + // Delete the whole members collection + this.writeDeleteMembersCollectionToXml(writer); + } else { + // The collection is cleared, so Set + this.writeSetOrAppendMembersToXml(writer, this.getAddedItems(), + true); + } + } else { + // The collection is not cleared, i.e. dl.Members.Clear() is not + // called. + // Append AddedItems. + this.writeSetOrAppendMembersToXml(writer, this.getAddedItems(), + false); + + // Since member replacement is not supported by server + // Delete old ModifiedItems, then recreate new instead. + this.writeDeleteMembersToXml(writer, this.getModifiedItems()); + this.writeSetOrAppendMembersToXml(writer, this.getModifiedItems(), + false); + + // Delete RemovedItems. + this.writeDeleteMembersToXml(writer, this.getRemovedItems()); + } + + return true; + } + + /** + * Writes the deletion update to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @return True if property generated serialization. + */ + public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) { + return false; + } + + /** + * Creates a GroupMember object from an XML element name. + * + * @param xmlElementName the xml element name + * @return An GroupMember object + */ + protected GroupMember createComplexProperty(String xmlElementName) { + return new GroupMember(); + } + + /** + * Clears the change log. + */ + protected void clearChangeLog() { + super.clearChangeLog(); + this.collectionIsCleared = false; + } + + /** + * Delete the whole members collection. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeDeleteMembersCollectionToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.DeleteItemField); + ContactGroupSchema.Members.writeToXml(writer); + writer.writeEndElement(); + } + + /** + * Generate XML to delete individual members. + * + * @param writer the writer + * @param members the members + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeDeleteMembersToXml(EwsServiceXmlWriter writer, + List members) throws XMLStreamException, + ServiceXmlSerializationException { + if (!members.isEmpty()) { + GroupMemberPropertyDefinition memberPropDef = + new GroupMemberPropertyDefinition(); + + for (GroupMember member : members) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.DeleteItemField); + + memberPropDef.setKey(member.getKey()); + memberPropDef.writeToXml(writer); + + writer.writeEndElement(); // DeleteItemField + } + } + } + + /** + * Write set or append members to xml. + * + * @param writer the writer + * @param members the members + * @param setMode the set mode + * @throws Exception the exception + */ + private void writeSetOrAppendMembersToXml(EwsServiceXmlWriter writer, + List members, boolean setMode) throws Exception { + if (!members.isEmpty()) { + writer.writeStartElement(XmlNamespace.Types, + setMode ? XmlElementNames.SetItemField + : XmlElementNames.AppendToItemField); + + ContactGroupSchema.Members.writeToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.DistributionList); + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Members); + + for (GroupMember member : members) { + member.writeToXml(writer, XmlElementNames.Member); + } + + writer.writeEndElement(); // Members + writer.writeEndElement(); // Group + writer.writeEndElement(); // setMode ? SetItemField : + // AppendItemField + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + for (GroupMember groupMember : this.getModifiedItems()) { + if (!(groupMember.getKey() == null || groupMember.getKey().isEmpty())) { + throw new ServiceValidationException(Strings. + ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst); + } + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index 06678c834..afd070d26 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -10,104 +10,100 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** +/** * Represents the definition of the GroupMember property. - * - * */ final class GroupMemberPropertyDefinition extends -ServiceObjectPropertyDefinition { + ServiceObjectPropertyDefinition { - // / FieldUri of IndexedFieldURI for a group member. - /** The Constant FIELDURI. */ - private final static String FIELDURI = "distributionlist:Members:Member"; + // / FieldUri of IndexedFieldURI for a group member. + /** + * The Constant FIELDURI. + */ + private final static String FIELDURI = "distributionlist:Members:Member"; - // / Member key. - // / Maps to the Index attribute of IndexedFieldURI element. - /** The key. */ - private String key; + // / Member key. + // / Maps to the Index attribute of IndexedFieldURI element. + /** + * The key. + */ + private String key; - /** - * Initializes a new instance of the GroupMemberPropertyDefinition class. - * - * @param key - * the key - */ - public GroupMemberPropertyDefinition(String key) { - super(FIELDURI); - this.key = key; - } + /** + * Initializes a new instance of the GroupMemberPropertyDefinition class. + * + * @param key the key + */ + public GroupMemberPropertyDefinition(String key) { + super(FIELDURI); + this.key = key; + } - /** - * Initializes a new instance of the GroupMemberPropertyDefinition class - * without key. - * - */ - protected GroupMemberPropertyDefinition() { - super(FIELDURI); - } + /** + * Initializes a new instance of the GroupMemberPropertyDefinition class + * without key. + */ + protected GroupMemberPropertyDefinition() { + super(FIELDURI); + } - /** - * Gets the key. - * - * @return the key - */ - public String getKey() { - return key; - } + /** + * Gets the key. + * + * @return the key + */ + public String getKey() { + return key; + } - /** - * Sets the key. - * - * @param key - * the new key - */ - public void setKey(String key) { - this.key = key; - } + /** + * Sets the key. + * + * @param key the new key + */ + public void setKey(String key) { + this.key = key; + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - protected String getXmlElementName() { - return XmlElementNames.IndexedFieldURI; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + protected String getXmlElementName() { + return XmlElementNames.IndexedFieldURI; + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this.key); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this.key); + } - /** - * Gets the property definition's printable name. - * - * @return The property definition's printable name. - */ - @Override - protected String getPrintableName() { - return String.format("%s:%s", FIELDURI, this.key); - } + /** + * Gets the property definition's printable name. + * + * @return The property definition's printable name. + */ + @Override + protected String getPrintableName() { + return String.format("%s:%s", FIELDURI, this.key); + } - /** - * Gets the property type. - */ - @Override - public Class getType() - { - return String.class; - } + /** + * Gets the property type. + */ + @Override + public Class getType() { + return String.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java index 49ac0731d..7432b7526 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java @@ -14,117 +14,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Iterator; /** - * - *Represents the results of an item search operation. - * - * @param - * The type of item returned by the search operation. + * Represents the results of an item search operation. + * + * @param The type of item returned by the search operation. */ public final class GroupedFindItemsResults implements - Iterable> { - - /** The total count. */ - private int totalCount; - - /** The next page offset. */ - private Integer nextPageOffset; - - /** The more available. */ - private boolean moreAvailable; - - /** - * List of ItemGroups. - */ - private ArrayList> itemGroups = - new ArrayList>(); - - /** - * Initializes a new instance of the GroupedFindItemsResults class. - */ - protected GroupedFindItemsResults() { - } - - /** - * Gets the total number of items matching the search criteria available in - * the searched folder. - * - * @return the total count - */ - public int getTotalCount() { - return totalCount; - } - - /** - * Gets the total number of items matching the search criteria available in - * the searched folder. - * - * @param totalCount - * Total number of items - * - */ - protected void setTotalCount(int totalCount) { - this.totalCount = totalCount; - } - - /** - * Gets the offset that should be used with ItemView to retrieve the next - * page of items in a FindItems operation. - * - * @return the next page offset - */ - public Integer getNextPageOffset() { - return nextPageOffset; - } - - /** - * Sets the offset that should be used with ItemView to retrieve the next - * page of items in a FindItems operation. - * - * @param nextPageOffset - * the new next page offset - */ - protected void setNextPageOffset(Integer nextPageOffset) { - this.nextPageOffset = nextPageOffset; - } - - /** - * Gets a value indicating whether more items corresponding to the search - * criteria are available in the searched folder. - * - * @return true, if is more available - */ - public boolean isMoreAvailable() { - return moreAvailable; - } - - /** - * Sets a value indicating whether more items corresponding to the search - * criteria are available in the searched folder. - * - * @param moreAvailable - * the new more available - */ - protected void setMoreAvailable(boolean moreAvailable) { - this.moreAvailable = moreAvailable; - } - - /** - * Gets the item groups returned by the search operation. - * - * @return the item groups - */ - public ArrayList> getItemGroups() { - return itemGroups; - } - - /** - * Returns an iterator that iterates through the collection. - * - * @return the iterator - */ - @Override - public Iterator> iterator() { - return this.itemGroups.iterator(); - } + Iterable> { + + /** + * The total count. + */ + private int totalCount; + + /** + * The next page offset. + */ + private Integer nextPageOffset; + + /** + * The more available. + */ + private boolean moreAvailable; + + /** + * List of ItemGroups. + */ + private ArrayList> itemGroups = + new ArrayList>(); + + /** + * Initializes a new instance of the GroupedFindItemsResults class. + */ + protected GroupedFindItemsResults() { + } + + /** + * Gets the total number of items matching the search criteria available in + * the searched folder. + * + * @return the total count + */ + public int getTotalCount() { + return totalCount; + } + + /** + * Gets the total number of items matching the search criteria available in + * the searched folder. + * + * @param totalCount Total number of items + */ + protected void setTotalCount(int totalCount) { + this.totalCount = totalCount; + } + + /** + * Gets the offset that should be used with ItemView to retrieve the next + * page of items in a FindItems operation. + * + * @return the next page offset + */ + public Integer getNextPageOffset() { + return nextPageOffset; + } + + /** + * Sets the offset that should be used with ItemView to retrieve the next + * page of items in a FindItems operation. + * + * @param nextPageOffset the new next page offset + */ + protected void setNextPageOffset(Integer nextPageOffset) { + this.nextPageOffset = nextPageOffset; + } + + /** + * Gets a value indicating whether more items corresponding to the search + * criteria are available in the searched folder. + * + * @return true, if is more available + */ + public boolean isMoreAvailable() { + return moreAvailable; + } + + /** + * Sets a value indicating whether more items corresponding to the search + * criteria are available in the searched folder. + * + * @param moreAvailable the new more available + */ + protected void setMoreAvailable(boolean moreAvailable) { + this.moreAvailable = moreAvailable; + } + + /** + * Gets the item groups returned by the search operation. + * + * @return the item groups + */ + public ArrayList> getItemGroups() { + return itemGroups; + } + + /** + * Returns an iterator that iterates through the collection. + * + * @return the iterator + */ + @Override + public Iterator> iterator() { + return this.itemGroups.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Grouping.java b/src/main/java/microsoft/exchange/webservices/data/Grouping.java index efb2d0314..b1ca57b28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Grouping.java +++ b/src/main/java/microsoft/exchange/webservices/data/Grouping.java @@ -14,184 +14,178 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents grouping options in item search operations. - * */ public final class Grouping implements ISelfValidate { - /** The sort direction. */ - private SortDirection sortDirection = SortDirection.Ascending; - - /** The group on. */ - private PropertyDefinitionBase groupOn; - - /** The aggregate on. */ - private PropertyDefinitionBase aggregateOn; - - /** The aggregate type. */ - private AggregateType aggregateType = AggregateType.Minimum; - - /** - * Validates this grouping. - * - * @throws Exception - * the exception - */ - private void internalValidate() throws Exception { - EwsUtilities.validateParam(this.groupOn, "GroupOn"); - EwsUtilities.validateParam(this.aggregateOn, "AggregateOn"); - } - - /** - * Initializes a new instance of the "Grouping" class. - */ - public Grouping() { - - } - - /** - * Initializes a new instance of the "Grouping" class. - * - * @param groupOn - * The property to group on - * @param sortDirection - * The sort direction. - * @param aggregateOn - * The property to aggregate on. - * @param aggregateType - * The type of aggregate to calculate. - * @throws Exception - * the exception - */ - public Grouping(PropertyDefinitionBase groupOn, - SortDirection sortDirection, PropertyDefinitionBase aggregateOn, - AggregateType aggregateType) throws Exception { - this(); - EwsUtilities.validateParam(groupOn, "groupOn"); - EwsUtilities.validateParam(aggregateOn, "aggregateOn"); - - this.groupOn = groupOn; - this.sortDirection = sortDirection; - this.aggregateOn = aggregateOn; - this.aggregateType = aggregateType; - } - - /** - * Writes to XML. - * - * @param writer - * The Writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer - .writeStartElement(XmlNamespace.Messages, - XmlElementNames.GroupBy); - writer.writeAttributeValue(XmlAttributeNames.Order, this.sortDirection); - - this.groupOn.writeToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.AggregateOn); - writer.writeAttributeValue(XmlAttributeNames.Aggregate, - this.aggregateType); - - this.aggregateOn.writeToXml(writer); - - writer.writeEndElement(); // AggregateOn - - writer.writeEndElement(); // GroupBy - } - - /** - * Gets the Sort Direction. - * - * @return the sort direction - */ - public SortDirection getSortDirection() { - return sortDirection; - } - - /** - * Sets the Sort Direction. - * - * @param sortDirection - * the new sort direction - */ - public void setSortDirection(SortDirection sortDirection) { - this.sortDirection = sortDirection; - } - - /** - * Gets the property to group on. - * - * @return the group on - */ - public PropertyDefinitionBase getGroupOn() { - return groupOn; - } - - /** - * sets the property to group on. - * - * @param groupOn - * the new group on - */ - public void setGroupOn(PropertyDefinitionBase groupOn) { - this.groupOn = groupOn; - } - - /** - * Gets the property to aggregateOn. - * - * @return the aggregate on - */ - public PropertyDefinitionBase getAggregateOn() { - return aggregateOn; - } - - /** - * Sets the property to aggregateOn. - * - * @param aggregateOn - * the new aggregate on - */ - public void setAggregateOn(PropertyDefinitionBase aggregateOn) { - this.aggregateOn = aggregateOn; - } - - /** - * Gets the types of aggregate to calculate. - * - * @return the aggregate type - */ - public AggregateType getAggregateType() { - return aggregateType; - } - - /** - * Sets the types of aggregate to calculate. - * - * @param aggregateType - * the new aggregate type - */ - public void setAggregateType(AggregateType aggregateType) { - this.aggregateType = aggregateType; - } - - /** - * Implements ISelfValidate.Validate. Validates this grouping. - */ - @Override - public void validate() { - try { - this.internalValidate(); - } catch (Exception e) { - e.printStackTrace(); - } - - } + /** + * The sort direction. + */ + private SortDirection sortDirection = SortDirection.Ascending; + + /** + * The group on. + */ + private PropertyDefinitionBase groupOn; + + /** + * The aggregate on. + */ + private PropertyDefinitionBase aggregateOn; + + /** + * The aggregate type. + */ + private AggregateType aggregateType = AggregateType.Minimum; + + /** + * Validates this grouping. + * + * @throws Exception the exception + */ + private void internalValidate() throws Exception { + EwsUtilities.validateParam(this.groupOn, "GroupOn"); + EwsUtilities.validateParam(this.aggregateOn, "AggregateOn"); + } + + /** + * Initializes a new instance of the "Grouping" class. + */ + public Grouping() { + + } + + /** + * Initializes a new instance of the "Grouping" class. + * + * @param groupOn The property to group on + * @param sortDirection The sort direction. + * @param aggregateOn The property to aggregate on. + * @param aggregateType The type of aggregate to calculate. + * @throws Exception the exception + */ + public Grouping(PropertyDefinitionBase groupOn, + SortDirection sortDirection, PropertyDefinitionBase aggregateOn, + AggregateType aggregateType) throws Exception { + this(); + EwsUtilities.validateParam(groupOn, "groupOn"); + EwsUtilities.validateParam(aggregateOn, "aggregateOn"); + + this.groupOn = groupOn; + this.sortDirection = sortDirection; + this.aggregateOn = aggregateOn; + this.aggregateType = aggregateType; + } + + /** + * Writes to XML. + * + * @param writer The Writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer + .writeStartElement(XmlNamespace.Messages, + XmlElementNames.GroupBy); + writer.writeAttributeValue(XmlAttributeNames.Order, this.sortDirection); + + this.groupOn.writeToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.AggregateOn); + writer.writeAttributeValue(XmlAttributeNames.Aggregate, + this.aggregateType); + + this.aggregateOn.writeToXml(writer); + + writer.writeEndElement(); // AggregateOn + + writer.writeEndElement(); // GroupBy + } + + /** + * Gets the Sort Direction. + * + * @return the sort direction + */ + public SortDirection getSortDirection() { + return sortDirection; + } + + /** + * Sets the Sort Direction. + * + * @param sortDirection the new sort direction + */ + public void setSortDirection(SortDirection sortDirection) { + this.sortDirection = sortDirection; + } + + /** + * Gets the property to group on. + * + * @return the group on + */ + public PropertyDefinitionBase getGroupOn() { + return groupOn; + } + + /** + * sets the property to group on. + * + * @param groupOn the new group on + */ + public void setGroupOn(PropertyDefinitionBase groupOn) { + this.groupOn = groupOn; + } + + /** + * Gets the property to aggregateOn. + * + * @return the aggregate on + */ + public PropertyDefinitionBase getAggregateOn() { + return aggregateOn; + } + + /** + * Sets the property to aggregateOn. + * + * @param aggregateOn the new aggregate on + */ + public void setAggregateOn(PropertyDefinitionBase aggregateOn) { + this.aggregateOn = aggregateOn; + } + + /** + * Gets the types of aggregate to calculate. + * + * @return the aggregate type + */ + public AggregateType getAggregateType() { + return aggregateType; + } + + /** + * Sets the types of aggregate to calculate. + * + * @param aggregateType the new aggregate type + */ + public void setAggregateType(AggregateType aggregateType) { + this.aggregateType = aggregateType; + } + + /** + * Implements ISelfValidate.Validate. Validates this grouping. + */ + @Override + public void validate() { + try { + this.internalValidate(); + } catch (Exception e) { + e.printStackTrace(); + } + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index af81d3bc9..428a5eecd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -1,5 +1,6 @@ package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; @@ -13,249 +14,254 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; -import javax.xml.stream.XMLStreamException; - /** * Enumeration of reasons that a hanging request may disconnect. */ enum HangingRequestDisconnectReason { - /** The server cleanly closed the connection. */ - Clean, - - /** The client closed the connection. */ - UserInitiated, - - /** The connection timed out do to a lack of a heartbeat received. */ - Timeout, - - /** An exception occurred on the connection */ - Exception + /** + * The server cleanly closed the connection. + */ + Clean, + + /** + * The client closed the connection. + */ + UserInitiated, + + /** + * The connection timed out do to a lack of a heartbeat received. + */ + Timeout, + + /** + * An exception occurred on the connection + */ + Exception } + /** - * Represents a collection of arguments for the + * Represents a collection of arguments for the * HangingServiceRequestBase.HangingRequestDisconnectHandler * delegate method. */ -class HangingRequestDisconnectEventArgs { - - /** - * Initializes a new instance of the - * HangingRequestDisconnectEventArgs class. - * - * @param reason The reason. - * @param exception The exception. - */ - protected HangingRequestDisconnectEventArgs( - HangingRequestDisconnectReason reason, - Exception exception) { - this.reason = reason; - this.exception = exception; - } - - private HangingRequestDisconnectReason reason; - - /** - * Gets the reason that the user was disconnected. - * - * @return reason The reason. - */ - public HangingRequestDisconnectReason getReason() { - return reason; - } - - /** - * Sets the reason that the user was disconnected. - * - * @param value The reason. - */ - protected void setReason(HangingRequestDisconnectReason value) { - reason = value; - } - - private Exception exception; - - /** - * Gets the exception that caused the disconnection. Can be null. - * - * @return exception The Exception. - */ - public Exception getException() { - return exception; - } - - /** - * Sets the exception that caused the disconnection. Can be null. - * - * @param value The Exception. - */ - protected void setException(Exception value) { - exception = value; - } +class HangingRequestDisconnectEventArgs { + + /** + * Initializes a new instance of the + * HangingRequestDisconnectEventArgs class. + * + * @param reason The reason. + * @param exception The exception. + */ + protected HangingRequestDisconnectEventArgs( + HangingRequestDisconnectReason reason, + Exception exception) { + this.reason = reason; + this.exception = exception; + } + + private HangingRequestDisconnectReason reason; + + /** + * Gets the reason that the user was disconnected. + * + * @return reason The reason. + */ + public HangingRequestDisconnectReason getReason() { + return reason; + } + + /** + * Sets the reason that the user was disconnected. + * + * @param value The reason. + */ + protected void setReason(HangingRequestDisconnectReason value) { + reason = value; + } + + private Exception exception; + + /** + * Gets the exception that caused the disconnection. Can be null. + * + * @return exception The Exception. + */ + public Exception getException() { + return exception; + } + + /** + * Sets the exception that caused the disconnection. Can be null. + * + * @param value The Exception. + */ + protected void setException(Exception value) { + exception = value; + } } + /** * Represents an abstract, hanging service request. */ abstract class HangingServiceRequestBase extends ServiceRequestBase { - protected interface IHandleResponseObject { - - /** - * Callback delegate to handle asynchronous responses. - * - * @param response - * Response received from the server - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - void handleResponseObject(Object response) throws ArgumentException; - } - - private static final int BufferSize = 4096; - - /** - * Test switch to log all bytes that come across the wire. - * Helpful when parsing fails before certain bytes hit the trace logs. - */ - protected static boolean LogAllWireBytes = false; - - /** - * Callback delegate to handle response objects - */ - private IHandleResponseObject responseHandler; - - /** - * Response from the server. - */ - private HttpWebRequest response; - - /** - * Request to the server. - */ - private HttpWebRequest request; - - /** - * Xml reader used to parse the response. - */ - private EwsServiceMultiResponseXmlReader ewsXmlReader; - - /** - * Expected minimum frequency in responses, in milliseconds. - */ - protected int heartbeatFrequencyMilliseconds; - - protected interface IHangingRequestDisconnectHandler { - - /** - * Delegate method to handle a hanging request disconnection. - * - * @param sender - * The object invoking the delegate. - * @param args, Event data. - */ - void hangingRequestDisconnectHandler(Object sender, - HangingRequestDisconnectEventArgs args); - - } - - /** - * Disconnect events Occur when the hanging request is disconnected. - */ - private List onDisconnectList = - new ArrayList(); - - /** - * Set event to happen when property disconnect. - * - * @param disconnect - * disconnect event - */ - protected void addOnDisconnectEvent( - IHangingRequestDisconnectHandler disconnect) { - onDisconnectList.add(disconnect); - } - - /** - * Remove the event from happening when property disconnect. - * - * @param disconnect - * disconnect event - */ - protected void removeDisconnectEvent( - IHangingRequestDisconnectHandler disconnect) { - onDisconnectList.remove(disconnect); - } - - /** - * Clears disconnect events list. - */ - protected void clearDisconnectEvents() { - onDisconnectList.clear(); - } - - /** - * Initializes a new instance of the HangingServiceRequestBase class. - * - * @param service - * The service. - * @param handler - * Callback delegate to handle response objects - * @param heartbeatFrequency - * Frequency at which we expect heartbeats, in milliseconds. - */ - protected HangingServiceRequestBase(ExchangeService service, - IHandleResponseObject handler, int heartbeatFrequency) - throws ServiceVersionException { - super(service); - this.responseHandler = handler; - this.heartbeatFrequencyMilliseconds = heartbeatFrequency; - } - - /** - * Exectures the request. - */ - protected void internalExecute() throws ServiceLocalException, Exception { - synchronized (this) { - this.response = this.validateAndEmitRequest(); - this.internalOnConnect(); - } - } - - /** - * Parses the responses. - * @param state - * The state. - */ - private void parseResponses(Object state) { - UUID traceId = UUID.fromString("00000000-0000-0000-0000-000000000000"); - HangingTraceStream tracingStream = null; - ByteArrayOutputStream responseCopy = null; - - - try { - boolean traceEWSResponse = this.getService().isTraceEnabledFor(TraceFlags.EwsResponse); - InputStream responseStream = this.response.getInputStream(); - tracingStream = new HangingTraceStream(responseStream, - this.getService()); - //EWSServiceMultiResponseXmlReader. Create causes a read. - - if(traceEWSResponse){ - responseCopy = new ByteArrayOutputStream(); - tracingStream.setResponseCopy(responseCopy); - } - - //EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); - - - - while (this.isConnected()) { - Object responseObject = null; - if(traceEWSResponse) { - /*try{*/ - EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); - responseObject = this.readResponse(ewsXmlReader); - this.responseHandler.handleResponseObject(responseObject); + protected interface IHandleResponseObject { + + /** + * Callback delegate to handle asynchronous responses. + * + * @param response Response received from the server + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + void handleResponseObject(Object response) throws ArgumentException; + } + + + private static final int BufferSize = 4096; + + /** + * Test switch to log all bytes that come across the wire. + * Helpful when parsing fails before certain bytes hit the trace logs. + */ + protected static boolean LogAllWireBytes = false; + + /** + * Callback delegate to handle response objects + */ + private IHandleResponseObject responseHandler; + + /** + * Response from the server. + */ + private HttpWebRequest response; + + /** + * Request to the server. + */ + private HttpWebRequest request; + + /** + * Xml reader used to parse the response. + */ + private EwsServiceMultiResponseXmlReader ewsXmlReader; + + /** + * Expected minimum frequency in responses, in milliseconds. + */ + protected int heartbeatFrequencyMilliseconds; + + + protected interface IHangingRequestDisconnectHandler { + + /** + * Delegate method to handle a hanging request disconnection. + * + * @param sender The object invoking the delegate. + * @param args, Event data. + */ + void hangingRequestDisconnectHandler(Object sender, + HangingRequestDisconnectEventArgs args); + + } + + + /** + * Disconnect events Occur when the hanging request is disconnected. + */ + private List onDisconnectList = + new ArrayList(); + + /** + * Set event to happen when property disconnect. + * + * @param disconnect disconnect event + */ + protected void addOnDisconnectEvent( + IHangingRequestDisconnectHandler disconnect) { + onDisconnectList.add(disconnect); + } + + /** + * Remove the event from happening when property disconnect. + * + * @param disconnect disconnect event + */ + protected void removeDisconnectEvent( + IHangingRequestDisconnectHandler disconnect) { + onDisconnectList.remove(disconnect); + } + + /** + * Clears disconnect events list. + */ + protected void clearDisconnectEvents() { + onDisconnectList.clear(); + } + + /** + * Initializes a new instance of the HangingServiceRequestBase class. + * + * @param service The service. + * @param handler Callback delegate to handle response objects + * @param heartbeatFrequency Frequency at which we expect heartbeats, in milliseconds. + */ + protected HangingServiceRequestBase(ExchangeService service, + IHandleResponseObject handler, int heartbeatFrequency) + throws ServiceVersionException { + super(service); + this.responseHandler = handler; + this.heartbeatFrequencyMilliseconds = heartbeatFrequency; + } + + /** + * Exectures the request. + */ + protected void internalExecute() throws ServiceLocalException, Exception { + synchronized (this) { + this.response = this.validateAndEmitRequest(); + this.internalOnConnect(); + } + } + + /** + * Parses the responses. + * + * @param state The state. + */ + private void parseResponses(Object state) { + UUID traceId = UUID.fromString("00000000-0000-0000-0000-000000000000"); + HangingTraceStream tracingStream = null; + ByteArrayOutputStream responseCopy = null; + + + try { + boolean traceEWSResponse = this.getService().isTraceEnabledFor(TraceFlags.EwsResponse); + InputStream responseStream = this.response.getInputStream(); + tracingStream = new HangingTraceStream(responseStream, + this.getService()); + //EWSServiceMultiResponseXmlReader. Create causes a read. + + if (traceEWSResponse) { + responseCopy = new ByteArrayOutputStream(); + tracingStream.setResponseCopy(responseCopy); + } + + //EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); + + + + while (this.isConnected()) { + Object responseObject = null; + if (traceEWSResponse) { + /*try{*/ + EwsServiceMultiResponseXmlReader ewsXmlReader = + EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); + responseObject = this.readResponse(ewsXmlReader); + this.responseHandler.handleResponseObject(responseObject); /* }catch(Exception ex){ this.disconnect(HangingRequestDisconnectReason.Exception, ex); return; @@ -266,181 +272,169 @@ private void parseResponses(Object state) { if(responseObject!=null) this.responseHandler.handleResponseObject(responseObject); }*/ - // reset the stream collector. - - responseCopy.close(); - responseCopy = new ByteArrayOutputStream(); - tracingStream.setResponseCopy(responseCopy); - - } else { - EwsServiceMultiResponseXmlReader ewsXmlReader = EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); - responseObject = this.readResponse(ewsXmlReader); - this.responseHandler.handleResponseObject(responseObject); - } - } - } - - catch (SocketTimeoutException ex) { - // The connection timed out. - this.disconnect(HangingRequestDisconnectReason.Timeout, ex); - return; - } - catch (UnknownServiceException ex) { - // Stream is closed, so disconnect. - this.disconnect(HangingRequestDisconnectReason.Exception, ex); - return; - } - catch (ObjectStreamException ex) { - // Stream is closed, so disconnect. - this.disconnect(HangingRequestDisconnectReason.Exception, ex); - return; - } - catch (IOException ex) { - // Stream is closed, so disconnect. - this.disconnect(HangingRequestDisconnectReason.Exception, ex); - return; - } - catch (UnsupportedOperationException ex) { - ex.printStackTrace(); - // This is thrown if we close the stream during a - //read operation due to a user method call. - // Trying to delay closing until the read finishes - //simply results in a long-running connection. - this.disconnect(HangingRequestDisconnectReason.UserInitiated, null); - return; - } - catch (Exception ex) { - // Stream is closed, so disconnect. - this.disconnect(HangingRequestDisconnectReason.Exception, ex); - return; - } - finally { - if(responseCopy != null){ - try{ - responseCopy.close(); - responseCopy = null; - }catch(Exception ex){ - ex.printStackTrace(); - } - } - } - } - - private boolean isConnected; - - /** - * Gets a value indicating whether this instance is connected. - * - * @return true, if this instance is connected; otherwise, false - */ - protected boolean isConnected() { - return this.isConnected; - } - - private void setIsConnected(boolean value) { - this.isConnected = value; - } - - /** - * Disconnects the request. - */ - protected void disconnect() { - synchronized (this) { - //this.request.close(); - this.response.close(); - this.disconnect(HangingRequestDisconnectReason.UserInitiated, null); - } - } - - /** - * Disconnects the request with the specified reason and exception. - * @param reason - * The reason. - * @param exception - * The exception. - */ - protected void disconnect(HangingRequestDisconnectReason reason, - Exception exception) { - if (this.isConnected()) { - this.response.close(); - this.internalOnDisconnect(reason, exception); - } - } - - /** - * Perform any bookkeeping needed when we connect - */ - private void internalOnConnect() throws XMLStreamException, - IOException, EWSHttpException { - if (!this.isConnected()) { - this.isConnected = true; - - if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponseHttpHeaders)) { - // Trace Http headers - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, - this.response); - } - int poolSize = 1; - - int maxPoolSize = 1; - - long keepAliveTime = 10; - - final ArrayBlockingQueue queue = - new ArrayBlockingQueue( - 1); - ThreadPoolExecutor threadPool = new ThreadPoolExecutor(poolSize, - maxPoolSize, - keepAliveTime, TimeUnit.SECONDS, queue); - threadPool.execute(new Runnable() - { - public void run() { - parseResponses(null); - } - }); - threadPool.shutdown(); - } - } - - /** - * Perform any bookkeeping needed when we disconnect (cleanly or forcefully) - * @param reason - * The reason. - * @param exception - * The exception. - */ - private void internalOnDisconnect(HangingRequestDisconnectReason reason, - Exception exception){ - if (this.isConnected()) { - this.isConnected = false; - for (IHangingRequestDisconnectHandler disconnect : onDisconnectList) { - disconnect.hangingRequestDisconnectHandler(this, - new HangingRequestDisconnectEventArgs(reason, exception)); - } - } - } - - /** - * Reads any preamble data not part of the core response. - * @param ewsXmlReader - * The EwsServiceXmlReader. - * @throws Exception - */ - @Override - protected void readPreamble(EwsServiceXmlReader ewsXmlReader) - throws Exception { - // Do nothing. - try { - ewsXmlReader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - } - catch (XmlException ex){ - throw new ServiceRequestException(Strings. - ServiceResponseDoesNotContainXml, ex); - } - catch (ServiceXmlDeserializationException ex){ - throw new ServiceRequestException(Strings. - ServiceResponseDoesNotContainXml, ex); - } - } + // reset the stream collector. + + responseCopy.close(); + responseCopy = new ByteArrayOutputStream(); + tracingStream.setResponseCopy(responseCopy); + + } else { + EwsServiceMultiResponseXmlReader ewsXmlReader = + EwsServiceMultiResponseXmlReader.create(tracingStream, getService()); + responseObject = this.readResponse(ewsXmlReader); + this.responseHandler.handleResponseObject(responseObject); + } + } + } catch (SocketTimeoutException ex) { + // The connection timed out. + this.disconnect(HangingRequestDisconnectReason.Timeout, ex); + return; + } catch (UnknownServiceException ex) { + // Stream is closed, so disconnect. + this.disconnect(HangingRequestDisconnectReason.Exception, ex); + return; + } catch (ObjectStreamException ex) { + // Stream is closed, so disconnect. + this.disconnect(HangingRequestDisconnectReason.Exception, ex); + return; + } catch (IOException ex) { + // Stream is closed, so disconnect. + this.disconnect(HangingRequestDisconnectReason.Exception, ex); + return; + } catch (UnsupportedOperationException ex) { + ex.printStackTrace(); + // This is thrown if we close the stream during a + //read operation due to a user method call. + // Trying to delay closing until the read finishes + //simply results in a long-running connection. + this.disconnect(HangingRequestDisconnectReason.UserInitiated, null); + return; + } catch (Exception ex) { + // Stream is closed, so disconnect. + this.disconnect(HangingRequestDisconnectReason.Exception, ex); + return; + } finally { + if (responseCopy != null) { + try { + responseCopy.close(); + responseCopy = null; + } catch (Exception ex) { + ex.printStackTrace(); + } + } + } + } + + private boolean isConnected; + + /** + * Gets a value indicating whether this instance is connected. + * + * @return true, if this instance is connected; otherwise, false + */ + protected boolean isConnected() { + return this.isConnected; + } + + private void setIsConnected(boolean value) { + this.isConnected = value; + } + + /** + * Disconnects the request. + */ + protected void disconnect() { + synchronized (this) { + //this.request.close(); + this.response.close(); + this.disconnect(HangingRequestDisconnectReason.UserInitiated, null); + } + } + + /** + * Disconnects the request with the specified reason and exception. + * + * @param reason The reason. + * @param exception The exception. + */ + protected void disconnect(HangingRequestDisconnectReason reason, + Exception exception) { + if (this.isConnected()) { + this.response.close(); + this.internalOnDisconnect(reason, exception); + } + } + + /** + * Perform any bookkeeping needed when we connect + */ + private void internalOnConnect() throws XMLStreamException, + IOException, EWSHttpException { + if (!this.isConnected()) { + this.isConnected = true; + + if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponseHttpHeaders)) { + // Trace Http headers + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, + this.response); + } + int poolSize = 1; + + int maxPoolSize = 1; + + long keepAliveTime = 10; + + final ArrayBlockingQueue queue = + new ArrayBlockingQueue( + 1); + ThreadPoolExecutor threadPool = new ThreadPoolExecutor(poolSize, + maxPoolSize, + keepAliveTime, TimeUnit.SECONDS, queue); + threadPool.execute(new Runnable() { + public void run() { + parseResponses(null); + } + }); + threadPool.shutdown(); + } + } + + /** + * Perform any bookkeeping needed when we disconnect (cleanly or forcefully) + * + * @param reason The reason. + * @param exception The exception. + */ + private void internalOnDisconnect(HangingRequestDisconnectReason reason, + Exception exception) { + if (this.isConnected()) { + this.isConnected = false; + for (IHangingRequestDisconnectHandler disconnect : onDisconnectList) { + disconnect.hangingRequestDisconnectHandler(this, + new HangingRequestDisconnectEventArgs(reason, exception)); + } + } + } + + /** + * Reads any preamble data not part of the core response. + * + * @param ewsXmlReader The EwsServiceXmlReader. + * @throws Exception + */ + @Override + protected void readPreamble(EwsServiceXmlReader ewsXmlReader) + throws Exception { + // Do nothing. + try { + ewsXmlReader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + } catch (XmlException ex) { + throw new ServiceRequestException(Strings. + ServiceResponseDoesNotContainXml, ex); + } catch (ServiceXmlDeserializationException ex) { + throw new ServiceRequestException(Strings. + ServiceResponseDoesNotContainXml, ex); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java index db36554b1..b625002cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java @@ -10,132 +10,128 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; -import javax.xml.stream.XMLStreamException; - /** * A stream that traces everything it returns from its Read() call. * That trace may be retrieved at the end of the stream. */ -class HangingTraceStream extends InputStream{ - - private InputStream underlyingStream; - private ExchangeService service; - private ByteArrayOutputStream responseCopy; - - /** - * Initializes a new instance of the HangingTraceStream class. - * - * @param stream - * The stream. - * @param service - * the service. - */ - protected HangingTraceStream(InputStream stream, ExchangeService service) { - this.underlyingStream = stream; - this.service = service; - - } - - /** - * Gets a value indicating whether the current stream supports reading. - * - * @return true - */ - public boolean getCanRead() { - return true; - } - - /** - * Gets a value indicating whether the current stream supports seeking. - * - * @return false - */ - public boolean getCanSeek() { - return false; - } - - /** - * Gets a value indicating whether the current stream supports writing. - * - * @return false - */ - public boolean getCanWrite() { - return false; - } - - /** - * When overridden in a derived class, clears all buffers - * for this stream and causes any buffered data to be - * written to the underlying device. - *@exception An I/O error occurs. - */ - /* +class HangingTraceStream extends InputStream { + + private InputStream underlyingStream; + private ExchangeService service; + private ByteArrayOutputStream responseCopy; + + /** + * Initializes a new instance of the HangingTraceStream class. + * + * @param stream The stream. + * @param service the service. + */ + protected HangingTraceStream(InputStream stream, ExchangeService service) { + this.underlyingStream = stream; + this.service = service; + + } + + /** + * Gets a value indicating whether the current stream supports reading. + * + * @return true + */ + public boolean getCanRead() { + return true; + } + + /** + * Gets a value indicating whether the current stream supports seeking. + * + * @return false + */ + public boolean getCanSeek() { + return false; + } + + /** + * Gets a value indicating whether the current stream supports writing. + * + * @return false + */ + public boolean getCanWrite() { + return false; + } + + /** + * When overridden in a derived class, clears all buffers + * for this stream and causes any buffered data to be + * written to the underlying device. + *@exception An I/O error occurs. + */ + /* * @Override public void close() { // no-op } */ - /** - * When overridden in a derived class, reads a sequence of - * bytes from the current stream and advances the - * position within the stream by the number of bytes read. - * @param buffer An array of bytes. When this method returns, the buffer - * contains the specified byte array with the values between - * @param offset The zero-based byte offset in at which to - * begin storing the data read from the current stream. - * @param count The maximum number of bytes to be read from the current stream. - * @return The total number of bytes read into the buffer. - * This can be less than the number of bytes requested if that - * many bytes are not currently available, or zero (0) - * if the end of the stream has been reached. - * @throws IOException The sum of offset and count is larger than the buffer length. - */ - @Override - public int read(byte[] buffer, int offset, int count) throws IOException { - count = 4096; - int retVal = this.underlyingStream.read(buffer, offset, count); - - if (HangingServiceRequestBase.LogAllWireBytes) - { - String readString = new String(buffer, offset, count, "UTF-8"); - String logMessage = String.format( - "HangingTraceStream ID [%d] " + - "returned %d bytes. Bytes returned: [%s]", - this.hashCode(), - retVal, - readString); - - try { - this.service.traceMessage( - TraceFlags.DebugMessage, - logMessage); - } catch (XMLStreamException e) { - e.printStackTrace(); - } - } - - if (this.responseCopy != null) { - this.responseCopy.write(buffer, offset, retVal); - } - - return retVal; - } - - /** - * sets the response copy - * @param responsecopy - * a copy of response - */ - protected void setResponseCopy(ByteArrayOutputStream responseCopy) - { - this.responseCopy = responseCopy; + /** + * When overridden in a derived class, reads a sequence of + * bytes from the current stream and advances the + * position within the stream by the number of bytes read. + * + * @param buffer An array of bytes. When this method returns, the buffer + * contains the specified byte array with the values between + * @param offset The zero-based byte offset in at which to + * begin storing the data read from the current stream. + * @param count The maximum number of bytes to be read from the current stream. + * @return The total number of bytes read into the buffer. + * This can be less than the number of bytes requested if that + * many bytes are not currently available, or zero (0) + * if the end of the stream has been reached. + * @throws IOException The sum of offset and count is larger than the buffer length. + */ + @Override + public int read(byte[] buffer, int offset, int count) throws IOException { + count = 4096; + int retVal = this.underlyingStream.read(buffer, offset, count); + + if (HangingServiceRequestBase.LogAllWireBytes) { + String readString = new String(buffer, offset, count, "UTF-8"); + String logMessage = String.format( + "HangingTraceStream ID [%d] " + + "returned %d bytes. Bytes returned: [%s]", + this.hashCode(), + retVal, + readString); + + try { + this.service.traceMessage( + TraceFlags.DebugMessage, + logMessage); + } catch (XMLStreamException e) { + e.printStackTrace(); + } + } + + if (this.responseCopy != null) { + this.responseCopy.write(buffer, offset, retVal); } - @Override - public int read() throws IOException { - return 0; - } + return retVal; + } + + /** + * sets the response copy + * + * @param responsecopy a copy of response + */ + protected void setResponseCopy(ByteArrayOutputStream responseCopy) { + this.responseCopy = responseCopy; + } + + @Override + public int read() throws IOException { + return 0; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 9cde489e5..9ba527bc7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -10,18 +10,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.BufferedInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ExecutorService; - -import javax.net.ssl.TrustManager; - import org.apache.http.Header; import org.apache.http.HttpHost; import org.apache.http.HttpResponse; @@ -34,410 +22,410 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.config.SocketConfig; import org.apache.http.conn.HttpClientConnectionManager; import org.apache.http.cookie.Cookie; -import org.apache.http.impl.client.BasicCookieStore; -import org.apache.http.impl.client.BasicCredentialsProvider; -import org.apache.http.impl.client.CloseableHttpClient; -import org.apache.http.impl.client.HttpClientBuilder; -import org.apache.http.impl.client.HttpClients; +import org.apache.http.impl.client.*; import org.apache.http.impl.conn.DefaultSchemePortResolver; +import javax.net.ssl.TrustManager; +import java.io.*; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutorService; + /** - * HttpClientWebRequest is used for making request to the server through + * HttpClientWebRequest is used for making request to the server through * NTLM Authentication by using Apache HttpClient 3.1 and JCIFS Library. */ class HttpClientWebRequest extends HttpWebRequest { - /** The Http Client. */ - private CloseableHttpClient client = null; - private CookieStore cookieStore = null; - - /** The Http Method. */ - private HttpPost httpPostReq = null; - private HttpResponse response = null; - - /** The TrustManager. */ - private TrustManager trustManger = null; - - private HttpClientConnectionManager httpClientConnMng = null; - - - /** - * Instantiates a new http native web request. - */ - public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { - this.httpClientConnMng = simpleHttpConnMng; - } - - /** - * Releases the connection by Closing. - */ - @Override - public void close() { - ExecutorService es = CallableSingleTon.getExecutor(); - es.shutdown(); - if (null != httpPostReq) { - httpPostReq.releaseConnection(); - //postMethod.abort(); - } - httpPostReq = null; - } - - /** - * Prepare connection - * - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public void prepareConnection() throws EWSHttpException { - try { - HttpClientBuilder builder = HttpClients.custom(); - builder.setConnectionManager(this.httpClientConnMng); - - //create the cookie store - if (cookieStore == null) { - cookieStore = new BasicCookieStore(); - } - builder.setDefaultCookieStore(cookieStore); - - if(getProxy() != null) { - HttpHost proxy = new HttpHost(getProxy().getHost(), getProxy().getPort()); - builder.setProxy(proxy); - - if (HttpProxyCredentials.isProxySet()) { - NTCredentials cred = new NTCredentials(HttpProxyCredentials.getUserName(), HttpProxyCredentials.getPassword(), "", HttpProxyCredentials.getDomain()); - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider.setCredentials(new AuthScope(proxy), cred); - builder.setDefaultCredentialsProvider(credsProvider); - } - } - if(getUserName() != null) { - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider.setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(),"",getDomain())); - builder.setDefaultCredentialsProvider(credsProvider); - } - - //fix socket config - SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); - builder.setDefaultSocketConfig(sc); - - RequestConfig.Builder rcBuilder = RequestConfig.custom(); - rcBuilder.setAuthenticationEnabled(true); - rcBuilder.setConnectionRequestTimeout(getTimeout()); - rcBuilder.setConnectTimeout(getTimeout()); - rcBuilder.setRedirectsEnabled(isAllowAutoRedirect()); - rcBuilder.setSocketTimeout(getTimeout()); - builder.setDefaultRequestConfig(rcBuilder.build()); - - httpPostReq = new HttpPost(getUrl().toString()); - httpPostReq.addHeader("Content-type", getContentType()); - //httpPostReq.setDoAuthentication(true); - httpPostReq.addHeader("User-Agent", getUserAgent()); - httpPostReq.addHeader("Accept", getAccept()); - httpPostReq.addHeader("Keep-Alive", "300"); - httpPostReq.addHeader("Connection", "Keep-Alive"); - - if (isAcceptGzipEncoding()) { - httpPostReq.addHeader("Accept-Encoding", "gzip,deflate"); - } - - if (getHeaders().size() > 0){ - for (Map.Entry httpHeader : getHeaders().entrySet()) { - httpPostReq.addHeader(httpHeader.getKey(), httpHeader.getValue()); - } - } - - //create the client - client = builder.build(); - } - catch (Exception er) { - er.printStackTrace(); - } - } - - /** - * Prepare asynchronous connection. - * - * @throws microsoft.exchange.webservices.data.EWSHttpException - * throws EWSHttpException - */ - public void prepareAsyncConnection() throws EWSHttpException { - try { - //ssl config - HttpClientBuilder builder = HttpClients.custom(); - builder.setConnectionManager(this.httpClientConnMng); - builder.setSchemePortResolver(new DefaultSchemePortResolver()); - - EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(trustManger); - builder.setSSLSocketFactory(factory); - builder.setSslcontext(factory.getContext()); - - //create the cookie store - if (cookieStore==null) { - cookieStore = new BasicCookieStore(); - } - builder.setDefaultCookieStore(cookieStore); - - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider.setCredentials(AuthScope.ANY, new NTCredentials(getUserName(),getPassword(),"",getDomain())); - builder.setDefaultCredentialsProvider(credsProvider); - - //fix socket config - SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); - builder.setDefaultSocketConfig(sc); - - RequestConfig.Builder rcBuilder = RequestConfig.custom(); - rcBuilder.setConnectionRequestTimeout(getTimeout()); - rcBuilder.setConnectTimeout(getTimeout()); - rcBuilder.setSocketTimeout(getTimeout()); - builder.setDefaultRequestConfig(rcBuilder.build()); - - //HttpClientParams.setRedirecting(client.getParams(), isAllowAutoRedirect()); by default it follows redirects - //create the client and execute requests - client = builder.build(); - httpPostReq = new HttpPost(getUrl().toString()); - response = client.execute(httpPostReq); - } - catch (IOException e) { - client = null; - httpPostReq = null; - throw new EWSHttpException("Unable to open connection to "+ this.getUrl()); - } catch (Exception e) { - client = null; - httpPostReq = null; - e.printStackTrace(); - throw new EWSHttpException("SSL problem "+ this.getUrl()); - } - } - - /** - * Method for getting the cookie values. - */ - public List getCookies() { - return this.cookieStore.getCookies(); - } - - /** - * Method for setting the cookie values. - */ - public void setUserCookie(List rcookies) { - if (rcookies != null && rcookies.size() > 0) { - if (this.cookieStore==null) { - this.cookieStore = new BasicCookieStore(); - } - for (Cookie c : rcookies) { - this.cookieStore.addCookie(c); - } - } - } - - - - - - /** - * Gets the input stream. - * - * @return the input stream - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - * @throws java.io.IOException - */ - @Override - public InputStream getInputStream() throws EWSHttpException, IOException { - throwIfResponseIsNull(); - BufferedInputStream bufferedInputStream = null; - try { - bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); - } catch (IOException e) { - throw new EWSHttpException("Connection Error " + e); - } - return bufferedInputStream; - } - - /** - * Gets the error stream. - * - * @return the error stream - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public InputStream getErrorStream() throws EWSHttpException { - throwIfResponseIsNull(); - BufferedInputStream bufferedInputStream = null; - try { - bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); - } catch (Exception e) { - throw new EWSHttpException("Connection Error " + e); - } - return bufferedInputStream; - } - - /** - * Gets the output stream. - * - * @return the output stream - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public OutputStream getOutputStream() throws EWSHttpException { - OutputStream os = null; - throwIfRequestIsNull(); - os = new ByteArrayOutputStream(); - - httpPostReq.setEntity(new ByteArrayOSRequestEntity(os)); - return os; - } - - /** - * Gets the response headers. - * - * @return the response headers - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public Map getResponseHeaders() - throws EWSHttpException { - throwIfResponseIsNull(); - Map map = new HashMap(); - - Header[] hM = response.getAllHeaders(); - for (Header header : hM) { - // RFC2109: Servers may return multiple Set-Cookie headers - // Need to append the cookies before they are added to the map - if (header.getName().equals("Set-Cookie")) { - String cookieValue = ""; - if (map.containsKey("Set-Cookie")) { - cookieValue += map.get("Set-Cookie"); - cookieValue += ","; - } - cookieValue += header.getValue(); - map.put("Set-Cookie", cookieValue); - } - else - map.put(header.getName(),header.getValue()); - } - - return map; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.HttpWebRequest#getResponseHeaderField( - * java.lang.String) - */ - @Override - public String getResponseHeaderField(String headerName) - throws EWSHttpException { - throwIfResponseIsNull(); - Header hM = response.getFirstHeader(headerName); - return hM != null ? hM.getValue() : null; - } - - /** - * Gets the content encoding. - * - * @return the content encoding - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public String getContentEncoding() throws EWSHttpException { - throwIfResponseIsNull(); - return response.getFirstHeader("content-encoding") != null ? response.getFirstHeader("content-encoding").getValue() : null; - } - - /** - * Gets the response content type. - * - * @return the response content type - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public String getResponseContentType() throws EWSHttpException { - throwIfResponseIsNull(); - return response.getFirstHeader("Content-type") != null ? response.getFirstHeader("Content-type").getValue() : null; - } - - /** - * Executes Request by sending request xml data to server. - * - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - * @throws java.io.IOException - * the IO Exception - */ - @Override - public int executeRequest() throws EWSHttpException, IOException { - throwIfRequestIsNull(); - response = client.execute(httpPostReq); - return response.getStatusLine().getStatusCode(); // ?? don't know what is wanted in return - } - - /** - * Gets the response code. - * - * @return the response code - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - @Override - public int getResponseCode() throws EWSHttpException { - throwIfResponseIsNull(); - return response.getStatusLine().getStatusCode(); - } - - /** - * Gets the response message. - * - * @return the response message - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - public String getResponseText() throws EWSHttpException { - throwIfResponseIsNull(); - return response.getStatusLine().getReasonPhrase(); - } - - /** - * Throw if conn is null. - * - * @throws EWSHttpException - * the eWS http exception - */ - private void throwIfRequestIsNull() throws EWSHttpException { - if (null == httpPostReq) { - throw new EWSHttpException("Connection not established"); - } - } - private void throwIfResponseIsNull() throws EWSHttpException { - if (null == response) { - throw new EWSHttpException("Connection not established"); - } - } - - /** - * Gets the request properties. - * - * @return the request properties - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - public Map getRequestProperty() throws EWSHttpException { - throwIfRequestIsNull(); - Map map = new HashMap(); - - Header[] hM = httpPostReq.getAllHeaders(); - for (Header header : hM) { - map.put(header.getName(),header.getValue()); - } - return map; - } + /** + * The Http Client. + */ + private CloseableHttpClient client = null; + private CookieStore cookieStore = null; + + /** + * The Http Method. + */ + private HttpPost httpPostReq = null; + private HttpResponse response = null; + + /** + * The TrustManager. + */ + private TrustManager trustManger = null; + + private HttpClientConnectionManager httpClientConnMng = null; + + + /** + * Instantiates a new http native web request. + */ + public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { + this.httpClientConnMng = simpleHttpConnMng; + } + + /** + * Releases the connection by Closing. + */ + @Override + public void close() { + ExecutorService es = CallableSingleTon.getExecutor(); + es.shutdown(); + if (null != httpPostReq) { + httpPostReq.releaseConnection(); + //postMethod.abort(); + } + httpPostReq = null; + } + + /** + * Prepare connection + * + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public void prepareConnection() throws EWSHttpException { + try { + HttpClientBuilder builder = HttpClients.custom(); + builder.setConnectionManager(this.httpClientConnMng); + + //create the cookie store + if (cookieStore == null) { + cookieStore = new BasicCookieStore(); + } + builder.setDefaultCookieStore(cookieStore); + + if (getProxy() != null) { + HttpHost proxy = new HttpHost(getProxy().getHost(), getProxy().getPort()); + builder.setProxy(proxy); + + if (HttpProxyCredentials.isProxySet()) { + NTCredentials cred = + new NTCredentials(HttpProxyCredentials.getUserName(), HttpProxyCredentials.getPassword(), "", + HttpProxyCredentials.getDomain()); + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider.setCredentials(new AuthScope(proxy), cred); + builder.setDefaultCredentialsProvider(credsProvider); + } + } + if (getUserName() != null) { + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider + .setCredentials(AuthScope.ANY, new NTCredentials(getUserName(), getPassword(), "", getDomain())); + builder.setDefaultCredentialsProvider(credsProvider); + } + + //fix socket config + SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); + builder.setDefaultSocketConfig(sc); + + RequestConfig.Builder rcBuilder = RequestConfig.custom(); + rcBuilder.setAuthenticationEnabled(true); + rcBuilder.setConnectionRequestTimeout(getTimeout()); + rcBuilder.setConnectTimeout(getTimeout()); + rcBuilder.setRedirectsEnabled(isAllowAutoRedirect()); + rcBuilder.setSocketTimeout(getTimeout()); + builder.setDefaultRequestConfig(rcBuilder.build()); + + httpPostReq = new HttpPost(getUrl().toString()); + httpPostReq.addHeader("Content-type", getContentType()); + //httpPostReq.setDoAuthentication(true); + httpPostReq.addHeader("User-Agent", getUserAgent()); + httpPostReq.addHeader("Accept", getAccept()); + httpPostReq.addHeader("Keep-Alive", "300"); + httpPostReq.addHeader("Connection", "Keep-Alive"); + + if (isAcceptGzipEncoding()) { + httpPostReq.addHeader("Accept-Encoding", "gzip,deflate"); + } + + if (getHeaders().size() > 0) { + for (Map.Entry httpHeader : getHeaders().entrySet()) { + httpPostReq.addHeader(httpHeader.getKey(), httpHeader.getValue()); + } + } + + //create the client + client = builder.build(); + } catch (Exception er) { + er.printStackTrace(); + } + } + + /** + * Prepare asynchronous connection. + * + * @throws microsoft.exchange.webservices.data.EWSHttpException throws EWSHttpException + */ + public void prepareAsyncConnection() throws EWSHttpException { + try { + //ssl config + HttpClientBuilder builder = HttpClients.custom(); + builder.setConnectionManager(this.httpClientConnMng); + builder.setSchemePortResolver(new DefaultSchemePortResolver()); + + EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(trustManger); + builder.setSSLSocketFactory(factory); + builder.setSslcontext(factory.getContext()); + + //create the cookie store + if (cookieStore == null) { + cookieStore = new BasicCookieStore(); + } + builder.setDefaultCookieStore(cookieStore); + + CredentialsProvider credsProvider = new BasicCredentialsProvider(); + credsProvider + .setCredentials(AuthScope.ANY, new NTCredentials(getUserName(), getPassword(), "", getDomain())); + builder.setDefaultCredentialsProvider(credsProvider); + + //fix socket config + SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); + builder.setDefaultSocketConfig(sc); + + RequestConfig.Builder rcBuilder = RequestConfig.custom(); + rcBuilder.setConnectionRequestTimeout(getTimeout()); + rcBuilder.setConnectTimeout(getTimeout()); + rcBuilder.setSocketTimeout(getTimeout()); + builder.setDefaultRequestConfig(rcBuilder.build()); + + //HttpClientParams.setRedirecting(client.getParams(), isAllowAutoRedirect()); by default it follows redirects + //create the client and execute requests + client = builder.build(); + httpPostReq = new HttpPost(getUrl().toString()); + response = client.execute(httpPostReq); + } catch (IOException e) { + client = null; + httpPostReq = null; + throw new EWSHttpException("Unable to open connection to " + this.getUrl()); + } catch (Exception e) { + client = null; + httpPostReq = null; + e.printStackTrace(); + throw new EWSHttpException("SSL problem " + this.getUrl()); + } + } + + /** + * Method for getting the cookie values. + */ + public List getCookies() { + return this.cookieStore.getCookies(); + } + + /** + * Method for setting the cookie values. + */ + public void setUserCookie(List rcookies) { + if (rcookies != null && rcookies.size() > 0) { + if (this.cookieStore == null) { + this.cookieStore = new BasicCookieStore(); + } + for (Cookie c : rcookies) { + this.cookieStore.addCookie(c); + } + } + } + + + + /** + * Gets the input stream. + * + * @return the input stream + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * @throws java.io.IOException + */ + @Override + public InputStream getInputStream() throws EWSHttpException, IOException { + throwIfResponseIsNull(); + BufferedInputStream bufferedInputStream = null; + try { + bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); + } catch (IOException e) { + throw new EWSHttpException("Connection Error " + e); + } + return bufferedInputStream; + } + + /** + * Gets the error stream. + * + * @return the error stream + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public InputStream getErrorStream() throws EWSHttpException { + throwIfResponseIsNull(); + BufferedInputStream bufferedInputStream = null; + try { + bufferedInputStream = new BufferedInputStream(response.getEntity().getContent()); + } catch (Exception e) { + throw new EWSHttpException("Connection Error " + e); + } + return bufferedInputStream; + } + + /** + * Gets the output stream. + * + * @return the output stream + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public OutputStream getOutputStream() throws EWSHttpException { + OutputStream os = null; + throwIfRequestIsNull(); + os = new ByteArrayOutputStream(); + + httpPostReq.setEntity(new ByteArrayOSRequestEntity(os)); + return os; + } + + /** + * Gets the response headers. + * + * @return the response headers + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public Map getResponseHeaders() + throws EWSHttpException { + throwIfResponseIsNull(); + Map map = new HashMap(); + + Header[] hM = response.getAllHeaders(); + for (Header header : hM) { + // RFC2109: Servers may return multiple Set-Cookie headers + // Need to append the cookies before they are added to the map + if (header.getName().equals("Set-Cookie")) { + String cookieValue = ""; + if (map.containsKey("Set-Cookie")) { + cookieValue += map.get("Set-Cookie"); + cookieValue += ","; + } + cookieValue += header.getValue(); + map.put("Set-Cookie", cookieValue); + } else { + map.put(header.getName(), header.getValue()); + } + } + + return map; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.HttpWebRequest#getResponseHeaderField( + * java.lang.String) + */ + @Override + public String getResponseHeaderField(String headerName) + throws EWSHttpException { + throwIfResponseIsNull(); + Header hM = response.getFirstHeader(headerName); + return hM != null ? hM.getValue() : null; + } + + /** + * Gets the content encoding. + * + * @return the content encoding + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public String getContentEncoding() throws EWSHttpException { + throwIfResponseIsNull(); + return response.getFirstHeader("content-encoding") != null ? + response.getFirstHeader("content-encoding").getValue() : + null; + } + + /** + * Gets the response content type. + * + * @return the response content type + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public String getResponseContentType() throws EWSHttpException { + throwIfResponseIsNull(); + return response.getFirstHeader("Content-type") != null ? + response.getFirstHeader("Content-type").getValue() : + null; + } + + /** + * Executes Request by sending request xml data to server. + * + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * @throws java.io.IOException the IO Exception + */ + @Override + public int executeRequest() throws EWSHttpException, IOException { + throwIfRequestIsNull(); + response = client.execute(httpPostReq); + return response.getStatusLine().getStatusCode(); // ?? don't know what is wanted in return + } + + /** + * Gets the response code. + * + * @return the response code + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + @Override + public int getResponseCode() throws EWSHttpException { + throwIfResponseIsNull(); + return response.getStatusLine().getStatusCode(); + } + + /** + * Gets the response message. + * + * @return the response message + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + public String getResponseText() throws EWSHttpException { + throwIfResponseIsNull(); + return response.getStatusLine().getReasonPhrase(); + } + + /** + * Throw if conn is null. + * + * @throws EWSHttpException the eWS http exception + */ + private void throwIfRequestIsNull() throws EWSHttpException { + if (null == httpPostReq) { + throw new EWSHttpException("Connection not established"); + } + } + + private void throwIfResponseIsNull() throws EWSHttpException { + if (null == response) { + throw new EWSHttpException("Connection not established"); + } + } + + /** + * Gets the request properties. + * + * @return the request properties + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + public Map getRequestProperty() throws EWSHttpException { + throwIfRequestIsNull(); + Map map = new HashMap(); + + Header[] hM = httpPostReq.getAllHeaders(); + for (Header header : hM) { + map.put(header.getName(), header.getValue()); + } + return map; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index 010be860e..74bcd0661 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -14,24 +14,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * User: nwoodham Date: 3/8/11 Time: 5:30 PM */ -public class HttpErrorException extends Exception -{ +public class HttpErrorException extends Exception { private final int code; - public HttpErrorException() - { + public HttpErrorException() { super(); this.code = 0; } - public HttpErrorException(String message, int code) - { + public HttpErrorException(String message, int code) { super(message); this.code = code; } - public int getHttpErrorCode() - { + public int getHttpErrorCode() { return this.code; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java index 8ebd0772d..fb11a195e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java @@ -15,90 +15,95 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class HttpProxyCredentials { - /** The user name. */ - private static String userName; + /** + * The user name. + */ + private static String userName; - /** The password. */ - private static String password; + /** + * The password. + */ + private static String password; - /** The domain. */ - private static String domain; - - /** The is proxy set. */ - private static boolean isProxySet; + /** + * The domain. + */ + private static String domain; - /** - * Sets the credentials. - * - * @param user - * the user - * @param pwd - * the password - * @param dmn - * the domain - */ - public static void setCredentials(String user, String pwd, String dmn) { - userName = user; - password = pwd; - domain = dmn; - isProxySet = true; + /** + * The is proxy set. + */ + private static boolean isProxySet; - } + /** + * Sets the credentials. + * + * @param user the user + * @param pwd the password + * @param dmn the domain + */ + public static void setCredentials(String user, String pwd, String dmn) { + userName = user; + password = pwd; + domain = dmn; + isProxySet = true; - /** - * Clear proxy credentials. - */ - public static void clearProxyCredentials() { - isProxySet = false; - } + } - /** - * Checks if is proxy set. - * - * @return true, if is proxy set - */ - public static boolean isProxySet() { - return isProxySet; - } + /** + * Clear proxy credentials. + */ + public static void clearProxyCredentials() { + isProxySet = false; + } - /** - * Gets the user name. - * - * @return the user name - */ - public static String getUserName() { - if (isProxySet) { - return userName; - } else { - return null; - } - } + /** + * Checks if is proxy set. + * + * @return true, if is proxy set + */ + public static boolean isProxySet() { + return isProxySet; + } - /** - * Gets the password. - * - * @return the password - */ - public static String getPassword() { - if (isProxySet) { - return password; - } else { - return null; - } + /** + * Gets the user name. + * + * @return the user name + */ + public static String getUserName() { + if (isProxySet) { + return userName; + } else { + return null; + } + } - } + /** + * Gets the password. + * + * @return the password + */ + public static String getPassword() { + if (isProxySet) { + return password; + } else { + return null; + } - /** - * Gets the domain. - * - * @return the domain - */ - public static String getDomain() { - if (isProxySet) { - return domain; - } else { - return null; - } + } - } + /** + * Gets the domain. + * + * @return the domain + */ + public static String getDomain() { + if (isProxySet) { + return domain; + } else { + return null; + } + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index 1481545b9..71235d140 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -10,558 +10,553 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; +import org.apache.http.HttpException; + +import java.io.*; import java.net.URL; import java.util.Map; -import org.apache.http.HttpException; - /** * The Class HttpWebRequest. */ - abstract class HttpWebRequest { - - /** The url. */ - private URL url; - - /** The pre authenticate. */ - private boolean preAuthenticate; - - /** The timeout. */ - private int timeout; - - /** The content type. */ - private String contentType = "text/xml; charset=utf-8"; - - /** The accept. */ - private String accept = "text/xml"; - - /** The user agent. */ - private String userAgent = "EWS SDK"; - - /** The allow auto redirect. */ - private boolean allowAutoRedirect; - - /** The keep alive. */ - private boolean keepAlive = true; - - /** The accept gzip encoding. */ - private boolean acceptGzipEncoding; - - /** The use default credentials. */ - private boolean useDefaultCredentials; - - /** The user name. */ - private String userName; - - /** The password. */ - private String password; - - /** The domain. */ - private String domain; - - /** The request Method. */ - private String requestMethod = "POST"; - - /** The request headers. */ - private Map headers; - - /** The Web Proxy. */ - private WebProxy proxy; - - /** - * Gets the Web Proxy. - * - * @return the proxy - */ - public WebProxy getProxy() { - return proxy; - } - - /** - * Sets the Web Proxy. - * - * @param proxy - * The Web Proxy - */ - public void setProxy(WebProxy proxy) { - this.proxy = proxy; - } - - /** - * Checks if is http scheme. - * - * @return true, if is http scheme - */ - public boolean isHttpScheme() { - - if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTP_SCHEME)) { - return true; - } else { - return false; - } - } - - /** - * Checks if is https scheme. - * - * @return true, if is https scheme - */ - public boolean isHttpsScheme() { - if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTPS_SCHEME)) { - return true; - } else { - return false; - } - } - - /** - * Gets the user name. - * - * @return the user name - */ - public String getUserName() { - return userName; - } - - /** - * Sets the user name. - * - * @param userName - * the new user name - */ - public void setUserName(String userName) { - this.userName = userName; - } - - /** - * Gets the password. - * - * @return the password - */ - public String getPassword() { - return password; - } - - /** - * Sets the password. - * - * @param password - * the new password - */ - public void setPassword(String password) { - this.password = password; - } - - /** - * Gets the domain. - * - * @return the domain - */ - public String getDomain() { - return domain; - } - - /** - * Sets the domain. - * - * @param domain - * the new domain - */ - public void setDomain(String domain) { - this.domain = domain; - } - - /** - * Gets the url. - * - * @return the url - */ - public URL getUrl() { - - return url; - } - - /** - * Sets the url. - * - * @param url - * the new url - */ - public void setUrl(URL url) { - this.url = url; - } - - /** - * Checks if is pre authenticate. - * - * @return true, if is pre authenticate - */ - public boolean isPreAuthenticate() { - return preAuthenticate; - } - - /** - * Sets the pre authenticate. - * - * @param preAuthenticate - * the new pre authenticate - */ - public void setPreAuthenticate(boolean preAuthenticate) { - this.preAuthenticate = preAuthenticate; - } - - /** - * Gets the timeout. - * - * @return the timeout - */ - public int getTimeout() { - return timeout; - } - - /** - * Sets the timeout. - * - * @param timeout - * the new timeout - */ - public void setTimeout(int timeout) { - this.timeout = timeout; - } - - /** - * Gets the content type. - * - * @return the content type - */ - public String getContentType() { - return contentType; - } - - /** - * Sets the content type. - * - * @param contentType - * the new content type - */ - public void setContentType(String contentType) { - this.contentType = contentType; - } - - /** - * Gets the accept. - * - * @return the accept - */ - public String getAccept() { - return accept; - } - - /** - * Sets the accept. - * - * @param accept - * the new accept - */ - public void setAccept(String accept) { - this.accept = accept; - } - - /** - * Gets the user agent. - * - * @return the user agent - */ - public String getUserAgent() { - return userAgent; - } - - /** - * Sets the user agent. - * - * @param userAgent - * the new user agent - */ - public void setUserAgent(String userAgent) { - this.userAgent = userAgent; - } - - /** - * Checks if is allow auto redirect. - * - * @return true, if is allow auto redirect - */ - public boolean isAllowAutoRedirect() { - return allowAutoRedirect; - } - - /** - * Sets the allow auto redirect. - * - * @param allowAutoRedirect - * the new allow auto redirect - */ - public void setAllowAutoRedirect(boolean allowAutoRedirect) { - this.allowAutoRedirect = allowAutoRedirect; - } - - /** - * Checks if is keep alive. - * - * @return true, if is keep alive - */ - public boolean isKeepAlive() { - return keepAlive; - } - - /** - * Sets the keep alive. - * - * @param keepAlive - * the new keep alive - */ - public void setKeepAlive(boolean keepAlive) { - this.keepAlive = keepAlive; - } - - /** - * Checks if is accept gzip encoding. - * - * @return true, if is accept gzip encoding - */ - public boolean isAcceptGzipEncoding() { - return acceptGzipEncoding; - } - - /** - * Sets the accept gzip encoding. - * - * @param acceptGzipEncoding - * the new accept gzip encoding - */ - public void setAcceptGzipEncoding(boolean acceptGzipEncoding) { - this.acceptGzipEncoding = acceptGzipEncoding; - } - - /** - * Checks if is use default credentials. - * - * @return true, if is use default credentials - */ - public boolean isUseDefaultCredentials() { - return useDefaultCredentials; - } - - /** - * Sets the use default credentials. - * - * @param useDefaultCredentials - * the new use default credentials - */ - public void setUseDefaultCredentials(boolean useDefaultCredentials) { - this.useDefaultCredentials = useDefaultCredentials; - } - - /** - * Gets the request method type. - * - * @return the request method type. - */ - public String getRequestMethod() { - return requestMethod; - } - - /** - * Sets the request method type. - * - * @param requestMethod - * the request method type. - */ - public void setRequestMethod(String requestMethod) { - this.requestMethod = requestMethod; - } - - /** - * Gets the Headers. - * - * @return the content type - */ - public Map getHeaders() { - return headers; - } - - /** - * Sets the Headers. - * - * @param headers The headers - */ - public void setHeaders(Map headers) { - this.headers = headers; - } - - /** - * Sets the credentials. - * - * @param domain user domain - * @param user user name - * @param pwd password - */ - public void setCredentials(String domain, String user, String pwd) { - this.domain = domain; - this.userName = user; - this.password = pwd; - } - - /** - * Gets the input stream. - * - * @return the input stream - * @throws EWSHttpException - * the eWS http exception - * @throws java.io.IOException - */ - public abstract InputStream getInputStream() throws EWSHttpException, IOException; - - /** - * Gets the error stream. - * - * @return the error stream - * @throws EWSHttpException - * the eWS http exception - */ - public abstract InputStream getErrorStream() throws EWSHttpException; - - /** - * Gets the output stream. - * - * @return the output stream - * @throws EWSHttpException - * the eWS http exception - */ - public abstract OutputStream getOutputStream() throws EWSHttpException; - - /** - * Close. - */ - public abstract void close(); - - /** - * Prepare connection. - * - * @throws EWSHttpException - * the eWS http exception - */ - public abstract void prepareConnection() throws EWSHttpException; - - /** - * Gets the response headers. - * - * @return the response headers - * @throws EWSHttpException - * the eWS http exception - */ - public abstract Map getResponseHeaders() - throws EWSHttpException; - - /** - * Gets the content encoding. - * - * @return the content encoding - * @throws EWSHttpException - * the eWS http exception - */ - public abstract String getContentEncoding() throws EWSHttpException; - - /** - * Gets the response content type. - * - * @return the response content type - * @throws EWSHttpException - * the eWS http exception - */ - public abstract String getResponseContentType() throws EWSHttpException; - - /** - * Gets the response code. - * - * @return the response code - * @throws EWSHttpException - * the eWS http exception - */ - public abstract int getResponseCode() throws EWSHttpException; - - /** - * Gets the response message. - * - * @return the response message - * @throws EWSHttpException - * the eWS http exception - */ - public abstract String getResponseText() throws EWSHttpException; - - /** - * Gets the response header field. - * - * @param headerName - * the header name - * @return the response header field - * @throws EWSHttpException - * the eWS http exception - */ - public abstract String getResponseHeaderField(String headerName) - throws EWSHttpException; - - /** - * Prepare asynchronous connection. - * - * @throws EWSHttpException - * the eWS http exception - */ - public abstract void prepareAsyncConnection() throws EWSHttpException, UnsupportedEncodingException; - - /** - * Gets the request properties. - * - * @return the request properties - * @throws EWSHttpException - * the eWS http exception - */ - public abstract Map getRequestProperty() - throws EWSHttpException; - - /** - * Executes Request by sending request xml data to server. - * - * @throws EWSHttpException - * the eWS http exception - * @throws HttpException - * the http exception - * @throws java.io.IOException - * the IO Exception - */ - public abstract int executeRequest() throws EWSHttpException, HttpErrorException, IOException; - - public IAsyncResult beginGetResponse(Object webRequestAsyncCallback, - WebAsyncCallStateAnchor wrappedState) { - // TODO Auto-generated method stub - return null; - } - - - - public ByteArrayOutputStream endGetRequestStream( - IAsyncResult result) { - // TODO Auto-generated method stub - return new ByteArrayOutputStream(); - } - - - - - +abstract class HttpWebRequest { + + /** + * The url. + */ + private URL url; + + /** + * The pre authenticate. + */ + private boolean preAuthenticate; + + /** + * The timeout. + */ + private int timeout; + + /** + * The content type. + */ + private String contentType = "text/xml; charset=utf-8"; + + /** + * The accept. + */ + private String accept = "text/xml"; + + /** + * The user agent. + */ + private String userAgent = "EWS SDK"; + + /** + * The allow auto redirect. + */ + private boolean allowAutoRedirect; + + /** + * The keep alive. + */ + private boolean keepAlive = true; + + /** + * The accept gzip encoding. + */ + private boolean acceptGzipEncoding; + + /** + * The use default credentials. + */ + private boolean useDefaultCredentials; + + /** + * The user name. + */ + private String userName; + + /** + * The password. + */ + private String password; + + /** + * The domain. + */ + private String domain; + + /** + * The request Method. + */ + private String requestMethod = "POST"; + + /** + * The request headers. + */ + private Map headers; + + /** + * The Web Proxy. + */ + private WebProxy proxy; + + /** + * Gets the Web Proxy. + * + * @return the proxy + */ + public WebProxy getProxy() { + return proxy; + } + + /** + * Sets the Web Proxy. + * + * @param proxy The Web Proxy + */ + public void setProxy(WebProxy proxy) { + this.proxy = proxy; + } + + /** + * Checks if is http scheme. + * + * @return true, if is http scheme + */ + public boolean isHttpScheme() { + + if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTP_SCHEME)) { + return true; + } else { + return false; + } + } + + /** + * Checks if is https scheme. + * + * @return true, if is https scheme + */ + public boolean isHttpsScheme() { + if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTPS_SCHEME)) { + return true; + } else { + return false; + } + } + + /** + * Gets the user name. + * + * @return the user name + */ + public String getUserName() { + return userName; + } + + /** + * Sets the user name. + * + * @param userName the new user name + */ + public void setUserName(String userName) { + this.userName = userName; + } + + /** + * Gets the password. + * + * @return the password + */ + public String getPassword() { + return password; + } + + /** + * Sets the password. + * + * @param password the new password + */ + public void setPassword(String password) { + this.password = password; + } + + /** + * Gets the domain. + * + * @return the domain + */ + public String getDomain() { + return domain; + } + + /** + * Sets the domain. + * + * @param domain the new domain + */ + public void setDomain(String domain) { + this.domain = domain; + } + + /** + * Gets the url. + * + * @return the url + */ + public URL getUrl() { + + return url; + } + + /** + * Sets the url. + * + * @param url the new url + */ + public void setUrl(URL url) { + this.url = url; + } + + /** + * Checks if is pre authenticate. + * + * @return true, if is pre authenticate + */ + public boolean isPreAuthenticate() { + return preAuthenticate; + } + + /** + * Sets the pre authenticate. + * + * @param preAuthenticate the new pre authenticate + */ + public void setPreAuthenticate(boolean preAuthenticate) { + this.preAuthenticate = preAuthenticate; + } + + /** + * Gets the timeout. + * + * @return the timeout + */ + public int getTimeout() { + return timeout; + } + + /** + * Sets the timeout. + * + * @param timeout the new timeout + */ + public void setTimeout(int timeout) { + this.timeout = timeout; + } + + /** + * Gets the content type. + * + * @return the content type + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the content type. + * + * @param contentType the new content type + */ + public void setContentType(String contentType) { + this.contentType = contentType; + } + + /** + * Gets the accept. + * + * @return the accept + */ + public String getAccept() { + return accept; + } + + /** + * Sets the accept. + * + * @param accept the new accept + */ + public void setAccept(String accept) { + this.accept = accept; + } + + /** + * Gets the user agent. + * + * @return the user agent + */ + public String getUserAgent() { + return userAgent; + } + + /** + * Sets the user agent. + * + * @param userAgent the new user agent + */ + public void setUserAgent(String userAgent) { + this.userAgent = userAgent; + } + + /** + * Checks if is allow auto redirect. + * + * @return true, if is allow auto redirect + */ + public boolean isAllowAutoRedirect() { + return allowAutoRedirect; + } + + /** + * Sets the allow auto redirect. + * + * @param allowAutoRedirect the new allow auto redirect + */ + public void setAllowAutoRedirect(boolean allowAutoRedirect) { + this.allowAutoRedirect = allowAutoRedirect; + } + + /** + * Checks if is keep alive. + * + * @return true, if is keep alive + */ + public boolean isKeepAlive() { + return keepAlive; + } + + /** + * Sets the keep alive. + * + * @param keepAlive the new keep alive + */ + public void setKeepAlive(boolean keepAlive) { + this.keepAlive = keepAlive; + } + + /** + * Checks if is accept gzip encoding. + * + * @return true, if is accept gzip encoding + */ + public boolean isAcceptGzipEncoding() { + return acceptGzipEncoding; + } + + /** + * Sets the accept gzip encoding. + * + * @param acceptGzipEncoding the new accept gzip encoding + */ + public void setAcceptGzipEncoding(boolean acceptGzipEncoding) { + this.acceptGzipEncoding = acceptGzipEncoding; + } + + /** + * Checks if is use default credentials. + * + * @return true, if is use default credentials + */ + public boolean isUseDefaultCredentials() { + return useDefaultCredentials; + } + + /** + * Sets the use default credentials. + * + * @param useDefaultCredentials the new use default credentials + */ + public void setUseDefaultCredentials(boolean useDefaultCredentials) { + this.useDefaultCredentials = useDefaultCredentials; + } + + /** + * Gets the request method type. + * + * @return the request method type. + */ + public String getRequestMethod() { + return requestMethod; + } + + /** + * Sets the request method type. + * + * @param requestMethod the request method type. + */ + public void setRequestMethod(String requestMethod) { + this.requestMethod = requestMethod; + } + + /** + * Gets the Headers. + * + * @return the content type + */ + public Map getHeaders() { + return headers; + } + + /** + * Sets the Headers. + * + * @param headers The headers + */ + public void setHeaders(Map headers) { + this.headers = headers; + } + + /** + * Sets the credentials. + * + * @param domain user domain + * @param user user name + * @param pwd password + */ + public void setCredentials(String domain, String user, String pwd) { + this.domain = domain; + this.userName = user; + this.password = pwd; + } + + /** + * Gets the input stream. + * + * @return the input stream + * @throws EWSHttpException the eWS http exception + * @throws java.io.IOException + */ + public abstract InputStream getInputStream() throws EWSHttpException, IOException; + + /** + * Gets the error stream. + * + * @return the error stream + * @throws EWSHttpException the eWS http exception + */ + public abstract InputStream getErrorStream() throws EWSHttpException; + + /** + * Gets the output stream. + * + * @return the output stream + * @throws EWSHttpException the eWS http exception + */ + public abstract OutputStream getOutputStream() throws EWSHttpException; + + /** + * Close. + */ + public abstract void close(); + + /** + * Prepare connection. + * + * @throws EWSHttpException the eWS http exception + */ + public abstract void prepareConnection() throws EWSHttpException; + + /** + * Gets the response headers. + * + * @return the response headers + * @throws EWSHttpException the eWS http exception + */ + public abstract Map getResponseHeaders() + throws EWSHttpException; + + /** + * Gets the content encoding. + * + * @return the content encoding + * @throws EWSHttpException the eWS http exception + */ + public abstract String getContentEncoding() throws EWSHttpException; + + /** + * Gets the response content type. + * + * @return the response content type + * @throws EWSHttpException the eWS http exception + */ + public abstract String getResponseContentType() throws EWSHttpException; + + /** + * Gets the response code. + * + * @return the response code + * @throws EWSHttpException the eWS http exception + */ + public abstract int getResponseCode() throws EWSHttpException; + + /** + * Gets the response message. + * + * @return the response message + * @throws EWSHttpException the eWS http exception + */ + public abstract String getResponseText() throws EWSHttpException; + + /** + * Gets the response header field. + * + * @param headerName the header name + * @return the response header field + * @throws EWSHttpException the eWS http exception + */ + public abstract String getResponseHeaderField(String headerName) + throws EWSHttpException; + + /** + * Prepare asynchronous connection. + * + * @throws EWSHttpException the eWS http exception + */ + public abstract void prepareAsyncConnection() throws EWSHttpException, UnsupportedEncodingException; + + /** + * Gets the request properties. + * + * @return the request properties + * @throws EWSHttpException the eWS http exception + */ + public abstract Map getRequestProperty() + throws EWSHttpException; + + /** + * Executes Request by sending request xml data to server. + * + * @throws EWSHttpException the eWS http exception + * @throws HttpException the http exception + * @throws java.io.IOException the IO Exception + */ + public abstract int executeRequest() throws EWSHttpException, HttpErrorException, IOException; + + public IAsyncResult beginGetResponse(Object webRequestAsyncCallback, + WebAsyncCallStateAnchor wrappedState) { + // TODO Auto-generated method stub + return null; + } + + + + public ByteArrayOutputStream endGetRequestStream( + IAsyncResult result) { + // TODO Auto-generated method stub + return new ByteArrayOutputStream(); + } + + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/IAction.java b/src/main/java/microsoft/exchange/webservices/data/IAction.java index 195aa9329..d41eaeca3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAction.java @@ -12,18 +12,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface IAction. - * - * @param - * The type of the parameter of the + * + * @param The type of the parameter of the * method that this delegate encapsulates. */ public interface IAction { - /** - * Encapsulates a method that takes a single parameter and does not return a - * value. - * - * @param obj The parameter of the method that this delegate encapsulates. - */ - void action(T obj); + /** + * Encapsulates a method that takes a single parameter and does not return a + * value. + * + * @param obj The parameter of the method that this delegate encapsulates. + */ + void action(T obj); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index e94807971..0c4db86d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -12,19 +12,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; -/*** +/** * Represents the stauts of Asynchronous operation. - * - * */ public interface IAsyncResult extends Future { - public Object getAsyncState(); + public Object getAsyncState(); - public WaitHandle getAsyncWaitHanle(); + public WaitHandle getAsyncWaitHanle(); - public boolean getCompleteSynchronously(); + public boolean getCompleteSynchronously(); - public boolean getIsCompleted(); + public boolean getIsCompleted(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java index 581e47be5..1658c7516 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java @@ -13,19 +13,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines a delegate that is used by the AutodiscoverService to ask whether a * redirectionUrl can be used. - * */ public interface IAutodiscoverRedirectionUrl { - /** - * Autodiscover redirection url validation callback. - * - * @param redirectionUrl - * the redirection url - * @return true, if successful - * @throws microsoft.exchange.webservices.data.AutodiscoverLocalException - * the autodiscover local exception - */ - boolean autodiscoverRedirectionUrlValidationCallback( - String redirectionUrl) throws AutodiscoverLocalException; + /** + * Autodiscover redirection url validation callback. + * + * @param redirectionUrl the redirection url + * @return true, if successful + * @throws microsoft.exchange.webservices.data.AutodiscoverLocalException the autodiscover local exception + */ + boolean autodiscoverRedirectionUrlValidationCallback( + String redirectionUrl) throws AutodiscoverLocalException; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java index 137fe4720..d959beee8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java @@ -16,64 +16,55 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface ICalendarActionProvider { - /** - * Implements the Accept method. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a result of this operation. - * @throws Exception - * the exception - */ - CalendarActionResults accept(boolean sendResponse) throws Exception; + /** + * Implements the Accept method. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a result of this operation. + * @throws Exception the exception + */ + CalendarActionResults accept(boolean sendResponse) throws Exception; - /** - * Implements the AcceptTentatively method. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a result of this operation. - * @throws Exception - * the exception - */ - CalendarActionResults acceptTentatively(boolean sendResponse) - throws Exception; + /** + * Implements the AcceptTentatively method. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a result of this operation. + * @throws Exception the exception + */ + CalendarActionResults acceptTentatively(boolean sendResponse) + throws Exception; - /** - * Implements the Decline method. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a result of this operation. - * @throws Exception - * the exception - */ - CalendarActionResults decline(boolean sendResponse) throws Exception; + /** + * Implements the Decline method. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a result of this operation. + * @throws Exception the exception + */ + CalendarActionResults decline(boolean sendResponse) throws Exception; - /** - * Implements the CreateAcceptMessage method. - * - * @param tentative - * Indicates whether the new AcceptMeetingInvitationMessage - * should represent a Tentative accept response (as opposed to an - * Accept response). - * @return A new AcceptMeetingInvitationMessage. - * @throws Exception - * the exception - */ - AcceptMeetingInvitationMessage createAcceptMessage(boolean tentative) - throws Exception; + /** + * Implements the CreateAcceptMessage method. + * + * @param tentative Indicates whether the new AcceptMeetingInvitationMessage + * should represent a Tentative accept response (as opposed to an + * Accept response). + * @return A new AcceptMeetingInvitationMessage. + * @throws Exception the exception + */ + AcceptMeetingInvitationMessage createAcceptMessage(boolean tentative) + throws Exception; - /** - * Implements the DeclineMeetingInvitationMessage method. - * - * @return A new DeclineMeetingInvitationMessage. - * @throws Exception - * the exception - */ - DeclineMeetingInvitationMessage createDeclineMessage() throws Exception; + /** + * Implements the DeclineMeetingInvitationMessage method. + * + * @return A new DeclineMeetingInvitationMessage. + * @throws Exception the exception + */ + DeclineMeetingInvitationMessage createDeclineMessage() throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java index 6d396120b..883a28f23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java @@ -12,15 +12,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Indicates that a complex property changed. - * */ interface IComplexPropertyChanged { - /** - * Indicates that a complex property changed. - * - * @param complexProperty - * Complex property. - */ - void complexPropertyChanged(ComplexProperty complexProperty); + /** + * Indicates that a complex property changed. + * + * @param complexProperty Complex property. + */ + void complexPropertyChanged(ComplexProperty complexProperty); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java index 50e5274c0..5b2e39564 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java @@ -15,11 +15,10 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface IComplexPropertyChangedDelegate { - /** - * Complex property changed. - * - * @param complexProperty - * the complex property - */ - void complexPropertyChanged(ComplexProperty complexProperty); + /** + * Complex property changed. + * + * @param complexProperty the complex property + */ + void complexPropertyChanged(ComplexProperty complexProperty); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java index 5faca9d15..1ae1882ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java @@ -12,17 +12,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Used to create instances of ComplexProperty. - * - * @param - * Type that extends ComplexProperty + * + * @param Type that extends ComplexProperty */ interface ICreateComplexPropertyDelegate - { + { - /** - * used to create instances of ComplexProperty. - * - * @return Complex property instance - */ - TComplexProperty createComplexProperty(); + /** + * used to create instances of ComplexProperty. + * + * @return Complex property instance + */ + TComplexProperty createComplexProperty(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java index ca65dc932..028408b83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java @@ -15,18 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface ICreateServiceObjectWithAttachmentParam { - /** - * Creates the service object with attachment param. - * - * @param itemAttachment - * the item attachment - * @param isNew - * the is new - * @return the object - * @throws Exception - * the exception - */ - Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) throws Exception; + /** + * Creates the service object with attachment param. + * + * @param itemAttachment the item attachment + * @param isNew the is new + * @return the object + * @throws Exception the exception + */ + Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java index 1d013aa28..8685fbaec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java @@ -15,15 +15,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface ICreateServiceObjectWithServiceParam { - /** - * Creates the service object with service param. - * - * @param srv - * the srv - * @return the object - * @throws Exception - * the exception - */ - Object createServiceObjectWithServiceParam(ExchangeService srv) - throws Exception; + /** + * Creates the service object with service param. + * + * @param srv the srv + * @return the object + * @throws Exception the exception + */ + Object createServiceObjectWithServiceParam(ExchangeService srv) + throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java index 845f5d168..756bc71fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java @@ -15,14 +15,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface CustomXmlSerializationInterface. */ - interface ICustomXmlSerialization { +interface ICustomXmlSerialization { - /** - * Custom xml serialization. - * - * @param writer - * the writer - */ - void CustomXmlSerialization(XMLStreamWriter writer); + /** + * Custom xml serialization. + * + * @param writer the writer + */ + void CustomXmlSerialization(XMLStreamWriter writer); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java index 162f5b8f1..43574695c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java @@ -14,55 +14,40 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Interface defined for properties that produce their own update serialization. - * */ interface ICustomXmlUpdateSerializer { - /** - * Writes the update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @param propertyDefinition - * Property definition. - * @return True if property generated serialization. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, PropertyDefinition propertyDefinition) - throws XMLStreamException, ServiceXmlSerializationException, - InstantiationException, IllegalAccessException, - ServiceValidationException, Exception; + /** + * Writes the update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @param propertyDefinition Property definition. + * @return True if property generated serialization. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, PropertyDefinition propertyDefinition) + throws XMLStreamException, ServiceXmlSerializationException, + InstantiationException, IllegalAccessException, + ServiceValidationException, Exception; - /** - * Writes the deletion update to XML. - * - * @param writer - * The writer. - * @param ewsObject - * The ews object. - * @return True if property generated serialization. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws Exception - * the exception - */ - boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) throws XMLStreamException, - ServiceXmlSerializationException, Exception; + /** + * Writes the deletion update to XML. + * + * @param writer The writer. + * @param ewsObject The ews object. + * @return True if property generated serialization. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws Exception the exception + */ + boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) throws XMLStreamException, + ServiceXmlSerializationException, Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java index fd5e8d979..49b234ee9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java @@ -15,8 +15,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface IDisposable { - /** - * Dispose. - */ - void dispose(); + /** + * Dispose. + */ + void dispose(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java index 3acc9c92b..8a07d9156 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java @@ -16,17 +16,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines a file attachment content handler. Application can implement * IFileAttachmentContentHandler /// to provide a stream in which the content of * file attachment should be written. - * */ public interface IFileAttachmentContentHandler { - /** - * Provides a stream to which the content of the attachment with the - * specified Id should be written. - * - * @param attachmentId - * The Id of the attachment that is being loaded. - * @return A Stream to which the content of the attachment will be written. - */ - OutputStream getOutputStream(String attachmentId); + /** + * Provides a stream to which the content of the attachment with the + * specified Id should be written. + * + * @param attachmentId The Id of the attachment that is being loaded. + * @return A Stream to which the content of the attachment will be written. + */ + OutputStream getOutputStream(String attachmentId); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunc.java b/src/main/java/microsoft/exchange/webservices/data/IFunc.java index cea57af01..1bf6306f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunc.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunc.java @@ -12,20 +12,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface Func. - * - * @param - * the generic type - * @param - * the generic type + * + * @param the generic type + * @param the generic type */ - interface IFunc { +interface IFunc { - /** - * Func. - * - * @param arg - * the arg - * @return the t result - */ - TResult func(T arg); + /** + * Func. + * + * @param arg the arg + * @return the t result + */ + TResult func(T arg); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java index bd4ead72a..86174201d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java @@ -12,18 +12,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface FuncDelegate. - * - * @param - * the generic type + * + * @param the generic type */ - interface IFuncDelegate { +interface IFuncDelegate { - /** - * Func. - * - * @return the t result - * @throws FormatException - * the format exception - */ - TResult func() throws FormatException; + /** + * Func. + * + * @return the t result + * @throws FormatException the format exception + */ + TResult func() throws FormatException; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunction.java b/src/main/java/microsoft/exchange/webservices/data/IFunction.java index eb02d8358..2ea418f83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunction.java @@ -12,20 +12,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface FuncInterface. - * - * @param - * the generic type - * @param - * the generic type + * + * @param the generic type + * @param the generic type */ interface IFunction { - /** - * Func. - * - * @param arg - * the arg - * @return the t result - */ - TResult func(T arg); + /** + * Func. + * + * @param arg the arg + * @return the t result + */ + TResult func(T arg); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index eb330ef8b..e0081fed3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -10,50 +10,37 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.io.IOException; import java.net.URI; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * The Interface FuncDelegateInterface. - * - * @param - * the generic type - * @param - * the generic type - * @param - * the generic type - * @param - * the generic type + * + * @param the generic type + * @param the generic type + * @param the generic type + * @param the generic type */ interface IFunctionDelegate { + T3 extends ExchangeVersion, T4 extends URI, TResult> { - /** - * Func. - * - * @param arg1 - * the arg1 - * @param arg2 - * the arg2 - * @param arg3 - * the arg3 - * @return the t result - * @throws AutodiscoverLocalException - * the autodiscover local exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - TResult func(T1 arg1, T2 arg2, T3 arg3, T4 arg4) - throws AutodiscoverLocalException, XMLStreamException, IOException, - ServiceLocalException, Exception; + /** + * Func. + * + * @param arg1 the arg1 + * @param arg2 the arg2 + * @param arg3 the arg3 + * @return the t result + * @throws AutodiscoverLocalException the autodiscover local exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + TResult func(T1 arg1, T2 arg2, T3 arg3, T4 arg4) + throws AutodiscoverLocalException, XMLStreamException, IOException, + ServiceLocalException, Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java index 7f605bea9..77726dfcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java @@ -12,23 +12,19 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface GetObjectInstanceDelegateInterface. - * - * @param - * the generic type + * + * @param the generic type */ interface IGetObjectInstanceDelegate { - /** - * Gets the object instance delegate. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the object instance delegate - * @throws Exception - * the exception - */ - T getObjectInstanceDelegate(ExchangeService service, String xmlElementName) - throws Exception; + /** + * Gets the object instance delegate. + * + * @param service the service + * @param xmlElementName the xml element name + * @return the object instance delegate + * @throws Exception the exception + */ + T getObjectInstanceDelegate(ExchangeService service, String xmlElementName) + throws Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java index 4e20b5f96..4ddb5e1b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java @@ -15,12 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface IGetPropertyDefinitionCallback { - /** - * Gets the property definition callback. - * - * @param version - * the version - * @return the property definition callback - */ - PropertyDefinition getPropertyDefinitionCallback(ExchangeVersion version); -} \ No newline at end of file + /** + * Gets the property definition callback. + * + * @param version the version + * @return the property definition callback + */ + PropertyDefinition getPropertyDefinitionCallback(ExchangeVersion version); +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index d764937d0..29fe0fe43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -12,16 +12,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface ILazyMember. - * - * @param - * the generic type + * + * @param the generic type */ - abstract interface ILazyMember { +abstract interface ILazyMember { - /** - * Creates the instance. - * - * @return the t - */ - T createInstance(); + /** + * Creates the instance. + * + * @return the t + */ + T createInstance(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java index af934923f..978da782b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java @@ -13,22 +13,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Complex properties that implement that interface are owned by an instance of * EwsObject. For this reason, they also cannot be shared. - * */ interface IOwnedProperty { - /** - * Gets the owner. - * - * @return The owner. - */ - ServiceObject getOwner(); + /** + * Gets the owner. + * + * @return The owner. + */ + ServiceObject getOwner(); - /** - * Sets the owner. - * - * @param obj - * The owner. - */ - void setOwner(ServiceObject obj); + /** + * Sets the owner. + * + * @param obj The owner. + */ + void setOwner(ServiceObject obj); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java index 170e07394..20c985455 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java @@ -12,24 +12,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface IPredicate. - * - * @param - * The type of the object to compare. + * + * @param The type of the object to compare. */ interface IPredicate { - /** - * Represents the method that defines a - * set of criteria and determines whether - * the specified object meets those criteria. - * - * @param obj The object to compare against - * the criteria defined within the method represented - * by this delegate. - * @return true if obj meets the criteria - * defined within the method represented by this - * delegate; otherwise, false. - * @throws ServiceLocalException - */ - boolean predicate(T obj) throws ServiceLocalException; + /** + * Represents the method that defines a + * set of criteria and determines whether + * the specified object meets those criteria. + * + * @param obj The object to compare against + * the criteria defined within the method represented + * by this delegate. + * @return true if obj meets the criteria + * defined within the method represented by this + * delegate; otherwise, false. + * @throws ServiceLocalException + */ + boolean predicate(T obj) throws ServiceLocalException; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java index 26e7590c5..afdd62c94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java @@ -12,17 +12,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface PropertyBagChangedDelegateInterface. - * - * @param - * the generic type - */ + * + * @param the generic type + */ - interface IPropertyBagChangedDelegate { - /** - * Property bag changed. - * - * @param simplePropertyBag - * the simple property bag - */ - void propertyBagChanged(SimplePropertyBag simplePropertyBag); +interface IPropertyBagChangedDelegate { + /** + * Property bag changed. + * + * @param simplePropertyBag the simple property bag + */ + void propertyBagChanged(SimplePropertyBag simplePropertyBag); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java index 96c5022a4..bf88bb52e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java @@ -10,16 +10,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** +/** * Interface defined for types that can produce a string representation for use * in search filters. - * */ public interface ISearchStringProvider { - /** - * Get a string representation for using this instance in a search filter. - * - * @return String representation of instance. - */ - String getSearchString(); + /** + * Get a string representation for using this instance in a search filter. + * + * @return String representation of instance. + */ + String getSearchString(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java index 861e03107..7bc0cdc9a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java @@ -15,13 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface ISelfValidate { - /** - * Validate. - * - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - void validate() throws ServiceValidationException, Exception; + /** + * Validate. + * + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + void validate() throws ServiceValidationException, Exception; } diff --git a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java index 090343fe6..e3cb06927 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java @@ -15,12 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface IServiceObjectChangedDelegate { - /** - * Service object changed. - * - * @param serviceObject - * the service object - */ - void serviceObjectChanged(ServiceObject serviceObject); + /** + * Service object changed. + * + * @param serviceObject the service object + */ + void serviceObjectChanged(ServiceObject serviceObject); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java index 88d3eefcc..307a1dab1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java @@ -15,14 +15,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public interface ITraceListener { - /** - * Handles a trace message. - * - * @param traceType - * Type of trace message. - * @param traceMessage - * The trace message. - */ - void trace(String traceType, String traceMessage); + /** + * Handles a trace message. + * + * @param traceType Type of trace message. + * @param traceMessage The trace message. + */ + void trace(String traceType, String traceMessage); } diff --git a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java index b2836a74e..c5ac3b6e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java +++ b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java @@ -15,27 +15,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum IdFormat { - // The EWS Id format used in Exchange 2007 RTM. - /** The Ews legacy id. */ - EwsLegacyId, - - // The EWS Id format used in Exchange 2007 SP1 and above. - /** The Ews id. */ - EwsId, - - // The base64-encoded PR_ENTRYID property. - /** The Entry id. */ - EntryId, - - // The hexadecimal representation of the PR_ENTRYID property. - /** The Hex entry id. */ - HexEntryId, - - // The Store Id format. - /** The Store id. */ - StoreId, - - // The Outlook Web Access Id format. - /** The Owa id. */ - OwaId + // The EWS Id format used in Exchange 2007 RTM. + /** + * The Ews legacy id. + */ + EwsLegacyId, + + // The EWS Id format used in Exchange 2007 SP1 and above. + /** + * The Ews id. + */ + EwsId, + + // The base64-encoded PR_ENTRYID property. + /** + * The Entry id. + */ + EntryId, + + // The hexadecimal representation of the PR_ENTRYID property. + /** + * The Hex entry id. + */ + HexEntryId, + + // The Store Id format. + /** + * The Store id. + */ + StoreId, + + // The Outlook Web Access Id format. + /** + * The Owa id. + */ + OwaId } diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java index edde1336d..8b52f98ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java @@ -12,89 +12,83 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a dictionary of Instant Messaging addresses. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class ImAddressDictionary extends - DictionaryProperty { + DictionaryProperty { - /** - * Gets the field URI. - * - * @return Field URI. - */ - @Override - protected String getFieldURI() { - return "contacts:ImAddress"; - } + /** + * Gets the field URI. + * + * @return Field URI. + */ + @Override + protected String getFieldURI() { + return "contacts:ImAddress"; + } - /** - * Creates instance of dictionary entry. - * - * @return New instance. - */ - @Override - protected ImAddressEntry createEntryInstance() { - return new ImAddressEntry(); - } + /** + * Creates instance of dictionary entry. + * + * @return New instance. + */ + @Override + protected ImAddressEntry createEntryInstance() { + return new ImAddressEntry(); + } - /** - * Gets the Instant Messaging address at the specified key. - * - * @param key - * the key - * @return The Instant Messaging address at the specified key. - */ - public String getImAddressKey(ImAddressKey key) { - return this.getEntries().get(key).getImAddress(); - } + /** + * Gets the Instant Messaging address at the specified key. + * + * @param key the key + * @return The Instant Messaging address at the specified key. + */ + public String getImAddressKey(ImAddressKey key) { + return this.getEntries().get(key).getImAddress(); + } - /** - * Sets the im address key. - * - * @param key - * the key - * @param value - * the value - */ - public void setImAddressKey(ImAddressKey key, String value) { - if (value == null) { - this.internalRemove(key); - } else { - ImAddressEntry entry; + /** + * Sets the im address key. + * + * @param key the key + * @param value the value + */ + public void setImAddressKey(ImAddressKey key, String value) { + if (value == null) { + this.internalRemove(key); + } else { + ImAddressEntry entry; - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - entry.setImAddress(value); - this.changed(); - } else { - entry = new ImAddressEntry(key, value); - this.internalAdd(entry); - } - } - } + if (this.getEntries().containsKey(key)) { + entry = this.getEntries().get(key); + entry.setImAddress(value); + this.changed(); + } else { + entry = new ImAddressEntry(key, value); + this.internalAdd(entry); + } + } + } - /** - * Tries to get the IM address associated with the specified key. - * - * @param key - * the key - * @param outParam - * the out param - * @return true if the Dictionary contains an IM address associated with the - * specified key; otherwise, false. - */ - public boolean tryGetValue(ImAddressKey key, OutParam outParam) { - ImAddressEntry entry = null; + /** + * Tries to get the IM address associated with the specified key. + * + * @param key the key + * @param outParam the out param + * @return true if the Dictionary contains an IM address associated with the + * specified key; otherwise, false. + */ + public boolean tryGetValue(ImAddressKey key, OutParam outParam) { + ImAddressEntry entry = null; - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - outParam.setParam(entry.getImAddress()); + if (this.getEntries().containsKey(key)) { + entry = this.getEntries().get(key); + outParam.setParam(entry.getImAddress()); - return true; - } else { - outParam = null; - return false; - } - } + return true; + } else { + outParam = null; + return false; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java index 9caadb587..9776d9de5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java @@ -16,78 +16,72 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an entry of an ImAddressDictionary. */ @EditorBrowsable(state = EditorBrowsableState.Never) -public final class ImAddressEntry extends -DictionaryEntryProperty { +public final class ImAddressEntry extends + DictionaryEntryProperty { - /** The im address. */ - private String imAddress; + /** + * The im address. + */ + private String imAddress; - /** - * Initializes a new instance of the "ImAddressEntry" class. - */ - protected ImAddressEntry() { - super(ImAddressKey.class); - } + /** + * Initializes a new instance of the "ImAddressEntry" class. + */ + protected ImAddressEntry() { + super(ImAddressKey.class); + } - /** - * Initializes a new instance of the ="ImAddressEntry" class. - * - * @param key - * The key. - * @param imAddress - * The im address. - */ - protected ImAddressEntry(ImAddressKey key, String imAddress) { - super(ImAddressKey.class, key); - this.imAddress = imAddress; - } + /** + * Initializes a new instance of the ="ImAddressEntry" class. + * + * @param key The key. + * @param imAddress The im address. + */ + protected ImAddressEntry(ImAddressKey key, String imAddress) { + super(ImAddressKey.class, key); + this.imAddress = imAddress; + } - /** - * Gets the Instant Messaging address of the entry. - * - * @return imAddress - */ - public String getImAddress() { - return this.imAddress; - } + /** + * Gets the Instant Messaging address of the entry. + * + * @return imAddress + */ + public String getImAddress() { + return this.imAddress; + } - /** - * Sets the Instant Messaging address of the entry. - * - * @param value - * the new im address - */ - public void setImAddress(Object value) { + /** + * Sets the Instant Messaging address of the entry. + * + * @param value the new im address + */ + public void setImAddress(Object value) { - this.canSetFieldValue(this.imAddress, value); - } + this.canSetFieldValue(this.imAddress, value); + } - /** - * Reads the text value from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - @Override - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - this.imAddress = reader.readValue(); - } + /** + * Reads the text value from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + @Override + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + this.imAddress = reader.readValue(); + } - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeValue(this.imAddress, XmlElementNames.ImAddress); - } + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeValue(this.imAddress, XmlElementNames.ImAddress); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java index 7cf4cdb30..4c78e1a34 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java @@ -14,16 +14,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines Instant Messaging address entries for a contact. */ public enum ImAddressKey { - // The first Instant Messaging address. - /** The Im address1. */ - ImAddress1, + // The first Instant Messaging address. + /** + * The Im address1. + */ + ImAddress1, - // The second Instant Messaging address. - /** The Im address2. */ - ImAddress2, + // The second Instant Messaging address. + /** + * The Im address2. + */ + ImAddress2, - // The third Instant Messaging address. - /** The Im address3. */ - ImAddress3 + // The third Instant Messaging address. + /** + * The Im address3. + */ + ImAddress3 } diff --git a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java index 3bbcccf85..a5ccc4c7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java @@ -12,105 +12,102 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an impersonated user Id. - * */ public final class ImpersonatedUserId { - /** The id type. */ - private ConnectingIdType idType; - - /** The id. */ - private String id; - - /** - * Instantiates a new impersonated user id. - */ - public ImpersonatedUserId() { - } - - /** - * Initializes a new instance of ConnectingId. - * - * @param idType - * The type of this Id. - * @param id - * The user Id. - */ - public ImpersonatedUserId(ConnectingIdType idType, String id) { - this(); - this.idType = idType; - this.id = id; - } - - /** - * Writes to XML. - * - * @param writer - * The writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - if (this.id == null || this.id.isEmpty()) { - throw new Exception(Strings.IdPropertyMustBeSet); - } - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.ExchangeImpersonation); - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.ConnectingSID); - - // For 2007 SP1, use PrimarySmtpAddress for type SmtpAddress - String connectingIdTypeLocalName = (this.idType == - ConnectingIdType.SmtpAddress) && - (writer.getService().getRequestedServerVersion() == - ExchangeVersion.Exchange2007_SP1) ? - XmlElementNames.PrimarySmtpAddress : - this.getIdType().toString(); - - writer.writeElementValue(XmlNamespace.Types, connectingIdTypeLocalName, - this.id); - - writer.writeEndElement(); // ConnectingSID - writer.writeEndElement(); // ExchangeImpersonation - } - - /** - * Gets the type of the Id. - * - * @return the id type - */ - public ConnectingIdType getIdType() { - return idType; - } - - /** - * Sets the id type. - * - * @param idType - * the new id type - */ - public void setIdType(ConnectingIdType idType) { - this.idType = idType; - } - - /** - * Gets the user Id. - * - * @return the id - */ - public String getId() { - return id; - } - - /** - * Sets the id. - * - * @param id - * the new id - */ - public void setId(String id) { - this.id = id; - } + /** + * The id type. + */ + private ConnectingIdType idType; + + /** + * The id. + */ + private String id; + + /** + * Instantiates a new impersonated user id. + */ + public ImpersonatedUserId() { + } + + /** + * Initializes a new instance of ConnectingId. + * + * @param idType The type of this Id. + * @param id The user Id. + */ + public ImpersonatedUserId(ConnectingIdType idType, String id) { + this(); + this.idType = idType; + this.id = id; + } + + /** + * Writes to XML. + * + * @param writer The writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + if (this.id == null || this.id.isEmpty()) { + throw new Exception(Strings.IdPropertyMustBeSet); + } + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.ExchangeImpersonation); + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.ConnectingSID); + + // For 2007 SP1, use PrimarySmtpAddress for type SmtpAddress + String connectingIdTypeLocalName = (this.idType == + ConnectingIdType.SmtpAddress) && + (writer.getService().getRequestedServerVersion() == + ExchangeVersion.Exchange2007_SP1) ? + XmlElementNames.PrimarySmtpAddress : + this.getIdType().toString(); + + writer.writeElementValue(XmlNamespace.Types, connectingIdTypeLocalName, + this.id); + + writer.writeEndElement(); // ConnectingSID + writer.writeEndElement(); // ExchangeImpersonation + } + + /** + * Gets the type of the Id. + * + * @return the id type + */ + public ConnectingIdType getIdType() { + return idType; + } + + /** + * Sets the id type. + * + * @param idType the new id type + */ + public void setIdType(ConnectingIdType idType) { + this.idType = idType; + } + + /** + * Gets the user Id. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Sets the id. + * + * @param id the new id + */ + public void setId(String id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Importance.java b/src/main/java/microsoft/exchange/webservices/data/Importance.java index 4d61c646d..08ab8a2e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Importance.java +++ b/src/main/java/microsoft/exchange/webservices/data/Importance.java @@ -15,15 +15,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum Importance { - // Low importance. - /** The Low. */ - Low, + // Low importance. + /** + * The Low. + */ + Low, - // Normal importance. - /** The Normal. */ - Normal, + // Normal importance. + /** + * The Normal. + */ + Normal, - // High importance. - /** The High. */ - High + // High importance. + /** + * The High. + */ + High } diff --git a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java index e5c8e0dcd..bf1dbcf43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java @@ -12,134 +12,127 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an indexed property definition. - * - * */ public final class IndexedPropertyDefinition extends -ServiceObjectPropertyDefinition { + ServiceObjectPropertyDefinition { - // Index attribute of IndexedFieldURI element. - /** The index. */ - private String index; + // Index attribute of IndexedFieldURI element. + /** + * The index. + */ + private String index; - /** - * Initializes a new instance of the IndexedPropertyDefinition class. - * - * @param uri - * The FieldURI attribute of the IndexedFieldURI element. - * @param index - * The Index attribute of the IndexedFieldURI element. - */ - protected IndexedPropertyDefinition(String uri, String index) { - super(uri); - this.index = index; - } + /** + * Initializes a new instance of the IndexedPropertyDefinition class. + * + * @param uri The FieldURI attribute of the IndexedFieldURI element. + * @param index The Index attribute of the IndexedFieldURI element. + */ + protected IndexedPropertyDefinition(String uri, String index) { + super(uri); + this.index = index; + } - /** - * Determines whether two specified instances of IndexedPropertyDefinition - * are equal. - * - * @param idxPropDef1 - * First indexed property definition. - * @param idxPropDef2 - * Second indexed property definition. - * @return True if indexed property definitions are equal. - */ - protected static boolean isEqualTo(IndexedPropertyDefinition idxPropDef1, - IndexedPropertyDefinition idxPropDef2) { - return (idxPropDef1 == idxPropDef2) || - (idxPropDef1 != null && - idxPropDef2 != null && - idxPropDef1.getUri().equalsIgnoreCase( - idxPropDef2.getUri()) && idxPropDef1.index - .equalsIgnoreCase(idxPropDef2.index)); - } + /** + * Determines whether two specified instances of IndexedPropertyDefinition + * are equal. + * + * @param idxPropDef1 First indexed property definition. + * @param idxPropDef2 Second indexed property definition. + * @return True if indexed property definitions are equal. + */ + protected static boolean isEqualTo(IndexedPropertyDefinition idxPropDef1, + IndexedPropertyDefinition idxPropDef2) { + return (idxPropDef1 == idxPropDef2) || + (idxPropDef1 != null && + idxPropDef2 != null && + idxPropDef1.getUri().equalsIgnoreCase( + idxPropDef2.getUri()) && idxPropDef1.index + .equalsIgnoreCase(idxPropDef2.index)); + } - /** - * Gets the index of the property. - * - * @return The index string of the property. - */ - public String getIndex() { - return this.index; - } + /** + * Gets the index of the property. + * + * @return The index string of the property. + */ + public String getIndex() { + return this.index; + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this - .getIndex()); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this + .getIndex()); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IndexedFieldURI; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IndexedFieldURI; + } - /** - * Gets the property definition's printable name. - * - * @return The property definition's printable name. - */ - @Override - protected String getPrintableName() { - return String.format("%s:%s", this.getUri(), this.getIndex()); - } + /** + * Gets the property definition's printable name. + * + * @return The property definition's printable name. + */ + @Override + protected String getPrintableName() { + return String.format("%s:%s", this.getUri(), this.getIndex()); + } - /** - * Determines whether a given indexed property definition is equal to this - * indexed property definition. - * - * @param obj The - * object to check for equality. - * @return True if the properties definitions define the same indexed - * property. - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj instanceof IndexedPropertyDefinition) { - return IndexedPropertyDefinition.isEqualTo( - (IndexedPropertyDefinition) obj, this); - } else { - return false; - } - } + /** + * Determines whether a given indexed property definition is equal to this + * indexed property definition. + * + * @param obj The + * object to check for equality. + * @return True if the properties definitions define the same indexed + * property. + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj instanceof IndexedPropertyDefinition) { + return IndexedPropertyDefinition.isEqualTo( + (IndexedPropertyDefinition) obj, this); + } else { + return false; + } + } - /** - * Serves as a hash function for a particular type. - * - * @return A hash code for the current System.Object - */ - @Override - public int hashCode() { - return this.getUri().hashCode() ^ this.getIndex().hashCode(); - } + /** + * Serves as a hash function for a particular type. + * + * @return A hash code for the current System.Object + */ + @Override + public int hashCode() { + return this.getUri().hashCode() ^ this.getIndex().hashCode(); + } - /** - * Gets the property type. - */ - @Override - public Class getType() - { - return String.class; - } + /** + * Gets the property type. + */ + @Override + public Class getType() { + return String.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java index c9ec2b003..d3144355b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java @@ -17,58 +17,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class IntPropertyDefinition extends GenericPropertyDefinition { - /** - * Initializes a new instance of the "IntPropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected IntPropertyDefinition(String xmlElementName, String uri, - ExchangeVersion version) { - super(Integer.class, xmlElementName, uri, version); - } + /** + * Initializes a new instance of the "IntPropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected IntPropertyDefinition(String xmlElementName, String uri, + ExchangeVersion version) { + super(Integer.class, xmlElementName, uri, version); + } - /** - * Initializes a new instance of the "IntPropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected IntPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(Integer.class, xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the "IntPropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected IntPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(Integer.class, xmlElementName, uri, flags, version); + } + + /** + * Initializes a new instance of the "IntPropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + * @param isNullable Indicates that this property definition is for a nullable + * property. + */ + protected IntPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version, + boolean isNullable) { + super(Integer.class, xmlElementName, uri, flags, version, isNullable); + } - /** - * Initializes a new instance of the "IntPropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - * @param isNullable - * Indicates that this property definition is for a nullable - * property. - */ - protected IntPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version, - boolean isNullable) { - super(Integer.class, xmlElementName, uri, flags, version, isNullable); - } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java index 3e775afe7..c14999c5b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java @@ -12,122 +12,115 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; -/*** +/** * Defines the EwsXmlReader class. */ public final class InternetMessageHeader extends ComplexProperty { - /** The name. */ - private String name; - - /** The value. */ - private String value; - - /** - * Initializes a new instance of the EwsXmlReader class. - */ - protected InternetMessageHeader() { - } - - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.name = reader.readAttributeValue(XmlAttributeNames.HeaderName); - } - - /** - * Reads the text value from XML. - * - * @param reader - * the reader - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - this.value = reader.readValue(); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.HeaderName, this.name); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeValue(this.value, this.name); - } - - /** - * Obtains a string representation of the header. - * - * @return The string representation of the header. - */ - public String toString() { - return String.format("%s=%s", this.name, this.value); - } - - /** - * The name of the header. - * - * @param name - * the new name - */ - public void setName(String name) { - this.name = name; - } - - /** - * Gets the name. - * - * @return the name - */ - public String getName() { - return name; - } - - /** - * The value of the header. - * - * @return the value - */ - public String getValue() { - return value; - } - - /** - * Sets the value. - * - * @param value - * the value to set - */ - public void setValue(String value) { - this.value = value; - } + /** + * The name. + */ + private String name; + + /** + * The value. + */ + private String value; + + /** + * Initializes a new instance of the EwsXmlReader class. + */ + protected InternetMessageHeader() { + } + + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.name = reader.readAttributeValue(XmlAttributeNames.HeaderName); + } + + /** + * Reads the text value from XML. + * + * @param reader the reader + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + this.value = reader.readValue(); + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.HeaderName, this.name); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeValue(this.value, this.name); + } + + /** + * Obtains a string representation of the header. + * + * @return The string representation of the header. + */ + public String toString() { + return String.format("%s=%s", this.name, this.value); + } + + /** + * The name of the header. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * The value of the header. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Sets the value. + * + * @param value the value to set + */ + public void setValue(String value) { + this.value = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java index a314a143c..885e328f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java @@ -15,58 +15,55 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class InternetMessageHeaderCollection extends - ComplexPropertyCollection { - /** - *Initializes a new instance of the "InternetMessageHeaderCollection" - * class. - */ - protected InternetMessageHeaderCollection() { - super(); - } + ComplexPropertyCollection { + /** + * Initializes a new instance of the "InternetMessageHeaderCollection" + * class. + */ + protected InternetMessageHeaderCollection() { + super(); + } - /** - * Creates the complex property. - * - * @param xmlElementName - * Name of the XML element. - * @return InternetMessageHeader instance - */ - @Override - protected InternetMessageHeader createComplexProperty( - String xmlElementName) { - return new InternetMessageHeader(); - } + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element. + * @return InternetMessageHeader instance + */ + @Override + protected InternetMessageHeader createComplexProperty( + String xmlElementName) { + return new InternetMessageHeader(); + } - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * The complex property. - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName( - InternetMessageHeader complexProperty) { - return XmlElementNames.InternetMessageHeader; - } + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty The complex property. + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName( + InternetMessageHeader complexProperty) { + return XmlElementNames.InternetMessageHeader; + } - /** - * Find a specific header in the collection. - * - * @param name - * The name of the header to locate. - * @return An InternetMessageHeader representing the header with the - * specified name; null if no header with the specified name was - * found. - */ - public InternetMessageHeader find(String name) { - for (InternetMessageHeader internetMessageHeader : this) { - if (name.compareTo(internetMessageHeader.getName()) == 0 && - name.equalsIgnoreCase(internetMessageHeader.getName())) { - return internetMessageHeader; - } - } - return null; - } + /** + * Find a specific header in the collection. + * + * @param name The name of the header to locate. + * @return An InternetMessageHeader representing the header with the + * specified name; null if no header with the specified name was + * found. + */ + public InternetMessageHeader find(String name) { + for (InternetMessageHeader internetMessageHeader : this) { + if (name.compareTo(internetMessageHeader.getName()) == 0 && + name.equalsIgnoreCase(internetMessageHeader.getName())) { + return internetMessageHeader; + } + } + return null; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index c31e8310a..916cdb920 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -15,20 +15,19 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class InvalidOperationException extends Exception { - /** - * Instantiates a new invalid operation exception. - */ - public InvalidOperationException() { + /** + * Instantiates a new invalid operation exception. + */ + public InvalidOperationException() { - } + } - /** - * Instantiates a new invalid operation exception. - * - * @param strMessage - * the str message - */ - public InvalidOperationException(String strMessage) { - super(strMessage); - } + /** + * Instantiates a new invalid operation exception. + * + * @param strMessage the str message + */ + public InvalidOperationException(String strMessage) { + super(strMessage); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Item.java b/src/main/java/microsoft/exchange/webservices/data/Item.java index d259db878..348cba32d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Item.java +++ b/src/main/java/microsoft/exchange/webservices/data/Item.java @@ -18,1272 +18,1152 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a generic item. Properties available on items are defined in the * ItemSchema class. - * */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.Item) public class Item extends ServiceObject { - /** The parent attachment. */ - private ItemAttachment parentAttachment; - - /** - * Initializes an unsaved local instance of . To bind to - * an existing item, use Item.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected Item(ExchangeService service) throws Exception { - super(service); - } - - /** - * Initializes a new instance of the item class. - * - * @param parentAttachment - * The parent attachment. - * @throws Exception - * the exception - */ - protected Item(ItemAttachment parentAttachment) throws Exception { - this(parentAttachment.getOwner().getService()); - EwsUtilities.EwsAssert(parentAttachment != null, "Item.ctor", - "parentAttachment is null"); - - this.parentAttachment = parentAttachment; - } - - /** - * Binds to an existing item, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * The service to use to bind to the item. - * @param id - * The Id of the item to bind to. - * @param propertySet - * The set of properties to load. - * @return An Item instance representing the item corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Item bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(Item.class, id, propertySet); - } - - /** - * Binds to an existing item, whatever its actual type is, and loads the - * specified set of properties. Calling this method results in a call to - * EWS. - * - * @param service - * The service to use to bind to the item. - * @param id - * The Id of the item to bind to. - * @return An Item instance representing the item corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Item bind(ExchangeService service, ItemId id) - throws Exception { - return Item.bind(service, id, PropertySet.getFirstClassProperties()); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ItemSchema.getInstance(); - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Throws exception if this is attachment. - * - * @throws InvalidOperationException - * the invalid operation exception - */ - protected void throwIfThisIsAttachment() throws InvalidOperationException { - if (this.isAttachment()) { - throw new InvalidOperationException( - Strings.OperationDoesNotSupportAttachments); - } - } - - /** - * The property definition for the Id of this object. - * - * @return A PropertyDefinition instance. - */ - protected PropertyDefinition getIdPropertyDefinition() { - return ItemSchema.Id; - } - - /** - * The property definition for the Id of this object. - * - * @param propertySet - * the property set - * @throws Exception - * the exception - */ - @Override - protected void internalLoad(PropertySet propertySet) throws Exception { - this.throwIfThisIsNew(); - this.throwIfThisIsAttachment(); - - ArrayList itemArry = new ArrayList(); - itemArry.add(this); - this.getService().internalLoadPropertiesForItems(itemArry, propertySet, - ServiceErrorHandling.ThrowOnError); - } - - /** - * Deletes the object. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) - throws ServiceLocalException, Exception { - this.throwIfThisIsNew(); - this.throwIfThisIsAttachment(); - - // If sendCancellationsMode is null, use the default value that's - // appropriate for item type. - if (sendCancellationsMode == null) { - sendCancellationsMode = this.getDefaultSendCancellationsMode(); - } - - // If affectedTaskOccurrences is null, use the default value that's - // appropriate for item type. - if (affectedTaskOccurrences == null) { - affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); - } - - this.getService().deleteItem(this.getId(), deleteMode, - sendCancellationsMode, affectedTaskOccurrences); - } - - /** - * Create item. - * - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @param sendInvitationsMode - * the send invitations mode - * @throws Exception - * the exception - */ - protected void internalCreate(FolderId parentFolderId, - MessageDisposition messageDisposition, - SendInvitationsMode sendInvitationsMode) throws Exception { - this.throwIfThisIsNotNew(); - this.throwIfThisIsAttachment(); - - if (this.isNew() || this.isDirty()) { - this.getService().createItem( - this, - parentFolderId, - messageDisposition, - sendInvitationsMode != null ? sendInvitationsMode : this - .getDefaultSendInvitationsMode()); - - this.getAttachments().save(); - } - } - - /** - * Update item. - * - * @param parentFolderId - * the parent folder id - * @param conflictResolutionMode - * the conflict resolution mode - * @param messageDisposition - * the message disposition - * @param sendInvitationsOrCancellationsMode - * the send invitations or cancellations mode - * @return Updated item. - * @throws ServiceResponseException - * the service response exception - * @throws Exception - * the exception - */ - protected Item internalUpdate( - FolderId parentFolderId, - ConflictResolutionMode conflictResolutionMode, - MessageDisposition messageDisposition, - SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) - throws ServiceResponseException, Exception { - this.throwIfThisIsNew(); - this.throwIfThisIsAttachment(); - - Item returnedItem = null; - - if (this.isDirty() && this.getPropertyBag().getIsUpdateCallNecessary()) { - returnedItem = this - .getService() - .updateItem( - this, - parentFolderId, - conflictResolutionMode, - messageDisposition, - sendInvitationsOrCancellationsMode != null ? sendInvitationsOrCancellationsMode - : this - .getDefaultSendInvitationsOrCancellationsMode()); - } - if (this.hasUnprocessedAttachmentChanges()) { - // Validation of the item and its attachments occurs in - // UpdateItems. - // If we didn't update the item we still need to validate - // attachments. - this.getAttachments().validate(); - this.getAttachments().save(); - - } - - return returnedItem; - } - - /** - * Gets a value indicating whether this instance has unprocessed attachment - * collection changes. - * - * @throws ServiceLocalException - */ - protected boolean hasUnprocessedAttachmentChanges() - throws ServiceLocalException { - return this.getAttachments().hasUnprocessedChanges(); - - } - - /** - * Gets the parent attachment of this item. - * - * @return the parent attachment - */ - protected ItemAttachment getParentAttachment() { - return this.parentAttachment; - } - - /** - * Gets Id of the root item for this item. - * - * @return the root item id - * @throws ServiceLocalException - * the service local exception - */ - protected ItemId getRootItemId() throws ServiceLocalException { - - if (this.isAttachment()) { - return this.getParentAttachment().getOwner().getRootItemId(); - } else { - return this.getId(); - } - } - - /** - * Deletes the item. Calling this method results in a call to EWS. - * - * @param deleteMode - * the delete mode - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void delete(DeleteMode deleteMode) throws ServiceLocalException, - Exception { - this.internalDelete(deleteMode, null, null); - } - - /** - * Saves this item in a specific folder. Calling this method results in at - * least one call to EWS. Mutliple calls to EWS might be made if attachments - * have been added. - * - * @param parentFolderId - * the parent folder id - * @throws Exception - * the exception - */ - public void save(FolderId parentFolderId) throws Exception { - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - this.internalCreate(parentFolderId, MessageDisposition.SaveOnly, null); - } - - /** - * Saves this item in a specific folder. Calling this method results in at - * least one call to EWS. Mutliple calls to EWS might be made if attachments - * have been added. - * - * @param parentFolderName - * the parent folder name - * @throws Exception - * the exception - */ - public void save(WellKnownFolderName parentFolderName) throws Exception { - this.internalCreate(new FolderId(parentFolderName), - MessageDisposition.SaveOnly, null); - } - - /** - * Saves this item in the default folder based on the item's type (for - * example, an e-mail message is saved to the Drafts folder). Calling this - * method results in at least one call to EWS. Mutliple calls to EWS might - * be made if attachments have been added. - * - * @throws Exception - * the exception - */ - public void save() throws Exception { - this.internalCreate(null, MessageDisposition.SaveOnly, null); - } - - /** - * Applies the local changes that have been made to this item. Calling this - * method results in at least one call to EWS. Mutliple calls to EWS might - * be made if attachments have been added or removed. - * - * @param conflictResolutionMode - * the conflict resolution mode - * @throws ServiceResponseException - * the service response exception - * @throws Exception - * the exception - */ - public void update(ConflictResolutionMode conflictResolutionMode) - throws ServiceResponseException, Exception { - this.internalUpdate(null /* parentFolder */, conflictResolutionMode, - MessageDisposition.SaveOnly, null); - } - - /** - * Creates a copy of this item in the specified folder. Calling this method - * results in a call to EWS. Copy returns null if the copy operation is - * across two mailboxes or between a mailbox and a public folder. - * - * @param destinationFolderId - * the destination folder id - * @return The copy of this item. - * @throws Exception - * the exception - */ - public Item copy(FolderId destinationFolderId) throws Exception { - - this.throwIfThisIsNew(); - this.throwIfThisIsAttachment(); - - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - - return this.getService().copyItem(this.getId(), destinationFolderId); - } - - /** - * Creates a copy of this item in the specified folder. Calling this method - * results in a call to EWS. Copy returns null if the copy operation is - * across two mailboxes or between a mailbox and a public folder. - * - * @param destinationFolderName - * the destination folder name - * @return The copy of this item. - * @throws Exception - * the exception - */ - public Item copy(WellKnownFolderName destinationFolderName) - throws Exception { - return this.copy(new FolderId(destinationFolderName)); - } - - /** - * Moves this item to a the specified folder. Calling this method results in - * a call to EWS. Move returns null if the move operation is across two - * mailboxes or between a mailbox and a public folder. - * - * @param destinationFolderId - * the destination folder id - * @return The moved copy of this item. - * @throws Exception - * the exception - */ - public Item move(FolderId destinationFolderId) throws Exception { - this.throwIfThisIsNew(); - this.throwIfThisIsAttachment(); - - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - - return this.getService().moveItem(this.getId(), destinationFolderId); - } - - /** - * Moves this item to a the specified folder. Calling this method results in - * a call to EWS. Move returns null if the move operation is across two - * mailboxes or between a mailbox and a public folder. - * - * @param destinationFolderName - * the destination folder name - * @return The moved copy of this item. - * @throws Exception - * the exception - */ - public Item move(WellKnownFolderName destinationFolderName) - throws Exception { - return this.move(new FolderId(destinationFolderName)); - } - - /** - * Sets the extended property. - * - * @param extendedPropertyDefinition - * the extended property definition - * @param value - * the value - * @throws Exception - * the exception - */ - public void setExtendedProperty( - ExtendedPropertyDefinition extendedPropertyDefinition, Object value) - throws Exception { - this.getExtendedProperties().setExtendedProperty( - extendedPropertyDefinition, value); - } - - /** - * Removes an extended property. - * - * @param extendedPropertyDefinition - * the extended property definition - * @return True if property was removed. - * @throws Exception - * the exception - */ - public boolean removeExtendedProperty( - ExtendedPropertyDefinition extendedPropertyDefinition) - throws Exception { - return this.getExtendedProperties().removeExtendedProperty( - extendedPropertyDefinition); - } - - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - this.getAttachments().validate(); - } - - /** - * Gets a value indicating whether a time zone SOAP header should be emitted - * in a CreateItem or UpdateItem request so this item can be property saved - * or updated. - * - * @param isUpdateOperation - * Indicates whether the operation being petrformed is an update - * operation. - * @return true if a time zone SOAP header should be emitted; - * otherwise,false - */ - protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) - throws Exception { - // Starting E14SP2, attachment will be sent along with CreateItem - // requests. - // if the attachment used to require the Timezone header, CreateItem - // request should do so too. - // - - if (!isUpdateOperation - && (this.getService().getRequestedServerVersion().ordinal() >= ExchangeVersion.Exchange2010_SP2 - .ordinal())) { - - ListIterator items = this.getAttachments().getItems() - .listIterator(); - - while (items.hasNext()) { - - ItemAttachment itemAttachment = (ItemAttachment) items.next(); - - if ((itemAttachment.getItem() != null) - && itemAttachment - .getItem() - .getIsTimeZoneHeaderRequired(false /* isUpdateOperation */)) { - return true; - } - } - } + /** + * The parent attachment. + */ + private ItemAttachment parentAttachment; + + /** + * Initializes an unsaved local instance of . To bind to + * an existing item, use Item.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + protected Item(ExchangeService service) throws Exception { + super(service); + } + + /** + * Initializes a new instance of the item class. + * + * @param parentAttachment The parent attachment. + * @throws Exception the exception + */ + protected Item(ItemAttachment parentAttachment) throws Exception { + this(parentAttachment.getOwner().getService()); + EwsUtilities.EwsAssert(parentAttachment != null, "Item.ctor", + "parentAttachment is null"); + + this.parentAttachment = parentAttachment; + } + + /** + * Binds to an existing item, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service The service to use to bind to the item. + * @param id The Id of the item to bind to. + * @param propertySet The set of properties to load. + * @return An Item instance representing the item corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Item bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(Item.class, id, propertySet); + } + + /** + * Binds to an existing item, whatever its actual type is, and loads the + * specified set of properties. Calling this method results in a call to + * EWS. + * + * @param service The service to use to bind to the item. + * @param id The Id of the item to bind to. + * @return An Item instance representing the item corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Item bind(ExchangeService service, ItemId id) + throws Exception { + return Item.bind(service, id, PropertySet.getFirstClassProperties()); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ItemSchema.getInstance(); + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Throws exception if this is attachment. + * + * @throws InvalidOperationException the invalid operation exception + */ + protected void throwIfThisIsAttachment() throws InvalidOperationException { + if (this.isAttachment()) { + throw new InvalidOperationException( + Strings.OperationDoesNotSupportAttachments); + } + } + + /** + * The property definition for the Id of this object. + * + * @return A PropertyDefinition instance. + */ + protected PropertyDefinition getIdPropertyDefinition() { + return ItemSchema.Id; + } + + /** + * The property definition for the Id of this object. + * + * @param propertySet the property set + * @throws Exception the exception + */ + @Override + protected void internalLoad(PropertySet propertySet) throws Exception { + this.throwIfThisIsNew(); + this.throwIfThisIsAttachment(); + + ArrayList itemArry = new ArrayList(); + itemArry.add(this); + this.getService().internalLoadPropertiesForItems(itemArry, propertySet, + ServiceErrorHandling.ThrowOnError); + } + + /** + * Deletes the object. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) + throws ServiceLocalException, Exception { + this.throwIfThisIsNew(); + this.throwIfThisIsAttachment(); + + // If sendCancellationsMode is null, use the default value that's + // appropriate for item type. + if (sendCancellationsMode == null) { + sendCancellationsMode = this.getDefaultSendCancellationsMode(); + } + + // If affectedTaskOccurrences is null, use the default value that's + // appropriate for item type. + if (affectedTaskOccurrences == null) { + affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); + } + + this.getService().deleteItem(this.getId(), deleteMode, + sendCancellationsMode, affectedTaskOccurrences); + } + + /** + * Create item. + * + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @param sendInvitationsMode the send invitations mode + * @throws Exception the exception + */ + protected void internalCreate(FolderId parentFolderId, + MessageDisposition messageDisposition, + SendInvitationsMode sendInvitationsMode) throws Exception { + this.throwIfThisIsNotNew(); + this.throwIfThisIsAttachment(); + + if (this.isNew() || this.isDirty()) { + this.getService().createItem( + this, + parentFolderId, + messageDisposition, + sendInvitationsMode != null ? sendInvitationsMode : this + .getDefaultSendInvitationsMode()); + + this.getAttachments().save(); + } + } + + /** + * Update item. + * + * @param parentFolderId the parent folder id + * @param conflictResolutionMode the conflict resolution mode + * @param messageDisposition the message disposition + * @param sendInvitationsOrCancellationsMode the send invitations or cancellations mode + * @return Updated item. + * @throws ServiceResponseException the service response exception + * @throws Exception the exception + */ + protected Item internalUpdate( + FolderId parentFolderId, + ConflictResolutionMode conflictResolutionMode, + MessageDisposition messageDisposition, + SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) + throws ServiceResponseException, Exception { + this.throwIfThisIsNew(); + this.throwIfThisIsAttachment(); + + Item returnedItem = null; + + if (this.isDirty() && this.getPropertyBag().getIsUpdateCallNecessary()) { + returnedItem = this + .getService() + .updateItem( + this, + parentFolderId, + conflictResolutionMode, + messageDisposition, + sendInvitationsOrCancellationsMode != null ? sendInvitationsOrCancellationsMode + : this + .getDefaultSendInvitationsOrCancellationsMode()); + } + if (this.hasUnprocessedAttachmentChanges()) { + // Validation of the item and its attachments occurs in + // UpdateItems. + // If we didn't update the item we still need to validate + // attachments. + this.getAttachments().validate(); + this.getAttachments().save(); + + } + + return returnedItem; + } + + /** + * Gets a value indicating whether this instance has unprocessed attachment + * collection changes. + * + * @throws ServiceLocalException + */ + protected boolean hasUnprocessedAttachmentChanges() + throws ServiceLocalException { + return this.getAttachments().hasUnprocessedChanges(); + + } + + /** + * Gets the parent attachment of this item. + * + * @return the parent attachment + */ + protected ItemAttachment getParentAttachment() { + return this.parentAttachment; + } + + /** + * Gets Id of the root item for this item. + * + * @return the root item id + * @throws ServiceLocalException the service local exception + */ + protected ItemId getRootItemId() throws ServiceLocalException { + + if (this.isAttachment()) { + return this.getParentAttachment().getOwner().getRootItemId(); + } else { + return this.getId(); + } + } + + /** + * Deletes the item. Calling this method results in a call to EWS. + * + * @param deleteMode the delete mode + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void delete(DeleteMode deleteMode) throws ServiceLocalException, + Exception { + this.internalDelete(deleteMode, null, null); + } + + /** + * Saves this item in a specific folder. Calling this method results in at + * least one call to EWS. Mutliple calls to EWS might be made if attachments + * have been added. + * + * @param parentFolderId the parent folder id + * @throws Exception the exception + */ + public void save(FolderId parentFolderId) throws Exception { + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + this.internalCreate(parentFolderId, MessageDisposition.SaveOnly, null); + } + + /** + * Saves this item in a specific folder. Calling this method results in at + * least one call to EWS. Mutliple calls to EWS might be made if attachments + * have been added. + * + * @param parentFolderName the parent folder name + * @throws Exception the exception + */ + public void save(WellKnownFolderName parentFolderName) throws Exception { + this.internalCreate(new FolderId(parentFolderName), + MessageDisposition.SaveOnly, null); + } + + /** + * Saves this item in the default folder based on the item's type (for + * example, an e-mail message is saved to the Drafts folder). Calling this + * method results in at least one call to EWS. Mutliple calls to EWS might + * be made if attachments have been added. + * + * @throws Exception the exception + */ + public void save() throws Exception { + this.internalCreate(null, MessageDisposition.SaveOnly, null); + } + + /** + * Applies the local changes that have been made to this item. Calling this + * method results in at least one call to EWS. Mutliple calls to EWS might + * be made if attachments have been added or removed. + * + * @param conflictResolutionMode the conflict resolution mode + * @throws ServiceResponseException the service response exception + * @throws Exception the exception + */ + public void update(ConflictResolutionMode conflictResolutionMode) + throws ServiceResponseException, Exception { + this.internalUpdate(null /* parentFolder */, conflictResolutionMode, + MessageDisposition.SaveOnly, null); + } + + /** + * Creates a copy of this item in the specified folder. Calling this method + * results in a call to EWS. Copy returns null if the copy operation is + * across two mailboxes or between a mailbox and a public folder. + * + * @param destinationFolderId the destination folder id + * @return The copy of this item. + * @throws Exception the exception + */ + public Item copy(FolderId destinationFolderId) throws Exception { + + this.throwIfThisIsNew(); + this.throwIfThisIsAttachment(); + + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + + return this.getService().copyItem(this.getId(), destinationFolderId); + } + + /** + * Creates a copy of this item in the specified folder. Calling this method + * results in a call to EWS. Copy returns null if the copy operation is + * across two mailboxes or between a mailbox and a public folder. + * + * @param destinationFolderName the destination folder name + * @return The copy of this item. + * @throws Exception the exception + */ + public Item copy(WellKnownFolderName destinationFolderName) + throws Exception { + return this.copy(new FolderId(destinationFolderName)); + } + + /** + * Moves this item to a the specified folder. Calling this method results in + * a call to EWS. Move returns null if the move operation is across two + * mailboxes or between a mailbox and a public folder. + * + * @param destinationFolderId the destination folder id + * @return The moved copy of this item. + * @throws Exception the exception + */ + public Item move(FolderId destinationFolderId) throws Exception { + this.throwIfThisIsNew(); + this.throwIfThisIsAttachment(); + + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + + return this.getService().moveItem(this.getId(), destinationFolderId); + } + + /** + * Moves this item to a the specified folder. Calling this method results in + * a call to EWS. Move returns null if the move operation is across two + * mailboxes or between a mailbox and a public folder. + * + * @param destinationFolderName the destination folder name + * @return The moved copy of this item. + * @throws Exception the exception + */ + public Item move(WellKnownFolderName destinationFolderName) + throws Exception { + return this.move(new FolderId(destinationFolderName)); + } + + /** + * Sets the extended property. + * + * @param extendedPropertyDefinition the extended property definition + * @param value the value + * @throws Exception the exception + */ + public void setExtendedProperty( + ExtendedPropertyDefinition extendedPropertyDefinition, Object value) + throws Exception { + this.getExtendedProperties().setExtendedProperty( + extendedPropertyDefinition, value); + } + + /** + * Removes an extended property. + * + * @param extendedPropertyDefinition the extended property definition + * @return True if property was removed. + * @throws Exception the exception + */ + public boolean removeExtendedProperty( + ExtendedPropertyDefinition extendedPropertyDefinition) + throws Exception { + return this.getExtendedProperties().removeExtendedProperty( + extendedPropertyDefinition); + } + + /** + * Validates this instance. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + this.getAttachments().validate(); + } + + /** + * Gets a value indicating whether a time zone SOAP header should be emitted + * in a CreateItem or UpdateItem request so this item can be property saved + * or updated. + * + * @param isUpdateOperation Indicates whether the operation being petrformed is an update + * operation. + * @return true if a time zone SOAP header should be emitted; + * otherwise,false + */ + protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) + throws Exception { + // Starting E14SP2, attachment will be sent along with CreateItem + // requests. + // if the attachment used to require the Timezone header, CreateItem + // request should do so too. + // + + if (!isUpdateOperation + && (this.getService().getRequestedServerVersion().ordinal() >= ExchangeVersion.Exchange2010_SP2 + .ordinal())) { + + ListIterator items = this.getAttachments().getItems() + .listIterator(); + + while (items.hasNext()) { + + ItemAttachment itemAttachment = (ItemAttachment) items.next(); + + if ((itemAttachment.getItem() != null) + && itemAttachment + .getItem() + .getIsTimeZoneHeaderRequired(false /* isUpdateOperation */)) { + return true; + } + } + } /* - * for (ItemAttachment itemAttachment : + * for (ItemAttachment itemAttachment : * this.getAttachments().OfType().getc) { if * ((itemAttachment.Item != null) && * itemAttachment.Item.GetIsTimeZoneHeaderRequired(false /* // * isUpdateOperation )) { return true; } } */ - return super.getIsTimeZoneHeaderRequired(isUpdateOperation); - } - - // region Properties - - /** - * Gets a value indicating whether the item is an attachment. - * - * @return true, if is attachment - */ - public boolean isAttachment() { - return this.parentAttachment != null; - } - - /** - * Gets a value indicating whether this object is a real store item, or if - * it's a local object that has yet to be saved. - * - * @return the checks if is new - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsNew() throws ServiceLocalException { - - // Item attachments don't have an Id, need to check whether the - // parentAttachment is new or not. - if (this.isAttachment()) { - return this.getParentAttachment().isNew(); - } else { - return super.isNew(); - } - } - - /** - * Gets the Id of this item. - * - * @return the id - * @throws ServiceLocalException - * the service local exception - */ - public ItemId getId() throws ServiceLocalException { - return (ItemId) this.getPropertyBag().getObjectFromPropertyDefinition( - this.getIdPropertyDefinition()); - } - - /** - * Get the MIME content of this item. - * - * @return the mime content - * @throws ServiceLocalException - * the service local exception - */ - public MimeContent getMimeContent() throws ServiceLocalException { - return (MimeContent) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.MimeContent); - } - - /** - * Sets the mime content. - * - * @param value - * the new mime content - * @throws Exception - * the exception - */ - public void setMimeContent(MimeContent value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.MimeContent, value); - } - - /** - * Gets the Id of the parent folder of this item. - * - * @return the parent folder id - * @throws ServiceLocalException - * the service local exception - */ - public FolderId getParentFolderId() throws ServiceLocalException { - return (FolderId) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.ParentFolderId); - } - - /** - * Gets the sensitivity of this item. - * - * @return the sensitivity - * @throws ServiceLocalException - * the service local exception - */ - public Sensitivity getSensitivity() throws ServiceLocalException { - return (Sensitivity) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Sensitivity); - } - - /** - * Sets the sensitivity. - * - * @param value - * the new sensitivity - * @throws Exception - * the exception - */ - public void setSensitivity(Sensitivity value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Sensitivity, value); - } - - /** - * Gets a list of the attachments to this item. - * - * @return the attachments - * @throws ServiceLocalException - * the service local exception - */ - public AttachmentCollection getAttachments() throws ServiceLocalException { - return (AttachmentCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Attachments); - } - - /** - * Gets the time when this item was received. - * - * @return the date time received - * @throws ServiceLocalException - * the service local exception - */ - public Date getDateTimeReceived() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.DateTimeReceived); - } - - /** - * Gets the size of this item. - * - * @return the size - * @throws ServiceLocalException - * the service local exception - */ - public int getSize() throws ServiceLocalException { - return ((Integer) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Size)).intValue(); - } - - /** - * Gets the list of categories associated with this item. - * - * @return the categories - * @throws ServiceLocalException - * the service local exception - */ - public StringList getCategories() throws ServiceLocalException { - return (StringList) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Categories); - } - - /** - * Sets the categories. - * - * @param value - * the new categories - * @throws Exception - * the exception - */ - public void setCategories(StringList value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Categories, value); - } - - /** - * Gets the culture associated with this item. - * - * @return the culture - * @throws ServiceLocalException - * the service local exception - */ - public String getCulture() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.Culture); - } - - /** - * Sets the culture. - * - * @param value - * the new culture - * @throws Exception - * the exception - */ - public void setCulture(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Culture, value); - } - - /** - * Gets the importance of this item. - * - * @return the importance - * @throws ServiceLocalException - * the service local exception - */ - public Importance getImportance() throws ServiceLocalException { - return (Importance) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Importance); - } - - /** - * Sets the importance. - * - * @param value - * the new importance - * @throws Exception - * the exception - */ - public void setImportance(Importance value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Importance, value); - } - - /** - * Gets the In-Reply-To reference of this item. - * - * @return the in reply to - * @throws ServiceLocalException - * the service local exception - */ - public String getInReplyTo() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.InReplyTo); - } - - /** - * Sets the in reply to. - * - * @param value - * the new in reply to - * @throws Exception - * the exception - */ - public void setInReplyTo(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.InReplyTo, value); - } - - /** - * Gets a value indicating whether the message has been submitted to be - * sent. - * - * @return the checks if is submitted - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsSubmitted() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsSubmitted)) - .booleanValue(); - } - - /** - * Gets a value indicating whether the message has been submitted to be - * sent. - * - * @return the checks if is associated - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsAssociated() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsAssociated)) - .booleanValue(); - } - - /** - * Gets a value indicating whether the message has been submitted to be - * sent. - * - * @return the checks if is draft - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsDraft() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsDraft)) - .booleanValue(); - } - - /** - * Gets a value indicating whether the item has been sent by the current - * authenticated user. - * - * @return the checks if is from me - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsFromMe() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsFromMe)) - .booleanValue(); - } - - /** - * Gets a value indicating whether the item is a resend of another item. - * - * @return the checks if is resend - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsResend() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsResend)) - .booleanValue(); - } - - /** - * Gets a value indicating whether the item has been modified since it was - * created. - * - * @return the checks if is unmodified - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsUnmodified() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsUnmodified)) - .booleanValue(); - - } - - /** - * Gets a list of Internet headers for this item. - * - * @return the internet message headers - * @throws ServiceLocalException - * the service local exception - */ - public InternetMessageHeaderCollection getInternetMessageHeaders() - throws ServiceLocalException { - return (InternetMessageHeaderCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ItemSchema.InternetMessageHeaders); - } - - /** - * Gets the date and time this item was sent. - * - * @return the date time sent - * @throws ServiceLocalException - * the service local exception - */ - public Date getDateTimeSent() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.DateTimeSent); - } - - /** - * Gets the date and time this item was created. - * - * @return the date time created - * @throws ServiceLocalException - * the service local exception - */ - public Date getDateTimeCreated() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.DateTimeCreated); - } - - /** - * Gets a value indicating which response actions are allowed on this item. - * Examples of response actions are Reply and Forward. - * - * @return the allowed response actions - * @throws ServiceLocalException - * the service local exception - */ - public EnumSet getAllowedResponseActions() - throws ServiceLocalException { - return (EnumSet) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ItemSchema.AllowedResponseActions); - } - - /** - * Gets the date and time when the reminder is due for this item. - * - * @return the reminder due by - * @throws ServiceLocalException - * the service local exception - */ - public Date getReminderDueBy() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.ReminderDueBy); - } - - /** - * Sets the reminder due by. - * - * @param value - * the new reminder due by - * @throws Exception - * the exception - */ - public void setReminderDueBy(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.ReminderDueBy, value); - } - - /** - * Gets a value indicating whether a reminder is set for this item. - * - * @return the checks if is reminder set - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsReminderSet() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.IsReminderSet)) - .booleanValue(); - } - - /** - * Sets the checks if is reminder set. - * - * @param value - * the new checks if is reminder set - * @throws Exception - * the exception - */ - public void setIsReminderSet(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.IsReminderSet, value); - } - - /** - * Gets the number of minutes before the start of this item when the - * reminder should be triggered. - * - * @return the reminder minutes before start - * @throws ServiceLocalException - * the service local exception - */ - public int getReminderMinutesBeforeStart() throws ServiceLocalException { - return ((Integer) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ItemSchema.ReminderMinutesBeforeStart)).intValue(); - } - - /** - * Sets the reminder minutes before start. - * - * @param value - * the new reminder minutes before start - * @throws Exception - * the exception - */ - public void setReminderMinutesBeforeStart(int value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.ReminderMinutesBeforeStart, value); - } - - /** - * Gets a text summarizing the Cc receipients of this item. - * - * @return the display cc - * @throws ServiceLocalException - * the service local exception - */ - public String getDisplayCc() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.DisplayCc); - } - - /** - * Gets a text summarizing the To recipients of this item. - * - * @return the display to - * @throws ServiceLocalException - * the service local exception - */ - public String getDisplayTo() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.DisplayTo); - } - - /** - * Gets a value indicating whether the item has attachments. - * - * @return the checks for attachments - * @throws ServiceLocalException - * the service local exception - */ - public boolean getHasAttachments() throws ServiceLocalException { - return ((Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.HasAttachments)) - .booleanValue(); - } - - /** - * Gets the body of this item. - * - * @return MessageBody - * @throws ServiceLocalException - * the service local exception - */ - public MessageBody getBody() throws ServiceLocalException { - return (MessageBody) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.Body); - } - - /** - * Sets the body. - * - * @param value - * the new body - * @throws Exception - * the exception - */ - public void setBody(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, - value); - } - - /** - * Gets the custom class name of this item. - * - * @return the item class - * @throws ServiceLocalException - * the service local exception - */ - public String getItemClass() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.ItemClass); - } - - /** - * Sets the item class. - * - * @param value - * the new item class - * @throws Exception - * the exception - */ - public void setItemClass(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.ItemClass, value); - } - - /** - * Gets the subject of this item. - * - * @param subject - * the new subject - * @throws Exception - * the exception - */ - protected void setSubject(String subject) throws Exception { - this.setSubject((Object) subject); - } - - /** - * Sets the subject. - * - * @param subject - * the new subject - * @throws Exception - * the exception - */ - public void setSubject(Object subject) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ItemSchema.Subject, subject); - } - - /** - * Gets the subject. - * - * @return the subject - * @throws ServiceLocalException - * the service local exception - */ - public String getSubject() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.Subject); - } - - /** - * Gets the query string that should be appended to the Exchange Web client - * URL to open this item using the appropriate read form in a web browser. - * - * @return the web client read form query string - * @throws ServiceLocalException - * the service local exception - */ - public String getWebClientReadFormQueryString() - throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.WebClientReadFormQueryString); - } - - /** - * Gets the query string that should be appended to the Exchange Web client - * URL to open this item using the appropriate read form in a web browser. - * - * @return the web client edit form query string - * @throws ServiceLocalException - * the service local exception - */ - public String getWebClientEditFormQueryString() - throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.WebClientEditFormQueryString); - } - - /** - * Gets a list of extended properties defined on this item. - * - * @return the extended properties - * @throws ServiceLocalException - * the service local exception - */ - @Override - public ExtendedPropertyCollection getExtendedProperties() - throws ServiceLocalException { - return (ExtendedPropertyCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - ServiceObjectSchema.extendedProperties); - } - - /** - * Gets a value indicating the effective rights the current authenticated - * user has on this item. - * - * @return the effective rights - * @throws ServiceLocalException - * the service local exception - */ - public EnumSet getEffectiveRights() - throws ServiceLocalException { - return (EnumSet) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.EffectiveRights); - } - - /** - * Gets the name of the user who last modified this item. - * - * @return the last modified name - * @throws ServiceLocalException - * the service local exception - */ - public String getLastModifiedName() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.LastModifiedName); - } - - /** - * Gets the date and time this item was last modified. - * - * @return the last modified time - * @throws ServiceLocalException - * the service local exception - */ - public Date getLastModifiedTime() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - ItemSchema.LastModifiedTime); - } - - /** - * Gets the Id of the conversation this item is part of. - * - * @return the conversation id - * @throws ServiceLocalException - * the service local exception - */ - public ConversationId getConversationId() throws ServiceLocalException { - return (ConversationId) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.ConversationId); - } - - /** - * Gets the body part that is unique to the conversation this item is part - * of. - * - * @return the unique body - * @throws ServiceLocalException - * the service local exception - */ - public UniqueBody getUniqueBody() throws ServiceLocalException { - return (UniqueBody) this.getPropertyBag() - .getObjectFromPropertyDefinition(ItemSchema.UniqueBody); - } - - /** - * Gets the default setting for how to treat affected task occurrences on - * Delete. Subclasses will override this for different default behavior. - * - * @return the default affected task occurrences - */ - protected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences() { - return null; - } - - /** - * Gets the default setting for sending cancellations on Delete. Subclasses - * will override this for different default behavior. - * - * @return the default send cancellations mode - */ - protected SendCancellationsMode getDefaultSendCancellationsMode() { - return null; - } - - /** - * Gets the default settings for sending invitations on Save. Subclasses - * will override this for different default behavior. - * - * @return the default send invitations mode - */ - protected SendInvitationsMode getDefaultSendInvitationsMode() { - return null; - } - - /** - * Gets the default settings for sending invitations or cancellations on - * Update. Subclasses will override this for different default behavior. - * - * @return the default send invitations or cancellations mode - */ - protected SendInvitationsOrCancellationsMode getDefaultSendInvitationsOrCancellationsMode() { - return null; - } + return super.getIsTimeZoneHeaderRequired(isUpdateOperation); + } + + // region Properties + + /** + * Gets a value indicating whether the item is an attachment. + * + * @return true, if is attachment + */ + public boolean isAttachment() { + return this.parentAttachment != null; + } + + /** + * Gets a value indicating whether this object is a real store item, or if + * it's a local object that has yet to be saved. + * + * @return the checks if is new + * @throws ServiceLocalException the service local exception + */ + public boolean getIsNew() throws ServiceLocalException { + + // Item attachments don't have an Id, need to check whether the + // parentAttachment is new or not. + if (this.isAttachment()) { + return this.getParentAttachment().isNew(); + } else { + return super.isNew(); + } + } + + /** + * Gets the Id of this item. + * + * @return the id + * @throws ServiceLocalException the service local exception + */ + public ItemId getId() throws ServiceLocalException { + return (ItemId) this.getPropertyBag().getObjectFromPropertyDefinition( + this.getIdPropertyDefinition()); + } + + /** + * Get the MIME content of this item. + * + * @return the mime content + * @throws ServiceLocalException the service local exception + */ + public MimeContent getMimeContent() throws ServiceLocalException { + return (MimeContent) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.MimeContent); + } + + /** + * Sets the mime content. + * + * @param value the new mime content + * @throws Exception the exception + */ + public void setMimeContent(MimeContent value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.MimeContent, value); + } + + /** + * Gets the Id of the parent folder of this item. + * + * @return the parent folder id + * @throws ServiceLocalException the service local exception + */ + public FolderId getParentFolderId() throws ServiceLocalException { + return (FolderId) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.ParentFolderId); + } + + /** + * Gets the sensitivity of this item. + * + * @return the sensitivity + * @throws ServiceLocalException the service local exception + */ + public Sensitivity getSensitivity() throws ServiceLocalException { + return (Sensitivity) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Sensitivity); + } + + /** + * Sets the sensitivity. + * + * @param value the new sensitivity + * @throws Exception the exception + */ + public void setSensitivity(Sensitivity value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Sensitivity, value); + } + + /** + * Gets a list of the attachments to this item. + * + * @return the attachments + * @throws ServiceLocalException the service local exception + */ + public AttachmentCollection getAttachments() throws ServiceLocalException { + return (AttachmentCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Attachments); + } + + /** + * Gets the time when this item was received. + * + * @return the date time received + * @throws ServiceLocalException the service local exception + */ + public Date getDateTimeReceived() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.DateTimeReceived); + } + + /** + * Gets the size of this item. + * + * @return the size + * @throws ServiceLocalException the service local exception + */ + public int getSize() throws ServiceLocalException { + return ((Integer) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Size)).intValue(); + } + + /** + * Gets the list of categories associated with this item. + * + * @return the categories + * @throws ServiceLocalException the service local exception + */ + public StringList getCategories() throws ServiceLocalException { + return (StringList) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Categories); + } + + /** + * Sets the categories. + * + * @param value the new categories + * @throws Exception the exception + */ + public void setCategories(StringList value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Categories, value); + } + + /** + * Gets the culture associated with this item. + * + * @return the culture + * @throws ServiceLocalException the service local exception + */ + public String getCulture() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.Culture); + } + + /** + * Sets the culture. + * + * @param value the new culture + * @throws Exception the exception + */ + public void setCulture(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Culture, value); + } + + /** + * Gets the importance of this item. + * + * @return the importance + * @throws ServiceLocalException the service local exception + */ + public Importance getImportance() throws ServiceLocalException { + return (Importance) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Importance); + } + + /** + * Sets the importance. + * + * @param value the new importance + * @throws Exception the exception + */ + public void setImportance(Importance value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Importance, value); + } + + /** + * Gets the In-Reply-To reference of this item. + * + * @return the in reply to + * @throws ServiceLocalException the service local exception + */ + public String getInReplyTo() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.InReplyTo); + } + + /** + * Sets the in reply to. + * + * @param value the new in reply to + * @throws Exception the exception + */ + public void setInReplyTo(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.InReplyTo, value); + } + + /** + * Gets a value indicating whether the message has been submitted to be + * sent. + * + * @return the checks if is submitted + * @throws ServiceLocalException the service local exception + */ + public boolean getIsSubmitted() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsSubmitted)) + .booleanValue(); + } + + /** + * Gets a value indicating whether the message has been submitted to be + * sent. + * + * @return the checks if is associated + * @throws ServiceLocalException the service local exception + */ + public boolean getIsAssociated() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsAssociated)) + .booleanValue(); + } + + /** + * Gets a value indicating whether the message has been submitted to be + * sent. + * + * @return the checks if is draft + * @throws ServiceLocalException the service local exception + */ + public boolean getIsDraft() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsDraft)) + .booleanValue(); + } + + /** + * Gets a value indicating whether the item has been sent by the current + * authenticated user. + * + * @return the checks if is from me + * @throws ServiceLocalException the service local exception + */ + public boolean getIsFromMe() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsFromMe)) + .booleanValue(); + } + + /** + * Gets a value indicating whether the item is a resend of another item. + * + * @return the checks if is resend + * @throws ServiceLocalException the service local exception + */ + public boolean getIsResend() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsResend)) + .booleanValue(); + } + + /** + * Gets a value indicating whether the item has been modified since it was + * created. + * + * @return the checks if is unmodified + * @throws ServiceLocalException the service local exception + */ + public boolean getIsUnmodified() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsUnmodified)) + .booleanValue(); + + } + + /** + * Gets a list of Internet headers for this item. + * + * @return the internet message headers + * @throws ServiceLocalException the service local exception + */ + public InternetMessageHeaderCollection getInternetMessageHeaders() + throws ServiceLocalException { + return (InternetMessageHeaderCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ItemSchema.InternetMessageHeaders); + } + + /** + * Gets the date and time this item was sent. + * + * @return the date time sent + * @throws ServiceLocalException the service local exception + */ + public Date getDateTimeSent() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.DateTimeSent); + } + + /** + * Gets the date and time this item was created. + * + * @return the date time created + * @throws ServiceLocalException the service local exception + */ + public Date getDateTimeCreated() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.DateTimeCreated); + } + + /** + * Gets a value indicating which response actions are allowed on this item. + * Examples of response actions are Reply and Forward. + * + * @return the allowed response actions + * @throws ServiceLocalException the service local exception + */ + public EnumSet getAllowedResponseActions() + throws ServiceLocalException { + return (EnumSet) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ItemSchema.AllowedResponseActions); + } + + /** + * Gets the date and time when the reminder is due for this item. + * + * @return the reminder due by + * @throws ServiceLocalException the service local exception + */ + public Date getReminderDueBy() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.ReminderDueBy); + } + + /** + * Sets the reminder due by. + * + * @param value the new reminder due by + * @throws Exception the exception + */ + public void setReminderDueBy(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.ReminderDueBy, value); + } + + /** + * Gets a value indicating whether a reminder is set for this item. + * + * @return the checks if is reminder set + * @throws ServiceLocalException the service local exception + */ + public boolean getIsReminderSet() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.IsReminderSet)) + .booleanValue(); + } + + /** + * Sets the checks if is reminder set. + * + * @param value the new checks if is reminder set + * @throws Exception the exception + */ + public void setIsReminderSet(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.IsReminderSet, value); + } + + /** + * Gets the number of minutes before the start of this item when the + * reminder should be triggered. + * + * @return the reminder minutes before start + * @throws ServiceLocalException the service local exception + */ + public int getReminderMinutesBeforeStart() throws ServiceLocalException { + return ((Integer) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ItemSchema.ReminderMinutesBeforeStart)).intValue(); + } + + /** + * Sets the reminder minutes before start. + * + * @param value the new reminder minutes before start + * @throws Exception the exception + */ + public void setReminderMinutesBeforeStart(int value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.ReminderMinutesBeforeStart, value); + } + + /** + * Gets a text summarizing the Cc receipients of this item. + * + * @return the display cc + * @throws ServiceLocalException the service local exception + */ + public String getDisplayCc() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.DisplayCc); + } + + /** + * Gets a text summarizing the To recipients of this item. + * + * @return the display to + * @throws ServiceLocalException the service local exception + */ + public String getDisplayTo() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.DisplayTo); + } + + /** + * Gets a value indicating whether the item has attachments. + * + * @return the checks for attachments + * @throws ServiceLocalException the service local exception + */ + public boolean getHasAttachments() throws ServiceLocalException { + return ((Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.HasAttachments)) + .booleanValue(); + } + + /** + * Gets the body of this item. + * + * @return MessageBody + * @throws ServiceLocalException the service local exception + */ + public MessageBody getBody() throws ServiceLocalException { + return (MessageBody) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.Body); + } + + /** + * Sets the body. + * + * @param value the new body + * @throws Exception the exception + */ + public void setBody(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, + value); + } + + /** + * Gets the custom class name of this item. + * + * @return the item class + * @throws ServiceLocalException the service local exception + */ + public String getItemClass() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.ItemClass); + } + + /** + * Sets the item class. + * + * @param value the new item class + * @throws Exception the exception + */ + public void setItemClass(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.ItemClass, value); + } + + /** + * Gets the subject of this item. + * + * @param subject the new subject + * @throws Exception the exception + */ + protected void setSubject(String subject) throws Exception { + this.setSubject((Object) subject); + } + + /** + * Sets the subject. + * + * @param subject the new subject + * @throws Exception the exception + */ + public void setSubject(Object subject) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ItemSchema.Subject, subject); + } + + /** + * Gets the subject. + * + * @return the subject + * @throws ServiceLocalException the service local exception + */ + public String getSubject() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.Subject); + } + + /** + * Gets the query string that should be appended to the Exchange Web client + * URL to open this item using the appropriate read form in a web browser. + * + * @return the web client read form query string + * @throws ServiceLocalException the service local exception + */ + public String getWebClientReadFormQueryString() + throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.WebClientReadFormQueryString); + } + + /** + * Gets the query string that should be appended to the Exchange Web client + * URL to open this item using the appropriate read form in a web browser. + * + * @return the web client edit form query string + * @throws ServiceLocalException the service local exception + */ + public String getWebClientEditFormQueryString() + throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.WebClientEditFormQueryString); + } + + /** + * Gets a list of extended properties defined on this item. + * + * @return the extended properties + * @throws ServiceLocalException the service local exception + */ + @Override + public ExtendedPropertyCollection getExtendedProperties() + throws ServiceLocalException { + return (ExtendedPropertyCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + ServiceObjectSchema.extendedProperties); + } + + /** + * Gets a value indicating the effective rights the current authenticated + * user has on this item. + * + * @return the effective rights + * @throws ServiceLocalException the service local exception + */ + public EnumSet getEffectiveRights() + throws ServiceLocalException { + return (EnumSet) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.EffectiveRights); + } + + /** + * Gets the name of the user who last modified this item. + * + * @return the last modified name + * @throws ServiceLocalException the service local exception + */ + public String getLastModifiedName() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.LastModifiedName); + } + + /** + * Gets the date and time this item was last modified. + * + * @return the last modified time + * @throws ServiceLocalException the service local exception + */ + public Date getLastModifiedTime() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + ItemSchema.LastModifiedTime); + } + + /** + * Gets the Id of the conversation this item is part of. + * + * @return the conversation id + * @throws ServiceLocalException the service local exception + */ + public ConversationId getConversationId() throws ServiceLocalException { + return (ConversationId) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.ConversationId); + } + + /** + * Gets the body part that is unique to the conversation this item is part + * of. + * + * @return the unique body + * @throws ServiceLocalException the service local exception + */ + public UniqueBody getUniqueBody() throws ServiceLocalException { + return (UniqueBody) this.getPropertyBag() + .getObjectFromPropertyDefinition(ItemSchema.UniqueBody); + } + + /** + * Gets the default setting for how to treat affected task occurrences on + * Delete. Subclasses will override this for different default behavior. + * + * @return the default affected task occurrences + */ + protected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences() { + return null; + } + + /** + * Gets the default setting for sending cancellations on Delete. Subclasses + * will override this for different default behavior. + * + * @return the default send cancellations mode + */ + protected SendCancellationsMode getDefaultSendCancellationsMode() { + return null; + } + + /** + * Gets the default settings for sending invitations on Save. Subclasses + * will override this for different default behavior. + * + * @return the default send invitations mode + */ + protected SendInvitationsMode getDefaultSendInvitationsMode() { + return null; + } + + /** + * Gets the default settings for sending invitations or cancellations on + * Update. Subclasses will override this for different default behavior. + * + * @return the default send invitations or cancellations mode + */ + protected SendInvitationsOrCancellationsMode getDefaultSendInvitationsOrCancellationsMode() { + return null; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 72abea561..38ff161f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -17,244 +17,226 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an item attachment. */ public class ItemAttachment extends Attachment implements - IServiceObjectChangedDelegate { - - /** The item. */ - private Item item; - - /** - * Initializes a new instance of the class. - * - * @param owner - * The owner of the attachment - */ - protected ItemAttachment(Item owner) { - super(owner); - } - - /** - * Gets the item associated with the attachment. - * - * @return the item - */ - public Item getItem() { - return this.item; - } - - /** - * Sets the item associated with the attachment. - * - * @param item - * the new item - */ - protected void setItem(Item item) { - this.throwIfThisIsNotNew(); - - if (this.item != null) { - - this.item.removeServiceObjectChangedEvent(this); - } - this.item = item; - if (this.item != null) { - this.item.addServiceObjectChangedEvent(this); - } - } - - /** - * Implements the OnChange event handler for the item associated with the - * attachment. - * - * @param serviceObject - * ,The service object that triggered the OnChange event. - * - */ - private void itemChanged(ServiceObject serviceObject) { - this.item.getPropertyBag().changed(); - } - - /** - * Obtains EWS XML element name for this object. - * - * @return The XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ItemAttachment; - } - - /** - * Tries to read the element at the current position of the reader. - * - * @param reader - * the reader - * @return True if the element was read, false otherwise. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - this.item = EwsUtilities.createItemFromXmlElementName(this, reader - .getLocalName()); - - if (this.item != null) { - try { - this.item.loadFromXml(reader, true /* clearPropertyBag */); - } catch (Exception e) { - e.printStackTrace(); - - } - } - } - - return result; - } - - /** - * For ItemAttachment, AttachmentId and Item should be patched. - * - * @param reader The reader. - * - * True if element was read. - */ - protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader)throws Exception - { - // update the attachment id. - super.tryReadElementFromXml(reader); - - reader.read(); - Class itemClass = EwsUtilities.getItemTypeFromXmlElementName(reader - .getLocalName().toString()); - - if (itemClass != null) { - if (this.item == null - || this.item.getClass() != itemClass) { - throw new ServiceLocalException( - Strings.AttachmentItemTypeMismatch); - } - - this.item.loadFromXml(reader, false /* clearPropertyBag */); - return true; - } - - return false; + IServiceObjectChangedDelegate { + + /** + * The item. + */ + private Item item; + + /** + * Initializes a new instance of the class. + * + * @param owner The owner of the attachment + */ + protected ItemAttachment(Item owner) { + super(owner); + } + + /** + * Gets the item associated with the attachment. + * + * @return the item + */ + public Item getItem() { + return this.item; + } + + /** + * Sets the item associated with the attachment. + * + * @param item the new item + */ + protected void setItem(Item item) { + this.throwIfThisIsNotNew(); + + if (this.item != null) { + + this.item.removeServiceObjectChangedEvent(this); + } + this.item = item; + if (this.item != null) { + this.item.addServiceObjectChangedEvent(this); + } + } + + /** + * Implements the OnChange event handler for the item associated with the + * attachment. + * + * @param serviceObject ,The service object that triggered the OnChange event. + */ + private void itemChanged(ServiceObject serviceObject) { + this.item.getPropertyBag().changed(); + } + + /** + * Obtains EWS XML element name for this object. + * + * @return The XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ItemAttachment; + } + + /** + * Tries to read the element at the current position of the reader. + * + * @param reader the reader + * @return True if the element was read, false otherwise. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + this.item = EwsUtilities.createItemFromXmlElementName(this, reader + .getLocalName()); + + if (this.item != null) { + try { + this.item.loadFromXml(reader, true /* clearPropertyBag */); + } catch (Exception e) { + e.printStackTrace(); + + } + } } + return result; + } + + /** + * For ItemAttachment, AttachmentId and Item should be patched. + * + * @param reader The reader. + *

+ * True if element was read. + */ + protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception { + // update the attachment id. + super.tryReadElementFromXml(reader); + + reader.read(); + Class itemClass = EwsUtilities.getItemTypeFromXmlElementName(reader + .getLocalName().toString()); + + if (itemClass != null) { + if (this.item == null + || this.item.getClass() != itemClass) { + throw new ServiceLocalException( + Strings.AttachmentItemTypeMismatch); + } + + this.item.loadFromXml(reader, false /* clearPropertyBag */); + return true; + } - /** - * Writes the properties of this object as XML elements. - * - * @param writer - * ,The writer to write the elements to. - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - try { - this.item.writeToXml(writer); - } catch (Exception e) { - e.printStackTrace(); - - } - } - - /** - * {@inheritDoc} - */ - @Override - protected void validate(int attachmentIndex) throws Exception { - if (this.getName() == null || this.getName().isEmpty()) { - throw new ServiceValidationException(String.format( - Strings.ItemAttachmentMustBeNamed, attachmentIndex)); - } - - // Recurse through any items attached to item attachment. - this.validate(); - } - - /** - * Loads this attachment. - * - * @param additionalProperties - * the additional properties - * @throws Exception - * the exception - */ - public void load(PropertyDefinitionBase... additionalProperties) - throws Exception { - List addProp = - new ArrayList(); - - for (PropertyDefinitionBase addProperties1 : additionalProperties) { - addProp.add(addProperties1); - } - this.internalLoad(null /* bodyType */, addProp); - } - - /** - * Loads this attachment. - * - * @param additionalProperties - * the additional properties - * @throws Exception - * the exception - */ - public void load(Iterable additionalProperties) - throws Exception { - this.internalLoad(null, additionalProperties); - } - - /** - * Loads this attachment. - * - * @param bodyType - * the body type - * @param additionalProperties - * the additional properties - * @throws Exception - * the exception - */ - public void load(BodyType bodyType, - PropertyDefinitionBase... additionalProperties) throws Exception { - List addProp = - new ArrayList(); - for (PropertyDefinitionBase addProperties1 : additionalProperties) { - addProp.add(addProperties1); - } - this.internalLoad(bodyType, addProp); - } - - /** - * Loads this attachment. - * - * @param bodyType - * the body type - * @param additionalProperties - * the additional properties - * @throws Exception - * the exception - */ - public void load(BodyType bodyType, - Iterable additionalProperties) - throws Exception { - this.internalLoad(bodyType, additionalProperties); - } - - /** - * Service object changed. - * - * @param serviceObject - * accepts ServiceObject - */ - @Override - public void serviceObjectChanged(ServiceObject serviceObject) { - this.itemChanged(serviceObject); - } + return false; + } + + + /** + * Writes the properties of this object as XML elements. + * + * @param writer ,The writer to write the elements to. + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + try { + this.item.writeToXml(writer); + } catch (Exception e) { + e.printStackTrace(); + + } + } + + /** + * {@inheritDoc} + */ + @Override + protected void validate(int attachmentIndex) throws Exception { + if (this.getName() == null || this.getName().isEmpty()) { + throw new ServiceValidationException(String.format( + Strings.ItemAttachmentMustBeNamed, attachmentIndex)); + } + + // Recurse through any items attached to item attachment. + this.validate(); + } + + /** + * Loads this attachment. + * + * @param additionalProperties the additional properties + * @throws Exception the exception + */ + public void load(PropertyDefinitionBase... additionalProperties) + throws Exception { + List addProp = + new ArrayList(); + + for (PropertyDefinitionBase addProperties1 : additionalProperties) { + addProp.add(addProperties1); + } + this.internalLoad(null /* bodyType */, addProp); + } + + /** + * Loads this attachment. + * + * @param additionalProperties the additional properties + * @throws Exception the exception + */ + public void load(Iterable additionalProperties) + throws Exception { + this.internalLoad(null, additionalProperties); + } + + /** + * Loads this attachment. + * + * @param bodyType the body type + * @param additionalProperties the additional properties + * @throws Exception the exception + */ + public void load(BodyType bodyType, + PropertyDefinitionBase... additionalProperties) throws Exception { + List addProp = + new ArrayList(); + for (PropertyDefinitionBase addProperties1 : additionalProperties) { + addProp.add(addProperties1); + } + this.internalLoad(bodyType, addProp); + } + + /** + * Loads this attachment. + * + * @param bodyType the body type + * @param additionalProperties the additional properties + * @throws Exception the exception + */ + public void load(BodyType bodyType, + Iterable additionalProperties) + throws Exception { + this.internalLoad(bodyType, additionalProperties); + } + + /** + * Service object changed. + * + * @param serviceObject accepts ServiceObject + */ + @Override + public void serviceObjectChanged(ServiceObject serviceObject) { + this.itemChanged(serviceObject); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java index ded1edbcb..0d262f33e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java @@ -15,68 +15,68 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ItemChange extends Change { - /** The is read. */ - private boolean isRead; + /** + * The is read. + */ + private boolean isRead; - /** - * Initializes a new instance of ItemChange. - */ - protected ItemChange() { - super(); - } + /** + * Initializes a new instance of ItemChange. + */ + protected ItemChange() { + super(); + } - /** - * Creates an ItemId instance. - * - * @return A ItemId. - */ - @Override - protected ServiceId createId() { - return new ItemId(); - } + /** + * Creates an ItemId instance. + * + * @return A ItemId. + */ + @Override + protected ServiceId createId() { + return new ItemId(); + } - /** - * Gets the item the change applies to. Item is null when ChangeType is - * equal to either ChangeType.Delete or ChangeType.ReadFlagChange. In those - * cases, use the ItemId property to retrieve the Id of the item that was - * deleted or whose IsRead property changed. - * - * @return the item - */ - public Item getItem() { - return (Item)this.getServiceObject(); - } + /** + * Gets the item the change applies to. Item is null when ChangeType is + * equal to either ChangeType.Delete or ChangeType.ReadFlagChange. In those + * cases, use the ItemId property to retrieve the Id of the item that was + * deleted or whose IsRead property changed. + * + * @return the item + */ + public Item getItem() { + return (Item) this.getServiceObject(); + } - /** - * Gets the IsRead property for the item that the change applies to. - * IsRead is only valid when ChangeType is equal to - * ChangeType.ReadFlagChange. - * - * @return the checks if is read - */ - public boolean getIsRead() { - return this.isRead; - } + /** + * Gets the IsRead property for the item that the change applies to. + * IsRead is only valid when ChangeType is equal to + * ChangeType.ReadFlagChange. + * + * @return the checks if is read + */ + public boolean getIsRead() { + return this.isRead; + } - /** - * Sets the checks if is read. - * - * @param isRead - * the new checks if is read - */ - protected void setIsRead(boolean isRead) { - this.isRead = isRead; - } + /** + * Sets the checks if is read. + * + * @param isRead the new checks if is read + */ + protected void setIsRead(boolean isRead) { + this.isRead = isRead; + } - /** - * Gets the Id of the item the change applies to. - * - * @return the item id - * @throws ServiceLocalException - * the service local exception - */ - public ItemId getItemId() throws ServiceLocalException { - return (ItemId) this.getId(); - } + /** + * Gets the Id of the item the change applies to. + * + * @return the item id + * @throws ServiceLocalException the service local exception + */ + public ItemId getItemId() throws ServiceLocalException { + return (ItemId) this.getId(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index c558fe597..589c6566f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -16,112 +16,109 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of items. - * - * @param - * the generic type. The type of item the collection contains. + * + * @param the generic type. The type of item the collection contains. */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class ItemCollection extends ComplexProperty - implements Iterable { + implements Iterable { - /** The items. */ - private List items = new ArrayList(); + /** + * The items. + */ + private List items = new ArrayList(); - /** - * Initializes a new instance of the "ItemCollection<TItem>" class. - */ - protected ItemCollection() { - super(); - } + /** + * Initializes a new instance of the "ItemCollection<TItem>" class. + */ + protected ItemCollection() { + super(); + } - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param localElementName - * Name of the local element. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void loadFromXml(EwsServiceXmlReader reader, - String localElementName) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - localElementName); - if (!reader.isEmptyElement()) { - do { - reader.read(); + /** + * Loads from XML. + * + * @param reader The reader. + * @param localElementName Name of the local element. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void loadFromXml(EwsServiceXmlReader reader, + String localElementName) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + localElementName); + if (!reader.isEmptyElement()) { + do { + reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - TItem item = EwsUtilities - .createEwsObjectFromXmlElementName(Item.class, - reader.getService(), reader.getLocalName()); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + TItem item = EwsUtilities + .createEwsObjectFromXmlElementName(Item.class, + reader.getService(), reader.getLocalName()); - if (item == null) { - reader.skipCurrentElement(); - } else { - try { - item.loadFromXml(reader, - true /* clearPropertyBag */); - } catch (ServiceObjectPropertyException e) { - e.printStackTrace(); - } catch (ServiceVersionException e) { - e.printStackTrace(); - } + if (item == null) { + reader.skipCurrentElement(); + } else { + try { + item.loadFromXml(reader, + true /* clearPropertyBag */); + } catch (ServiceObjectPropertyException e) { + e.printStackTrace(); + } catch (ServiceVersionException e) { + e.printStackTrace(); + } - this.items.add(item); - } - } - } while (!reader.isEndElement(XmlNamespace.Types, - localElementName)); - }else { - reader.read(); - } - } + this.items.add(item); + } + } + } while (!reader.isEndElement(XmlNamespace.Types, + localElementName)); + } else { + reader.read(); + } + } - /** - * Gets the total number of items in the collection. - * - * @return the count - */ - public int getCount() { - return this.items.size(); - } + /** + * Gets the total number of items in the collection. + * + * @return the count + */ + public int getCount() { + return this.items.size(); + } - /** - * Gets the item at the specified index. - * - * @param index - * The zero-based index of the item to get. - * @return The item at the specified index. - */ - public TItem getItem(int index) { + /** + * Gets the item at the specified index. + * + * @param index The zero-based index of the item to get. + * @return The item at the specified index. + */ + public TItem getItem(int index) { - if (index < 0 || index >= this.getCount()) { - throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } - return this.items.get(index); - } + if (index < 0 || index >= this.getCount()) { + throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } + return this.items.get(index); + } - /** - * Gets an iterator that iterates through the elements of the collection. - * - * @return An Iterator for the collection. - */ - public Iterator getIterator() { - return this.items.iterator(); - } + /** + * Gets an iterator that iterates through the elements of the collection. + * + * @return An Iterator for the collection. + */ + public Iterator getIterator() { + return this.items.iterator(); + } - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - return this.items.iterator(); - } + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + return this.items.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java index e5b1cae18..79f811986 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java @@ -14,93 +14,88 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an event that applies to an item. - * */ public final class ItemEvent extends NotificationEvent { - /** - * Id of the item this event applies to. - */ - private ItemId itemId; - - /** - * Id of the item that moved or copied. This is only meaningful when - * EventType is equal to either EventType.Moved or EventType.Copied. For all - * other event types, it's null. - */ - private ItemId oldItemId; - - /** - * Initializes a new instance. - * - * @param eventType - * the event type - * @param timestamp - * the timestamp - */ - protected ItemEvent(EventType eventType, Date timestamp) { - super(eventType, timestamp); - } - - /** - * Load from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void internalLoadFromXml(EwsServiceXmlReader reader) - throws Exception { - super.internalLoadFromXml(reader); - - this.itemId = new ItemId(); - this.itemId.loadFromXml(reader, reader.getLocalName()); - - reader.read(); - - setParentFolderId(new FolderId()); - - getParentFolderId().loadFromXml(reader, XmlElementNames.ParentFolderId); - - EventType eventType = getEventType(); - switch (eventType) { - case Moved: - case Copied: - reader.read(); - - this.oldItemId = new ItemId(); - this.oldItemId.loadFromXml(reader, reader.getLocalName()); - - reader.read(); - - setOldParentFolderId(new FolderId()); - getOldParentFolderId().loadFromXml(reader, reader.getLocalName()); - break; - - default: - break; - } - } - - /** - * Gets the Id of the item this event applies to. - * - * @return itemId - */ - public ItemId getItemId() { - return itemId; - } - - /** - * Gets the Id of the item that was moved or copied. OldItemId is only - * meaningful when EventType is equal to either EventType.Moved or - * EventType.Copied. For all other event types, OldItemId is null. - * - * @return the old item id - */ - public ItemId getOldItemId() { - return oldItemId; - } + /** + * Id of the item this event applies to. + */ + private ItemId itemId; + + /** + * Id of the item that moved or copied. This is only meaningful when + * EventType is equal to either EventType.Moved or EventType.Copied. For all + * other event types, it's null. + */ + private ItemId oldItemId; + + /** + * Initializes a new instance. + * + * @param eventType the event type + * @param timestamp the timestamp + */ + protected ItemEvent(EventType eventType, Date timestamp) { + super(eventType, timestamp); + } + + /** + * Load from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void internalLoadFromXml(EwsServiceXmlReader reader) + throws Exception { + super.internalLoadFromXml(reader); + + this.itemId = new ItemId(); + this.itemId.loadFromXml(reader, reader.getLocalName()); + + reader.read(); + + setParentFolderId(new FolderId()); + + getParentFolderId().loadFromXml(reader, XmlElementNames.ParentFolderId); + + EventType eventType = getEventType(); + switch (eventType) { + case Moved: + case Copied: + reader.read(); + + this.oldItemId = new ItemId(); + this.oldItemId.loadFromXml(reader, reader.getLocalName()); + + reader.read(); + + setOldParentFolderId(new FolderId()); + getOldParentFolderId().loadFromXml(reader, reader.getLocalName()); + break; + + default: + break; + } + } + + /** + * Gets the Id of the item this event applies to. + * + * @return itemId + */ + public ItemId getItemId() { + return itemId; + } + + /** + * Gets the Id of the item that was moved or copied. OldItemId is only + * meaningful when EventType is equal to either EventType.Moved or + * EventType.Copied. For all other event types, OldItemId is null. + * + * @return the old item id + */ + public ItemId getOldItemId() { + return oldItemId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java index 9a71d3670..63b21fc3a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java @@ -16,65 +16,66 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a group of items as returned by grouped item search operations. - * - * @param - * the generic type + * + * @param the generic type */ public final class ItemGroup { - /** The group index. */ - private String groupIndex; + /** + * The group index. + */ + private String groupIndex; - /** The items. */ - private Collection items; + /** + * The items. + */ + private Collection items; - /** - * Initializes a new instance of the class. - * - * @param groupIndex - * the group index - * @param items - * the items - */ - protected ItemGroup(String groupIndex, List items) { - EwsUtilities.EwsAssert(groupIndex != null, "ItemGroup.ctor", - "groupIndex is null"); - EwsUtilities - .EwsAssert(items != null, "ItemGroup.ctor", "items is null"); + /** + * Initializes a new instance of the class. + * + * @param groupIndex the group index + * @param items the items + */ + protected ItemGroup(String groupIndex, List items) { + EwsUtilities.EwsAssert(groupIndex != null, "ItemGroup.ctor", + "groupIndex is null"); + EwsUtilities + .EwsAssert(items != null, "ItemGroup.ctor", "items is null"); - this.groupIndex = groupIndex; - this.items = new ArrayList(items); - } + this.groupIndex = groupIndex; + this.items = new ArrayList(items); + } - /** - * Gets an index identifying the group. - * - * @return the group index - */ - public String getGroupIndex() { - return this.groupIndex; - } + /** + * Gets an index identifying the group. + * + * @return the group index + */ + public String getGroupIndex() { + return this.groupIndex; + } - /** - * Sets an index identifying the group. - */ - private void setGroupIndex(String value) { - this.groupIndex = value; - } + /** + * Sets an index identifying the group. + */ + private void setGroupIndex(String value) { + this.groupIndex = value; + } - /** - * Gets a collection of the items in this group. - * - * @return the items - */ - public Collection getItems() { - return this.items; - } + /** + * Gets a collection of the items in this group. + * + * @return the items + */ + public Collection getItems() { + return this.items; + } - /** - * Sets a collection of the items in this group. - */ - private void setItems(Collection value) { - this.items = value; - } + /** + * Sets a collection of the items in this group. + */ + private void setItems(Collection value) { + this.items = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemId.java b/src/main/java/microsoft/exchange/webservices/data/ItemId.java index f22c79a5b..4f4a52397 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemId.java @@ -12,49 +12,44 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the Id of an Exchange item. - * */ public class ItemId extends ServiceId { - /** - * Initializes a new instance. - */ - protected ItemId() { - super(); - } + /** + * Initializes a new instance. + */ + protected ItemId() { + super(); + } - /** - * Defines an implicit conversion between string and ItemId. - * - * @param uniqueId - * The unique Id to convert to ItemId. - * @return An ItemId initialized with the specified unique Id. - * @throws Exception - * the exception - */ - public static ItemId getItemIdFromString(String uniqueId) throws Exception { - return new ItemId(uniqueId); - } + /** + * Defines an implicit conversion between string and ItemId. + * + * @param uniqueId The unique Id to convert to ItemId. + * @return An ItemId initialized with the specified unique Id. + * @throws Exception the exception + */ + public static ItemId getItemIdFromString(String uniqueId) throws Exception { + return new ItemId(uniqueId); + } - /** - * Initializes a new instance of ItemId. - * - * @param uniqueId - * The unique Id used to initialize the ItemId. - * @throws Exception - * the exception - */ - public ItemId(String uniqueId) throws Exception { - super(uniqueId); - } + /** + * Initializes a new instance of ItemId. + * + * @param uniqueId The unique Id used to initialize the ItemId. + * @throws Exception the exception + */ + public ItemId(String uniqueId) throws Exception { + super(uniqueId); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ItemId; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ItemId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java index 6ef591462..52ccf669f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java @@ -14,30 +14,32 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a collection of item Ids. */ public final class ItemIdCollection extends ComplexPropertyCollection { - /** - * Initializes a new instance of the class. - */ - protected ItemIdCollection() { - super(); - } + /** + * Initializes a new instance of the class. + */ + protected ItemIdCollection() { + super(); + } - /** - * Creates the complex property. - * @param xmlElementName Name of the XML element. - * @return ItemId. - */ - @Override - protected ItemId createComplexProperty(String xmlElementName) { - return new ItemId(); - } + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element. + * @return ItemId. + */ + @Override + protected ItemId createComplexProperty(String xmlElementName) { + return new ItemId(); + } - /** - * Gets the name of the collection item XML element. - * @param complexProperty The complex property. - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName(ItemId complexProperty) { - return complexProperty.getXmlElementName(); - } -} \ No newline at end of file + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty The complex property. + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName(ItemId complexProperty) { + return complexProperty.getXmlElementName(); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java index e97fc516a..60f11a11b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java @@ -10,39 +10,36 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** +/** * Represents an item Id provided by a ItemId object. */ class ItemIdWrapper extends AbstractItemIdWrapper { - /** - *The ItemId object providing the Id. - */ - private ItemId itemId; + /** + * The ItemId object providing the Id. + */ + private ItemId itemId; - /** - * Initializes a new instance of ItemIdWrapper. - * - * @param itemId - * the item id - */ - protected ItemIdWrapper(ItemId itemId) { - EwsUtilities.EwsAssert(itemId != null, "ItemIdWrapper.ctor", - "itemId is null"); - this.itemId = itemId; - } + /** + * Initializes a new instance of ItemIdWrapper. + * + * @param itemId the item id + */ + protected ItemIdWrapper(ItemId itemId) { + EwsUtilities.EwsAssert(itemId != null, "ItemIdWrapper.ctor", + "itemId is null"); + this.itemId = itemId; + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.itemId.writeToXml(writer); - } + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.itemId.writeToXml(writer); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java index abf20fb2a..b5ef71a94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java @@ -19,120 +19,111 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class ItemIdWrapperList implements Iterable { - /** The item ids. */ - private List itemIds = - new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - protected ItemIdWrapperList() { - } - - /** - * Adds the specified item. - * - * @param item - * the item - * @throws ServiceLocalException - * the service local exception - */ - protected void add(Item item) throws ServiceLocalException { - this.itemIds.add(new ItemWrapper(item)); - - } - - /** - * Adds the specified item. - * - * @param items - * the items - * @throws ServiceLocalException - * the service local exception - */ - protected void addRangeItem(Iterable items) - throws ServiceLocalException { - for (Item item : items) { - this.add(item); - } - } - - /** - * Adds the range. - * - * @param itemIds - * the item ids - */ - protected void addRange(Iterable itemIds) { - for (ItemId itemId : itemIds) { - this.add(itemId); - } - } - - /** - * Adds the specified item id. - * - * @param itemId - * the item id - */ - protected void add(ItemId itemId) { - this.itemIds.add(new ItemIdWrapper(itemId)); - - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param ewsNamesapce - * the ews namesapce - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace ewsNamesapce, String xmlElementName) throws Exception { - if (this.getCount() > 0) { - writer.writeStartElement(ewsNamesapce, xmlElementName); - - for (AbstractItemIdWrapper itemIdWrapper : this.itemIds) { - itemIdWrapper.writeToXml(writer); - } - - writer.writeEndElement(); - } - } - - /** - * Gets the count. - * - * @return the count - */ - protected int getCount() { - return this.itemIds.size(); - } - - /** - * Gets the item at the specified index. - * - * @param i - * the i - * @return the item id wrapper list - */ - protected Item getItemIdWrapperList(int i) { - return this.itemIds.get(i).getItem(); - } - - /** - *Gets an Iterator that iterates through the elements of the collection. - * - * @return An IEnumerator for the collection - */ - @Override - public Iterator iterator() { - - return itemIds.iterator(); - } + /** + * The item ids. + */ + private List itemIds = + new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + protected ItemIdWrapperList() { + } + + /** + * Adds the specified item. + * + * @param item the item + * @throws ServiceLocalException the service local exception + */ + protected void add(Item item) throws ServiceLocalException { + this.itemIds.add(new ItemWrapper(item)); + + } + + /** + * Adds the specified item. + * + * @param items the items + * @throws ServiceLocalException the service local exception + */ + protected void addRangeItem(Iterable items) + throws ServiceLocalException { + for (Item item : items) { + this.add(item); + } + } + + /** + * Adds the range. + * + * @param itemIds the item ids + */ + protected void addRange(Iterable itemIds) { + for (ItemId itemId : itemIds) { + this.add(itemId); + } + } + + /** + * Adds the specified item id. + * + * @param itemId the item id + */ + protected void add(ItemId itemId) { + this.itemIds.add(new ItemIdWrapper(itemId)); + + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param ewsNamesapce the ews namesapce + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace ewsNamesapce, String xmlElementName) throws Exception { + if (this.getCount() > 0) { + writer.writeStartElement(ewsNamesapce, xmlElementName); + + for (AbstractItemIdWrapper itemIdWrapper : this.itemIds) { + itemIdWrapper.writeToXml(writer); + } + + writer.writeEndElement(); + } + } + + /** + * Gets the count. + * + * @return the count + */ + protected int getCount() { + return this.itemIds.size(); + } + + /** + * Gets the item at the specified index. + * + * @param i the i + * @return the item id wrapper list + */ + protected Item getItemIdWrapperList(int i) { + return this.itemIds.get(i).getItem(); + } + + /** + * Gets an Iterator that iterates through the elements of the collection. + * + * @return An IEnumerator for the collection + */ + @Override + public Iterator iterator() { + + return itemIds.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index 76f9a4e05..8e1ec9470 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -18,620 +18,697 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Schema public class ItemSchema extends ServiceObjectSchema { - /** - * The Interface FieldUris. - */ - private static interface FieldUris { - - /** The Item id. */ - String ItemId = "item:ItemId"; - - /** The Parent folder id. */ - String ParentFolderId = "item:ParentFolderId"; - - /** The Item class. */ - String ItemClass = "item:ItemClass"; - - /** The Mime content. */ - String MimeContent = "item:MimeContent"; - - /** The Attachments. */ - String Attachments = "item:Attachments"; - - /** The Subject. */ - String Subject = "item:Subject"; - - /** The Date time received. */ - String DateTimeReceived = "item:DateTimeReceived"; - - /** The Size. */ - String Size = "item:Size"; - - /** The Categories. */ - String Categories = "item:Categories"; - - /** The Has attachments. */ - String HasAttachments = "item:HasAttachments"; - - /** The Importance. */ - String Importance = "item:Importance"; - - /** The In reply to. */ - String InReplyTo = "item:InReplyTo"; - - /** The Internet message headers. */ - String InternetMessageHeaders = "item:InternetMessageHeaders"; - - /** The Is associated. */ - String IsAssociated = "item:IsAssociated"; - - /** The Is draft. */ - String IsDraft = "item:IsDraft"; - - /** The Is from me. */ - String IsFromMe = "item:IsFromMe"; - - /** The Is resend. */ - String IsResend = "item:IsResend"; - - /** The Is submitted. */ - String IsSubmitted = "item:IsSubmitted"; - - /** The Is unmodified. */ - String IsUnmodified = "item:IsUnmodified"; - - /** The Date time sent. */ - String DateTimeSent = "item:DateTimeSent"; - - /** The Date time created. */ - String DateTimeCreated = "item:DateTimeCreated"; - - /** The Body. */ - String Body = "item:Body"; - - /** The Response objects. */ - String ResponseObjects = "item:ResponseObjects"; - - /** The Sensitivity. */ - String Sensitivity = "item:Sensitivity"; - - /** The Reminder due by. */ - String ReminderDueBy = "item:ReminderDueBy"; - - /** The Reminder is set. */ - String ReminderIsSet = "item:ReminderIsSet"; - - /** The Reminder minutes before start. */ - String ReminderMinutesBeforeStart = "item:ReminderMinutesBeforeStart"; - - /** The Display to. */ - String DisplayTo = "item:DisplayTo"; - - /** The Display cc. */ - String DisplayCc = "item:DisplayCc"; - - /** The Culture. */ - String Culture = "item:Culture"; - - /** The Effective rights. */ - String EffectiveRights = "item:EffectiveRights"; - - /** The Last modified name. */ - String LastModifiedName = "item:LastModifiedName"; - - /** The Last modified time. */ - String LastModifiedTime = "item:LastModifiedTime"; - - /** The Web client read form query string. */ - String WebClientReadFormQueryString = - "item:WebClientReadFormQueryString"; - - /** The Web client edit form query string. */ - String WebClientEditFormQueryString = - "item:WebClientEditFormQueryString"; - - /** The Conversation id. */ - String ConversationId = "item:ConversationId"; - - /** The Unique body. */ - String UniqueBody = "item:UniqueBody"; - - String StoreEntryId = "item:StoreEntryId"; - } - - /** - * Defines the Id property. - */ - public static final PropertyDefinition Id = new - ComplexPropertyDefinition( - ItemId.class, - XmlElementNames.ItemId, FieldUris.ItemId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public ItemId createComplexProperty() { - return new ItemId(); - } - }); - - /** - * Defines the Body property. - */ - public static final PropertyDefinition Body = new - ComplexPropertyDefinition( - MessageBody.class, - XmlElementNames.Body, FieldUris.Body, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public MessageBody createComplexProperty() { - return new MessageBody(); - } - }); - - /** - * Defines the ItemClass property. - */ - public static final PropertyDefinition ItemClass = new - StringPropertyDefinition( - XmlElementNames.ItemClass, FieldUris.ItemClass, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Subject property. - */ - public static final PropertyDefinition Subject = new - StringPropertyDefinition( - XmlElementNames.Subject, FieldUris.Subject, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the MimeContent property. - */ - public static final PropertyDefinition MimeContent = - new ComplexPropertyDefinition( - MimeContent.class, - XmlElementNames.MimeContent, FieldUris.MimeContent, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.MustBeExplicitlyLoaded), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public MimeContent createComplexProperty() { - return new MimeContent(); - } - }); - - /** - * Defines the ParentFolderId property. - */ - public static final PropertyDefinition ParentFolderId = - new ComplexPropertyDefinition( - FolderId.class, - XmlElementNames.ParentFolderId, FieldUris.ParentFolderId, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public FolderId createComplexProperty() { - return new FolderId(); - } - }); - - /** - * Defines the Sensitivity property. - */ - public static final PropertyDefinition Sensitivity = - new GenericPropertyDefinition( - Sensitivity.class, - XmlElementNames.Sensitivity, FieldUris.Sensitivity, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Attachments property. - */ - public static final PropertyDefinition Attachments = new AttachmentsPropertyDefinition(); - - /** - * Defines the DateTimeReceived property. - */ - public static final PropertyDefinition DateTimeReceived = - new DateTimePropertyDefinition( - XmlElementNames.DateTimeReceived, FieldUris.DateTimeReceived, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Size property. - */ - public static final PropertyDefinition Size = new IntPropertyDefinition( - XmlElementNames.Size, FieldUris.Size, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Categories property. - */ - public static final PropertyDefinition Categories = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Categories, FieldUris.Categories, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the Importance property. - */ - public static final PropertyDefinition Importance = - new GenericPropertyDefinition( - Importance.class, - XmlElementNames.Importance, FieldUris.Importance, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the InReplyTo property. - */ - public static final PropertyDefinition InReplyTo = - new StringPropertyDefinition( - XmlElementNames.InReplyTo, FieldUris.InReplyTo, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsSubmitted property. - */ - public static final PropertyDefinition IsSubmitted = - new BoolPropertyDefinition( - XmlElementNames.IsSubmitted, FieldUris.IsSubmitted, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsAssociated property. - */ - public static final PropertyDefinition IsAssociated = - new BoolPropertyDefinition( - XmlElementNames.IsAssociated, FieldUris.IsAssociated, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010); - - /** - * Defines the IsDraft property. - */ - public static final PropertyDefinition IsDraft = new BoolPropertyDefinition( - XmlElementNames.IsDraft, FieldUris.IsDraft, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsFromMe property. - */ - public static final PropertyDefinition IsFromMe = - new BoolPropertyDefinition( - XmlElementNames.IsFromMe, FieldUris.IsFromMe, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsResend property. - */ - public static final PropertyDefinition IsResend = - new BoolPropertyDefinition( - XmlElementNames.IsResend, FieldUris.IsResend, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsUnmodified property. - */ - public static final PropertyDefinition IsUnmodified = - new BoolPropertyDefinition( - XmlElementNames.IsUnmodified, FieldUris.IsUnmodified, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the InternetMessageHeaders property. - */ - public static final PropertyDefinition InternetMessageHeaders = - new ComplexPropertyDefinition( - InternetMessageHeaderCollection.class, - XmlElementNames.InternetMessageHeaders, - FieldUris.InternetMessageHeaders, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - public InternetMessageHeaderCollection createComplexProperty() { - return new InternetMessageHeaderCollection(); - } - }); - - /** - * Defines the DateTimeSent property. - */ - public static final PropertyDefinition DateTimeSent = - new DateTimePropertyDefinition( - XmlElementNames.DateTimeSent, FieldUris.DateTimeSent, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DateTimeCreated property. - */ - public static final PropertyDefinition DateTimeCreated = - new DateTimePropertyDefinition( - XmlElementNames.DateTimeCreated, FieldUris.DateTimeCreated, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the AllowedResponseActions property. - */ - public static final PropertyDefinition AllowedResponseActions = - new ResponseObjectsPropertyDefinition( - XmlElementNames.ResponseObjects, FieldUris.ResponseObjects, - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ReminderDueBy property. - */ - - public static final PropertyDefinition ReminderDueBy = - new DateTimePropertyDefinition( - XmlElementNames.ReminderDueBy, FieldUris.ReminderDueBy, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsReminderSet property. - */ - public static final PropertyDefinition IsReminderSet = - new BoolPropertyDefinition( - XmlElementNames.ReminderIsSet, // Note: server-side the name is - // ReminderIsSet - FieldUris.ReminderIsSet, EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ReminderMinutesBeforeStart property. - */ - public static final PropertyDefinition ReminderMinutesBeforeStart = - new IntPropertyDefinition( - XmlElementNames.ReminderMinutesBeforeStart, - FieldUris.ReminderMinutesBeforeStart, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DisplayCc property. - */ - public static final PropertyDefinition DisplayCc = - new StringPropertyDefinition( - XmlElementNames.DisplayCc, FieldUris.DisplayCc, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DisplayTo property. - */ - public static final PropertyDefinition DisplayTo = - new StringPropertyDefinition( - XmlElementNames.DisplayTo, FieldUris.DisplayTo, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the HasAttachments property. - */ - public static final PropertyDefinition HasAttachments = - new BoolPropertyDefinition( - XmlElementNames.HasAttachments, FieldUris.HasAttachments, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Culture property. - */ - public static final PropertyDefinition Culture = - new StringPropertyDefinition( - XmlElementNames.Culture, FieldUris.Culture, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the EffectiveRights property. - */ - public static final PropertyDefinition EffectiveRights = - new EffectiveRightsPropertyDefinition( - XmlElementNames.EffectiveRights, FieldUris.EffectiveRights, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the LastModifiedName property. - */ - public static final PropertyDefinition LastModifiedName = - new StringPropertyDefinition( - XmlElementNames.LastModifiedName, FieldUris.LastModifiedName, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the LastModifiedTime property. - */ - public static final PropertyDefinition LastModifiedTime = - new DateTimePropertyDefinition( - XmlElementNames.LastModifiedTime, FieldUris.LastModifiedTime, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the WebClientReadFormQueryString property. - */ - public static final PropertyDefinition WebClientReadFormQueryString = - new StringPropertyDefinition( - XmlElementNames.WebClientReadFormQueryString, - FieldUris.WebClientReadFormQueryString, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010); - - /** - * Defines the WebClientEditFormQueryString property. - */ - public static final PropertyDefinition WebClientEditFormQueryString = - new StringPropertyDefinition( - XmlElementNames.WebClientEditFormQueryString, - FieldUris.WebClientEditFormQueryString, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010); - - /** - * Defines the ConversationId property. - */ - public static final PropertyDefinition ConversationId = - new ComplexPropertyDefinition( - ConversationId.class, - XmlElementNames.ConversationId, FieldUris.ConversationId, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010, - new ICreateComplexPropertyDelegate() { - public ConversationId createComplexProperty() { - return new ConversationId(); - } - }); - - /** - * Defines the UniqueBody property. - */ - public static final PropertyDefinition UniqueBody = - new ComplexPropertyDefinition( - UniqueBody.class, - XmlElementNames.UniqueBody, FieldUris.UniqueBody, EnumSet - .of(PropertyDefinitionFlags.MustBeExplicitlyLoaded), - ExchangeVersion.Exchange2010, - new ICreateComplexPropertyDelegate() { - public UniqueBody createComplexProperty() { - return new UniqueBody(); - } - }); - - /** - * Defines the StoreEntryId property. - */ - - public static final PropertyDefinition StoreEntryId = - new ByteArrayPropertyDefinition( - XmlElementNames.StoreEntryId, - FieldUris.StoreEntryId, - EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2010_SP2); - - - - /** The Constant Instance. */ - protected static final ItemSchema Instance = new ItemSchema(); - - /** - * Gets the single instance of ItemSchema. - * - * @return single instance of ItemSchema - */ - public static ItemSchema getInstance() { - return Instance; - } - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - this.registerProperty(MimeContent); - this.registerProperty(Id); - this.registerProperty(ParentFolderId); - this.registerProperty(ItemClass); - this.registerProperty(Subject); - this.registerProperty(Sensitivity); - this.registerProperty(Body); - this.registerProperty(Attachments); - this.registerProperty(DateTimeReceived); - this.registerProperty(Size); - this.registerProperty(Categories); - this.registerProperty(Importance); - this.registerProperty(InReplyTo); - this.registerProperty(IsSubmitted); - this.registerProperty(IsDraft); - this.registerProperty(IsFromMe); - this.registerProperty(IsResend); - this.registerProperty(IsUnmodified); - this.registerProperty(InternetMessageHeaders); - this.registerProperty(DateTimeSent); - this.registerProperty(DateTimeCreated); - this.registerProperty(AllowedResponseActions); - this.registerProperty(ReminderDueBy); - this.registerProperty(IsReminderSet); - this.registerProperty(ReminderMinutesBeforeStart); - this.registerProperty(DisplayCc); - this.registerProperty(DisplayTo); - this.registerProperty(HasAttachments); - this.registerProperty(ServiceObjectSchema.extendedProperties); - this.registerProperty(Culture); - this.registerProperty(EffectiveRights); - this.registerProperty(LastModifiedName); - this.registerProperty(LastModifiedTime); - this.registerProperty(IsAssociated); - this.registerProperty(WebClientReadFormQueryString); - this.registerProperty(WebClientEditFormQueryString); - this.registerProperty(ConversationId); - this.registerProperty(UniqueBody); - this.registerProperty(StoreEntryId); - - } - - /** - * Initializes a new instance. - */ - protected ItemSchema() { - super(); - } + /** + * The Interface FieldUris. + */ + private static interface FieldUris { + + /** + * The Item id. + */ + String ItemId = "item:ItemId"; + + /** + * The Parent folder id. + */ + String ParentFolderId = "item:ParentFolderId"; + + /** + * The Item class. + */ + String ItemClass = "item:ItemClass"; + + /** + * The Mime content. + */ + String MimeContent = "item:MimeContent"; + + /** + * The Attachments. + */ + String Attachments = "item:Attachments"; + + /** + * The Subject. + */ + String Subject = "item:Subject"; + + /** + * The Date time received. + */ + String DateTimeReceived = "item:DateTimeReceived"; + + /** + * The Size. + */ + String Size = "item:Size"; + + /** + * The Categories. + */ + String Categories = "item:Categories"; + + /** + * The Has attachments. + */ + String HasAttachments = "item:HasAttachments"; + + /** + * The Importance. + */ + String Importance = "item:Importance"; + + /** + * The In reply to. + */ + String InReplyTo = "item:InReplyTo"; + + /** + * The Internet message headers. + */ + String InternetMessageHeaders = "item:InternetMessageHeaders"; + + /** + * The Is associated. + */ + String IsAssociated = "item:IsAssociated"; + + /** + * The Is draft. + */ + String IsDraft = "item:IsDraft"; + + /** + * The Is from me. + */ + String IsFromMe = "item:IsFromMe"; + + /** + * The Is resend. + */ + String IsResend = "item:IsResend"; + + /** + * The Is submitted. + */ + String IsSubmitted = "item:IsSubmitted"; + + /** + * The Is unmodified. + */ + String IsUnmodified = "item:IsUnmodified"; + + /** + * The Date time sent. + */ + String DateTimeSent = "item:DateTimeSent"; + + /** + * The Date time created. + */ + String DateTimeCreated = "item:DateTimeCreated"; + + /** + * The Body. + */ + String Body = "item:Body"; + + /** + * The Response objects. + */ + String ResponseObjects = "item:ResponseObjects"; + + /** + * The Sensitivity. + */ + String Sensitivity = "item:Sensitivity"; + + /** + * The Reminder due by. + */ + String ReminderDueBy = "item:ReminderDueBy"; + + /** + * The Reminder is set. + */ + String ReminderIsSet = "item:ReminderIsSet"; + + /** + * The Reminder minutes before start. + */ + String ReminderMinutesBeforeStart = "item:ReminderMinutesBeforeStart"; + + /** + * The Display to. + */ + String DisplayTo = "item:DisplayTo"; + + /** + * The Display cc. + */ + String DisplayCc = "item:DisplayCc"; + + /** + * The Culture. + */ + String Culture = "item:Culture"; + + /** + * The Effective rights. + */ + String EffectiveRights = "item:EffectiveRights"; + + /** + * The Last modified name. + */ + String LastModifiedName = "item:LastModifiedName"; + + /** + * The Last modified time. + */ + String LastModifiedTime = "item:LastModifiedTime"; + + /** + * The Web client read form query string. + */ + String WebClientReadFormQueryString = + "item:WebClientReadFormQueryString"; + + /** + * The Web client edit form query string. + */ + String WebClientEditFormQueryString = + "item:WebClientEditFormQueryString"; + + /** + * The Conversation id. + */ + String ConversationId = "item:ConversationId"; + + /** + * The Unique body. + */ + String UniqueBody = "item:UniqueBody"; + + String StoreEntryId = "item:StoreEntryId"; + } + + + /** + * Defines the Id property. + */ + public static final PropertyDefinition Id = new + ComplexPropertyDefinition( + ItemId.class, + XmlElementNames.ItemId, FieldUris.ItemId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public ItemId createComplexProperty() { + return new ItemId(); + } + }); + + /** + * Defines the Body property. + */ + public static final PropertyDefinition Body = new + ComplexPropertyDefinition( + MessageBody.class, + XmlElementNames.Body, FieldUris.Body, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public MessageBody createComplexProperty() { + return new MessageBody(); + } + }); + + /** + * Defines the ItemClass property. + */ + public static final PropertyDefinition ItemClass = new + StringPropertyDefinition( + XmlElementNames.ItemClass, FieldUris.ItemClass, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Subject property. + */ + public static final PropertyDefinition Subject = new + StringPropertyDefinition( + XmlElementNames.Subject, FieldUris.Subject, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the MimeContent property. + */ + public static final PropertyDefinition MimeContent = + new ComplexPropertyDefinition( + MimeContent.class, + XmlElementNames.MimeContent, FieldUris.MimeContent, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.MustBeExplicitlyLoaded), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public MimeContent createComplexProperty() { + return new MimeContent(); + } + }); + + /** + * Defines the ParentFolderId property. + */ + public static final PropertyDefinition ParentFolderId = + new ComplexPropertyDefinition( + FolderId.class, + XmlElementNames.ParentFolderId, FieldUris.ParentFolderId, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public FolderId createComplexProperty() { + return new FolderId(); + } + }); + + /** + * Defines the Sensitivity property. + */ + public static final PropertyDefinition Sensitivity = + new GenericPropertyDefinition( + Sensitivity.class, + XmlElementNames.Sensitivity, FieldUris.Sensitivity, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Attachments property. + */ + public static final PropertyDefinition Attachments = new AttachmentsPropertyDefinition(); + + /** + * Defines the DateTimeReceived property. + */ + public static final PropertyDefinition DateTimeReceived = + new DateTimePropertyDefinition( + XmlElementNames.DateTimeReceived, FieldUris.DateTimeReceived, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Size property. + */ + public static final PropertyDefinition Size = new IntPropertyDefinition( + XmlElementNames.Size, FieldUris.Size, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Categories property. + */ + public static final PropertyDefinition Categories = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Categories, FieldUris.Categories, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the Importance property. + */ + public static final PropertyDefinition Importance = + new GenericPropertyDefinition( + Importance.class, + XmlElementNames.Importance, FieldUris.Importance, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the InReplyTo property. + */ + public static final PropertyDefinition InReplyTo = + new StringPropertyDefinition( + XmlElementNames.InReplyTo, FieldUris.InReplyTo, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsSubmitted property. + */ + public static final PropertyDefinition IsSubmitted = + new BoolPropertyDefinition( + XmlElementNames.IsSubmitted, FieldUris.IsSubmitted, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsAssociated property. + */ + public static final PropertyDefinition IsAssociated = + new BoolPropertyDefinition( + XmlElementNames.IsAssociated, FieldUris.IsAssociated, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010); + + /** + * Defines the IsDraft property. + */ + public static final PropertyDefinition IsDraft = new BoolPropertyDefinition( + XmlElementNames.IsDraft, FieldUris.IsDraft, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsFromMe property. + */ + public static final PropertyDefinition IsFromMe = + new BoolPropertyDefinition( + XmlElementNames.IsFromMe, FieldUris.IsFromMe, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsResend property. + */ + public static final PropertyDefinition IsResend = + new BoolPropertyDefinition( + XmlElementNames.IsResend, FieldUris.IsResend, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsUnmodified property. + */ + public static final PropertyDefinition IsUnmodified = + new BoolPropertyDefinition( + XmlElementNames.IsUnmodified, FieldUris.IsUnmodified, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the InternetMessageHeaders property. + */ + public static final PropertyDefinition InternetMessageHeaders = + new ComplexPropertyDefinition( + InternetMessageHeaderCollection.class, + XmlElementNames.InternetMessageHeaders, + FieldUris.InternetMessageHeaders, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + public InternetMessageHeaderCollection createComplexProperty() { + return new InternetMessageHeaderCollection(); + } + }); + + /** + * Defines the DateTimeSent property. + */ + public static final PropertyDefinition DateTimeSent = + new DateTimePropertyDefinition( + XmlElementNames.DateTimeSent, FieldUris.DateTimeSent, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DateTimeCreated property. + */ + public static final PropertyDefinition DateTimeCreated = + new DateTimePropertyDefinition( + XmlElementNames.DateTimeCreated, FieldUris.DateTimeCreated, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the AllowedResponseActions property. + */ + public static final PropertyDefinition AllowedResponseActions = + new ResponseObjectsPropertyDefinition( + XmlElementNames.ResponseObjects, FieldUris.ResponseObjects, + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ReminderDueBy property. + */ + + public static final PropertyDefinition ReminderDueBy = + new DateTimePropertyDefinition( + XmlElementNames.ReminderDueBy, FieldUris.ReminderDueBy, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsReminderSet property. + */ + public static final PropertyDefinition IsReminderSet = + new BoolPropertyDefinition( + XmlElementNames.ReminderIsSet, // Note: server-side the name is + // ReminderIsSet + FieldUris.ReminderIsSet, EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ReminderMinutesBeforeStart property. + */ + public static final PropertyDefinition ReminderMinutesBeforeStart = + new IntPropertyDefinition( + XmlElementNames.ReminderMinutesBeforeStart, + FieldUris.ReminderMinutesBeforeStart, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DisplayCc property. + */ + public static final PropertyDefinition DisplayCc = + new StringPropertyDefinition( + XmlElementNames.DisplayCc, FieldUris.DisplayCc, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DisplayTo property. + */ + public static final PropertyDefinition DisplayTo = + new StringPropertyDefinition( + XmlElementNames.DisplayTo, FieldUris.DisplayTo, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the HasAttachments property. + */ + public static final PropertyDefinition HasAttachments = + new BoolPropertyDefinition( + XmlElementNames.HasAttachments, FieldUris.HasAttachments, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Culture property. + */ + public static final PropertyDefinition Culture = + new StringPropertyDefinition( + XmlElementNames.Culture, FieldUris.Culture, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the EffectiveRights property. + */ + public static final PropertyDefinition EffectiveRights = + new EffectiveRightsPropertyDefinition( + XmlElementNames.EffectiveRights, FieldUris.EffectiveRights, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the LastModifiedName property. + */ + public static final PropertyDefinition LastModifiedName = + new StringPropertyDefinition( + XmlElementNames.LastModifiedName, FieldUris.LastModifiedName, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the LastModifiedTime property. + */ + public static final PropertyDefinition LastModifiedTime = + new DateTimePropertyDefinition( + XmlElementNames.LastModifiedTime, FieldUris.LastModifiedTime, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the WebClientReadFormQueryString property. + */ + public static final PropertyDefinition WebClientReadFormQueryString = + new StringPropertyDefinition( + XmlElementNames.WebClientReadFormQueryString, + FieldUris.WebClientReadFormQueryString, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010); + + /** + * Defines the WebClientEditFormQueryString property. + */ + public static final PropertyDefinition WebClientEditFormQueryString = + new StringPropertyDefinition( + XmlElementNames.WebClientEditFormQueryString, + FieldUris.WebClientEditFormQueryString, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010); + + /** + * Defines the ConversationId property. + */ + public static final PropertyDefinition ConversationId = + new ComplexPropertyDefinition( + ConversationId.class, + XmlElementNames.ConversationId, FieldUris.ConversationId, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010, + new ICreateComplexPropertyDelegate() { + public ConversationId createComplexProperty() { + return new ConversationId(); + } + }); + + /** + * Defines the UniqueBody property. + */ + public static final PropertyDefinition UniqueBody = + new ComplexPropertyDefinition( + UniqueBody.class, + XmlElementNames.UniqueBody, FieldUris.UniqueBody, EnumSet + .of(PropertyDefinitionFlags.MustBeExplicitlyLoaded), + ExchangeVersion.Exchange2010, + new ICreateComplexPropertyDelegate() { + public UniqueBody createComplexProperty() { + return new UniqueBody(); + } + }); + + /** + * Defines the StoreEntryId property. + */ + + public static final PropertyDefinition StoreEntryId = + new ByteArrayPropertyDefinition( + XmlElementNames.StoreEntryId, + FieldUris.StoreEntryId, + EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2010_SP2); + + + + /** + * The Constant Instance. + */ + protected static final ItemSchema Instance = new ItemSchema(); + + /** + * Gets the single instance of ItemSchema. + * + * @return single instance of ItemSchema + */ + public static ItemSchema getInstance() { + return Instance; + } + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + this.registerProperty(MimeContent); + this.registerProperty(Id); + this.registerProperty(ParentFolderId); + this.registerProperty(ItemClass); + this.registerProperty(Subject); + this.registerProperty(Sensitivity); + this.registerProperty(Body); + this.registerProperty(Attachments); + this.registerProperty(DateTimeReceived); + this.registerProperty(Size); + this.registerProperty(Categories); + this.registerProperty(Importance); + this.registerProperty(InReplyTo); + this.registerProperty(IsSubmitted); + this.registerProperty(IsDraft); + this.registerProperty(IsFromMe); + this.registerProperty(IsResend); + this.registerProperty(IsUnmodified); + this.registerProperty(InternetMessageHeaders); + this.registerProperty(DateTimeSent); + this.registerProperty(DateTimeCreated); + this.registerProperty(AllowedResponseActions); + this.registerProperty(ReminderDueBy); + this.registerProperty(IsReminderSet); + this.registerProperty(ReminderMinutesBeforeStart); + this.registerProperty(DisplayCc); + this.registerProperty(DisplayTo); + this.registerProperty(HasAttachments); + this.registerProperty(ServiceObjectSchema.extendedProperties); + this.registerProperty(Culture); + this.registerProperty(EffectiveRights); + this.registerProperty(LastModifiedName); + this.registerProperty(LastModifiedTime); + this.registerProperty(IsAssociated); + this.registerProperty(WebClientReadFormQueryString); + this.registerProperty(WebClientEditFormQueryString); + this.registerProperty(ConversationId); + this.registerProperty(UniqueBody); + this.registerProperty(StoreEntryId); + + } + + /** + * Initializes a new instance. + */ + protected ItemSchema() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java index 9898a9297..30f8b96db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ItemTraversal { - // All non deleted items in the specified folder are retrieved. - /** The Shallow. */ - Shallow, + // All non deleted items in the specified folder are retrieved. + /** + * The Shallow. + */ + Shallow, - // Only soft-deleted items are retrieved. - /** The Soft deleted. */ - SoftDeleted, + // Only soft-deleted items are retrieved. + /** + * The Soft deleted. + */ + SoftDeleted, - // Only associated items are retrieved (Exchange 2010 or later). - /** The Associated. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - Associated + // Only associated items are retrieved (Exchange 2010 or later). + /** + * The Associated. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + Associated } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemView.java b/src/main/java/microsoft/exchange/webservices/data/ItemView.java index 3e18a5d1d..26ea6a8d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemView.java @@ -14,167 +14,151 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the view settings in a folder search operation. - * */ public final class ItemView extends PagedView { - /** The traversal. */ - private ItemTraversal traversal = ItemTraversal.Shallow; - - /** The order by. */ - private OrderByCollection orderBy = new OrderByCollection(); - - /** - * Gets the name of the view XML element. - * - * @return XML element name. - */ - @Override - protected String getViewXmlElementName() { - return XmlElementNames.IndexedPageItemView; - } - - /** - * Gets the type of service object this view applies to. - * - * @return A ServiceObjectType value. - */ - @Override - protected ServiceObjectType getServiceObjectType() { - return ServiceObjectType.Item; - } - - /** - * Validates this view. - * - * @param request - * the request - * @throws ServiceVersionException - * the service version exception - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate(ServiceRequestBase request) - throws ServiceVersionException, ServiceValidationException { - super.internalValidate(request); - - EwsUtilities.validateEnumVersionValue(this.traversal, request - .getService().getRequestedServerVersion()); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Traversal, this.traversal); - } - - /** - * Internals the write search settings to XML. - * - * @param writer - * the writer - * @param groupBy - * the group by - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, - Grouping groupBy) throws XMLStreamException, - ServiceXmlSerializationException { - super.internalWriteSearchSettingsToXml(writer, groupBy); - } - - /** - * Writes OrderBy property to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeOrderByToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - this.orderBy.writeToXml(writer, XmlElementNames.SortOrder); - } - - /** - * Initializes a new instance of the ItemView class. - * - * @param pageSize - * the page size - */ - public ItemView(int pageSize) { - super(pageSize); - } - - /** - * Initializes a new instance of the ItemView class. - * - * @param pageSize - * the page size - * @param offset - * the offset - */ - public ItemView(int pageSize, int offset) { - super(pageSize, offset); - this.setOffset(offset); - } - - /** - * Initializes a new instance of the ItemView class. - * - * @param pageSize - * the page size - * @param offset - * the offset - * @param offsetBasePoint - * the offset base point - */ - public ItemView(int pageSize, int offset, OffsetBasePoint offsetBasePoint) { - super(pageSize, offset, offsetBasePoint); - } - - /** - * Gets the search traversal mode. Defaults to - * ItemTraversal.Shallow. - * - * @return the traversal - */ - public ItemTraversal getTraversal() { - return this.traversal; - } - - /** - * Sets the traversal. - * - * @param value - * the new traversal - */ - public void setTraversal(ItemTraversal value) { - this.traversal = value; - } - - /** - * Gets the properties against which the returned items should be ordered. - * - * @return the order by - */ - public OrderByCollection getOrderBy() { - return this.orderBy; - } + /** + * The traversal. + */ + private ItemTraversal traversal = ItemTraversal.Shallow; + + /** + * The order by. + */ + private OrderByCollection orderBy = new OrderByCollection(); + + /** + * Gets the name of the view XML element. + * + * @return XML element name. + */ + @Override + protected String getViewXmlElementName() { + return XmlElementNames.IndexedPageItemView; + } + + /** + * Gets the type of service object this view applies to. + * + * @return A ServiceObjectType value. + */ + @Override + protected ServiceObjectType getServiceObjectType() { + return ServiceObjectType.Item; + } + + /** + * Validates this view. + * + * @param request the request + * @throws ServiceVersionException the service version exception + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate(ServiceRequestBase request) + throws ServiceVersionException, ServiceValidationException { + super.internalValidate(request); + + EwsUtilities.validateEnumVersionValue(this.traversal, request + .getService().getRequestedServerVersion()); + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Traversal, this.traversal); + } + + /** + * Internals the write search settings to XML. + * + * @param writer the writer + * @param groupBy the group by + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, + Grouping groupBy) throws XMLStreamException, + ServiceXmlSerializationException { + super.internalWriteSearchSettingsToXml(writer, groupBy); + } + + /** + * Writes OrderBy property to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeOrderByToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + this.orderBy.writeToXml(writer, XmlElementNames.SortOrder); + } + + /** + * Initializes a new instance of the ItemView class. + * + * @param pageSize the page size + */ + public ItemView(int pageSize) { + super(pageSize); + } + + /** + * Initializes a new instance of the ItemView class. + * + * @param pageSize the page size + * @param offset the offset + */ + public ItemView(int pageSize, int offset) { + super(pageSize, offset); + this.setOffset(offset); + } + + /** + * Initializes a new instance of the ItemView class. + * + * @param pageSize the page size + * @param offset the offset + * @param offsetBasePoint the offset base point + */ + public ItemView(int pageSize, int offset, OffsetBasePoint offsetBasePoint) { + super(pageSize, offset, offsetBasePoint); + } + + /** + * Gets the search traversal mode. Defaults to + * ItemTraversal.Shallow. + * + * @return the traversal + */ + public ItemTraversal getTraversal() { + return this.traversal; + } + + /** + * Sets the traversal. + * + * @param value the new traversal + */ + public void setTraversal(ItemTraversal value) { + this.traversal = value; + } + + /** + * Gets the properties against which the returned items should be ordered. + * + * @return the order by + */ + public OrderByCollection getOrderBy() { + return this.orderBy; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java index 1045fbf32..ae9935e5c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java @@ -15,47 +15,43 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class ItemWrapper extends AbstractItemIdWrapper { - /** - *The ItemBase object providing the Id. - */ - private Item item; + /** + * The ItemBase object providing the Id. + */ + private Item item; - /** - * Initializes a new instance of ItemWrapper. - * - * @param item - * the item - * @throws ServiceLocalException - * the service local exception - */ - protected ItemWrapper(Item item) throws ServiceLocalException { - EwsUtilities - .EwsAssert(item != null, "ItemWrapper.ctor", "item is null"); - EwsUtilities.EwsAssert(!item.isNew(), "ItemWrapper.ctor", - "item does not have an Id"); - this.item = item; - } + /** + * Initializes a new instance of ItemWrapper. + * + * @param item the item + * @throws ServiceLocalException the service local exception + */ + protected ItemWrapper(Item item) throws ServiceLocalException { + EwsUtilities + .EwsAssert(item != null, "ItemWrapper.ctor", "item is null"); + EwsUtilities.EwsAssert(!item.isNew(), "ItemWrapper.ctor", + "item does not have an Id"); + this.item = item; + } - /** - *Obtains the ItemBase object associated with the wrapper. - * - * @return The ItemBase object associated with the wrapper - */ - public Item getItem() { - return this.item; - } + /** + * Obtains the ItemBase object associated with the wrapper. + * + * @return The ItemBase object associated with the wrapper + */ + public Item getItem() { + return this.item; + } - /** - * Writes the Id encapsulated in the wrapper to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.item.getId().writeToXml(writer); + /** + * Writes the Id encapsulated in the wrapper to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.item.getId().writeToXml(writer); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java index 61b408db2..7f27c3e82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java @@ -13,10 +13,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Wrapper class for lazy members. Does lazy initialization of member on first * access. - * - * @param - * Type of the lazy member - * + * + * @param Type of the lazy member + *

* If we find ourselves creating a whole bunch of these in our code, * we need to rethink this. Each lazy member holds the actual member, * a lock object, a boolean flag and a delegate. That can turn into a @@ -24,41 +23,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class LazyMember { - /** The lazy member. */ - private T lazyMember; + /** + * The lazy member. + */ + private T lazyMember; - /** The initialized. */ - private boolean initialized = false; + /** + * The initialized. + */ + private boolean initialized = false; - /** The lazy implementation. */ - private ILazyMember lazyImplementation; + /** + * The lazy implementation. + */ + private ILazyMember lazyImplementation; - /** - * Public accessor for the lazy member. Lazy initializes the member on first - * access - * - * @return the member - */ - public T getMember() { - if (!this.initialized) { - synchronized (this) { - if (!this.initialized) { - this.lazyMember = lazyImplementation.createInstance(); - } - this.initialized = true; - } - } - return lazyMember; - } + /** + * Public accessor for the lazy member. Lazy initializes the member on first + * access + * + * @return the member + */ + public T getMember() { + if (!this.initialized) { + synchronized (this) { + if (!this.initialized) { + this.lazyMember = lazyImplementation.createInstance(); + } + this.initialized = true; + } + } + return lazyMember; + } - /** - * Constructor. - * - * @param lazyImplementation - * The initialization delegate to call for the item on first - * access - */ - public LazyMember(ILazyMember lazyImplementation) { - this.lazyImplementation = lazyImplementation; - } + /** + * Constructor. + * + * @param lazyImplementation The initialization delegate to call for the item on first + * access + */ + public LazyMember(ILazyMember lazyImplementation) { + this.lazyImplementation = lazyImplementation; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java index 4e77da44c..0f683e8d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java @@ -16,107 +16,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a time zone as used by GetUserAvailabilityRequest. */ final class LegacyAvailabilityTimeZone extends ComplexProperty { - - /** The bias. */ - private TimeSpan bias; - - /** The standard time. */ - private LegacyAvailabilityTimeZoneTime standardTime; - - /** The daylight time. */ - private LegacyAvailabilityTimeZoneTime daylightTime; - /** - * Initializes a new instance of the LegacyAvailabilityTimeZone class. - */ - protected LegacyAvailabilityTimeZone() { - super(); - this.bias = new TimeSpan(0); - // If there are no adjustment rules (which is the - //case for UTC), we have to come up with two - // dummy time changes which both have a delta of - //zero and happen at two hard coded dates. This - // simulates a time zone in which there are no time changes. - this.daylightTime = new LegacyAvailabilityTimeZoneTime(); - this.daylightTime.setDelta(new TimeSpan(0)); - this.daylightTime.setDayOrder(1); - this.daylightTime.setDayOfTheWeek(DayOfTheWeek.Sunday); - this.daylightTime.setMonth(10); - this.daylightTime.setTimeOfDay(new TimeSpan(2*60*60*1000)); - this.daylightTime.setYear(0); + /** + * The bias. + */ + private TimeSpan bias; - this.standardTime = new LegacyAvailabilityTimeZoneTime(); - this.standardTime.setDelta(new TimeSpan(0)); - this.standardTime.setDayOrder(1); - this.standardTime.setDayOfTheWeek(DayOfTheWeek.Sunday); - this.standardTime.setMonth(3); - this.standardTime.setTimeOfDay(new TimeSpan(2*60*60*1000)); - this.daylightTime.setYear(0); - } + /** + * The standard time. + */ + private LegacyAvailabilityTimeZoneTime standardTime; + + /** + * The daylight time. + */ + private LegacyAvailabilityTimeZoneTime daylightTime; + + /** + * Initializes a new instance of the LegacyAvailabilityTimeZone class. + */ + protected LegacyAvailabilityTimeZone() { + super(); + this.bias = new TimeSpan(0); + // If there are no adjustment rules (which is the + //case for UTC), we have to come up with two + // dummy time changes which both have a delta of + //zero and happen at two hard coded dates. This + // simulates a time zone in which there are no time changes. + this.daylightTime = new LegacyAvailabilityTimeZoneTime(); + this.daylightTime.setDelta(new TimeSpan(0)); + this.daylightTime.setDayOrder(1); + this.daylightTime.setDayOfTheWeek(DayOfTheWeek.Sunday); + this.daylightTime.setMonth(10); + this.daylightTime.setTimeOfDay(new TimeSpan(2 * 60 * 60 * 1000)); + this.daylightTime.setYear(0); + + this.standardTime = new LegacyAvailabilityTimeZoneTime(); + this.standardTime.setDelta(new TimeSpan(0)); + this.standardTime.setDayOrder(1); + this.standardTime.setDayOfTheWeek(DayOfTheWeek.Sunday); + this.standardTime.setMonth(3); + this.standardTime.setTimeOfDay(new TimeSpan(2 * 60 * 60 * 1000)); + this.daylightTime.setYear(0); + } + + /** + * To time zone info. + * + * @return the time zone + */ + protected TimeZoneDefinition toTimeZoneInfo() { - /** - * To time zone info. - * - * @return the time zone - */ - protected TimeZoneDefinition toTimeZoneInfo() { - /*NumberFormat formatter = new DecimalFormat("00"); String timeZoneId = this.bias.isNegative() ? "GMT+"+formatter. format(this.bias.getHours())+":"+ formatter.format(this.bias.getMinutes()) : "GMT-"+formatter.format(this.bias.getHours())+":"+ formatter.format(this.bias.getMinutes()); -*/ TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); - timeZoneDefinition.id = UUID.randomUUID().toString(); - timeZoneDefinition.name = "Custom time zone"; - return timeZoneDefinition; - } +*/ + TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); + timeZoneDefinition.id = UUID.randomUUID().toString(); + timeZoneDefinition.name = "Custom time zone"; + return timeZoneDefinition; + } - /** - * Tries to read element from XML. - * - * @param reader the reader - * @return True if element was read. - * @throws Exception the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.Bias)) { - this.bias = new TimeSpan((long) - reader.readElementValue(Integer.class) * 60 * 1000); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.StandardTime)) { - this.standardTime = new LegacyAvailabilityTimeZoneTime(); - this.standardTime.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.DaylightTime)) { - this.daylightTime = new LegacyAvailabilityTimeZoneTime(); - this.daylightTime.loadFromXml(reader, reader.getLocalName()); - return true; - } else { + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.Bias)) { + this.bias = new TimeSpan((long) + reader.readElementValue(Integer.class) * 60 * 1000); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.StandardTime)) { + this.standardTime = new LegacyAvailabilityTimeZoneTime(); + this.standardTime.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.DaylightTime)) { + this.daylightTime = new LegacyAvailabilityTimeZoneTime(); + this.daylightTime.loadFromXml(reader, reader.getLocalName()); + return true; + } else { - return false; - } + return false; + } - } + } - /** - * Writes the elements to XML. - * - * @param writer the writer - * @throws Exception the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Bias, - (int)this.bias.getTotalMinutes()); + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Bias, + (int) this.bias.getTotalMinutes()); - this.standardTime.writeToXml(writer, XmlElementNames.StandardTime); - this.daylightTime.writeToXml(writer, XmlElementNames.DaylightTime); - } + this.standardTime.writeToXml(writer, XmlElementNames.StandardTime); + this.daylightTime.writeToXml(writer, XmlElementNames.DaylightTime); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java index 083e28e7a..6b7a4537e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java @@ -16,42 +16,54 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a custom time zone time change. */ final class LegacyAvailabilityTimeZoneTime extends ComplexProperty { - - /** The delta. */ - private TimeSpan delta; - - /** The year. */ - private int year; - - /** The month. */ - private int month; - - /** The day order. */ - private int dayOrder; - - /** The day of the week. */ - private DayOfTheWeek dayOfTheWeek; - - /** The time of day. */ - private TimeSpan timeOfDay; - - /** - * Initializes a new instance of the LegacyAvailabilityTimeZoneTime class. - */ - protected LegacyAvailabilityTimeZoneTime() { - super(); - } - /** - * initializes a new instance of the LegacyAvailabilityTimeZoneTime class. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - /* + /** + * The delta. + */ + private TimeSpan delta; + + /** + * The year. + */ + private int year; + + /** + * The month. + */ + private int month; + + /** + * The day order. + */ + private int dayOrder; + + /** + * The day of the week. + */ + private DayOfTheWeek dayOfTheWeek; + + /** + * The time of day. + */ + private TimeSpan timeOfDay; + + /** + * Initializes a new instance of the LegacyAvailabilityTimeZoneTime class. + */ + protected LegacyAvailabilityTimeZoneTime() { + super(); + } + + /** + * initializes a new instance of the LegacyAvailabilityTimeZoneTime class. + * + * @param reader + * the reader + * @return true, if successful + * @throws Exception + * the exception + */ + /* * protected LegacyAvailabilityTimeZoneTime(TimeZone.TransitionTime * transitionTime, TimeSpan delta) { this(); this.delta = delta; * @@ -68,11 +80,11 @@ protected LegacyAvailabilityTimeZoneTime() { * transitionTime.TimeOfDay.TimeOfDay; } } */ - /** - * Converts this instance to TimeZoneInfo.TransitionTime. returns - * TimeZoneInfo.TransitionTime - * - */ + /** + * Converts this instance to TimeZoneInfo.TransitionTime. returns + * TimeZoneInfo.TransitionTime + * + */ /* * protected TimeZone.TransitionTime toTransitionTime() { if (this.year == * 0) { return TimeZone.TransitionTime.createFloatingDateRule( new Date( @@ -84,205 +96,194 @@ protected LegacyAvailabilityTimeZoneTime() { * Date(this.timeOfDay.Ticks), this.month, this.dayOrder); } } */ - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read. - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.Bias)) { - this.delta = new TimeSpan((long) - reader.readElementValue(Integer.class) * 60 * 1000); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Time)) { - this.timeOfDay = TimeSpan.parse(reader.readElementValue()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.DayOrder)) { - this.dayOrder = reader.readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { - this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Month)) { - this.month = reader.readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Year)) { - this.year = reader.readElementValue(Integer.class); - return true; - } else { - return false; - } - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Bias, - (int) this.delta.getMinutes()); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, - EwsUtilities.timeSpanToXSTime(this.timeOfDay)); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DayOrder, - this.dayOrder); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, this.month); - - // Only write DayOfWeek if this is a recurring time change - if (this.getYear() == 0) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfWeek, this.dayOfTheWeek); - } - - // Only emit year if it's non zero, otherwise AS returns - // "Request is invalid" - if (this.getYear() != 0) { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Year, - this.getYear()); - } - } - - /** - * Gets if current time presents DST transition time - * @return month - */ - protected boolean getHasTransitionTime() - { - return this.month >= 1 && this.month <= 12; + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read. + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.Bias)) { + this.delta = new TimeSpan((long) + reader.readElementValue(Integer.class) * 60 * 1000); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Time)) { + this.timeOfDay = TimeSpan.parse(reader.readElementValue()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.DayOrder)) { + this.dayOrder = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { + this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Month)) { + this.month = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Year)) { + this.year = reader.readElementValue(Integer.class); + return true; + } else { + return false; } + } - - /** - * Gets the delta. - * - * @return the delta - */ - protected TimeSpan getDelta() { - return this.delta; - } + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Bias, + (int) this.delta.getMinutes()); - /** - * Sets the delta. - * - * @param delta - * the new delta - */ - protected void setDelta(TimeSpan delta) { - this.delta = delta; - } - - /** - * Gets the time of day. - * - * @return the time of day - */ - protected TimeSpan getTimeOfDay() { - return this.timeOfDay; - } + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, + EwsUtilities.timeSpanToXSTime(this.timeOfDay)); - /** - * Sets the time of day. - * - * @param timeOfDay - * the new time of day - */ - protected void setTimeOfDay(TimeSpan timeOfDay) { - this.timeOfDay = timeOfDay; - } - - /** - * Gets a value that represents: - The day of the month when Year is - * non zero, - The index of the week in the month if Year is equal to zero. - * - * @return the day order - */ - protected int getDayOrder() { - return this.dayOrder; - } + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DayOrder, + this.dayOrder); - /** - * Sets the day order. - * - * @param dayOrder - * the new day order - */ - protected void setDayOrder(int dayOrder) { - this.dayOrder = dayOrder; - } - - /** - * Gets the month. - * - * @return the month - */ - protected int getMonth() { - return this.month; - } + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, this.month); - /** - * Sets the month. - * - * @param month - * the new month - */ - protected void setMonth(int month) { - this.month = month; - } - - /** - * Gets the day of the week. - * - * @return the day of the week - */ - protected DayOfTheWeek getDayOfTheWeek() { - return this.dayOfTheWeek; - } + // Only write DayOfWeek if this is a recurring time change + if (this.getYear() == 0) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfWeek, this.dayOfTheWeek); + } - /** - * Sets the day of the week. - * - * @param dayOfTheWeek - * the new day of the week - */ - protected void setDayOfTheWeek(DayOfTheWeek dayOfTheWeek) { - this.dayOfTheWeek = dayOfTheWeek; - } - - /** - * Gets the year. If Year is 0, the time change occurs every year - * according to a recurring pattern; otherwise, the time change occurs at - * the date specified by Day, Month, Year. - * - * @return the year - */ - protected int getYear() { - return this.year; - } + // Only emit year if it's non zero, otherwise AS returns + // "Request is invalid" + if (this.getYear() != 0) { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Year, + this.getYear()); + } + } - /** - * Sets the year. - * - * @param year - * the new year - */ - protected void setYear(int year) { - this.year = year; - } + /** + * Gets if current time presents DST transition time + * + * @return month + */ + protected boolean getHasTransitionTime() { + return this.month >= 1 && this.month <= 12; + } + + + /** + * Gets the delta. + * + * @return the delta + */ + protected TimeSpan getDelta() { + return this.delta; + } + + /** + * Sets the delta. + * + * @param delta the new delta + */ + protected void setDelta(TimeSpan delta) { + this.delta = delta; + } + + /** + * Gets the time of day. + * + * @return the time of day + */ + protected TimeSpan getTimeOfDay() { + return this.timeOfDay; + } + + /** + * Sets the time of day. + * + * @param timeOfDay the new time of day + */ + protected void setTimeOfDay(TimeSpan timeOfDay) { + this.timeOfDay = timeOfDay; + } + + /** + * Gets a value that represents: - The day of the month when Year is + * non zero, - The index of the week in the month if Year is equal to zero. + * + * @return the day order + */ + protected int getDayOrder() { + return this.dayOrder; + } + + /** + * Sets the day order. + * + * @param dayOrder the new day order + */ + protected void setDayOrder(int dayOrder) { + this.dayOrder = dayOrder; + } + + /** + * Gets the month. + * + * @return the month + */ + protected int getMonth() { + return this.month; + } + + /** + * Sets the month. + * + * @param month the new month + */ + protected void setMonth(int month) { + this.month = month; + } + + /** + * Gets the day of the week. + * + * @return the day of the week + */ + protected DayOfTheWeek getDayOfTheWeek() { + return this.dayOfTheWeek; + } + + /** + * Sets the day of the week. + * + * @param dayOfTheWeek the new day of the week + */ + protected void setDayOfTheWeek(DayOfTheWeek dayOfTheWeek) { + this.dayOfTheWeek = dayOfTheWeek; + } + + /** + * Gets the year. If Year is 0, the time change occurs every year + * according to a recurring pattern; otherwise, the time change occurs at + * the date specified by Day, Month, Year. + * + * @return the year + */ + protected int getYear() { + return this.year; + } + + /** + * Sets the year. + * + * @param year the new year + */ + protected void setYear(int year) { + this.year = year; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 5de4cfe6a..24101c2b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -15,42 +15,53 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum LegacyFreeBusyStatus { - // The time slot associated with the appointment appears as free. - /** The Free. */ - Free(0), - - // The time slot associated with the appointment appears as tentative. - /** The Tentative. */ - Tentative(1), - - // The time slot associated with the appointment appears as busy. - /** The Busy. */ - Busy(2), - - // The time slot associated with the appointment appears as Out of Office. - /** The OOF. */ - OOF(3), - - // No free/busy status is associated with the appointment. - /** The No data. */ - NoData(4); - - /** The busy status. */ - @SuppressWarnings("unused") - private final int busyStatus; - - /** - * Instantiates a new legacy free busy status. - * - * @param busyStatus - * the busy status - */ - LegacyFreeBusyStatus(int busyStatus) { - this.busyStatus = busyStatus; - } - - int getBusyStatus() { - return busyStatus; - } + // The time slot associated with the appointment appears as free. + /** + * The Free. + */ + Free(0), + + // The time slot associated with the appointment appears as tentative. + /** + * The Tentative. + */ + Tentative(1), + + // The time slot associated with the appointment appears as busy. + /** + * The Busy. + */ + Busy(2), + + // The time slot associated with the appointment appears as Out of Office. + /** + * The OOF. + */ + OOF(3), + + // No free/busy status is associated with the appointment. + /** + * The No data. + */ + NoData(4); + + /** + * The busy status. + */ + @SuppressWarnings("unused") + private final int busyStatus; + + /** + * Instantiates a new legacy free busy status. + * + * @param busyStatus the busy status + */ + LegacyFreeBusyStatus(int busyStatus) { + this.busyStatus = busyStatus; + } + + int getBusyStatus() { + return busyStatus; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java index 07246a32c..a46fd34f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java +++ b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java @@ -15,12 +15,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum LogicalOperator { - // The AND operator. - /** The And. */ - And, + // The AND operator. + /** + * The And. + */ + And, - // The OR operator. - /** The Or. */ - Or + // The OR operator. + /** + * The Or. + */ + Or } diff --git a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java index 9bbd7141e..865fee34f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java @@ -14,241 +14,233 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a mailbox reference. - * */ public class Mailbox extends ComplexProperty implements ISearchStringProvider { - // Routing type - /** The routing type. */ - private String routingType; - - // Email address - /** The address. */ - private String address; - - /** - * Initializes a new instance of the Mailbox class. - */ - public Mailbox() { - super(); - } - - /** - * Initializes a new instance of the Mailbox class. - * - * @param smtpAddress - * the smtp address - */ - public Mailbox(String smtpAddress) { - this(); - this.setAddress(smtpAddress); - } - - /** - * Initializes a new instance of the Mailbox class. - * - * @param address - * the address - * @param routingType - * the routing type - */ - public Mailbox(String address, String routingType) { - this(address); - this.setRoutingType(routingType); - } - - /** - * Gets the address. - * - * @return the address - */ - public String getAddress() { - return address; - } - - /** - * Sets the address. - * - * @param address - * the new address - */ - public void setAddress(String address) { - this.address = address; - } - - /** - * True if this instance is valid, false otherthise. - * - * @return true if this instance is valid; otherwise false - */ - public boolean isValid() { - return !(this.getAddress() == null || this.getAddress().isEmpty()); - } - - /** - * Gets the routing type of the address used to refer to the user - * mailbox. - * - * @return the routing type - */ - public String getRoutingType() { - return routingType; - } - - /** - * Sets the routing type. - * - * @param routingType - * the new routing type - */ - public void setRoutingType(String routingType) { - this.routingType = routingType; - } - - /** - * Defines an implicit conversion between a string representing an SMTP - * address and Mailbox. - * - * @param smtpAddress - * the smtp address - * @return A Mailbox initialized with the specified SMTP address. - */ - public static Mailbox getMailboxFromString(String smtpAddress) { - return new Mailbox(smtpAddress); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName() - .equalsIgnoreCase(XmlElementNames.EmailAddress)) { - this.setAddress(reader.readElementValue()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.RoutingType)) { - this.setRoutingType(reader.readElementValue()); - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.EmailAddress, this.address); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.RoutingType, this.routingType); - } - - /** - * Get a string representation for using this instance in a search filter. - * - * @return String representation of instance. - */ - public String getSearchString() { - return this.address; - } - - /** - * Validates this instance. - * @throws Exception - * @throws ServiceValidationException - */ - @Override - protected void internalValidate() - throws ServiceValidationException, Exception { - super.internalValidate(); - - EwsUtilities.validateNonBlankStringParamAllowNull( - this.getAddress(), "address"); - EwsUtilities.validateNonBlankStringParamAllowNull( - this.getRoutingType(), "routingType"); + // Routing type + /** + * The routing type. + */ + private String routingType; + + // Email address + /** + * The address. + */ + private String address; + + /** + * Initializes a new instance of the Mailbox class. + */ + public Mailbox() { + super(); + } + + /** + * Initializes a new instance of the Mailbox class. + * + * @param smtpAddress the smtp address + */ + public Mailbox(String smtpAddress) { + this(); + this.setAddress(smtpAddress); + } + + /** + * Initializes a new instance of the Mailbox class. + * + * @param address the address + * @param routingType the routing type + */ + public Mailbox(String address, String routingType) { + this(address); + this.setRoutingType(routingType); + } + + /** + * Gets the address. + * + * @return the address + */ + public String getAddress() { + return address; + } + + /** + * Sets the address. + * + * @param address the new address + */ + public void setAddress(String address) { + this.address = address; + } + + /** + * True if this instance is valid, false otherthise. + * + * @return true if this instance is valid; otherwise false + */ + public boolean isValid() { + return !(this.getAddress() == null || this.getAddress().isEmpty()); + } + + /** + * Gets the routing type of the address used to refer to the user + * mailbox. + * + * @return the routing type + */ + public String getRoutingType() { + return routingType; + } + + /** + * Sets the routing type. + * + * @param routingType the new routing type + */ + public void setRoutingType(String routingType) { + this.routingType = routingType; + } + + /** + * Defines an implicit conversion between a string representing an SMTP + * address and Mailbox. + * + * @param smtpAddress the smtp address + * @return A Mailbox initialized with the specified SMTP address. + */ + public static Mailbox getMailboxFromString(String smtpAddress) { + return new Mailbox(smtpAddress); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName() + .equalsIgnoreCase(XmlElementNames.EmailAddress)) { + this.setAddress(reader.readElementValue()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.RoutingType)) { + this.setRoutingType(reader.readElementValue()); + return true; + } else { + return false; } - - - /** - * Determines whether the specified Object is equal to the current Object. - * - * @param obj - * the obj - * @return true if the specified Object is equal to the current Object - * otherwise, false. - */ - @Override - public boolean equals(Object obj) { - if (super.equals(obj)) { - return true; - } else { - if (!(obj instanceof Mailbox)) { - return false; - } else { - Mailbox other = (Mailbox) obj; - if (((this.address == null) && (other.address == null)) - || ((this.address != null) && this.address - .equalsIgnoreCase(other.address))) { - return ((this.routingType == null) && - (other.routingType == null)) - || ((this.routingType != null) && this.routingType - .equalsIgnoreCase(other.routingType)); - } else { - return false; - } - } - } - } - - /** - * Serves as a hash function for a particular type. - * - * @return A hash code for the current object - */ - @Override - public int hashCode() { - if (!(null == this.getAddress() || this.getAddress().isEmpty())) { - int hashCode = this.address.hashCode(); - - if (!(null == this.getRoutingType() || this.getRoutingType() - .isEmpty())) { - hashCode ^= this.routingType.hashCode(); - } - return hashCode; - } else { - return super.hashCode(); - } - } - - /** - * Returns a String that represents the current Object. - * - * @return A String that represents the current Object. - */ - @Override - public String toString() { - if (!this.isValid()) { - return ""; - } else if (!(this.routingType == null || this.routingType.isEmpty())) { - return this.routingType + ":" + this.address; - } else { - return this.address; - } - } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.EmailAddress, this.address); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.RoutingType, this.routingType); + } + + /** + * Get a string representation for using this instance in a search filter. + * + * @return String representation of instance. + */ + public String getSearchString() { + return this.address; + } + + /** + * Validates this instance. + * + * @throws Exception + * @throws ServiceValidationException + */ + @Override + protected void internalValidate() + throws ServiceValidationException, Exception { + super.internalValidate(); + + EwsUtilities.validateNonBlankStringParamAllowNull( + this.getAddress(), "address"); + EwsUtilities.validateNonBlankStringParamAllowNull( + this.getRoutingType(), "routingType"); + } + + + /** + * Determines whether the specified Object is equal to the current Object. + * + * @param obj the obj + * @return true if the specified Object is equal to the current Object + * otherwise, false. + */ + @Override + public boolean equals(Object obj) { + if (super.equals(obj)) { + return true; + } else { + if (!(obj instanceof Mailbox)) { + return false; + } else { + Mailbox other = (Mailbox) obj; + if (((this.address == null) && (other.address == null)) + || ((this.address != null) && this.address + .equalsIgnoreCase(other.address))) { + return ((this.routingType == null) && + (other.routingType == null)) + || ((this.routingType != null) && this.routingType + .equalsIgnoreCase(other.routingType)); + } else { + return false; + } + } + } + } + + /** + * Serves as a hash function for a particular type. + * + * @return A hash code for the current object + */ + @Override + public int hashCode() { + if (!(null == this.getAddress() || this.getAddress().isEmpty())) { + int hashCode = this.address.hashCode(); + + if (!(null == this.getRoutingType() || this.getRoutingType() + .isEmpty())) { + hashCode ^= this.routingType.hashCode(); + } + return hashCode; + } else { + return super.hashCode(); + } + } + + /** + * Returns a String that represents the current Object. + * + * @return A String that represents the current Object. + */ + @Override + public String toString() { + if (!this.isValid()) { + return ""; + } else if (!(this.routingType == null || this.routingType.isEmpty())) { + return this.routingType + ":" + this.address; + } else { + return this.address; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java index 8e27df5ac..d5f0d4529 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java @@ -15,37 +15,51 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MailboxType { - // Unknown mailbox type (Exchange 2010 or later). - /** The Unknown. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - Unknown, - - // The EmailAddress represents a one-off contact (Exchange 2010 or later). - /** The One off. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010) - OneOff, - - // The EmailAddress represents a mailbox. - /** The Mailbox. */ - Mailbox, - - // The EmailAddress represents a public folder. - /** The Public folder. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2007_SP1) - PublicFolder, - - // The EmailAddress represents a Public Group. - /** The Public group. */ - @EwsEnum(schemaName = "PublicDL") - PublicGroup, - - // The EmailAddress represents a Contact Group. - /** The Contact group. */ - @EwsEnum(schemaName = "PrivateDL") - ContactGroup, - - // The EmailAddress represents a store contact or AD mail contact. - /** The Contact. */ - Contact, + // Unknown mailbox type (Exchange 2010 or later). + /** + * The Unknown. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + Unknown, + + // The EmailAddress represents a one-off contact (Exchange 2010 or later). + /** + * The One off. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010) + OneOff, + + // The EmailAddress represents a mailbox. + /** + * The Mailbox. + */ + Mailbox, + + // The EmailAddress represents a public folder. + /** + * The Public folder. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2007_SP1) + PublicFolder, + + // The EmailAddress represents a Public Group. + /** + * The Public group. + */ + @EwsEnum(schemaName = "PublicDL") + PublicGroup, + + // The EmailAddress represents a Contact Group. + /** + * The Contact group. + */ + @EwsEnum(schemaName = "PrivateDL") + ContactGroup, + + // The EmailAddress represents a store contact or AD mail contact. + /** + * The Contact. + */ + Contact, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java index 776149a94..6cb56829a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java @@ -12,199 +12,216 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents information for a managed folder. - * */ public final class ManagedFolderInformation extends ComplexProperty { - /** The can delete. */ - private Boolean canDelete; - - /** The can rename or move. */ - private Boolean canRenameOrMove; - - /** The must display comment. */ - private Boolean mustDisplayComment; - - /** The has quota. */ - private Boolean hasQuota; - - /** The is managed folders root. */ - private Boolean isManagedFoldersRoot; - - /** The managed folder id. */ - private String managedFolderId; - - /** The comment. */ - private String comment; - - /** The storage quota. */ - private Integer storageQuota; - - /** The folder size. */ - private Integer folderSize; - - /** The home page. */ - private String homePage; - - /** - * Initializes a new instance of the ManagedFolderInformation class. - */ - protected ManagedFolderInformation() { - super(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.CanDelete)) { - this.canDelete = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.CanRenameOrMove)) { - this.canRenameOrMove = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.MustDisplayComment)) { - this.mustDisplayComment = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.HasQuota)) { - this.hasQuota = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsManagedFoldersRoot)) { - this.isManagedFoldersRoot = reader.readValue(Boolean.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.ManagedFolderId)) { - this.managedFolderId = reader.readValue(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Comment)) { - OutParam value = new OutParam(); - reader.tryReadValue(value); - this.comment = value.getParam(); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.StorageQuota)) { - this.storageQuota = reader.readValue(Integer.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.FolderSize)) { - this.folderSize = reader.readValue(Integer.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.HomePage)) { - OutParam value = new OutParam(); - reader.tryReadValue(value); - this.homePage = value.getParam(); - return true; - } else { - return false; - } - - } - - /** - * Gets a value indicating whether the user can delete objects in the - * folder. - * - * @return the can delete - */ - public Boolean getCanDelete() { - return this.canDelete; - } - - /** - * Gets a value indicating whether the user can rename or move objects in - * the folder. - * - * @return the can rename or move - */ - public Boolean getCanRenameOrMove() { - return canRenameOrMove; - } - - /** - * Gets a value indicating whether the client application must display the - * Comment property to the user. - * - * @return the must display comment - */ - public Boolean getMustDisplayComment() { - return mustDisplayComment; - } - - /** - * Gets a value indicating whether the folder has a quota. - * - * @return the checks for quota - */ - public Boolean getHasQuota() { - return hasQuota; - } - - /** - * Gets a value indicating whether the folder is the root of the managed - * folder hierarchy. - * - * @return the checks if is managed folders root - */ - public Boolean getIsManagedFoldersRoot() { - return isManagedFoldersRoot; - } - - /** - * Gets the Managed Folder Id of the folder. - * - * @return the managed folder id - */ - public String getManagedFolderId() { - return managedFolderId; - } - - /** - * Gets the comment associated with the folder. - * - * @return the comment - */ - public String getComment() { - return comment; - } - - /** - * Gets the storage quota of the folder. - * - * @return the storage quota - */ - public Integer getStorageQuota() { - return storageQuota; - } - - /** - * Gets the size of the folder. - * - * @return the folder size - */ - public Integer getFolderSize() { - return folderSize; - } - - /** - * Gets the home page associated with the folder. - * - * @return the home page - */ - public String getHomePage() { - return homePage; - } + /** + * The can delete. + */ + private Boolean canDelete; + + /** + * The can rename or move. + */ + private Boolean canRenameOrMove; + + /** + * The must display comment. + */ + private Boolean mustDisplayComment; + + /** + * The has quota. + */ + private Boolean hasQuota; + + /** + * The is managed folders root. + */ + private Boolean isManagedFoldersRoot; + + /** + * The managed folder id. + */ + private String managedFolderId; + + /** + * The comment. + */ + private String comment; + + /** + * The storage quota. + */ + private Integer storageQuota; + + /** + * The folder size. + */ + private Integer folderSize; + + /** + * The home page. + */ + private String homePage; + + /** + * Initializes a new instance of the ManagedFolderInformation class. + */ + protected ManagedFolderInformation() { + super(); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.CanDelete)) { + this.canDelete = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.CanRenameOrMove)) { + this.canRenameOrMove = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.MustDisplayComment)) { + this.mustDisplayComment = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.HasQuota)) { + this.hasQuota = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsManagedFoldersRoot)) { + this.isManagedFoldersRoot = reader.readValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.ManagedFolderId)) { + this.managedFolderId = reader.readValue(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Comment)) { + OutParam value = new OutParam(); + reader.tryReadValue(value); + this.comment = value.getParam(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.StorageQuota)) { + this.storageQuota = reader.readValue(Integer.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.FolderSize)) { + this.folderSize = reader.readValue(Integer.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.HomePage)) { + OutParam value = new OutParam(); + reader.tryReadValue(value); + this.homePage = value.getParam(); + return true; + } else { + return false; + } + + } + + /** + * Gets a value indicating whether the user can delete objects in the + * folder. + * + * @return the can delete + */ + public Boolean getCanDelete() { + return this.canDelete; + } + + /** + * Gets a value indicating whether the user can rename or move objects in + * the folder. + * + * @return the can rename or move + */ + public Boolean getCanRenameOrMove() { + return canRenameOrMove; + } + + /** + * Gets a value indicating whether the client application must display the + * Comment property to the user. + * + * @return the must display comment + */ + public Boolean getMustDisplayComment() { + return mustDisplayComment; + } + + /** + * Gets a value indicating whether the folder has a quota. + * + * @return the checks for quota + */ + public Boolean getHasQuota() { + return hasQuota; + } + + /** + * Gets a value indicating whether the folder is the root of the managed + * folder hierarchy. + * + * @return the checks if is managed folders root + */ + public Boolean getIsManagedFoldersRoot() { + return isManagedFoldersRoot; + } + + /** + * Gets the Managed Folder Id of the folder. + * + * @return the managed folder id + */ + public String getManagedFolderId() { + return managedFolderId; + } + + /** + * Gets the comment associated with the folder. + * + * @return the comment + */ + public String getComment() { + return comment; + } + + /** + * Gets the storage quota of the folder. + * + * @return the storage quota + */ + public Integer getStorageQuota() { + return storageQuota; + } + + /** + * Gets the size of the folder. + * + * @return the folder size + */ + public Integer getFolderSize() { + return folderSize; + } + + /** + * Gets the home page associated with the folder. + * + * @return the home page + */ + public String getHomePage() { + return homePage; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java index b68080fad..03dc64302 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java @@ -15,111 +15,165 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MapiPropertyType { - // The property is of type ApplicationTime. - /** The Application time. */ - ApplicationTime, - - // The property is of type ApplicationTimeArray. - /** The Application time array. */ - ApplicationTimeArray, - - // The property is of type Binary. - /** The Binary. */ - Binary, - - // The property is of type BinaryArray. - /** The Binary array. */ - BinaryArray, - - // The property is of type Boolean. - /** The Boolean. */ - Boolean, - - // The property is of type CLSID. - /** The CLSID. */ - CLSID, - - // The property is of type CLSIDArray. - /** The CLSID array. */ - CLSIDArray, - - // The property is of type Currency. - /** The Currency. */ - Currency, - - // The property is of type CurrencyArray. - /** The Currency array. */ - CurrencyArray, - - // The property is of type Double. - /** The Double. */ - Double, - - // The property is of type DoubleArray. - /** The Double array. */ - DoubleArray, - - // The property is of type Error. - /** The Error. */ - Error, - - // The property is of type Float. - /** The Float. */ - Float, - - // The property is of type FloatArray. - /** The Float array. */ - FloatArray, - - // The property is of type Integer. - /** The Integer. */ - Integer, - - // The property is of type IntegerArray. - /** The Integer array. */ - IntegerArray, - - // The property is of type Long. - /** The Long. */ - Long, - - // The property is of type LongArray. - /** The Long array. */ - LongArray, - - // The property is of type Null. - /** The Null. */ - Null, - - // The property is of type Object. - /** The Object. */ - Object, - - // The property is of type ObjectArray. - /** The Object array. */ - ObjectArray, - - // The property is of type Short. - /** The Short. */ - Short, - - // The property is of type ShortArray. - /** The Short array. */ - ShortArray, - - // The property is of type SystemTime. - /** The System time. */ - SystemTime, - - // The property is of type SystemTimeArray. - /** The System time array. */ - SystemTimeArray, - - // The property is of type String. - /** The String. */ - String, - - // The property is of type StringArray. - /** The String array. */ - StringArray + // The property is of type ApplicationTime. + /** + * The Application time. + */ + ApplicationTime, + + // The property is of type ApplicationTimeArray. + /** + * The Application time array. + */ + ApplicationTimeArray, + + // The property is of type Binary. + /** + * The Binary. + */ + Binary, + + // The property is of type BinaryArray. + /** + * The Binary array. + */ + BinaryArray, + + // The property is of type Boolean. + /** + * The Boolean. + */ + Boolean, + + // The property is of type CLSID. + /** + * The CLSID. + */ + CLSID, + + // The property is of type CLSIDArray. + /** + * The CLSID array. + */ + CLSIDArray, + + // The property is of type Currency. + /** + * The Currency. + */ + Currency, + + // The property is of type CurrencyArray. + /** + * The Currency array. + */ + CurrencyArray, + + // The property is of type Double. + /** + * The Double. + */ + Double, + + // The property is of type DoubleArray. + /** + * The Double array. + */ + DoubleArray, + + // The property is of type Error. + /** + * The Error. + */ + Error, + + // The property is of type Float. + /** + * The Float. + */ + Float, + + // The property is of type FloatArray. + /** + * The Float array. + */ + FloatArray, + + // The property is of type Integer. + /** + * The Integer. + */ + Integer, + + // The property is of type IntegerArray. + /** + * The Integer array. + */ + IntegerArray, + + // The property is of type Long. + /** + * The Long. + */ + Long, + + // The property is of type LongArray. + /** + * The Long array. + */ + LongArray, + + // The property is of type Null. + /** + * The Null. + */ + Null, + + // The property is of type Object. + /** + * The Object. + */ + Object, + + // The property is of type ObjectArray. + /** + * The Object array. + */ + ObjectArray, + + // The property is of type Short. + /** + * The Short. + */ + Short, + + // The property is of type ShortArray. + /** + * The Short array. + */ + ShortArray, + + // The property is of type SystemTime. + /** + * The System time. + */ + SystemTime, + + // The property is of type SystemTimeArray. + /** + * The System time array. + */ + SystemTimeArray, + + // The property is of type String. + /** + * The String. + */ + String, + + // The property is of type StringArray. + /** + * The String array. + */ + StringArray } diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index 9366a1588..bcc8c1e7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -13,443 +13,425 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.UUID; +import java.util.*; /** * Utility class to convert between MAPI Property type values and strings. - * */ class MapiTypeConverter { - /** The mapi type converter map. */ - private static LazyMember mapiTypeConverterMap = new - LazyMember(new - ILazyMember() { - - @Override - public MapiTypeConverterMap createInstance() { - MapiTypeConverterMap map = new MapiTypeConverterMap(); - - map.put(MapiPropertyType.ApplicationTime, - new MapiTypeConverterMapEntry(Double.class)); - - MapiTypeConverterMapEntry mapitype = - new MapiTypeConverterMapEntry( - Double.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.ApplicationTimeArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Byte[].class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return Base64EncoderStream.decode(s); - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return Base64EncoderStream - .encode((byte[])o); - } - }); - map.put(MapiPropertyType.Binary, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Byte[].class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return Base64EncoderStream.decode(s); - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return Base64EncoderStream - .encode((byte[])o); - } - }); - mapitype.setIsArray(true); - map.put(MapiPropertyType.BinaryArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Boolean.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return Boolean.parseBoolean(s); - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return o.toString().toLowerCase(); - } - }); - map.put(MapiPropertyType.Boolean, mapitype); - - mapitype = new MapiTypeConverterMapEntry(UUID.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return UUID.fromString(s); - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return o.toString(); - } - }); - map.put(MapiPropertyType.CLSID, mapitype); - - mapitype = new MapiTypeConverterMapEntry(UUID.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return UUID.fromString(s); - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return o.toString(); - } - }); - mapitype.setIsArray(true); - map.put(MapiPropertyType.CLSIDArray, mapitype); - - map.put(MapiPropertyType.Currency, - new MapiTypeConverterMapEntry(Long.class)); - - mapitype = new MapiTypeConverterMapEntry(Long.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.CurrencyArray, mapitype); - - map.put(MapiPropertyType.Double, - new MapiTypeConverterMapEntry(Double.class)); - - mapitype = new MapiTypeConverterMapEntry(Double.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.DoubleArray, mapitype); - - map.put(MapiPropertyType.Error, - new MapiTypeConverterMapEntry(Integer.class)); - - map.put(MapiPropertyType.Float, - new MapiTypeConverterMapEntry(Float.class)); - - mapitype = new MapiTypeConverterMapEntry(Float.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.FloatArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Integer.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return MapiTypeConverter.parseMapiIntegerValue(s); - } - }); - map.put(MapiPropertyType.Integer, - mapitype); - - mapitype = new MapiTypeConverterMapEntry(Integer.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.IntegerArray, mapitype); - - map.put(MapiPropertyType.Long, - new MapiTypeConverterMapEntry(Long.class)); - - mapitype = new MapiTypeConverterMapEntry(Long.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.LongArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(String.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return s; - } - }); - map.put(MapiPropertyType.Object, mapitype); - - mapitype = new MapiTypeConverterMapEntry(String.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return s; - } - }); - mapitype.setIsArray(true); - map.put(MapiPropertyType.ObjectArray, mapitype); - - map.put(MapiPropertyType.Short, - new MapiTypeConverterMapEntry(Short.class)); - - mapitype = new MapiTypeConverterMapEntry(Short.class); - mapitype.setIsArray(true); - map.put(MapiPropertyType.ShortArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(String.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return s; - } - }); - map.put(MapiPropertyType.String, mapitype); - - mapitype = new MapiTypeConverterMapEntry(String.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - return s; - } - }); - mapitype.setIsArray(true); - map.put(MapiPropertyType.StringArray, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Date.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - Date dt = null; - String errMsg = String - .format( - "Date String %s not in " + - "valid UTC/local format", - s); - DateFormat utcFormatter = new SimpleDateFormat( - utcPattern); - if (s.endsWith("Z")) { - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - s = s.substring(0, 10) + "T12:00:00Z"; - try { - dt = utcFormatter.parse(s); - } catch (ParseException e1) { - e.printStackTrace(); - throw new IllegalArgumentException( - errMsg, e); - } - } - } else if (s.endsWith("z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss'z'"); - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } else { - utcFormatter = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } - return dt; - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return EwsUtilities - .dateTimeToXSDateTime((Date)o); - } - }); - map.put(MapiPropertyType.SystemTime, mapitype); - - mapitype = new MapiTypeConverterMapEntry(Date.class); - mapitype.setParse(new IFunction() { - public Object func(String s) { - String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - Date dt = null; - String errMsg = String - .format( - "Date String %s not in " + - "valid UTC/local format", - s); - DateFormat utcFormatter = new SimpleDateFormat( - utcPattern); - if (s.endsWith("Z")) { - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - s = s.substring(0, 10) + "T12:00:00Z"; - try { - dt = utcFormatter.parse(s); - } catch (ParseException e1) { - e.printStackTrace(); - throw new IllegalArgumentException( - errMsg, e); - } - } - } else if (s.endsWith("z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss'z'"); - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } else { - utcFormatter = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - try { - dt = utcFormatter.parse(s); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } - return dt; - } - }); - mapitype - .setConvertToString(new IFunction() { - public String func(Object o) { - return EwsUtilities - .dateTimeToXSDateTime((Date)o); - } - }); - mapitype.setIsArray(true); - map.put(MapiPropertyType.SystemTimeArray, mapitype); - - return map; - } - - }); - - /** - * Converts the string list to array. - * - * @param mapiPropType - * Type of the MAPI property. - * @param strings - * the strings - * @return Array of objects. - * @throws Exception - * the exception - */ - protected static List convertToValue(MapiPropertyType mapiPropType, - Iterator strings) throws Exception { - EwsUtilities.validateParam(strings, "strings"); - - MapiTypeConverterMapEntry typeConverter = getMapiTypeConverterMap() - .get(mapiPropType); - List array = new ArrayList(); - - int index = 0; - - while (strings.hasNext()) { - Object value = typeConverter.ConvertToValueOrDefault(strings.next()); - array.add(index, value); - - } - return array; - } - - /** - * Converts a string to value consistent with MAPI type. - * - * @param mapiPropType - * the mapi prop type - * @param stringValue - * the string value - * @return the object - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws microsoft.exchange.webservices.data.FormatException - * the format exception - */ - protected static Object convertToValue(MapiPropertyType mapiPropType, - String stringValue) throws ServiceXmlDeserializationException, - FormatException { - return getMapiTypeConverterMap().get(mapiPropType).convertToValue( - stringValue); - - } - - /** - * Converts a value to a string. - * - * @param mapiPropType - * the mapi prop type - * @param value - * the value - * @return String value. - */ - protected static String convertToString(MapiPropertyType mapiPropType, - Object value) { - /* + /** + * The mapi type converter map. + */ + private static LazyMember mapiTypeConverterMap = new + LazyMember(new + ILazyMember() { + + @Override + public MapiTypeConverterMap createInstance() { + MapiTypeConverterMap map = new MapiTypeConverterMap(); + + map.put(MapiPropertyType.ApplicationTime, + new MapiTypeConverterMapEntry(Double.class)); + + MapiTypeConverterMapEntry mapitype = + new MapiTypeConverterMapEntry( + Double.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.ApplicationTimeArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Byte[].class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return Base64EncoderStream.decode(s); + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return Base64EncoderStream + .encode((byte[]) o); + } + }); + map.put(MapiPropertyType.Binary, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Byte[].class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return Base64EncoderStream.decode(s); + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return Base64EncoderStream + .encode((byte[]) o); + } + }); + mapitype.setIsArray(true); + map.put(MapiPropertyType.BinaryArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Boolean.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return Boolean.parseBoolean(s); + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return o.toString().toLowerCase(); + } + }); + map.put(MapiPropertyType.Boolean, mapitype); + + mapitype = new MapiTypeConverterMapEntry(UUID.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return UUID.fromString(s); + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return o.toString(); + } + }); + map.put(MapiPropertyType.CLSID, mapitype); + + mapitype = new MapiTypeConverterMapEntry(UUID.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return UUID.fromString(s); + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return o.toString(); + } + }); + mapitype.setIsArray(true); + map.put(MapiPropertyType.CLSIDArray, mapitype); + + map.put(MapiPropertyType.Currency, + new MapiTypeConverterMapEntry(Long.class)); + + mapitype = new MapiTypeConverterMapEntry(Long.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.CurrencyArray, mapitype); + + map.put(MapiPropertyType.Double, + new MapiTypeConverterMapEntry(Double.class)); + + mapitype = new MapiTypeConverterMapEntry(Double.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.DoubleArray, mapitype); + + map.put(MapiPropertyType.Error, + new MapiTypeConverterMapEntry(Integer.class)); + + map.put(MapiPropertyType.Float, + new MapiTypeConverterMapEntry(Float.class)); + + mapitype = new MapiTypeConverterMapEntry(Float.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.FloatArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Integer.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return MapiTypeConverter.parseMapiIntegerValue(s); + } + }); + map.put(MapiPropertyType.Integer, + mapitype); + + mapitype = new MapiTypeConverterMapEntry(Integer.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.IntegerArray, mapitype); + + map.put(MapiPropertyType.Long, + new MapiTypeConverterMapEntry(Long.class)); + + mapitype = new MapiTypeConverterMapEntry(Long.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.LongArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(String.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return s; + } + }); + map.put(MapiPropertyType.Object, mapitype); + + mapitype = new MapiTypeConverterMapEntry(String.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return s; + } + }); + mapitype.setIsArray(true); + map.put(MapiPropertyType.ObjectArray, mapitype); + + map.put(MapiPropertyType.Short, + new MapiTypeConverterMapEntry(Short.class)); + + mapitype = new MapiTypeConverterMapEntry(Short.class); + mapitype.setIsArray(true); + map.put(MapiPropertyType.ShortArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(String.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return s; + } + }); + map.put(MapiPropertyType.String, mapitype); + + mapitype = new MapiTypeConverterMapEntry(String.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + return s; + } + }); + mapitype.setIsArray(true); + map.put(MapiPropertyType.StringArray, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Date.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + Date dt = null; + String errMsg = String + .format( + "Date String %s not in " + + "valid UTC/local format", + s); + DateFormat utcFormatter = new SimpleDateFormat( + utcPattern); + if (s.endsWith("Z")) { + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + s = s.substring(0, 10) + "T12:00:00Z"; + try { + dt = utcFormatter.parse(s); + } catch (ParseException e1) { + e.printStackTrace(); + throw new IllegalArgumentException( + errMsg, e); + } + } + } else if (s.endsWith("z")) { + // String in UTC format yyyy-MM-ddTHH:mm:ssZ + utcFormatter = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss'z'"); + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + throw new IllegalArgumentException(e); + } + } else { + utcFormatter = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + throw new IllegalArgumentException(e); + } + } + return dt; + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return EwsUtilities + .dateTimeToXSDateTime((Date) o); + } + }); + map.put(MapiPropertyType.SystemTime, mapitype); + + mapitype = new MapiTypeConverterMapEntry(Date.class); + mapitype.setParse(new IFunction() { + public Object func(String s) { + String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + Date dt = null; + String errMsg = String + .format( + "Date String %s not in " + + "valid UTC/local format", + s); + DateFormat utcFormatter = new SimpleDateFormat( + utcPattern); + if (s.endsWith("Z")) { + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + s = s.substring(0, 10) + "T12:00:00Z"; + try { + dt = utcFormatter.parse(s); + } catch (ParseException e1) { + e.printStackTrace(); + throw new IllegalArgumentException( + errMsg, e); + } + } + } else if (s.endsWith("z")) { + // String in UTC format yyyy-MM-ddTHH:mm:ssZ + utcFormatter = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss'z'"); + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + throw new IllegalArgumentException(e); + } + } else { + utcFormatter = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + try { + dt = utcFormatter.parse(s); + } catch (ParseException e) { + throw new IllegalArgumentException(e); + } + } + return dt; + } + }); + mapitype + .setConvertToString(new IFunction() { + public String func(Object o) { + return EwsUtilities + .dateTimeToXSDateTime((Date) o); + } + }); + mapitype.setIsArray(true); + map.put(MapiPropertyType.SystemTimeArray, mapitype); + + return map; + } + + }); + + /** + * Converts the string list to array. + * + * @param mapiPropType Type of the MAPI property. + * @param strings the strings + * @return Array of objects. + * @throws Exception the exception + */ + protected static List convertToValue(MapiPropertyType mapiPropType, + Iterator strings) throws Exception { + EwsUtilities.validateParam(strings, "strings"); + + MapiTypeConverterMapEntry typeConverter = getMapiTypeConverterMap() + .get(mapiPropType); + List array = new ArrayList(); + + int index = 0; + + while (strings.hasNext()) { + Object value = typeConverter.ConvertToValueOrDefault(strings.next()); + array.add(index, value); + + } + return array; + } + + /** + * Converts a string to value consistent with MAPI type. + * + * @param mapiPropType the mapi prop type + * @param stringValue the string value + * @return the object + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws microsoft.exchange.webservices.data.FormatException the format exception + */ + protected static Object convertToValue(MapiPropertyType mapiPropType, + String stringValue) throws ServiceXmlDeserializationException, + FormatException { + return getMapiTypeConverterMap().get(mapiPropType).convertToValue( + stringValue); + + } + + /** + * Converts a value to a string. + * + * @param mapiPropType the mapi prop type + * @param value the value + * @return String value. + */ + protected static String convertToString(MapiPropertyType mapiPropType, + Object value) { + /* * if(! (value instanceof FuncInterface)){ return null; } */ - return (value == null) ? "" : getMapiTypeConverterMap().get( - mapiPropType).getConvertToString().func(value); - } - - /** - * Change value to a value of compatible type. - * - * @param mapiType - * the mapi type - * @param value - * the value - * @return the object - * @throws Exception - * the exception - */ - protected static Object changeType(MapiPropertyType mapiType, Object value) - throws Exception { - EwsUtilities.validateParam(value, "value"); - - return getMapiTypeConverterMap().get(mapiType).changeType(value); - } - - /** - * Converts a MAPI Integer value. - * Usually the value is an integer but there are cases where the value has been "schematized" to an - * Enumeration value (e.g. NoData) which we have no choice but to fallback and represent as a string. - * @param s - * The string value. - * @return Integer value or the original string if the value could not be parsed as such. - */ - protected static Object parseMapiIntegerValue(String s) - { - int intValue; - try { - intValue = Integer.parseInt(s.trim()); - return new Integer(intValue); - } catch (NumberFormatException e) { - return s; - } + return (value == null) ? "" : getMapiTypeConverterMap().get( + mapiPropType).getConvertToString().func(value); + } + + /** + * Change value to a value of compatible type. + * + * @param mapiType the mapi type + * @param value the value + * @return the object + * @throws Exception the exception + */ + protected static Object changeType(MapiPropertyType mapiType, Object value) + throws Exception { + EwsUtilities.validateParam(value, "value"); + + return getMapiTypeConverterMap().get(mapiType).changeType(value); + } + + /** + * Converts a MAPI Integer value. + * Usually the value is an integer but there are cases where the value has been "schematized" to an + * Enumeration value (e.g. NoData) which we have no choice but to fallback and represent as a string. + * + * @param s The string value. + * @return Integer value or the original string if the value could not be parsed as such. + */ + protected static Object parseMapiIntegerValue(String s) { + int intValue; + try { + intValue = Integer.parseInt(s.trim()); + return new Integer(intValue); + } catch (NumberFormatException e) { + return s; } - - /** - * Determines whether MapiPropertyType is an array type. - * - * @param mapiType - * the mapi type - * @return true, if is array type - */ - protected static boolean isArrayType(MapiPropertyType mapiType) { - return getMapiTypeConverterMap().get(mapiType).getIsArray(); - } - - /** - * Gets the MAPI type converter map. - * - * @return the mapi type converter map - */ - protected static Map - getMapiTypeConverterMap() { - - return mapiTypeConverterMap.getMember(); - } + } + + /** + * Determines whether MapiPropertyType is an array type. + * + * @param mapiType the mapi type + * @return true, if is array type + */ + protected static boolean isArrayType(MapiPropertyType mapiType) { + return getMapiTypeConverterMap().get(mapiType).getIsArray(); + } + + /** + * Gets the MAPI type converter map. + * + * @return the mapi type converter map + */ + protected static Map + getMapiTypeConverterMap() { + + return mapiTypeConverterMap.getMember(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index 435009571..da462f3e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -15,7 +15,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class MapiTypeConverterMap. */ - class MapiTypeConverterMap extends -HashMap { +class MapiTypeConverterMap extends + HashMap { } diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index 3dc0a8fe8..c5adcb5fb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -13,314 +13,304 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; +import java.util.*; /** * Represents an entry in the MapiTypeConverter map. - * */ class MapiTypeConverterMapEntry { - - /** - * Map CLR types used for MAPI properties to matching default values. - */ - private static LazyMember> defaultValueMap = new LazyMember>( - new ILazyMember>() { - @SuppressWarnings("deprecation") - public Map createInstance() { - - Map map = new HashMap(); - - map.put(Boolean.class, false); - map.put(Byte[].class, null); - map.put(Short.class, new Short((short)0)); - map.put(Integer.class, 0); - map.put(Long.class, new Long(0)); - map.put(Float.class, new Float(0.0)); - map.put(Double.class, new Double(0.0)); - SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - try { - map.put(Date.class, formatter.parse("0001-01-01 12:00:00")); - } catch (ParseException e) { - e.printStackTrace(); - } - map.put(UUID.class, UUID.fromString("00000000-0000-0000-0000-000000000000")); - map.put(String.class, null); - - return map; - - } - }); - /** The is array. */ - boolean isArray; - - /** The type. */ - Class type; - - /** The convert to string. */ - IFunction convertToString; - - /** The parse. */ - IFunction parse; - - /** - * Initializes a new instance of the MapiTypeConverterMapEntry class. - * - * @param type - * The type. y default, converting a type to string is done by - * calling value.ToString. Instances can override this behavior. - * - * By default, converting a string to the appropriate value type - * is done by calling Convert.ChangeType Instances may override - * this behavior. - */ - protected MapiTypeConverterMapEntry(Class type) { - EwsUtilities.EwsAssert( - defaultValueMap.getMember().containsKey(type), - "MapiTypeConverterMapEntry ctor", - String.format("No default value entry for type {0}", type.getName())); - - this.type = type; - this.convertToString = new IFunction() { - public String func(Object o) { - return String.valueOf(o); - } - }; - - this.parse = new IFunction() { - public Object func(String o) { - return o; - } - }; - } - - /** - * Change value to a value of compatible type. - * - * The type of a simple value should match exactly or be convertible to the - * appropriate type. An array value has to be a single dimension (rank), - * contain at least one value and contain elements that exactly match the - * expected type. (We could relax this last requirement so that, for - * example, you could pass an array of Int32 that could be converted to an - * array of Double but that seems like overkill). - * - * @param value - * The value. - * @return New value. - * @throws Exception - * the exception - */ - protected Object changeType(Object value) throws Exception { - if (this.getIsArray()) { - this.validateValueAsArray(value); - return value; - } else if (value.getClass() == this.getType()) { - return value; - } else { - try { - if (this.getType().isInstance(Integer.valueOf(0))) { - Object o = null; - o = Integer.parseInt(value + ""); - return o; - } else if (this.getType().isInstance(new Date())) { - Object o = null; - DateFormat df = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss'Z'"); - return df.parse(value + ""); - } else if (this.getType().isInstance(Boolean.valueOf(false))) { - Object o = null; - o = Boolean.parseBoolean(value + ""); - return o; - } else if (this.getType().isInstance(String.class)) { - return value; - } - return null; - } catch (ClassCastException ex) { - throw new ArgumentException(String.format( - Strings.ValueOfTypeCannotBeConverted, "%s", "%s" - , this.getType()), ex); - } - } - } - - /** - * Converts a string to value consistent with type. - * - * For array types, this method is called for each array element. - * - * @param stringValue - * String to convert to a value. - * @return value - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws microsoft.exchange.webservices.data.FormatException - * the format exception - */ - protected Object convertToValue(String stringValue) - throws ServiceXmlDeserializationException, FormatException { - try { - return this.getParse().func(stringValue); - } catch (ClassCastException ex) { - throw new ServiceXmlDeserializationException(String - .format(Strings.ValueCannotBeConverted, stringValue, this - .getType()), ex); - } catch (NumberFormatException ex) { - throw new ServiceXmlDeserializationException(String - .format(Strings.ValueCannotBeConverted, stringValue, this.getType()), ex); - } - - } - - /** - * Converts a string to value consistent with type (or uses the default value if the string is null or empty). - * @param stringValue to convert to a value. - * @return Value. - * @throws microsoft.exchange.webservices.data.FormatException - * @throws ServiceXmlDeserializationException - */ - protected Object ConvertToValueOrDefault(String stringValue) throws ServiceXmlDeserializationException, FormatException - { - return (stringValue == null || stringValue.isEmpty()) ? this.getDefaultValue() : this.convertToValue(stringValue); + + /** + * Map CLR types used for MAPI properties to matching default values. + */ + private static LazyMember> defaultValueMap = new LazyMember>( + new ILazyMember>() { + @SuppressWarnings("deprecation") + public Map createInstance() { + + Map map = new HashMap(); + + map.put(Boolean.class, false); + map.put(Byte[].class, null); + map.put(Short.class, new Short((short) 0)); + map.put(Integer.class, 0); + map.put(Long.class, new Long(0)); + map.put(Float.class, new Float(0.0)); + map.put(Double.class, new Double(0.0)); + SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + try { + map.put(Date.class, formatter.parse("0001-01-01 12:00:00")); + } catch (ParseException e) { + e.printStackTrace(); + } + map.put(UUID.class, UUID.fromString("00000000-0000-0000-0000-000000000000")); + map.put(String.class, null); + + return map; + + } + }); + /** + * The is array. + */ + boolean isArray; + + /** + * The type. + */ + Class type; + + /** + * The convert to string. + */ + IFunction convertToString; + + /** + * The parse. + */ + IFunction parse; + + /** + * Initializes a new instance of the MapiTypeConverterMapEntry class. + * + * @param type The type. y default, converting a type to string is done by + * calling value.ToString. Instances can override this behavior. + *

+ * By default, converting a string to the appropriate value type + * is done by calling Convert.ChangeType Instances may override + * this behavior. + */ + protected MapiTypeConverterMapEntry(Class type) { + EwsUtilities.EwsAssert( + defaultValueMap.getMember().containsKey(type), + "MapiTypeConverterMapEntry ctor", + String.format("No default value entry for type {0}", type.getName())); + + this.type = type; + this.convertToString = new IFunction() { + public String func(Object o) { + return String.valueOf(o); + } + }; + + this.parse = new IFunction() { + public Object func(String o) { + return o; + } + }; + } + + /** + * Change value to a value of compatible type. + *

+ * The type of a simple value should match exactly or be convertible to the + * appropriate type. An array value has to be a single dimension (rank), + * contain at least one value and contain elements that exactly match the + * expected type. (We could relax this last requirement so that, for + * example, you could pass an array of Int32 that could be converted to an + * array of Double but that seems like overkill). + * + * @param value The value. + * @return New value. + * @throws Exception the exception + */ + protected Object changeType(Object value) throws Exception { + if (this.getIsArray()) { + this.validateValueAsArray(value); + return value; + } else if (value.getClass() == this.getType()) { + return value; + } else { + try { + if (this.getType().isInstance(Integer.valueOf(0))) { + Object o = null; + o = Integer.parseInt(value + ""); + return o; + } else if (this.getType().isInstance(new Date())) { + Object o = null; + DateFormat df = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss'Z'"); + return df.parse(value + ""); + } else if (this.getType().isInstance(Boolean.valueOf(false))) { + Object o = null; + o = Boolean.parseBoolean(value + ""); + return o; + } else if (this.getType().isInstance(String.class)) { + return value; + } + return null; + } catch (ClassCastException ex) { + throw new ArgumentException(String.format( + Strings.ValueOfTypeCannotBeConverted, "%s", "%s" + , this.getType()), ex); + } + } + } + + /** + * Converts a string to value consistent with type. + *

+ * For array types, this method is called for each array element. + * + * @param stringValue String to convert to a value. + * @return value + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws microsoft.exchange.webservices.data.FormatException the format exception + */ + protected Object convertToValue(String stringValue) + throws ServiceXmlDeserializationException, FormatException { + try { + return this.getParse().func(stringValue); + } catch (ClassCastException ex) { + throw new ServiceXmlDeserializationException(String + .format(Strings.ValueCannotBeConverted, stringValue, this + .getType()), ex); + } catch (NumberFormatException ex) { + throw new ServiceXmlDeserializationException(String + .format(Strings.ValueCannotBeConverted, stringValue, this.getType()), ex); + } + + } + + /** + * Converts a string to value consistent with type (or uses the default value if the string is null or empty). + * + * @param stringValue to convert to a value. + * @return Value. + * @throws microsoft.exchange.webservices.data.FormatException + * @throws ServiceXmlDeserializationException + */ + protected Object ConvertToValueOrDefault(String stringValue) + throws ServiceXmlDeserializationException, FormatException { + return (stringValue == null || stringValue.isEmpty()) ? + this.getDefaultValue() : + this.convertToValue(stringValue); + } + + /** + * Validates array value. + * + * @param value the value + * @throws microsoft.exchange.webservices.data.ArgumentException the argument exception + * @throws microsoft.exchange.webservices.data.ArgumentNullException the argument exception + */ + private void validateValueAsArray(Object value) throws ArgumentException, ArgumentNullException { + if (value == null) { + throw new ArgumentNullException("value"); + } + + if (value instanceof ArrayList) { + ArrayList arrayList = (ArrayList) value; + if (arrayList.isEmpty()) { + throw new ArgumentException(Strings.ArrayMustHaveAtLeastOneElement); + } + + if (arrayList.get(0).getClass() != this.getType()) { + throw new ArgumentException(String.format(Strings.IncompatibleTypeForArray, value.getClass(), + this.getType())); + } } + } - /** - * Validates array value. - * - * @param value the value - * @throws microsoft.exchange.webservices.data.ArgumentException the argument exception - * @throws microsoft.exchange.webservices.data.ArgumentNullException the argument exception - */ - private void validateValueAsArray(Object value) throws ArgumentException, ArgumentNullException - { - if (value == null) - { - throw new ArgumentNullException("value"); - } - - if (value instanceof ArrayList) - { - ArrayList arrayList = (ArrayList) value; - if (arrayList.isEmpty()) - { - throw new ArgumentException(Strings.ArrayMustHaveAtLeastOneElement); - } - - if (arrayList.get(0).getClass() != this.getType()) - { - throw new ArgumentException(String.format(Strings.IncompatibleTypeForArray, value.getClass(), - this.getType())); - } - } - } - - /** - * Gets the dim. If `array' is an array object returns its dimensions; - * otherwise returns 0 - * - * @param array - * the array - * @return the dim - */ - public static int getDim(Object array) { - int dim = 0; - Class cls = array.getClass(); - while (cls.isArray()) { - dim++; - cls = cls.getComponentType(); - } - return dim; - } - - /** - * Gets the type. - * - * @return the type - */ - - protected Class getType() { - return this.type; - } - - /** - * Sets the type. - * - * @param cls - * the new type - */ - protected void setType(Class cls) { - type = cls; - } - - /** - * Gets a value indicating whether this instance is array. - * - * @return the checks if is array - */ - protected boolean getIsArray() { - return isArray; - - } - - /** - * Sets the checks if is array. - * - * @param value - * the new checks if is array - */ - protected void setIsArray(boolean value) { - isArray = value; - } - - /** - * Gets the string to object converter. For array types, this method is - * called for each array element. - * - * @return the convert to string - */ - protected IFunction getConvertToString() { - return convertToString; - } - - /** - * Sets the string to object converter. - * - * @param value - * the value - */ - protected void setConvertToString(IFunction value) { - convertToString = value; - } - - /** - * Gets the string parser. For array types, this method is called for each - * array element. - * - * @return the parses the - */ - protected IFunction getParse() { - return parse; - } - - /** - * Sets the string parser. - * - * @param value - * the value - */ - protected void setParse(IFunction value) { - parse = value; - } - - /** - * Gets the default value for the type. - * @return Type - */ - protected Object getDefaultValue() - { - return defaultValueMap.getMember().get(this.type); + /** + * Gets the dim. If `array' is an array object returns its dimensions; + * otherwise returns 0 + * + * @param array the array + * @return the dim + */ + public static int getDim(Object array) { + int dim = 0; + Class cls = array.getClass(); + while (cls.isArray()) { + dim++; + cls = cls.getComponentType(); } + return dim; + } + + /** + * Gets the type. + * + * @return the type + */ + + protected Class getType() { + return this.type; + } + + /** + * Sets the type. + * + * @param cls the new type + */ + protected void setType(Class cls) { + type = cls; + } + + /** + * Gets a value indicating whether this instance is array. + * + * @return the checks if is array + */ + protected boolean getIsArray() { + return isArray; + + } + + /** + * Sets the checks if is array. + * + * @param value the new checks if is array + */ + protected void setIsArray(boolean value) { + isArray = value; + } + + /** + * Gets the string to object converter. For array types, this method is + * called for each array element. + * + * @return the convert to string + */ + protected IFunction getConvertToString() { + return convertToString; + } + + /** + * Sets the string to object converter. + * + * @param value the value + */ + protected void setConvertToString(IFunction value) { + convertToString = value; + } + + /** + * Gets the string parser. For array types, this method is called for each + * array element. + * + * @return the parses the + */ + protected IFunction getParse() { + return parse; + } + + /** + * Sets the string parser. + * + * @param value the value + */ + protected void setParse(IFunction value) { + parse = value; + } + + /** + * Gets the default value for the type. + * + * @return Type + */ + protected Object getDefaultValue() { + return defaultValueMap.getMember().get(this.type); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java index 2fda2ab49..246b2fe38 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java @@ -15,24 +15,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MeetingAttendeeType { - // The attendee is the organizer of the meeting. - /** The Organizer. */ - Organizer, - - // The attendee is required. - /** The Required. */ - Required, - - // The attendee is optional. - /** The Optional. */ - Optional, - - // The attendee is a room. - /** The Room. */ - Room, - - // The attendee is a resource. - /** The Resource. */ - Resource + // The attendee is the organizer of the meeting. + /** + * The Organizer. + */ + Organizer, + + // The attendee is required. + /** + * The Required. + */ + Required, + + // The attendee is optional. + /** + * The Optional. + */ + Optional, + + // The attendee is a room. + /** + * The Room. + */ + Room, + + // The attendee is a resource. + /** + * The Resource. + */ + Resource } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java index c1f807527..1125bbc27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java @@ -13,103 +13,91 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a meeting cancellation message. Properties available on meeting * messages are defined in the MeetingMessageSchema class. - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.MeetingCancellation) public class MeetingCancellation extends MeetingMessage { - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * The parent attachment. - * @throws Exception - * the exception - */ - protected MeetingCancellation(ItemAttachment parentAttachment) - throws Exception { - super(parentAttachment); - } + /** + * Initializes a new instance of the class. + * + * @param parentAttachment The parent attachment. + * @throws Exception the exception + */ + protected MeetingCancellation(ItemAttachment parentAttachment) + throws Exception { + super(parentAttachment); + } - /** - * Initializes a new instance of the class. - * - * @param service - * EWS service to which this object belongs. - * @throws Exception - * the exception - */ - protected MeetingCancellation(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes a new instance of the class. + * + * @param service EWS service to which this object belongs. + * @throws Exception the exception + */ + protected MeetingCancellation(ExchangeService service) throws Exception { + super(service); + } - /** - * Binds to an existing meeting cancellation message and loads the specified - * set of properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting cancellation - * message. - * @param id - * The Id of the meeting cancellation message to bind to. - * @param propertySet - * The set of properties to load. - * @return A MeetingCancellation instance representing the meeting - * cancellation message corresponding to the specified Id. - */ - public static MeetingCancellation bind(ExchangeService service, ItemId id, - PropertySet propertySet) { - try { - return service.bindToItem(MeetingCancellation.class, id, - propertySet); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } + /** + * Binds to an existing meeting cancellation message and loads the specified + * set of properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting cancellation + * message. + * @param id The Id of the meeting cancellation message to bind to. + * @param propertySet The set of properties to load. + * @return A MeetingCancellation instance representing the meeting + * cancellation message corresponding to the specified Id. + */ + public static MeetingCancellation bind(ExchangeService service, ItemId id, + PropertySet propertySet) { + try { + return service.bindToItem(MeetingCancellation.class, id, + propertySet); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } - /** - * Binds to an existing meeting cancellation message and loads the specified - * set of properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting cancellation - * message. - * @param id - * The Id of the meeting cancellation message to bind to. - * @return A MeetingCancellation instance representing the meeting - * cancellation message corresponding to the specified Id. - */ - public static MeetingCancellation bind(ExchangeService service, ItemId id) { - return MeetingCancellation.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing meeting cancellation message and loads the specified + * set of properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting cancellation + * message. + * @param id The Id of the meeting cancellation message to bind to. + * @return A MeetingCancellation instance representing the meeting + * cancellation message corresponding to the specified Id. + */ + public static MeetingCancellation bind(ExchangeService service, ItemId id) { + return MeetingCancellation.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Removes the meeting associated with the cancellation message from the - * user's calendar. - * - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public CalendarActionResults removeMeetingFromCalendar() - throws ServiceLocalException, Exception { - return new CalendarActionResults(new RemoveFromCalendar(this) - .internalCreate(null, null)); - } + /** + * Removes the meeting associated with the cancellation message from the + * user's calendar. + * + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public CalendarActionResults removeMeetingFromCalendar() + throws ServiceLocalException, Exception { + return new CalendarActionResults(new RemoveFromCalendar(this) + .internalCreate(null, null)); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index cb893cfee..3b1f8ac45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -21,190 +21,171 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) public class MeetingMessage extends EmailMessage { - /** - * Initializes a new instance of the "MeetingMessage" class. - * - * @param parentAttachment - * the parent attachment - * @throws Exception - * the exception - */ - protected MeetingMessage(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } - - /** - * Initializes a new instance of the "MeetingMessage" class. - * - * @param service - * EWS service to which this object belongs. - * @throws Exception - * the exception - */ - protected MeetingMessage(ExchangeService service) throws Exception { - super(service); - } - - /** - * Binds to an existing meeting message and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting message. - * @param id - * The Id of the meeting message to bind to. - * @param propertySet - * The set of properties to load. - * @return A MeetingMessage instance representing the meeting message - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static MeetingMessage bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return (MeetingMessage)service.bindToItem(id, propertySet); - } - - /** - * Binds to an existing meeting message and loads its first class - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting message. - * @param id - * The Id of the meeting message to bind to. - * @return A MeetingMessage instance representing the meeting message - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static MeetingMessage bind(ExchangeService service, ItemId id) - throws Exception { - return MeetingMessage.bind(service, id, PropertySet - .getFirstClassProperties()); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return MeetingMessageSchema.getInstance(); - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the associated appointment ID. - * - * @return the associated appointment ID. - * @throws ServiceLocalException - * the service local exception - */ - public ItemId getAssociatedAppointmentId() - throws ServiceLocalException { - return (ItemId) this.getPropertyBag() - .getObjectFromPropertyDefinition( - MeetingMessageSchema.AssociatedAppointmentId); - } - - /** - * Gets whether the meeting message has been processed. - * - * @return whether the meeting message has been processed. - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getHasBeenProcessed() - throws ServiceLocalException { - return (Boolean) this.getPropertyBag() - .getObjectFromPropertyDefinition( - MeetingMessageSchema.HasBeenProcessed); - } - - /** - * Gets the response type indicated by this meeting message. - * - * @return the response type indicated by this meeting message. - * @throws ServiceLocalException - * the service local exception - */ - public MeetingResponseType getResponseType() - throws ServiceLocalException { - return (MeetingResponseType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - MeetingMessageSchema.ResponseType); - } - - /** - * Gets the ICalendar Uid. - * - * @return the ical uid - * @throws ServiceLocalException - * the service local exception - */ - public String getICalUid() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - MeetingMessageSchema.ICalUid); - } - - /** - * Gets the ICalendar RecurrenceId. - * - * @return the ical recurrence id - * @throws ServiceLocalException - * the service local exception - */ - public Date getICalRecurrenceId() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - MeetingMessageSchema.ICalRecurrenceId); - } - - /** - * Gets the ICalendar DateTimeStamp. - * - * @return the ical date time stamp - * @throws ServiceLocalException - * the service local exception - */ - public Date getICalDateTimeStamp() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - MeetingMessageSchema.ICalDateTimeStamp); - } - - /** - * Gets the IsDelegated property. - * - * @return True if delegated; false otherwise. - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsDelegated() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - MeetingMessageSchema.IsDelegated); - } - - /** - * Gets the IsOutOfDate property. - * - * @return True if out of date; false otherwise. - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsOutOfDate() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - MeetingMessageSchema.IsOutOfDate); - } + /** + * Initializes a new instance of the "MeetingMessage" class. + * + * @param parentAttachment the parent attachment + * @throws Exception the exception + */ + protected MeetingMessage(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } + + /** + * Initializes a new instance of the "MeetingMessage" class. + * + * @param service EWS service to which this object belongs. + * @throws Exception the exception + */ + protected MeetingMessage(ExchangeService service) throws Exception { + super(service); + } + + /** + * Binds to an existing meeting message and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting message. + * @param id The Id of the meeting message to bind to. + * @param propertySet The set of properties to load. + * @return A MeetingMessage instance representing the meeting message + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static MeetingMessage bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return (MeetingMessage) service.bindToItem(id, propertySet); + } + + /** + * Binds to an existing meeting message and loads its first class + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting message. + * @param id The Id of the meeting message to bind to. + * @return A MeetingMessage instance representing the meeting message + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static MeetingMessage bind(ExchangeService service, ItemId id) + throws Exception { + return MeetingMessage.bind(service, id, PropertySet + .getFirstClassProperties()); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return MeetingMessageSchema.getInstance(); + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the associated appointment ID. + * + * @return the associated appointment ID. + * @throws ServiceLocalException the service local exception + */ + public ItemId getAssociatedAppointmentId() + throws ServiceLocalException { + return (ItemId) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.AssociatedAppointmentId); + } + + /** + * Gets whether the meeting message has been processed. + * + * @return whether the meeting message has been processed. + * @throws ServiceLocalException the service local exception + */ + public Boolean getHasBeenProcessed() + throws ServiceLocalException { + return (Boolean) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.HasBeenProcessed); + } + + /** + * Gets the response type indicated by this meeting message. + * + * @return the response type indicated by this meeting message. + * @throws ServiceLocalException the service local exception + */ + public MeetingResponseType getResponseType() + throws ServiceLocalException { + return (MeetingResponseType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingMessageSchema.ResponseType); + } + + /** + * Gets the ICalendar Uid. + * + * @return the ical uid + * @throws ServiceLocalException the service local exception + */ + public String getICalUid() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalUid); + } + + /** + * Gets the ICalendar RecurrenceId. + * + * @return the ical recurrence id + * @throws ServiceLocalException the service local exception + */ + public Date getICalRecurrenceId() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalRecurrenceId); + } + + /** + * Gets the ICalendar DateTimeStamp. + * + * @return the ical date time stamp + * @throws ServiceLocalException the service local exception + */ + public Date getICalDateTimeStamp() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.ICalDateTimeStamp); + } + + /** + * Gets the IsDelegated property. + * + * @return True if delegated; false otherwise. + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsDelegated() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.IsDelegated); + } + + /** + * Gets the IsOutOfDate property. + * + * @return True if out of date; false otherwise. + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsOutOfDate() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + MeetingMessageSchema.IsOutOfDate); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index 603d78d4c..8f99dcc36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -14,139 +14,151 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for meeting messages. - * */ @Schema public class MeetingMessageSchema extends EmailMessageSchema { - /** - * Field URIs for MeetingMessage. - */ - private static interface FieldUris { - - /** The Associated calendar item id. */ - String AssociatedCalendarItemId = "meeting:AssociatedCalendarItemId"; - - /** The Is delegated. */ - String IsDelegated = "meeting:IsDelegated"; - - /** The Is out of date. */ - String IsOutOfDate = "meeting:IsOutOfDate"; - - /** The Has been processed. */ - String HasBeenProcessed = "meeting:HasBeenProcessed"; - - /** The Response type. */ - String ResponseType = "meeting:ResponseType"; - } - - /** - * Defines the AssociatedAppointmentId property. - */ - public static final PropertyDefinition AssociatedAppointmentId = - new ComplexPropertyDefinition( - // ItemId.class, - XmlElementNames.AssociatedCalendarItemId, - FieldUris.AssociatedCalendarItemId, - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - @Override - public ItemId createComplexProperty() { - return new ItemId(); - } - }); - - /** - * Defines the IsDelegated property. - */ - public static final PropertyDefinition IsDelegated = - new BoolPropertyDefinition( - XmlElementNames.IsDelegated, FieldUris.IsDelegated, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsOutOfDate property. - */ - public static final PropertyDefinition IsOutOfDate = - new BoolPropertyDefinition( - XmlElementNames.IsOutOfDate, FieldUris.IsOutOfDate, - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the HasBeenProcessed property. - */ - public static final PropertyDefinition HasBeenProcessed = - new BoolPropertyDefinition( - XmlElementNames.HasBeenProcessed, FieldUris.HasBeenProcessed, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ResponseType property. - */ - public static final PropertyDefinition ResponseType = - new GenericPropertyDefinition( - MeetingResponseType.class, - XmlElementNames.ResponseType, FieldUris.ResponseType, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ICalendar Uid property. - */ - public static final PropertyDefinition ICalUid = AppointmentSchema.ICalUid; - - /** - * Defines the ICalendar RecurrenceId property. - */ - public static final PropertyDefinition ICalRecurrenceId = - AppointmentSchema.ICalRecurrenceId; - - /** - * Defines the ICalendar DateTimeStamp property. - */ - public static final PropertyDefinition ICalDateTimeStamp = - AppointmentSchema.ICalDateTimeStamp; - - /** This must be after the declaration of property definitions. */ - protected static final MeetingMessageSchema Instance = - new MeetingMessageSchema(); - - /** - * Gets the single instance of MeetingMessageSchema. - * - * @return single instance of MeetingMessageSchema - */ - public static MeetingMessageSchema getInstance() { - return Instance; - } - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(AssociatedAppointmentId); - this.registerProperty(IsDelegated); - this.registerProperty(IsOutOfDate); - this.registerProperty(HasBeenProcessed); - this.registerProperty(ResponseType); - this.registerProperty(ICalUid); - this.registerProperty(ICalRecurrenceId); - this.registerProperty(ICalDateTimeStamp); - } - - /** - * Initializes a new instance of the class. - */ - protected MeetingMessageSchema() { - super(); - } + /** + * Field URIs for MeetingMessage. + */ + private static interface FieldUris { + + /** + * The Associated calendar item id. + */ + String AssociatedCalendarItemId = "meeting:AssociatedCalendarItemId"; + + /** + * The Is delegated. + */ + String IsDelegated = "meeting:IsDelegated"; + + /** + * The Is out of date. + */ + String IsOutOfDate = "meeting:IsOutOfDate"; + + /** + * The Has been processed. + */ + String HasBeenProcessed = "meeting:HasBeenProcessed"; + + /** + * The Response type. + */ + String ResponseType = "meeting:ResponseType"; + } + + + /** + * Defines the AssociatedAppointmentId property. + */ + public static final PropertyDefinition AssociatedAppointmentId = + new ComplexPropertyDefinition( + // ItemId.class, + XmlElementNames.AssociatedCalendarItemId, + FieldUris.AssociatedCalendarItemId, + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + @Override + public ItemId createComplexProperty() { + return new ItemId(); + } + }); + + /** + * Defines the IsDelegated property. + */ + public static final PropertyDefinition IsDelegated = + new BoolPropertyDefinition( + XmlElementNames.IsDelegated, FieldUris.IsDelegated, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsOutOfDate property. + */ + public static final PropertyDefinition IsOutOfDate = + new BoolPropertyDefinition( + XmlElementNames.IsOutOfDate, FieldUris.IsOutOfDate, + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the HasBeenProcessed property. + */ + public static final PropertyDefinition HasBeenProcessed = + new BoolPropertyDefinition( + XmlElementNames.HasBeenProcessed, FieldUris.HasBeenProcessed, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ResponseType property. + */ + public static final PropertyDefinition ResponseType = + new GenericPropertyDefinition( + MeetingResponseType.class, + XmlElementNames.ResponseType, FieldUris.ResponseType, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ICalendar Uid property. + */ + public static final PropertyDefinition ICalUid = AppointmentSchema.ICalUid; + + /** + * Defines the ICalendar RecurrenceId property. + */ + public static final PropertyDefinition ICalRecurrenceId = + AppointmentSchema.ICalRecurrenceId; + + /** + * Defines the ICalendar DateTimeStamp property. + */ + public static final PropertyDefinition ICalDateTimeStamp = + AppointmentSchema.ICalDateTimeStamp; + + /** + * This must be after the declaration of property definitions. + */ + protected static final MeetingMessageSchema Instance = + new MeetingMessageSchema(); + + /** + * Gets the single instance of MeetingMessageSchema. + * + * @return single instance of MeetingMessageSchema + */ + public static MeetingMessageSchema getInstance() { + return Instance; + } + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(AssociatedAppointmentId); + this.registerProperty(IsDelegated); + this.registerProperty(IsOutOfDate); + this.registerProperty(HasBeenProcessed); + this.registerProperty(ResponseType); + this.registerProperty(ICalUid); + this.registerProperty(ICalRecurrenceId); + this.registerProperty(ICalDateTimeStamp); + } + + /** + * Initializes a new instance of the class. + */ + protected MeetingMessageSchema() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java index ba71e588f..733c5c4c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java @@ -13,749 +13,684 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Date; /** - * Represents a meeting request that an attendee can accept - * or decline. Properties available on meeting - * requests are defined in the MeetingRequestSchema class. - * + * Represents a meeting request that an attendee can accept + * or decline. Properties available on meeting + * requests are defined in the MeetingRequestSchema class. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.MeetingRequest) public class MeetingRequest extends MeetingMessage implements - ICalendarActionProvider { - - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * The parent attachment - * @throws Exception - * throws Exception - */ - protected MeetingRequest(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } - - /** - * Initializes a new instance of the class. - * - * @param service - * EWS service to which this object belongs. - * @throws Exception - * throws Exception - */ - protected MeetingRequest(ExchangeService service) throws Exception { - super(service); - } - - /** - * Binds to an existing meeting response and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting request. - * @param id - * The Id of the meeting request to bind to. - * @param propertySet - * The set of properties to load. - * @return A MeetingResponse instance representing the meeting request - * corresponding to the specified Id. - */ - public static MeetingRequest bind(ExchangeService service, ItemId id, - PropertySet propertySet) { - try { - return service.bindToItem(MeetingRequest.class, id, propertySet); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * Binds to an existing meeting response and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting request. - * @param id - * The Id of the meeting request to bind to. - * @return A MeetingResponse instance representing the meeting request - * corresponding to the specified Id. - */ - public static MeetingRequest bind(ExchangeService service, ItemId id) { - return MeetingRequest.bind(service, id, PropertySet - .getFirstClassProperties()); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return MeetingRequestSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Creates a local meeting acceptance message that can be customized and - * sent. - * - * @param tentative - * Specifies whether the meeting will be tentatively accepted. - * @return An AcceptMeetingInvitationMessage representing the meeting - * acceptance message. - */ - public AcceptMeetingInvitationMessage createAcceptMessage(boolean - tentative) { - try { - return new AcceptMeetingInvitationMessage(this, tentative); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * Creates a local meeting declination message that can be customized and - * sent. - * - * @return A DeclineMeetingInvitation representing the meeting declination - * message. - */ - public DeclineMeetingInvitationMessage createDeclineMessage() { - try { - return new DeclineMeetingInvitationMessage(this); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * Accepts the meeting. Calling this method results in a call to EWS. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * throws Exception - */ - public CalendarActionResults accept(boolean sendResponse) throws Exception { - return this.internalAccept(false, sendResponse); - } - - /** - * Tentatively accepts the meeting. Calling this method results in a call to - * EWS. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * throws Exception - */ - public CalendarActionResults acceptTentatively(boolean sendResponse) - throws Exception { - return this.internalAccept(true, sendResponse); - } - - /** - * Accepts the meeting. - * - * @param tentative - * True if tentative accept. - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * throws Exception - */ - protected CalendarActionResults internalAccept(boolean tentative, - boolean sendResponse) throws Exception { - AcceptMeetingInvitationMessage accept = this - .createAcceptMessage(tentative); - - if (sendResponse) { - return accept.calendarSendAndSaveCopy(); - } else { - return accept.calendarSave(); - - } - } - - /** - * Declines the meeting invitation. Calling this method results in a call to - * EWS. - * - * @param sendResponse - * Indicates whether to send a response to the organizer. - * @return A CalendarActionResults object containing the various items that - * were created or modified as a results of this operation. - * @throws Exception - * throws Exception - */ - public CalendarActionResults decline(boolean sendResponse) - throws Exception { - DeclineMeetingInvitationMessage decline = this.createDeclineMessage(); - - if (sendResponse) { - return decline.calendarSendAndSaveCopy(); - } else { - return decline.calendarSave(); - } - } - - /** - * Gets the type of this meeting request. - * - * @return the meeting request type - * @throws ServiceLocalException - * the service local exception - */ - public MeetingRequestType getMeetingRequestType() - throws ServiceLocalException { - return (MeetingRequestType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - MeetingRequestSchema.MeetingRequestType); - } - - /** - * Gets the a value representing the intended free/busy status of the - * meeting. - * - * @return the intended free busy status - * @throws ServiceLocalException - * the service local exception - */ - public LegacyFreeBusyStatus getIntendedFreeBusyStatus() - throws ServiceLocalException { - return (LegacyFreeBusyStatus) this.getPropertyBag() - .getObjectFromPropertyDefinition( - MeetingRequestSchema.IntendedFreeBusyStatus); - - } - - /** - * Gets the start time of the appointment. - * - * @return the start - * @throws ServiceLocalException - * the service local exception - */ - public Date getStart() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.Start); - } - - /** - * Gets the end time of the appointment. - * - * @return the end - * @throws ServiceLocalException - * the service local exception - */ - public Date getEnd() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.End); - } - - /** - * Gets the original start time of the appointment. - * - * @return the original start - * @throws ServiceLocalException - * the service local exception - */ - public Date getOriginalStart() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.OriginalStart); - } - - /** - * Gets a value indicating whether this appointment is an all day event. - * - * @return the checks if is all day event - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsAllDayEvent() throws ServiceLocalException { - return this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsAllDayEvent) != null; - } - - /** - * Gets a value indicating the free/busy status of the owner of this - * appointment. - * - * @return the legacy free busy status - * @throws ServiceLocalException - * the service local exception - */ - public LegacyFreeBusyStatus legacyFreeBusyStatus() - throws ServiceLocalException { - return (LegacyFreeBusyStatus) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.LegacyFreeBusyStatus); - } - - /** - * Gets the location of this appointment. - * - * @return the location - * @throws ServiceLocalException - * the service local exception - */ - public String getLocation() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.Location); - } - - /** - * Gets a text indicating when this appointment occurs. The text returned by - * When is localized using the Exchange Server culture or using the culture - * specified in the PreferredCulture property of the ExchangeService object - * this appointment is bound to. - * - * @return the when - * @throws ServiceLocalException - * the service local exception - */ - public String getWhen() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.When); - } - - /** - * Gets a value indicating whether the appointment is a meeting. - * - * @return the checks if is meeting - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsMeeting() throws ServiceLocalException { - return this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsMeeting) != null; - } - - /** - * Gets a value indicating whether the appointment has been cancelled. - * - * @return the checks if is cancelled - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsCancelled() throws ServiceLocalException { - return this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsCancelled) != null; - } - - /** - * Gets a value indicating whether the appointment is recurring. - * - * @return the checks if is recurring - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsRecurring() throws ServiceLocalException { - return this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsRecurring) != null; - } - - /** - * Gets a value indicating whether the meeting request has already been - * sent. - * - * @return the meeting request was sent - * @throws ServiceLocalException - * the service local exception - */ - public boolean getMeetingRequestWasSent() throws ServiceLocalException { - return this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.MeetingRequestWasSent) != null; - } - - /** - * Gets a value indicating the type of this appointment. - * - * @return the appointment type - * @throws ServiceLocalException - * the service local exception - */ - public AppointmentType getAppointmentType() throws ServiceLocalException { - return (AppointmentType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentType); - } - - /** - * Gets a value indicating what was the last response of the user that - * loaded this meeting. - * - * @return the my response type - * @throws ServiceLocalException - * the service local exception - */ - public MeetingResponseType getMyResponseType() - throws ServiceLocalException { - return (MeetingResponseType) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.MyResponseType); - } - - /** - * Gets the organizer of this meeting. - * - * @return the organizer - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getOrganizer() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Organizer); - } - - /** - * Gets a list of required attendees for this meeting. - * - * @return the required attendees - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getRequiredAttendees() - throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.RequiredAttendees); - } - - /** - * Gets a list of optional attendeed for this meeting. - * - * @return the optional attendees - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getOptionalAttendees() - throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.OptionalAttendees); - } - - /** - * Gets a list of resources for this meeting. - * - * @return the resources - * @throws ServiceLocalException - * the service local exception - */ - public AttendeeCollection getResources() throws ServiceLocalException { - return (AttendeeCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Resources); - } - - /** - * Gets the number of calendar entries that conflict with - * this appointment in the authenticated user's calendar. - * - * @return the conflicting meeting count - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getConflictingMeetingCount() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ConflictingMeetingCount).toString())); - } - - /** - * Gets the number of calendar entries that are adjacent to - * this appointment in the authenticated user's calendar. - * - * @return the adjacent meeting count - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getAdjacentMeetingCount() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AdjacentMeetingCount).toString())); - } - - /** - * Gets a list of meetings that conflict with - * this appointment in the authenticated user's calendar. - * - * @return the conflicting meetings - * @throws ServiceLocalException - * the service local exception - */ - public ItemCollection getConflictingMeetings() - throws ServiceLocalException { - return (ItemCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ConflictingMeetings); - } - - /** - * Gets a list of meetings that are adjacent with this - * appointment in the authenticated user's calendar. - * - * @return the adjacent meetings - * @throws ServiceLocalException - * the service local exception - */ - public ItemCollection getAdjacentMeetings() - throws ServiceLocalException { - return (ItemCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AdjacentMeetings); - } - - /** - * Gets the duration of this appointment. - * - * @return the duration - * @throws ServiceLocalException - * the service local exception - */ - public TimeSpan getDuration() throws ServiceLocalException { - return (TimeSpan) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Duration); - } - - /** - * Gets the name of the time zone this appointment is defined in. - * - * @return the time zone - * @throws ServiceLocalException - * the service local exception - */ - public String getTimeZone() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.TimeZone); - } - - /** - * Gets the time when the attendee replied to the meeting request. - * - * @return the appointment reply time - * @throws ServiceLocalException - * the service local exception - */ - public Date getAppointmentReplyTime() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentReplyTime); - } - - /** - * Gets the sequence number of this appointment. - * - * @return the appointment sequence number - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getAppointmentSequenceNumber() throws NumberFormatException, - ServiceLocalException { - return (Integer - .parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentSequenceNumber) - .toString())); - } - - /** - * Gets the state of this appointment. - * - * @return the appointment state - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getAppointmentState() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.AppointmentState).toString())); - } - - /** - * Gets the recurrence pattern for this meeting request. - * - * @return the recurrence - * @throws ServiceLocalException - * the service local exception - */ - public Recurrence getRecurrence() throws ServiceLocalException { - return (Recurrence) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.Recurrence); - } - - /** - * Gets an OccurrenceInfo identifying the first occurrence of this meeting. - * - * @return the first occurrence - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException { - return (OccurrenceInfo) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.FirstOccurrence); - } - - /** - * Gets an OccurrenceInfo identifying the last occurrence of this meeting. - * - * @return the last occurrence - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfo getLastOccurrence() throws ServiceLocalException { - return (OccurrenceInfo) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.FirstOccurrence); - } - - /** - * Gets a list of modified occurrences for this meeting. - * - * @return the modified occurrences - * @throws ServiceLocalException - * the service local exception - */ - public OccurrenceInfoCollection getModifiedOccurrences() - throws ServiceLocalException { - return (OccurrenceInfoCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ModifiedOccurrences); - } - - /** - * Gets a list of deleted occurrences for this meeting. - * - * @return the deleted occurrences - * @throws ServiceLocalException - * the service local exception - */ - public DeletedOccurrenceInfoCollection getDeletedOccurrences() - throws ServiceLocalException { - return (DeletedOccurrenceInfoCollection) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.DeletedOccurrences); - } - - /** - * Gets time zone of the start property of this meeting request. - * - * @return the start time zone - * @throws ServiceLocalException - * the service local exception - */ - public TimeZoneDefinition getStartTimeZone() throws ServiceLocalException { - return (TimeZoneDefinition) this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.StartTimeZone); - } - - /** - * Gets time zone of the end property of this meeting request. - * - * @return the end time zone - * @throws ServiceLocalException - * the service local exception - */ - public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException { - return (TimeZoneDefinition) this.getPropertyBag() - .getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone); - } - - /** - * Gets the type of conferencing that will be used during the meeting. - * - * @return the conference type - * @throws NumberFormatException - * the number format exception - * @throws ServiceLocalException - * the service local exception - */ - public int getConferenceType() throws NumberFormatException, - ServiceLocalException { - return (Integer.parseInt(this.getPropertyBag() - .getObjectFromPropertyDefinition( - AppointmentSchema.ConferenceType).toString())); - } - - /** - * Gets a value indicating whether new time - * proposals are allowed for attendees of this meeting. - * - * @return the allow new time proposal - * @throws ServiceLocalException - * the service local exception - */ - public boolean getAllowNewTimeProposal() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.AllowNewTimeProposal); - } - - /** - * Gets a value indicating whether this is an online meeting. - * - * @return the checks if is online meeting - * @throws ServiceLocalException - * the service local exception - */ - public boolean getIsOnlineMeeting() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.IsOnlineMeeting); - } - - /** - * Gets the URL of the meeting workspace. A meeting - * workspace is a shared Web site for - * planning meetings and tracking results. - * - * @return the meeting workspace url - * @throws ServiceLocalException - * the service local exception - */ - public String getMeetingWorkspaceUrl() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.MeetingWorkspaceUrl); - } - - /** - * Gets the URL of the Microsoft NetShow online meeting. - * - * @return the net show url - * @throws ServiceLocalException - * the service local exception - */ - public String getNetShowUrl() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - AppointmentSchema.NetShowUrl); - } + ICalendarActionProvider { + + /** + * Initializes a new instance of the class. + * + * @param parentAttachment The parent attachment + * @throws Exception throws Exception + */ + protected MeetingRequest(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } + + /** + * Initializes a new instance of the class. + * + * @param service EWS service to which this object belongs. + * @throws Exception throws Exception + */ + protected MeetingRequest(ExchangeService service) throws Exception { + super(service); + } + + /** + * Binds to an existing meeting response and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting request. + * @param id The Id of the meeting request to bind to. + * @param propertySet The set of properties to load. + * @return A MeetingResponse instance representing the meeting request + * corresponding to the specified Id. + */ + public static MeetingRequest bind(ExchangeService service, ItemId id, + PropertySet propertySet) { + try { + return service.bindToItem(MeetingRequest.class, id, propertySet); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * Binds to an existing meeting response and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting request. + * @param id The Id of the meeting request to bind to. + * @return A MeetingResponse instance representing the meeting request + * corresponding to the specified Id. + */ + public static MeetingRequest bind(ExchangeService service, ItemId id) { + return MeetingRequest.bind(service, id, PropertySet + .getFirstClassProperties()); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return MeetingRequestSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Creates a local meeting acceptance message that can be customized and + * sent. + * + * @param tentative Specifies whether the meeting will be tentatively accepted. + * @return An AcceptMeetingInvitationMessage representing the meeting + * acceptance message. + */ + public AcceptMeetingInvitationMessage createAcceptMessage(boolean + tentative) { + try { + return new AcceptMeetingInvitationMessage(this, tentative); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * Creates a local meeting declination message that can be customized and + * sent. + * + * @return A DeclineMeetingInvitation representing the meeting declination + * message. + */ + public DeclineMeetingInvitationMessage createDeclineMessage() { + try { + return new DeclineMeetingInvitationMessage(this); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * Accepts the meeting. Calling this method results in a call to EWS. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception throws Exception + */ + public CalendarActionResults accept(boolean sendResponse) throws Exception { + return this.internalAccept(false, sendResponse); + } + + /** + * Tentatively accepts the meeting. Calling this method results in a call to + * EWS. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception throws Exception + */ + public CalendarActionResults acceptTentatively(boolean sendResponse) + throws Exception { + return this.internalAccept(true, sendResponse); + } + + /** + * Accepts the meeting. + * + * @param tentative True if tentative accept. + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception throws Exception + */ + protected CalendarActionResults internalAccept(boolean tentative, + boolean sendResponse) throws Exception { + AcceptMeetingInvitationMessage accept = this + .createAcceptMessage(tentative); + + if (sendResponse) { + return accept.calendarSendAndSaveCopy(); + } else { + return accept.calendarSave(); + + } + } + + /** + * Declines the meeting invitation. Calling this method results in a call to + * EWS. + * + * @param sendResponse Indicates whether to send a response to the organizer. + * @return A CalendarActionResults object containing the various items that + * were created or modified as a results of this operation. + * @throws Exception throws Exception + */ + public CalendarActionResults decline(boolean sendResponse) + throws Exception { + DeclineMeetingInvitationMessage decline = this.createDeclineMessage(); + + if (sendResponse) { + return decline.calendarSendAndSaveCopy(); + } else { + return decline.calendarSave(); + } + } + + /** + * Gets the type of this meeting request. + * + * @return the meeting request type + * @throws ServiceLocalException the service local exception + */ + public MeetingRequestType getMeetingRequestType() + throws ServiceLocalException { + return (MeetingRequestType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingRequestSchema.MeetingRequestType); + } + + /** + * Gets the a value representing the intended free/busy status of the + * meeting. + * + * @return the intended free busy status + * @throws ServiceLocalException the service local exception + */ + public LegacyFreeBusyStatus getIntendedFreeBusyStatus() + throws ServiceLocalException { + return (LegacyFreeBusyStatus) this.getPropertyBag() + .getObjectFromPropertyDefinition( + MeetingRequestSchema.IntendedFreeBusyStatus); + + } + + /** + * Gets the start time of the appointment. + * + * @return the start + * @throws ServiceLocalException the service local exception + */ + public Date getStart() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.Start); + } + + /** + * Gets the end time of the appointment. + * + * @return the end + * @throws ServiceLocalException the service local exception + */ + public Date getEnd() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.End); + } + + /** + * Gets the original start time of the appointment. + * + * @return the original start + * @throws ServiceLocalException the service local exception + */ + public Date getOriginalStart() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.OriginalStart); + } + + /** + * Gets a value indicating whether this appointment is an all day event. + * + * @return the checks if is all day event + * @throws ServiceLocalException the service local exception + */ + public boolean getIsAllDayEvent() throws ServiceLocalException { + return this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsAllDayEvent) != null; + } + + /** + * Gets a value indicating the free/busy status of the owner of this + * appointment. + * + * @return the legacy free busy status + * @throws ServiceLocalException the service local exception + */ + public LegacyFreeBusyStatus legacyFreeBusyStatus() + throws ServiceLocalException { + return (LegacyFreeBusyStatus) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.LegacyFreeBusyStatus); + } + + /** + * Gets the location of this appointment. + * + * @return the location + * @throws ServiceLocalException the service local exception + */ + public String getLocation() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.Location); + } + + /** + * Gets a text indicating when this appointment occurs. The text returned by + * When is localized using the Exchange Server culture or using the culture + * specified in the PreferredCulture property of the ExchangeService object + * this appointment is bound to. + * + * @return the when + * @throws ServiceLocalException the service local exception + */ + public String getWhen() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.When); + } + + /** + * Gets a value indicating whether the appointment is a meeting. + * + * @return the checks if is meeting + * @throws ServiceLocalException the service local exception + */ + public boolean getIsMeeting() throws ServiceLocalException { + return this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsMeeting) != null; + } + + /** + * Gets a value indicating whether the appointment has been cancelled. + * + * @return the checks if is cancelled + * @throws ServiceLocalException the service local exception + */ + public boolean getIsCancelled() throws ServiceLocalException { + return this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsCancelled) != null; + } + + /** + * Gets a value indicating whether the appointment is recurring. + * + * @return the checks if is recurring + * @throws ServiceLocalException the service local exception + */ + public boolean getIsRecurring() throws ServiceLocalException { + return this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsRecurring) != null; + } + + /** + * Gets a value indicating whether the meeting request has already been + * sent. + * + * @return the meeting request was sent + * @throws ServiceLocalException the service local exception + */ + public boolean getMeetingRequestWasSent() throws ServiceLocalException { + return this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.MeetingRequestWasSent) != null; + } + + /** + * Gets a value indicating the type of this appointment. + * + * @return the appointment type + * @throws ServiceLocalException the service local exception + */ + public AppointmentType getAppointmentType() throws ServiceLocalException { + return (AppointmentType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentType); + } + + /** + * Gets a value indicating what was the last response of the user that + * loaded this meeting. + * + * @return the my response type + * @throws ServiceLocalException the service local exception + */ + public MeetingResponseType getMyResponseType() + throws ServiceLocalException { + return (MeetingResponseType) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.MyResponseType); + } + + /** + * Gets the organizer of this meeting. + * + * @return the organizer + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getOrganizer() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Organizer); + } + + /** + * Gets a list of required attendees for this meeting. + * + * @return the required attendees + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getRequiredAttendees() + throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.RequiredAttendees); + } + + /** + * Gets a list of optional attendeed for this meeting. + * + * @return the optional attendees + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getOptionalAttendees() + throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.OptionalAttendees); + } + + /** + * Gets a list of resources for this meeting. + * + * @return the resources + * @throws ServiceLocalException the service local exception + */ + public AttendeeCollection getResources() throws ServiceLocalException { + return (AttendeeCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Resources); + } + + /** + * Gets the number of calendar entries that conflict with + * this appointment in the authenticated user's calendar. + * + * @return the conflicting meeting count + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getConflictingMeetingCount() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ConflictingMeetingCount).toString())); + } + + /** + * Gets the number of calendar entries that are adjacent to + * this appointment in the authenticated user's calendar. + * + * @return the adjacent meeting count + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getAdjacentMeetingCount() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AdjacentMeetingCount).toString())); + } + + /** + * Gets a list of meetings that conflict with + * this appointment in the authenticated user's calendar. + * + * @return the conflicting meetings + * @throws ServiceLocalException the service local exception + */ + public ItemCollection getConflictingMeetings() + throws ServiceLocalException { + return (ItemCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ConflictingMeetings); + } + + /** + * Gets a list of meetings that are adjacent with this + * appointment in the authenticated user's calendar. + * + * @return the adjacent meetings + * @throws ServiceLocalException the service local exception + */ + public ItemCollection getAdjacentMeetings() + throws ServiceLocalException { + return (ItemCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AdjacentMeetings); + } + + /** + * Gets the duration of this appointment. + * + * @return the duration + * @throws ServiceLocalException the service local exception + */ + public TimeSpan getDuration() throws ServiceLocalException { + return (TimeSpan) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Duration); + } + + /** + * Gets the name of the time zone this appointment is defined in. + * + * @return the time zone + * @throws ServiceLocalException the service local exception + */ + public String getTimeZone() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.TimeZone); + } + + /** + * Gets the time when the attendee replied to the meeting request. + * + * @return the appointment reply time + * @throws ServiceLocalException the service local exception + */ + public Date getAppointmentReplyTime() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentReplyTime); + } + + /** + * Gets the sequence number of this appointment. + * + * @return the appointment sequence number + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getAppointmentSequenceNumber() throws NumberFormatException, + ServiceLocalException { + return (Integer + .parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentSequenceNumber) + .toString())); + } + + /** + * Gets the state of this appointment. + * + * @return the appointment state + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getAppointmentState() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.AppointmentState).toString())); + } + + /** + * Gets the recurrence pattern for this meeting request. + * + * @return the recurrence + * @throws ServiceLocalException the service local exception + */ + public Recurrence getRecurrence() throws ServiceLocalException { + return (Recurrence) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.Recurrence); + } + + /** + * Gets an OccurrenceInfo identifying the first occurrence of this meeting. + * + * @return the first occurrence + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException { + return (OccurrenceInfo) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.FirstOccurrence); + } + + /** + * Gets an OccurrenceInfo identifying the last occurrence of this meeting. + * + * @return the last occurrence + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfo getLastOccurrence() throws ServiceLocalException { + return (OccurrenceInfo) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.FirstOccurrence); + } + + /** + * Gets a list of modified occurrences for this meeting. + * + * @return the modified occurrences + * @throws ServiceLocalException the service local exception + */ + public OccurrenceInfoCollection getModifiedOccurrences() + throws ServiceLocalException { + return (OccurrenceInfoCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ModifiedOccurrences); + } + + /** + * Gets a list of deleted occurrences for this meeting. + * + * @return the deleted occurrences + * @throws ServiceLocalException the service local exception + */ + public DeletedOccurrenceInfoCollection getDeletedOccurrences() + throws ServiceLocalException { + return (DeletedOccurrenceInfoCollection) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.DeletedOccurrences); + } + + /** + * Gets time zone of the start property of this meeting request. + * + * @return the start time zone + * @throws ServiceLocalException the service local exception + */ + public TimeZoneDefinition getStartTimeZone() throws ServiceLocalException { + return (TimeZoneDefinition) this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.StartTimeZone); + } + + /** + * Gets time zone of the end property of this meeting request. + * + * @return the end time zone + * @throws ServiceLocalException the service local exception + */ + public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException { + return (TimeZoneDefinition) this.getPropertyBag() + .getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone); + } + + /** + * Gets the type of conferencing that will be used during the meeting. + * + * @return the conference type + * @throws NumberFormatException the number format exception + * @throws ServiceLocalException the service local exception + */ + public int getConferenceType() throws NumberFormatException, + ServiceLocalException { + return (Integer.parseInt(this.getPropertyBag() + .getObjectFromPropertyDefinition( + AppointmentSchema.ConferenceType).toString())); + } + + /** + * Gets a value indicating whether new time + * proposals are allowed for attendees of this meeting. + * + * @return the allow new time proposal + * @throws ServiceLocalException the service local exception + */ + public boolean getAllowNewTimeProposal() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.AllowNewTimeProposal); + } + + /** + * Gets a value indicating whether this is an online meeting. + * + * @return the checks if is online meeting + * @throws ServiceLocalException the service local exception + */ + public boolean getIsOnlineMeeting() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.IsOnlineMeeting); + } + + /** + * Gets the URL of the meeting workspace. A meeting + * workspace is a shared Web site for + * planning meetings and tracking results. + * + * @return the meeting workspace url + * @throws ServiceLocalException the service local exception + */ + public String getMeetingWorkspaceUrl() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.MeetingWorkspaceUrl); + } + + /** + * Gets the URL of the Microsoft NetShow online meeting. + * + * @return the net show url + * @throws ServiceLocalException the service local exception + */ + public String getNetShowUrl() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + AppointmentSchema.NetShowUrl); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java index d2adb5f3a..72ee60ac9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java @@ -14,336 +14,341 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for meeting requests. - * - * */ @Schema public class MeetingRequestSchema extends MeetingMessageSchema { - /** - *Field URIs for MeetingRequest. - */ - private static interface FieldUris { - - /** The Meeting request type. */ - String MeetingRequestType = "meetingRequest:MeetingRequestType"; - - /** The Intended free busy status. */ - String IntendedFreeBusyStatus = "meetingRequest:IntendedFreeBusyStatus"; - } - - /** - * Defines the MeetingRequestType property. - */ - public static final PropertyDefinition MeetingRequestType = - new GenericPropertyDefinition( - MeetingRequestType.class, - XmlElementNames.MeetingRequestType, FieldUris.MeetingRequestType, - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IntendedFreeBusyStatus property. - */ - public static final PropertyDefinition IntendedFreeBusyStatus = - new GenericPropertyDefinition( - LegacyFreeBusyStatus.class, - XmlElementNames.IntendedFreeBusyStatus, - FieldUris.IntendedFreeBusyStatus, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Start property. - */ - public static final PropertyDefinition Start = AppointmentSchema.Start; - - /** - * Defines the End property. - */ - public static final PropertyDefinition End = AppointmentSchema.End; - - /** - * Defines the OriginalStart property. - */ - public static final PropertyDefinition OriginalStart = - AppointmentSchema.OriginalStart; - - /** - * Defines the IsAllDayEvent property. - */ - public static final PropertyDefinition IsAllDayEvent = - AppointmentSchema.IsAllDayEvent; - - /** - * Defines the LegacyFreeBusyStatus property. - */ - public static final PropertyDefinition LegacyFreeBusyStatus = - AppointmentSchema.LegacyFreeBusyStatus; - - /** - * Defines the Location property. - */ - public static final PropertyDefinition Location = - AppointmentSchema.Location; - - /** - * Defines the When property. - */ - public static final PropertyDefinition When = AppointmentSchema.When; - - /** - * Defines the IsMeeting property. - */ - public static final PropertyDefinition IsMeeting = - AppointmentSchema.IsMeeting; - - /** - * Defines the IsCancelled property. - */ - public static final PropertyDefinition IsCancelled = - AppointmentSchema.IsCancelled; - - /** - * Defines the IsRecurring property. - */ - public static final PropertyDefinition IsRecurring = - AppointmentSchema.IsRecurring; - - /** - * Defines the MeetingRequestWasSent property. - */ - public static final PropertyDefinition MeetingRequestWasSent = - AppointmentSchema.MeetingRequestWasSent; - - /** - * Defines the AppointmentType property. - */ - public static final PropertyDefinition AppointmentType = - AppointmentSchema.AppointmentType; - - /** - * Defines the MyResponseType property. - */ - public static final PropertyDefinition MyResponseType = - AppointmentSchema.MyResponseType; - - /** - * Defines the Organizer property. - */ - public static final PropertyDefinition Organizer = - AppointmentSchema.Organizer; - - /** - * Defines the RequiredAttendees property. - */ - public static final PropertyDefinition RequiredAttendees = - AppointmentSchema.RequiredAttendees; - - /** - * Defines the OptionalAttendees property. - */ - public static final PropertyDefinition OptionalAttendees = - AppointmentSchema.OptionalAttendees; - - /** - * Defines the Resources property. - */ - public static final PropertyDefinition Resources = - AppointmentSchema.Resources; - - /** - * Defines the ConflictingMeetingCount property. - */ - public static final PropertyDefinition ConflictingMeetingCount = - AppointmentSchema.ConflictingMeetingCount; - - /** - * Defines the AdjacentMeetingCount property. - */ - public static final PropertyDefinition AdjacentMeetingCount = - AppointmentSchema.AdjacentMeetingCount; - - /** - * Defines the ConflictingMeetings property. - */ - public static final PropertyDefinition ConflictingMeetings = - AppointmentSchema.ConflictingMeetings; - - /** - * Defines the AdjacentMeetings property. - */ - public static final PropertyDefinition AdjacentMeetings = - AppointmentSchema.AdjacentMeetings; - - /** - * Defines the Duration property. - */ - public static final PropertyDefinition Duration = - AppointmentSchema.Duration; - - /** - * Defines the TimeZone property. - */ - public static final PropertyDefinition TimeZone = - AppointmentSchema.TimeZone; - - /** - * Defines the AppointmentReplyTime property. - */ - public static final PropertyDefinition AppointmentReplyTime = - AppointmentSchema.AppointmentReplyTime; - - /** - * Defines the AppointmentSequenceNumber property. - */ - public static final PropertyDefinition AppointmentSequenceNumber = - AppointmentSchema.AppointmentSequenceNumber; - - /** - * Defines the AppointmentState property. - */ - public static final PropertyDefinition AppointmentState = - AppointmentSchema.AppointmentState; - - /** - * Defines the Recurrence property. - */ - public static final PropertyDefinition Recurrence = - AppointmentSchema.Recurrence; - - /** - * Defines the FirstOccurrence property. - */ - public static final PropertyDefinition FirstOccurrence = - AppointmentSchema.FirstOccurrence; - /** - * Defines the LastOccurrence property. - */ - public static final PropertyDefinition LastOccurrence = - AppointmentSchema.LastOccurrence; - - /** - * Defines the ModifiedOccurrences property. - */ - public static final PropertyDefinition ModifiedOccurrences = - AppointmentSchema.ModifiedOccurrences; - - /** - * Defines the Duration property. - */ - public static final PropertyDefinition DeletedOccurrences = - AppointmentSchema.DeletedOccurrences; - - /** - * Defines the MeetingTimeZone property. - */ - static final PropertyDefinition MeetingTimeZone = - AppointmentSchema.MeetingTimeZone; - - /** - * Defines the StartTimeZone property. - */ - public static final PropertyDefinition StartTimeZone = - AppointmentSchema.StartTimeZone; - - /** - * Defines the EndTimeZone property. - */ - public static final PropertyDefinition EndTimeZone = - AppointmentSchema.EndTimeZone; - - /** - * Defines the ConferenceType property. - */ - public static final PropertyDefinition ConferenceType = - AppointmentSchema.ConferenceType; - - /** - * Defines the AllowNewTimeProposal property. - */ - public static final PropertyDefinition AllowNewTimeProposal = - AppointmentSchema.AllowNewTimeProposal; - - /** - * Defines the IsOnlineMeeting property. - */ - public static final PropertyDefinition IsOnlineMeeting = - AppointmentSchema.IsOnlineMeeting; - - /** - * Defines the MeetingWorkspaceUrl property. - */ - public static final PropertyDefinition MeetingWorkspaceUrl = - AppointmentSchema.MeetingWorkspaceUrl; - - /** - * Defines the NetShowUrl property. - */ - public static final PropertyDefinition NetShowUrl = - AppointmentSchema.NetShowUrl; - - /** This must be after the declaration of property definitions. */ - protected static final MeetingRequestSchema Instance = - new MeetingRequestSchema(); - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(MeetingRequestType); - this.registerProperty(IntendedFreeBusyStatus); - - this.registerProperty(Start); - this.registerProperty(End); - this.registerProperty(OriginalStart); - this.registerProperty(IsAllDayEvent); - this.registerProperty(LegacyFreeBusyStatus); - this.registerProperty(Location); - this.registerProperty(When); - this.registerProperty(IsMeeting); - this.registerProperty(IsCancelled); - this.registerProperty(IsRecurring); - this.registerProperty(MeetingRequestWasSent); - this.registerProperty(AppointmentType); - this.registerProperty(MyResponseType); - this.registerProperty(Organizer); - this.registerProperty(RequiredAttendees); - this.registerProperty(OptionalAttendees); - this.registerProperty(Resources); - this.registerProperty(ConflictingMeetingCount); - this.registerProperty(AdjacentMeetingCount); - this.registerProperty(ConflictingMeetings); - this.registerProperty(AdjacentMeetings); - this.registerProperty(Duration); - this.registerProperty(TimeZone); - this.registerProperty(AppointmentReplyTime); - this.registerProperty(AppointmentSequenceNumber); - this.registerProperty(AppointmentState); - this.registerProperty(Recurrence); - this.registerProperty(FirstOccurrence); - this.registerProperty(LastOccurrence); - this.registerProperty(ModifiedOccurrences); - this.registerProperty(DeletedOccurrences); - this.registerInternalProperty(MeetingTimeZone); - this.registerProperty(StartTimeZone); - this.registerProperty(EndTimeZone); - this.registerProperty(ConferenceType); - this.registerProperty(AllowNewTimeProposal); - this.registerProperty(IsOnlineMeeting); - this.registerProperty(MeetingWorkspaceUrl); - this.registerProperty(NetShowUrl); - } - - /** - * Initializes a new instance of the class. - */ - protected MeetingRequestSchema() { - super(); - } -} \ No newline at end of file + /** + * Field URIs for MeetingRequest. + */ + private static interface FieldUris { + + /** + * The Meeting request type. + */ + String MeetingRequestType = "meetingRequest:MeetingRequestType"; + + /** + * The Intended free busy status. + */ + String IntendedFreeBusyStatus = "meetingRequest:IntendedFreeBusyStatus"; + } + + + /** + * Defines the MeetingRequestType property. + */ + public static final PropertyDefinition MeetingRequestType = + new GenericPropertyDefinition( + MeetingRequestType.class, + XmlElementNames.MeetingRequestType, FieldUris.MeetingRequestType, + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IntendedFreeBusyStatus property. + */ + public static final PropertyDefinition IntendedFreeBusyStatus = + new GenericPropertyDefinition( + LegacyFreeBusyStatus.class, + XmlElementNames.IntendedFreeBusyStatus, + FieldUris.IntendedFreeBusyStatus, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Start property. + */ + public static final PropertyDefinition Start = AppointmentSchema.Start; + + /** + * Defines the End property. + */ + public static final PropertyDefinition End = AppointmentSchema.End; + + /** + * Defines the OriginalStart property. + */ + public static final PropertyDefinition OriginalStart = + AppointmentSchema.OriginalStart; + + /** + * Defines the IsAllDayEvent property. + */ + public static final PropertyDefinition IsAllDayEvent = + AppointmentSchema.IsAllDayEvent; + + /** + * Defines the LegacyFreeBusyStatus property. + */ + public static final PropertyDefinition LegacyFreeBusyStatus = + AppointmentSchema.LegacyFreeBusyStatus; + + /** + * Defines the Location property. + */ + public static final PropertyDefinition Location = + AppointmentSchema.Location; + + /** + * Defines the When property. + */ + public static final PropertyDefinition When = AppointmentSchema.When; + + /** + * Defines the IsMeeting property. + */ + public static final PropertyDefinition IsMeeting = + AppointmentSchema.IsMeeting; + + /** + * Defines the IsCancelled property. + */ + public static final PropertyDefinition IsCancelled = + AppointmentSchema.IsCancelled; + + /** + * Defines the IsRecurring property. + */ + public static final PropertyDefinition IsRecurring = + AppointmentSchema.IsRecurring; + + /** + * Defines the MeetingRequestWasSent property. + */ + public static final PropertyDefinition MeetingRequestWasSent = + AppointmentSchema.MeetingRequestWasSent; + + /** + * Defines the AppointmentType property. + */ + public static final PropertyDefinition AppointmentType = + AppointmentSchema.AppointmentType; + + /** + * Defines the MyResponseType property. + */ + public static final PropertyDefinition MyResponseType = + AppointmentSchema.MyResponseType; + + /** + * Defines the Organizer property. + */ + public static final PropertyDefinition Organizer = + AppointmentSchema.Organizer; + + /** + * Defines the RequiredAttendees property. + */ + public static final PropertyDefinition RequiredAttendees = + AppointmentSchema.RequiredAttendees; + + /** + * Defines the OptionalAttendees property. + */ + public static final PropertyDefinition OptionalAttendees = + AppointmentSchema.OptionalAttendees; + + /** + * Defines the Resources property. + */ + public static final PropertyDefinition Resources = + AppointmentSchema.Resources; + + /** + * Defines the ConflictingMeetingCount property. + */ + public static final PropertyDefinition ConflictingMeetingCount = + AppointmentSchema.ConflictingMeetingCount; + + /** + * Defines the AdjacentMeetingCount property. + */ + public static final PropertyDefinition AdjacentMeetingCount = + AppointmentSchema.AdjacentMeetingCount; + + /** + * Defines the ConflictingMeetings property. + */ + public static final PropertyDefinition ConflictingMeetings = + AppointmentSchema.ConflictingMeetings; + + /** + * Defines the AdjacentMeetings property. + */ + public static final PropertyDefinition AdjacentMeetings = + AppointmentSchema.AdjacentMeetings; + + /** + * Defines the Duration property. + */ + public static final PropertyDefinition Duration = + AppointmentSchema.Duration; + + /** + * Defines the TimeZone property. + */ + public static final PropertyDefinition TimeZone = + AppointmentSchema.TimeZone; + + /** + * Defines the AppointmentReplyTime property. + */ + public static final PropertyDefinition AppointmentReplyTime = + AppointmentSchema.AppointmentReplyTime; + + /** + * Defines the AppointmentSequenceNumber property. + */ + public static final PropertyDefinition AppointmentSequenceNumber = + AppointmentSchema.AppointmentSequenceNumber; + + /** + * Defines the AppointmentState property. + */ + public static final PropertyDefinition AppointmentState = + AppointmentSchema.AppointmentState; + + /** + * Defines the Recurrence property. + */ + public static final PropertyDefinition Recurrence = + AppointmentSchema.Recurrence; + + /** + * Defines the FirstOccurrence property. + */ + public static final PropertyDefinition FirstOccurrence = + AppointmentSchema.FirstOccurrence; + /** + * Defines the LastOccurrence property. + */ + public static final PropertyDefinition LastOccurrence = + AppointmentSchema.LastOccurrence; + + /** + * Defines the ModifiedOccurrences property. + */ + public static final PropertyDefinition ModifiedOccurrences = + AppointmentSchema.ModifiedOccurrences; + + /** + * Defines the Duration property. + */ + public static final PropertyDefinition DeletedOccurrences = + AppointmentSchema.DeletedOccurrences; + + /** + * Defines the MeetingTimeZone property. + */ + static final PropertyDefinition MeetingTimeZone = + AppointmentSchema.MeetingTimeZone; + + /** + * Defines the StartTimeZone property. + */ + public static final PropertyDefinition StartTimeZone = + AppointmentSchema.StartTimeZone; + + /** + * Defines the EndTimeZone property. + */ + public static final PropertyDefinition EndTimeZone = + AppointmentSchema.EndTimeZone; + + /** + * Defines the ConferenceType property. + */ + public static final PropertyDefinition ConferenceType = + AppointmentSchema.ConferenceType; + + /** + * Defines the AllowNewTimeProposal property. + */ + public static final PropertyDefinition AllowNewTimeProposal = + AppointmentSchema.AllowNewTimeProposal; + + /** + * Defines the IsOnlineMeeting property. + */ + public static final PropertyDefinition IsOnlineMeeting = + AppointmentSchema.IsOnlineMeeting; + + /** + * Defines the MeetingWorkspaceUrl property. + */ + public static final PropertyDefinition MeetingWorkspaceUrl = + AppointmentSchema.MeetingWorkspaceUrl; + + /** + * Defines the NetShowUrl property. + */ + public static final PropertyDefinition NetShowUrl = + AppointmentSchema.NetShowUrl; + + /** + * This must be after the declaration of property definitions. + */ + protected static final MeetingRequestSchema Instance = + new MeetingRequestSchema(); + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(MeetingRequestType); + this.registerProperty(IntendedFreeBusyStatus); + + this.registerProperty(Start); + this.registerProperty(End); + this.registerProperty(OriginalStart); + this.registerProperty(IsAllDayEvent); + this.registerProperty(LegacyFreeBusyStatus); + this.registerProperty(Location); + this.registerProperty(When); + this.registerProperty(IsMeeting); + this.registerProperty(IsCancelled); + this.registerProperty(IsRecurring); + this.registerProperty(MeetingRequestWasSent); + this.registerProperty(AppointmentType); + this.registerProperty(MyResponseType); + this.registerProperty(Organizer); + this.registerProperty(RequiredAttendees); + this.registerProperty(OptionalAttendees); + this.registerProperty(Resources); + this.registerProperty(ConflictingMeetingCount); + this.registerProperty(AdjacentMeetingCount); + this.registerProperty(ConflictingMeetings); + this.registerProperty(AdjacentMeetings); + this.registerProperty(Duration); + this.registerProperty(TimeZone); + this.registerProperty(AppointmentReplyTime); + this.registerProperty(AppointmentSequenceNumber); + this.registerProperty(AppointmentState); + this.registerProperty(Recurrence); + this.registerProperty(FirstOccurrence); + this.registerProperty(LastOccurrence); + this.registerProperty(ModifiedOccurrences); + this.registerProperty(DeletedOccurrences); + this.registerInternalProperty(MeetingTimeZone); + this.registerProperty(StartTimeZone); + this.registerProperty(EndTimeZone); + this.registerProperty(ConferenceType); + this.registerProperty(AllowNewTimeProposal); + this.registerProperty(IsOnlineMeeting); + this.registerProperty(MeetingWorkspaceUrl); + this.registerProperty(NetShowUrl); + } + + /** + * Initializes a new instance of the class. + */ + protected MeetingRequestSchema() { + super(); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java index dd4ef7465..98d13745a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java @@ -15,33 +15,47 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MeetingRequestType { - // Undefined meeting request type. - /** The None. */ - None, - - // The meeting request is an update to the original meeting. - /** The Full update. */ - FullUpdate, - - // The meeting request is an information update. - /** The Informational update. */ - InformationalUpdate, - - // The meeting request is for a new meeting. - /** The New meeting request. */ - NewMeetingRequest, - - // The meeting request is outdated. - /** The Outdated. */ - Outdated, - - // The meeting update is a silent update to an existing meeting. - /** The Silent update. */ - SilentUpdate, - - // The meeting update was forwarded to a delegate, and this copy is - // informational. - /** The Principal wants copy. */ - PrincipalWantsCopy + // Undefined meeting request type. + /** + * The None. + */ + None, + + // The meeting request is an update to the original meeting. + /** + * The Full update. + */ + FullUpdate, + + // The meeting request is an information update. + /** + * The Informational update. + */ + InformationalUpdate, + + // The meeting request is for a new meeting. + /** + * The New meeting request. + */ + NewMeetingRequest, + + // The meeting request is outdated. + /** + * The Outdated. + */ + Outdated, + + // The meeting update is a silent update to an existing meeting. + /** + * The Silent update. + */ + SilentUpdate, + + // The meeting update was forwarded to a delegate, and this copy is + // informational. + /** + * The Principal wants copy. + */ + PrincipalWantsCopy } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java index cbda808e6..dcebd439e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java @@ -15,22 +15,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MeetingRequestsDeliveryScope { - // Meeting requests are sent to delegates only. - /** The Delegates only. */ - DelegatesOnly, + // Meeting requests are sent to delegates only. + /** + * The Delegates only. + */ + DelegatesOnly, - // Meeting requests are sent to delegates and to the owner of the mailbox. - /** The Delegates and me. */ - DelegatesAndMe, + // Meeting requests are sent to delegates and to the owner of the mailbox. + /** + * The Delegates and me. + */ + DelegatesAndMe, - // Meeting requests are sent to delegates and informational messages are - // sent to the owner of the mailbox. - /** The Delegates and send information to me. */ - DelegatesAndSendInformationToMe, + // Meeting requests are sent to delegates and informational messages are + // sent to the owner of the mailbox. + /** + * The Delegates and send information to me. + */ + DelegatesAndSendInformationToMe, - //Meeting requests are not sent to delegates. This value is - //supported only for Exchange 2010 SP1 or later - //server versions. - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - NoForward + //Meeting requests are not sent to delegates. This value is + //supported only for Exchange 2010 SP1 or later + //server versions. + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + NoForward } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java index f5a347716..a85b39c47 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java @@ -13,83 +13,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a response to a meeting request. Properties available on meeting * messages are defined in the MeetingMessageSchema class. - * */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.MeetingResponse) public class MeetingResponse extends MeetingMessage { - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * The parentAttachment - * @throws Exception - * the exception - */ - protected MeetingResponse(ItemAttachment parentAttachment) - throws Exception { - super(parentAttachment); - } + /** + * Initializes a new instance of the class. + * + * @param parentAttachment The parentAttachment + * @throws Exception the exception + */ + protected MeetingResponse(ItemAttachment parentAttachment) + throws Exception { + super(parentAttachment); + } - /** - * Initializes a new instance of the class. - * - * @param service - * EWS service to which this object belongs. - * @throws Exception - * the exception - */ - protected MeetingResponse(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes a new instance of the class. + * + * @param service EWS service to which this object belongs. + * @throws Exception the exception + */ + protected MeetingResponse(ExchangeService service) throws Exception { + super(service); + } - /** - * Binds to an existing meeting response and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting response. - * @param id - * The Id of the meeting response to bind to. - * @param propertySet - * The set of properties to load. - * @return A MeetingResponse instance representing the meeting response - * corresponding to the specified Id. - */ - public static MeetingResponse bind(ExchangeService service, ItemId id, - PropertySet propertySet) { - try { - return service.bindToItem(MeetingResponse.class, id, propertySet); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } + /** + * Binds to an existing meeting response and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting response. + * @param id The Id of the meeting response to bind to. + * @param propertySet The set of properties to load. + * @return A MeetingResponse instance representing the meeting response + * corresponding to the specified Id. + */ + public static MeetingResponse bind(ExchangeService service, ItemId id, + PropertySet propertySet) { + try { + return service.bindToItem(MeetingResponse.class, id, propertySet); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } - /** - * Binds to an existing meeting response and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to use to bind to the meeting response. - * @param id - * The Id of the meeting response to bind to. - * @return A MeetingResponse instance representing the meeting response - * corresponding to the specified Id. - */ - public static MeetingResponse bind(ExchangeService service, ItemId id) { - return MeetingResponse.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing meeting response and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service The service to use to bind to the meeting response. + * @param id The Id of the meeting response to bind to. + * @return A MeetingResponse instance representing the meeting response + * corresponding to the specified Id. + */ + public static MeetingResponse bind(ExchangeService service, ItemId id) { + return MeetingResponse.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java index 54ded2ef6..15762fe8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java @@ -15,28 +15,40 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MeetingResponseType { - // The response type is inknown. - /** The Unknown. */ - Unknown, - - // There was no response. The authenticated is the organizer of the meeting. - /** The Organizer. */ - Organizer, - - // The meeting was tentatively accepted. - /** The Tentative. */ - Tentative, - - // The meeting was accepted. - /** The Accept. */ - Accept, - - // The meeting was declined. - /** The Decline. */ - Decline, - - // No response was received for the meeting. - /** The No response received. */ - NoResponseReceived + // The response type is inknown. + /** + * The Unknown. + */ + Unknown, + + // There was no response. The authenticated is the organizer of the meeting. + /** + * The Organizer. + */ + Organizer, + + // The meeting was tentatively accepted. + /** + * The Tentative. + */ + Tentative, + + // The meeting was accepted. + /** + * The Accept. + */ + Accept, + + // The meeting was declined. + /** + * The Decline. + */ + Decline, + + // No response was received for the meeting. + /** + * The No response received. + */ + NoResponseReceived } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java index 81e3f6457..4280ae700 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java @@ -11,253 +11,247 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - *Represents a time zone in which a meeting is defined. + * Represents a time zone in which a meeting is defined. */ final class MeetingTimeZone extends ComplexProperty { - /** The name. */ - private String name; + /** + * The name. + */ + private String name; - /** The base offset. */ - private TimeSpan baseOffset; + /** + * The base offset. + */ + private TimeSpan baseOffset; - /** The standard. */ - private TimeChange standard; + /** + * The standard. + */ + private TimeChange standard; - /** The daylight. */ - private TimeChange daylight; + /** + * The daylight. + */ + private TimeChange daylight; - /** - * Initializes a new instance of the MeetingTimeZone class. - * - * @param timeZone - * The time zone used to initialize this instance. - */ - protected MeetingTimeZone(TimeZoneDefinition timeZone) { - // Unfortunately, MeetingTimeZone does not support all the time - // transition types - // supported by TimeZoneInfo. That leaves us unable to accurately - // convert TimeZoneInfo - // into MeetingTimeZone. So we don't... Instead, we emit the time zone's - // Id and - // hope the server will find a match (which it should). - this.name = timeZone.getId(); - } + /** + * Initializes a new instance of the MeetingTimeZone class. + * + * @param timeZone The time zone used to initialize this instance. + */ + protected MeetingTimeZone(TimeZoneDefinition timeZone) { + // Unfortunately, MeetingTimeZone does not support all the time + // transition types + // supported by TimeZoneInfo. That leaves us unable to accurately + // convert TimeZoneInfo + // into MeetingTimeZone. So we don't... Instead, we emit the time zone's + // Id and + // hope the server will find a match (which it should). + this.name = timeZone.getId(); + } - /** - * Initializes a new instance of the MeetingTimeZone class. - */ - public MeetingTimeZone() { - super(); - } + /** + * Initializes a new instance of the MeetingTimeZone class. + */ + public MeetingTimeZone() { + super(); + } - /** - * Initializes a new instance of the MeetingTimeZone class. - * - * @param name - * The name of the time zone. - */ - public MeetingTimeZone(String name) { - this(); - this.name = name; - } + /** + * Initializes a new instance of the MeetingTimeZone class. + * + * @param name The name of the time zone. + */ + public MeetingTimeZone(String name) { + this(); + this.name = name; + } - /** - * Gets the minimum required server version. - * - * @param reader - * the reader - * @return Earliest Exchange version in which this service object type is - * supported. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.BaseOffset)) { - this.baseOffset = EwsUtilities.getXSDurationToTimeSpan(reader - .readElementValue()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Standard)) { - this.standard = new TimeChange(); - this.standard.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Daylight)) { - this.daylight = new TimeChange(); - this.daylight.loadFromXml(reader, reader.getLocalName()); - return true; - } else { - return false; - } - } + /** + * Gets the minimum required server version. + * + * @param reader the reader + * @return Earliest Exchange version in which this service object type is + * supported. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.BaseOffset)) { + this.baseOffset = EwsUtilities.getXSDurationToTimeSpan(reader + .readElementValue()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Standard)) { + this.standard = new TimeChange(); + this.standard.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Daylight)) { + this.daylight = new TimeChange(); + this.daylight.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.name = reader.readAttributeValue(XmlAttributeNames.TimeZoneName); - } + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.name = reader.readAttributeValue(XmlAttributeNames.TimeZoneName); + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.TimeZoneName, this - .getName()); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.TimeZoneName, this + .getName()); + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.baseOffset != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.BaseOffset, EwsUtilities - .getTimeSpanToXSDuration(this.getBaseOffset())); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.baseOffset != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.BaseOffset, EwsUtilities + .getTimeSpanToXSDuration(this.getBaseOffset())); + } - if (this.getStandard() != null) { - this.getStandard().writeToXml(writer, XmlElementNames.Standard); - } + if (this.getStandard() != null) { + this.getStandard().writeToXml(writer, XmlElementNames.Standard); + } - if (this.getDaylight() != null) { - this.getDaylight().writeToXml(writer, XmlElementNames.Daylight); - } - } + if (this.getDaylight() != null) { + this.getDaylight().writeToXml(writer, XmlElementNames.Daylight); + } + } - /** - * Converts this meeting time zone into a TimeZoneInfo structure. - * - * @return the time zone - */ - protected TimeZoneDefinition toTimeZoneInfo() { - TimeZoneDefinition result = null; + /** + * Converts this meeting time zone into a TimeZoneInfo structure. + * + * @return the time zone + */ + protected TimeZoneDefinition toTimeZoneInfo() { + TimeZoneDefinition result = null; - try { - result = new TimeZoneDefinition(); - //TimeZone.getTimeZone(this.getName()); - result.setId(this.getName()); - } catch (Exception e) { - // Could not find a time zone with that Id on the local system. - e.printStackTrace(); - } + try { + result = new TimeZoneDefinition(); + //TimeZone.getTimeZone(this.getName()); + result.setId(this.getName()); + } catch (Exception e) { + // Could not find a time zone with that Id on the local system. + e.printStackTrace(); + } - // Again, we cannot accurately convert MeetingTimeZone into TimeZoneInfo - // because TimeZoneInfo doesn't support absolute date transitions. So if - // there is no system time zone that has a matching Id, we return null. - return result; - } + // Again, we cannot accurately convert MeetingTimeZone into TimeZoneInfo + // because TimeZoneInfo doesn't support absolute date transitions. So if + // there is no system time zone that has a matching Id, we return null. + return result; + } - /** - * Gets the name of the time zone. - * - * @return the name - */ - public String getName() { - return this.name; - } + /** + * Gets the name of the time zone. + * + * @return the name + */ + public String getName() { + return this.name; + } - /** - * Sets the name. - * - * @param value - * the new name - */ - public void setName(String value) { - if (this.canSetFieldValue(this.name, value)) { - this.name = value; - this.changed(); - } - } + /** + * Sets the name. + * + * @param value the new name + */ + public void setName(String value) { + if (this.canSetFieldValue(this.name, value)) { + this.name = value; + this.changed(); + } + } - /** - * Gets the base offset of the time zone from the UTC time zone. - * - * @return the base offset - */ - public TimeSpan getBaseOffset() { - return this.baseOffset; - } + /** + * Gets the base offset of the time zone from the UTC time zone. + * + * @return the base offset + */ + public TimeSpan getBaseOffset() { + return this.baseOffset; + } - /** - * Sets the base offset. - * - * @param value - * the new base offset - */ - public void setBaseOffset(TimeSpan value) { - if (this.canSetFieldValue(this.name, value)) { - this.baseOffset = value; - this.changed(); - } - } + /** + * Sets the base offset. + * + * @param value the new base offset + */ + public void setBaseOffset(TimeSpan value) { + if (this.canSetFieldValue(this.name, value)) { + this.baseOffset = value; + this.changed(); + } + } - /** - * Gets a TimeChange defining when the time changes to Standard - * Time. - * - * @return the standard - */ - public TimeChange getStandard() { - return this.standard; - } + /** + * Gets a TimeChange defining when the time changes to Standard + * Time. + * + * @return the standard + */ + public TimeChange getStandard() { + return this.standard; + } - /** - * Sets the standard. - * - * @param value - * the new standard - */ - public void setStandard(TimeChange value) { - if (this.canSetFieldValue(this.standard, value)) { - this.standard = value; - this.changed(); - } - } + /** + * Sets the standard. + * + * @param value the new standard + */ + public void setStandard(TimeChange value) { + if (this.canSetFieldValue(this.standard, value)) { + this.standard = value; + this.changed(); + } + } - /** - * Gets a TimeChange defining when the time changes to Daylight - * Saving Time. - * - * @return the daylight - */ - public TimeChange getDaylight() { - return this.daylight; - } + /** + * Gets a TimeChange defining when the time changes to Daylight + * Saving Time. + * + * @return the daylight + */ + public TimeChange getDaylight() { + return this.daylight; + } - /** - * Sets the daylight. - * - * @param value - * the new daylight - */ - public void setDaylight(TimeChange value) { - if (this.canSetFieldValue(this.daylight, value)) { - this.daylight = value; - this.changed(); - } - } + /** + * Sets the daylight. + * + * @param value the new daylight + */ + public void setDaylight(TimeChange value) { + if (this.canSetFieldValue(this.daylight, value)) { + this.daylight = value; + this.changed(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index d0f96f6ad..34bb92bcb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -17,74 +17,63 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class MeetingTimeZonePropertyDefinition extends PropertyDefinition { - /** - * Initializes a new instance of the MeetingTimeZonePropertyDefinition - * class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected MeetingTimeZonePropertyDefinition(String xmlElementName, - String uri, EnumSet flags, - ExchangeVersion version) { - super(xmlElementName, uri, flags, version); + /** + * Initializes a new instance of the MeetingTimeZonePropertyDefinition + * class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected MeetingTimeZonePropertyDefinition(String xmlElementName, + String uri, EnumSet flags, + ExchangeVersion version) { + super(xmlElementName, uri, flags, version); - } + } - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected final void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - MeetingTimeZone meetingTimeZone = new MeetingTimeZone(); - meetingTimeZone.loadFromXml(reader, this.getXmlElement()); + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected final void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + MeetingTimeZone meetingTimeZone = new MeetingTimeZone(); + meetingTimeZone.loadFromXml(reader, this.getXmlElement()); - propertyBag.setObjectFromPropertyDefinition( - AppointmentSchema.StartTimeZone, meetingTimeZone - .toTimeZoneInfo()); - } + propertyBag.setObjectFromPropertyDefinition( + AppointmentSchema.StartTimeZone, meetingTimeZone + .toTimeZoneInfo()); + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - * @throws Exception - * the exception - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { - MeetingTimeZone value = (MeetingTimeZone)propertyBag - .getObjectFromPropertyDefinition(this); + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + * @throws Exception the exception + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { + MeetingTimeZone value = (MeetingTimeZone) propertyBag + .getObjectFromPropertyDefinition(this); - if (value != null) { - value.writeToXml(writer, this.getXmlElement()); - } - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return MeetingTimeZone.class; + if (value != null) { + value.writeToXml(writer, this.getXmlElement()); } + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return MeetingTimeZone.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java index b52de8282..c2ae2cc24 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum MemberStatus { - // The member is unrecognized. - /** The Unrecognized. */ - Unrecognized, + // The member is unrecognized. + /** + * The Unrecognized. + */ + Unrecognized, - // The member is normal. - /** The Normal. */ - Normal, + // The member is normal. + /** + * The Normal. + */ + Normal, - // The member is demoted. - /** The Demoted. */ - Demoted + // The member is demoted. + /** + * The Demoted. + */ + Demoted } diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index 04a183b4a..d06c1607f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -14,185 +14,171 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the body of a message. - * */ public final class MessageBody extends ComplexProperty { - /** The body type. */ - private BodyType bodyType; - - /** The text. */ - private String text; - - /** - * Initializes a new instance. - */ - public MessageBody() { - - } - - /** - * Initializes a new instance. - * - * @param bodyType - * The type of the message body's text. - * @param text - * The text of the message body. - */ - public MessageBody(BodyType bodyType, String text) { - this(); - this.bodyType = bodyType; - this.text = text; - } - - /** - * Initializes a new instance. - * - * @param text - * The text of the message body, assumed to be HTML. - */ - public MessageBody(String text) { - this(BodyType.HTML, text); - } - - /** - * Defines an implicit conversation between a string and MessageBody. - * - * @param textBody - * The string to convert to MessageBody, assumed to be HTML. - * @return A MessageBody initialized with the specified string. - */ - public static MessageBody getMessageBodyFromText(String textBody) { - return new MessageBody(BodyType.HTML, textBody); - } - - /** - * Defines an implicit conversion of MessageBody into a string. - * - * @param messageBody - * The MessageBody to convert to a string. - * @return A string containing the text of the MessageBody. - * @throws Exception - * the exception - */ - public static String getStringFromMessageBody(MessageBody messageBody) - throws Exception { - EwsUtilities.validateParam(messageBody, "messageBody"); - return messageBody.text; - } - - /** - * Reads attributes from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.bodyType = reader.readAttributeValue(BodyType.class, - XmlAttributeNames.BodyType); - } - - /** - * Reads text value from XML. - * - * @param reader - * The reader. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - @Override - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - this.text = reader.readValue(); - } - - /** - * Writes attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.BodyType, this - .getBodyType()); - } - - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - if (null != this.text && !this.text.isEmpty()) { - writer.writeValue(this.getText(), XmlElementNames.Body); - } - } - - /** - * Gets the type of the message body's text. - * - * @return BodyType enum - */ - public BodyType getBodyType() { - return this.bodyType; - } - - /** - * Sets the type of the message body's text. - * - * @param bodyType - * BodyType enum - */ - public void setBodyType(BodyType bodyType) { - if (this.canSetFieldValue(this.bodyType, bodyType)) { - this.bodyType = bodyType; - this.changed(); - } - } - - /** - * Gets the text of the message body. - * - * @return message body text - */ - private String getText() { - return this.text; - } - - /** - * Sets the text of the message body. - * - * @param text - * message body text - */ - public void setText(String text) { - if (this.canSetFieldValue(this.text, text)) { - this.text = text; - this.changed(); - } - } - - /** - * Returns a String that represents the current Object. - * - * @return the string - */ - @Override - public String toString() { - return (this.text == null) ? "" : this.text; - } + /** + * The body type. + */ + private BodyType bodyType; + + /** + * The text. + */ + private String text; + + /** + * Initializes a new instance. + */ + public MessageBody() { + + } + + /** + * Initializes a new instance. + * + * @param bodyType The type of the message body's text. + * @param text The text of the message body. + */ + public MessageBody(BodyType bodyType, String text) { + this(); + this.bodyType = bodyType; + this.text = text; + } + + /** + * Initializes a new instance. + * + * @param text The text of the message body, assumed to be HTML. + */ + public MessageBody(String text) { + this(BodyType.HTML, text); + } + + /** + * Defines an implicit conversation between a string and MessageBody. + * + * @param textBody The string to convert to MessageBody, assumed to be HTML. + * @return A MessageBody initialized with the specified string. + */ + public static MessageBody getMessageBodyFromText(String textBody) { + return new MessageBody(BodyType.HTML, textBody); + } + + /** + * Defines an implicit conversion of MessageBody into a string. + * + * @param messageBody The MessageBody to convert to a string. + * @return A string containing the text of the MessageBody. + * @throws Exception the exception + */ + public static String getStringFromMessageBody(MessageBody messageBody) + throws Exception { + EwsUtilities.validateParam(messageBody, "messageBody"); + return messageBody.text; + } + + /** + * Reads attributes from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.bodyType = reader.readAttributeValue(BodyType.class, + XmlAttributeNames.BodyType); + } + + /** + * Reads text value from XML. + * + * @param reader The reader. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + @Override + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + this.text = reader.readValue(); + } + + /** + * Writes attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.BodyType, this + .getBodyType()); + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + if (null != this.text && !this.text.isEmpty()) { + writer.writeValue(this.getText(), XmlElementNames.Body); + } + } + + /** + * Gets the type of the message body's text. + * + * @return BodyType enum + */ + public BodyType getBodyType() { + return this.bodyType; + } + + /** + * Sets the type of the message body's text. + * + * @param bodyType BodyType enum + */ + public void setBodyType(BodyType bodyType) { + if (this.canSetFieldValue(this.bodyType, bodyType)) { + this.bodyType = bodyType; + this.changed(); + } + } + + /** + * Gets the text of the message body. + * + * @return message body text + */ + private String getText() { + return this.text; + } + + /** + * Sets the text of the message body. + * + * @param text message body text + */ + public void setText(String text) { + if (this.canSetFieldValue(this.text, text)) { + this.text = text; + this.changed(); + } + } + + /** + * Returns a String that represents the current Object. + * + * @return the string + */ + @Override + public String toString() { + return (this.text == null) ? "" : this.text; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java index 27433641b..b2ed6eee7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java @@ -14,19 +14,25 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines how messages are disposed of in CreateItem and UpdateItem operations. */ public enum MessageDisposition { - /* + /* * Messages are saved but not sent. */ - /** The Save only. */ - SaveOnly, + /** + * The Save only. + */ + SaveOnly, /* * Messages are sent and a copy is saved. */ - /** The Send and save copy. */ - SendAndSaveCopy, + /** + * The Send and save copy. + */ + SendAndSaveCopy, /* * Messages are sent but no copy is saved. */ - /** The Send only. */ - SendOnly + /** + * The Send only. + */ + SendOnly } diff --git a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java index b7f12dbf8..492137b15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java +++ b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java @@ -13,161 +13,152 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; /** - *Represents the MIME content of an item. + * Represents the MIME content of an item. */ public final class MimeContent extends ComplexProperty { - /** The character set. */ - private String characterSet; - - /** The content. */ - private byte[] content; - - /** - * Initializes a new instance of the class. - */ - public MimeContent() { - } - - /** - * Initializes a new instance of the class. - * - * @param characterSet - * the character set - * @param content - * the content - */ - public MimeContent(String characterSet, byte[] content) { - this(); - this.characterSet = characterSet; - this.content = content; - } - - /** - * Reads attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.characterSet = reader.readAttributeValue(String.class, - XmlAttributeNames.CharacterSet); - } - - /** - * Reads text value from XML. - * - * @param reader - * the reader - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - @Override - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - this.content = Base64EncoderStream.decode(reader.readValue()); - } - - /** - * Writes attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.CharacterSet, - this.characterSet); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException { - if (this.content != null && this.content.length > 0) { - writer.writeBase64ElementValue(this.content); - } - } - - /** - * Gets the character set of the content. - * - * @return the character set - */ - public String getCharacterSet() { - return this.characterSet; - } - - /** - * Sets the character set. - * - * @param characterSet - * the new character set - */ - public void setCharacterSet(String characterSet) { - this.canSetFieldValue(this.characterSet, characterSet); - } - - /** - * Gets the character set of the content. - * - * @return the content - */ - public byte[] getContent() { - return this.content; - } - - /** - * Sets the content. - * - * @param content - * the new content - */ - public void setContent(byte[] content) { - this.canSetFieldValue(this.content, content); - } - - /** - * Writes attributes to XML. - * - * @return the string - */ - @Override - public String toString() { - if (this.getContent() == null) { - return ""; - } else { - try { - - // Try to convert to original MIME content using specified - // charset. If this fails, - // return the Base64 representation of the content. - // Note: Encoding.GetString can throw DecoderFallbackException - // which is a subclass - // of ArgumentException. - String charSet = (this.getCharacterSet() == null || - this.getCharacterSet().isEmpty()) ? - "UTF-8" : this.getCharacterSet(); - return new String(this.getContent(),charSet); - } catch (Exception e) { - return Base64EncoderStream.encode(this.getContent()); - } - } - } + /** + * The character set. + */ + private String characterSet; + + /** + * The content. + */ + private byte[] content; + + /** + * Initializes a new instance of the class. + */ + public MimeContent() { + } + + /** + * Initializes a new instance of the class. + * + * @param characterSet the character set + * @param content the content + */ + public MimeContent(String characterSet, byte[] content) { + this(); + this.characterSet = characterSet; + this.content = content; + } + + /** + * Reads attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.characterSet = reader.readAttributeValue(String.class, + XmlAttributeNames.CharacterSet); + } + + /** + * Reads text value from XML. + * + * @param reader the reader + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + @Override + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + this.content = Base64EncoderStream.decode(reader.readValue()); + } + + /** + * Writes attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.CharacterSet, + this.characterSet); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException { + if (this.content != null && this.content.length > 0) { + writer.writeBase64ElementValue(this.content); + } + } + + /** + * Gets the character set of the content. + * + * @return the character set + */ + public String getCharacterSet() { + return this.characterSet; + } + + /** + * Sets the character set. + * + * @param characterSet the new character set + */ + public void setCharacterSet(String characterSet) { + this.canSetFieldValue(this.characterSet, characterSet); + } + + /** + * Gets the character set of the content. + * + * @return the content + */ + public byte[] getContent() { + return this.content; + } + + /** + * Sets the content. + * + * @param content the new content + */ + public void setContent(byte[] content) { + this.canSetFieldValue(this.content, content); + } + + /** + * Writes attributes to XML. + * + * @return the string + */ + @Override + public String toString() { + if (this.getContent() == null) { + return ""; + } else { + try { + + // Try to convert to original MIME content using specified + // charset. If this fails, + // return the Base64 representation of the content. + // Note: Encoding.GetString can throw DecoderFallbackException + // which is a subclass + // of ArgumentException. + String charSet = (this.getCharacterSet() == null || + this.getCharacterSet().isEmpty()) ? + "UTF-8" : this.getCharacterSet(); + return new String(this.getContent(), charSet); + } catch (Exception e) { + return Base64EncoderStream.encode(this.getContent()); + } + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java index c672bd02b..2a3bb93fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java @@ -13,61 +13,68 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a mobile phone. */ -public final class MobilePhone implements ISelfValidate{ +public final class MobilePhone implements ISelfValidate { - /** - * Name of the mobile phone. - */ - private String name; + /** + * Name of the mobile phone. + */ + private String name; - /** - * Phone number of the mobile phone. - */ - private String phoneNumber; + /** + * Phone number of the mobile phone. + */ + private String phoneNumber; - /** - * Initializes a new instance of the class. - */ - public MobilePhone() { - } + /** + * Initializes a new instance of the class. + */ + public MobilePhone() { + } - /** - * Initializes a new instance of the MobilePhone class. - * @param name The name associated with the mobile phone. - * @param phoneNumber The mobile phone number. - */ - public MobilePhone(String name, String phoneNumber) { - this.name = name; - this.phoneNumber = phoneNumber; - } + /** + * Initializes a new instance of the MobilePhone class. + * + * @param name The name associated with the mobile phone. + * @param phoneNumber The mobile phone number. + */ + public MobilePhone(String name, String phoneNumber) { + this.name = name; + this.phoneNumber = phoneNumber; + } - /** - * Gets or sets the name associated with this mobile phone. - */ - public String getName() { - return this.name; } + /** + * Gets or sets the name associated with this mobile phone. + */ + public String getName() { + return this.name; + } - public void setName(String value) { - this.name = value; } + public void setName(String value) { + this.name = value; + } - /** - * Gets or sets the number of this mobile phone. - */ - public String getPhoneNumber() { - return this.phoneNumber; } - public void setPhoneNumber(String value) { - this.phoneNumber = value; } + /** + * Gets or sets the number of this mobile phone. + */ + public String getPhoneNumber() { + return this.phoneNumber; + } + public void setPhoneNumber(String value) { + this.phoneNumber = value; + } - /** - * Validates this instance.//>!(contentType == null || contentType.isEmpty() - * @throws ServiceValidationException - */ - public void validate() throws ServiceValidationException { - if(this.getPhoneNumber() == null || this.getPhoneNumber().isEmpty()) { - throw new ServiceValidationException( - "PhoneNumber cannot be empty."); - } - } + + /** + * Validates this instance.//>!(contentType == null || contentType.isEmpty() + * + * @throws ServiceValidationException + */ + public void validate() throws ServiceValidationException { + if (this.getPhoneNumber() == null || this.getPhoneNumber().isEmpty()) { + throw new ServiceValidationException( + "PhoneNumber cannot be empty."); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index 155db2be8..675ab0cbd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -15,65 +15,90 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum Month { - // January. - /** The January. */ - January(1), - - // February. - /** The February. */ - February(2), - - // March. - /** The March. */ - March(3), - - // April. - /** The April. */ - April(4), - - // May. - /** The May. */ - May(5), - - // June. - /** The June. */ - June(6), - - // July. - /** The July. */ - July(7), - - // August. - /** The August. */ - August(8), - - // September. - /** The September. */ - September(9), - - // October. - /** The October. */ - October(10), - - // November. - /** The November. */ - November(11), - - // December. - /** The December. */ - December(12); - - /** The month. */ - @SuppressWarnings("unused") - private final int month; - - /** - * Instantiates a new month. - * - * @param month - * the month - */ - Month(int month) { - this.month = month; - } + // January. + /** + * The January. + */ + January(1), + + // February. + /** + * The February. + */ + February(2), + + // March. + /** + * The March. + */ + March(3), + + // April. + /** + * The April. + */ + April(4), + + // May. + /** + * The May. + */ + May(5), + + // June. + /** + * The June. + */ + June(6), + + // July. + /** + * The July. + */ + July(7), + + // August. + /** + * The August. + */ + August(8), + + // September. + /** + * The September. + */ + September(9), + + // October. + /** + * The October. + */ + October(10), + + // November. + /** + * The November. + */ + November(11), + + // December. + /** + * The December. + */ + December(12); + + /** + * The month. + */ + @SuppressWarnings("unused") + private final int month; + + /** + * Instantiates a new month. + * + * @param month the month + */ + Month(int month) { + this.month = month; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java index 81e66cd26..8c90adb90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java @@ -11,82 +11,78 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * * Represents an abstract Move/Copy Folder request. - * - * @param - * The type of response + * + * @param The type of response */ abstract class MoveCopyFolderRequest extends - MoveCopyRequest { + MoveCopyRequest { - /** The folder ids. */ - private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + /** + * The folder ids. + */ + private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - /** - * Validates request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getFolderIds().iterator(), - "FolderIds"); - this.getFolderIds().validate( - this.getService().getRequestedServerVersion()); - } + /** + * Validates request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getFolderIds().iterator(), + "FolderIds"); + this.getFolderIds().validate( + this.getService().getRequestedServerVersion()); + } - /** - * Initializes a new instance of the class. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected MoveCopyFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected MoveCopyFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Writes the ids as XML. - * - * @param writer - * the writer - */ - @Override - protected void writeIdsToXml(EwsServiceXmlWriter writer) { - try { - this.folderIds.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.FolderIds); - } catch (Exception e) { - e.printStackTrace(); - } - } + /** + * Writes the ids as XML. + * + * @param writer the writer + */ + @Override + protected void writeIdsToXml(EwsServiceXmlWriter writer) { + try { + this.folderIds.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.FolderIds); + } catch (Exception e) { + e.printStackTrace(); + } + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getFolderIds().getCount(); - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getFolderIds().getCount(); + } - /** - * Gets the folder ids. - * - * @return The folder ids. - */ - protected FolderIdWrapperList getFolderIds() { - return this.folderIds; - } + /** + * Gets the folder ids. + * + * @return The folder ids. + */ + protected FolderIdWrapperList getFolderIds() { + return this.folderIds; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index e32a784e9..f8c7d97c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -15,92 +15,84 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base response class for individual folder move and copy * operations. - * - * */ public final class MoveCopyFolderResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The folder. */ - private Folder folder; + /** + * The folder. + */ + private Folder folder; - /** - * Initializes a new instance of the MoveCopyFolderResponse class. - */ - protected MoveCopyFolderResponse() { - super(); - } + /** + * Initializes a new instance of the MoveCopyFolderResponse class. + */ + protected MoveCopyFolderResponse() { + super(); + } - /** - * Gets Folder instance. - * - * @param service - * The service. - * @param xmlElementName - * Name of the XML element. - * @return folder - * @throws Exception - * the exception - */ - private Folder getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, - service, xmlElementName); - } + /** + * Gets Folder instance. + * + * @param service The service. + * @param xmlElementName Name of the XML element. + * @return folder + * @throws Exception the exception + */ + private Folder getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, + service, xmlElementName); + } - /** - * Reads response elements from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - List folders; - try { - folders = reader.readServiceObjectsCollectionFromXml( + List folders; + try { + folders = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Folders, this, false,/* clearPropertyBag */ - null, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ + XmlElementNames.Folders, this, false,/* clearPropertyBag */ + null, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ - this.folder = folders.get(0); - } catch (ServiceLocalException e) { - e.printStackTrace(); - } + this.folder = folders.get(0); + } catch (ServiceLocalException e) { + e.printStackTrace(); + } - } + } - /** - * Gets the new (moved or copied) folder. - * - * @return the folder - */ - public Folder getFolder() { - return folder; - } + /** + * Gets the new (moved or copied) folder. + * + * @return the folder + */ + public Folder getFolder() { + return folder; + } - /** - * Gets the object instance delegate. - * - * @param service - * accepts ExchangeService - * @param xmlElementName - * accepts String - * @return Object - * @throws Exception - * throws Exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service accepts ExchangeService + * @param xmlElementName accepts String + * @return Object + * @throws Exception throws Exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java index 24c768114..3cb67997c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java @@ -13,85 +13,79 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Move/Copy Item request. * - * @param - * The type of the response. + * @param The type of the response. */ public abstract class MoveCopyItemRequest extends MoveCopyRequest { - private ItemIdWrapperList itemIds = new ItemIdWrapperList(); - private Boolean newItemIds; + private ItemIdWrapperList itemIds = new ItemIdWrapperList(); + private Boolean newItemIds; - /** - * Validates request. - * - * @throws Exception - * the exception - */ - @Override - public void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getItemIds(), "ItemIds"); - } + /** + * Validates request. + * + * @throws Exception the exception + */ + @Override + public void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getItemIds(), "ItemIds"); + } - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected MoveCopyItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected MoveCopyItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Writes the ids as XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeIdsToXml(EwsServiceXmlWriter writer) throws Exception { - this.getItemIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ItemIds); - if (this.getReturnNewItemIds() != null) { - writer.writeElementValue( - XmlNamespace.Messages, - XmlElementNames.ReturnNewItemIds, - this.getReturnNewItemIds()); - } - } + /** + * Writes the ids as XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeIdsToXml(EwsServiceXmlWriter writer) throws Exception { + this.getItemIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ItemIds); + if (this.getReturnNewItemIds() != null) { + writer.writeElementValue( + XmlNamespace.Messages, + XmlElementNames.ReturnNewItemIds, + this.getReturnNewItemIds()); + } + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getItemIds().getCount(); - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getItemIds().getCount(); + } - /** - * Gets the item ids. The item ids. - * - * @return the item ids - */ - protected ItemIdWrapperList getItemIds() { - return this.itemIds; - } + /** + * Gets the item ids. The item ids. + * + * @return the item ids + */ + protected ItemIdWrapperList getItemIds() { + return this.itemIds; + } - protected Boolean getReturnNewItemIds() { - return this.newItemIds; - } - - protected void setReturnNewItemIds(Boolean value) { - this.newItemIds = value; - } + protected Boolean getReturnNewItemIds() { + return this.newItemIds; + } + + protected void setReturnNewItemIds(Boolean value) { + this.newItemIds = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index 9001bd1b3..1e8ba4b72 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -16,89 +16,83 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a response to a Move or Copy operation. */ public final class MoveCopyItemResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The item. */ - private Item item; + /** + * The item. + */ + private Item item; - /** - * Represents a response to a Move or Copy operation. - */ - protected MoveCopyItemResponse() { - super(); - } + /** + * Represents a response to a Move or Copy operation. + */ + protected MoveCopyItemResponse() { + super(); + } - /** - * Gets Item instance. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the object instance - * @throws Exception - * the exception - */ - private Item getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, - service, xmlElementName); - } + /** + * Gets Item instance. + * + * @param service the service + * @param xmlElementName the xml element name + * @return the object instance + * @throws Exception the exception + */ + private Item getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + return EwsUtilities.createEwsObjectFromXmlElementName(Item.class, + service, xmlElementName); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - List items = reader.readServiceObjectsCollectionFromXml( - XmlElementNames.Items, this, false, /* clearPropertyBag */ - null, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + List items = reader.readServiceObjectsCollectionFromXml( + XmlElementNames.Items, this, false, /* clearPropertyBag */ + null, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ - // We only receive the copied or moved items if the copy or move - // operation was within - // a single mailbox. No item is returned if the operation is - // cross-mailbox, from a - // mailbox to a public folder or from a public folder to a mailbox. - if (items.size() > 0) { - this.item = items.get(0); - } - } + // We only receive the copied or moved items if the copy or move + // operation was within + // a single mailbox. No item is returned if the operation is + // cross-mailbox, from a + // mailbox to a public folder or from a public folder to a mailbox. + if (items.size() > 0) { + this.item = items.get(0); + } + } - /** - * Gets the object instance delegate. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return the object instance delegate - * @throws Exception - * the exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service the service + * @param xmlElementName the xml element name + * @return the object instance delegate + * @throws Exception the exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } - /** - * Gets the copied or moved item. Item is null if the copy or move - * operation was between two mailboxes or between a mailbox and a public - * folder. - * - * @return the item - */ - public Item getItem() { - return this.item; - } + /** + * Gets the copied or moved item. Item is null if the copy or move + * operation was between two mailboxes or between a mailbox and a public + * folder. + * + * @return the item + */ + public Item getItem() { + return this.item; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java index 9ef589b0d..5144931b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java @@ -12,96 +12,87 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract Move/Copy request. - * - * - * @param - * The type of the service object. - * @param - * The type of the response. + * + * @param The type of the service object. + * @param The type of the response. */ -abstract class MoveCopyRequest extends - MultiResponseServiceRequest { +abstract class MoveCopyRequest extends + MultiResponseServiceRequest { - /** The destination folder id. */ - private FolderId destinationFolderId; + /** + * The destination folder id. + */ + private FolderId destinationFolderId; - /** - * Validates request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - EwsUtilities.validateParam(this.getDestinationFolderId(), - "DestinationFolderId"); - this.getDestinationFolderId().validate( - this.getService().getRequestedServerVersion()); - } + /** + * Validates request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + EwsUtilities.validateParam(this.getDestinationFolderId(), + "DestinationFolderId"); + this.getDestinationFolderId().validate( + this.getService().getRequestedServerVersion()); + } - /** - * Initializes a new instance of the MoveCopyRequest class. - * - * @param service - * The Service - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected MoveCopyRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the MoveCopyRequest class. + * + * @param service The Service + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected MoveCopyRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Writes the ids as XML. - * - * @param writer - * The Writer - * @throws Exception - * the exception - */ - protected abstract void writeIdsToXml(EwsServiceXmlWriter writer) - throws Exception; + /** + * Writes the ids as XML. + * + * @param writer The Writer + * @throws Exception the exception + */ + protected abstract void writeIdsToXml(EwsServiceXmlWriter writer) + throws Exception; - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.ToFolderId); - this.getDestinationFolderId().writeToXml(writer); - writer.writeEndElement(); + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.ToFolderId); + this.getDestinationFolderId().writeToXml(writer); + writer.writeEndElement(); - this.writeIdsToXml(writer); - } + this.writeIdsToXml(writer); + } - /** - * Gets the destination folder id. - * - * @return the destination folder id - */ - public FolderId getDestinationFolderId() { - return this.destinationFolderId; - } + /** + * Gets the destination folder id. + * + * @return the destination folder id + */ + public FolderId getDestinationFolderId() { + return this.destinationFolderId; + } - /** - * Sets the destination folder id. - * - * @param destinationFolderId - * the new destination folder id - */ - public void setDestinationFolderId(FolderId destinationFolderId) { - this.destinationFolderId = destinationFolderId; - } + /** + * Sets the destination folder id. + * + * @param destinationFolderId the new destination folder id + */ + public void setDestinationFolderId(FolderId destinationFolderId) { + this.destinationFolderId = destinationFolderId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java index 93db66c9f..ba77c102f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java @@ -12,79 +12,73 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a MoveFolder request. - * - * */ class MoveFolderRequest extends MoveCopyFolderRequest { - /** - * Initializes a new instance of the MoveFolderRequest class. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected MoveFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the MoveFolderRequest class. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected MoveFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - *Creates the service response. - * - * @param service - * The service. - *@param responseIndex - * Index of the response. - *@return Service response. - */ - @Override - protected MoveCopyFolderResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new MoveCopyFolderResponse(); - } + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected MoveCopyFolderResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new MoveCopyFolderResponse(); + } - /** - * Gets the name of the XML element. - * - * @return Xml element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.MoveFolder; - } + /** + * Gets the name of the XML element. + * + * @return Xml element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.MoveFolder; + } - /** - * Gets the name of the response XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.MoveFolderResponse; - } + /** + * Gets the name of the response XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.MoveFolderResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.MoveFolderResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.MoveFolderResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java index 5fbc6a74f..8ac7c7e64 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java @@ -15,73 +15,69 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class MoveItemRequest extends MoveCopyItemRequest { - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - MoveItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + MoveItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected MoveCopyItemResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new MoveCopyItemResponse(); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected MoveCopyItemResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new MoveCopyItemResponse(); + } - /** - * Gets the name of the XML element. - * - * @return XML element name, - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.MoveItem; - } + /** + * Gets the name of the XML element. + * + * @return XML element name, + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.MoveItem; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.MoveItemResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.MoveItemResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.MoveItemResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.MoveItemResponseMessage; + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index c3ddc984f..d948a9d2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -10,185 +10,175 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.concurrent.FutureTask; - /** * Represents a service request that can have multiple responses. - * - * @param - * The type of the response. + * + * @param The type of the response. */ abstract class MultiResponseServiceRequest - extends SimpleServiceRequestBase { - - /** The error handling mode. */ - private ServiceErrorHandling errorHandlingMode; - - /** - * Parses the response. - * - * @param reader - * The reader. - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - ServiceResponseCollection serviceResponses = - new ServiceResponseCollection(); - - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.ResponseMessages); - - for (int i = 0; i < this.getExpectedResponseMessageCount(); i++) { - // Read ahead to see if we've reached the end of the response - // messages early. - reader.read(); - if (reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.ResponseMessages)) { - break; - } - - TResponse response = this.createServiceResponse( - reader.getService(), i); - - response.loadFromXml(reader, this - .getResponseMessageXmlElementName()); - - // Add the response to the list after it has been deserialized - // because the response list updates an overall result as individual - // responses are added - // to it. - serviceResponses.add(response); - } - // Bug E14:131334 -- if there's a general error in batch processing, - // the server will return a single response message containing the error - // (for example, if the SavedItemFolderId is bogus in a batch CreateItem - // call). In this case, throw a ServiceResponsException. Otherwise this - // is an unexpected server error. - if (serviceResponses.getCount() < this - .getExpectedResponseMessageCount()) { - if ((serviceResponses.getCount() == 1) && - (serviceResponses.getResponseAtIndex(0).getResult() == - ServiceResult.Error)) { - throw new ServiceResponseException(serviceResponses - .getResponseAtIndex(0)); - } else { - throw new ServiceXmlDeserializationException(String.format( - Strings.TooFewServiceReponsesReturned, this - .getResponseMessageXmlElementName(), this - .getExpectedResponseMessageCount(), - serviceResponses.getCount())); - } - } - - reader.readEndElementIfNecessary(XmlNamespace.Messages, - XmlElementNames.ResponseMessages); - - return serviceResponses; - } - - /** - * Creates the service response. - * - * @param service - * The service. - * @param responseIndex - * Index of the response. - * @return Service response. - * @throws Exception - * the exception - */ - protected abstract TResponse createServiceResponse(ExchangeService service, - int responseIndex) throws Exception; - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - protected abstract String getResponseMessageXmlElementName(); - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - protected abstract int getExpectedResponseMessageCount(); - - /** - * Initializes a new instance. - * - * @param service - * The service. - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected MultiResponseServiceRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service); - this.errorHandlingMode = errorHandlingMode; - } - - /** - * Executes this request. - * - * @return Service response collection. - * @throws Exception - * the exception - */ - protected ServiceResponseCollection execute() throws Exception { - ServiceResponseCollection serviceResponses = - (ServiceResponseCollection)this - .internalExecute(); - - if (this.errorHandlingMode == ServiceErrorHandling.ThrowOnError) { - EwsUtilities.EwsAssert(serviceResponses.getCount() == 1, - "MultiResponseServiceRequest.Execute", - "ServiceErrorHandling.ThrowOnError " + "error handling " + - "is only valid for singleton request"); - - serviceResponses.getResponseAtIndex(0).throwIfNecessary(); - } - - return serviceResponses; - } - - /** - * Ends executing this async request. - * - * @param asyncResult The async result - * @return Service response collection. - */ - @SuppressWarnings("unchecked") - protected ServiceResponseCollection endExecute(IAsyncResult asyncResult) throws Exception - { - ServiceResponseCollection serviceResponses = (ServiceResponseCollection)this.endInternalExecute(asyncResult); - - if (this.errorHandlingMode == ServiceErrorHandling.ThrowOnError) - { - EwsUtilities.EwsAssert( - serviceResponses.getCount() == 1, - "MultiResponseServiceRequest.Execute", - "ServiceErrorHandling.ThrowOnError error handling is only valid for singleton request"); - - serviceResponses.getResponseAtIndex(0).throwIfNecessary(); - } - - return serviceResponses; + extends SimpleServiceRequestBase { + + /** + * The error handling mode. + */ + private ServiceErrorHandling errorHandlingMode; + + /** + * Parses the response. + * + * @param reader The reader. + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + ServiceResponseCollection serviceResponses = + new ServiceResponseCollection(); + + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.ResponseMessages); + + for (int i = 0; i < this.getExpectedResponseMessageCount(); i++) { + // Read ahead to see if we've reached the end of the response + // messages early. + reader.read(); + if (reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.ResponseMessages)) { + break; + } + + TResponse response = this.createServiceResponse( + reader.getService(), i); + + response.loadFromXml(reader, this + .getResponseMessageXmlElementName()); + + // Add the response to the list after it has been deserialized + // because the response list updates an overall result as individual + // responses are added + // to it. + serviceResponses.add(response); + } + // Bug E14:131334 -- if there's a general error in batch processing, + // the server will return a single response message containing the error + // (for example, if the SavedItemFolderId is bogus in a batch CreateItem + // call). In this case, throw a ServiceResponsException. Otherwise this + // is an unexpected server error. + if (serviceResponses.getCount() < this + .getExpectedResponseMessageCount()) { + if ((serviceResponses.getCount() == 1) && + (serviceResponses.getResponseAtIndex(0).getResult() == + ServiceResult.Error)) { + throw new ServiceResponseException(serviceResponses + .getResponseAtIndex(0)); + } else { + throw new ServiceXmlDeserializationException(String.format( + Strings.TooFewServiceReponsesReturned, this + .getResponseMessageXmlElementName(), this + .getExpectedResponseMessageCount(), + serviceResponses.getCount())); + } + } + + reader.readEndElementIfNecessary(XmlNamespace.Messages, + XmlElementNames.ResponseMessages); + + return serviceResponses; + } + + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + * @throws Exception the exception + */ + protected abstract TResponse createServiceResponse(ExchangeService service, + int responseIndex) throws Exception; + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + protected abstract String getResponseMessageXmlElementName(); + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + protected abstract int getExpectedResponseMessageCount(); + + /** + * Initializes a new instance. + * + * @param service The service. + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected MultiResponseServiceRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service); + this.errorHandlingMode = errorHandlingMode; + } + + /** + * Executes this request. + * + * @return Service response collection. + * @throws Exception the exception + */ + protected ServiceResponseCollection execute() throws Exception { + ServiceResponseCollection serviceResponses = + (ServiceResponseCollection) this + .internalExecute(); + + if (this.errorHandlingMode == ServiceErrorHandling.ThrowOnError) { + EwsUtilities.EwsAssert(serviceResponses.getCount() == 1, + "MultiResponseServiceRequest.Execute", + "ServiceErrorHandling.ThrowOnError " + "error handling " + + "is only valid for singleton request"); + + serviceResponses.getResponseAtIndex(0).throwIfNecessary(); + } + + return serviceResponses; + } + + /** + * Ends executing this async request. + * + * @param asyncResult The async result + * @return Service response collection. + */ + @SuppressWarnings("unchecked") + protected ServiceResponseCollection endExecute(IAsyncResult asyncResult) throws Exception { + ServiceResponseCollection serviceResponses = + (ServiceResponseCollection) this.endInternalExecute(asyncResult); + + if (this.errorHandlingMode == ServiceErrorHandling.ThrowOnError) { + EwsUtilities.EwsAssert( + serviceResponses.getCount() == 1, + "MultiResponseServiceRequest.Execute", + "ServiceErrorHandling.ThrowOnError error handling is only valid for singleton request"); + + serviceResponses.getResponseAtIndex(0).throwIfNecessary(); } - /** - * Gets a value indicating how errors should be handled. - * - * @return A value indicating how errors should be handled. - */ - protected ServiceErrorHandling getErrorHandlingMode() { - return this.errorHandlingMode; - } + return serviceResponses; + } + + /** + * Gets a value indicating how errors should be handled. + * + * @return A value indicating how errors should be handled. + */ + protected ServiceErrorHandling getErrorHandlingMode() { + return this.errorHandlingMode; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java index 11b5b6cc2..6cbd6822a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java @@ -15,73 +15,76 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class NameResolution { - /** The owner. */ - private NameResolutionCollection owner; + /** + * The owner. + */ + private NameResolutionCollection owner; - /** The mailbox. */ - private EmailAddress mailbox = new EmailAddress(); + /** + * The mailbox. + */ + private EmailAddress mailbox = new EmailAddress(); - /** The contact. */ - private Contact contact; + /** + * The contact. + */ + private Contact contact; - /** - * Initializes a new instance of the class. - * - * @param owner - * the owner - */ - protected NameResolution(NameResolutionCollection owner) { - EwsUtilities.EwsAssert(owner != null, "NameResolution.ctor", - "owner is null."); + /** + * Initializes a new instance of the class. + * + * @param owner the owner + */ + protected NameResolution(NameResolutionCollection owner) { + EwsUtilities.EwsAssert(owner != null, "NameResolution.ctor", + "owner is null."); - this.owner = owner; - } + this.owner = owner; + } - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Types, XmlElementNames.Resolution); - reader.readStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); - this.mailbox.loadFromXml(reader, XmlElementNames.Mailbox); + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Types, XmlElementNames.Resolution); + reader.readStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); + this.mailbox.loadFromXml(reader, XmlElementNames.Mailbox); - reader.read(); - if (reader.isStartElement(XmlNamespace.Types, XmlElementNames.Contact)) { - this.contact = new Contact(this.owner.getSession()); - this.contact.loadFromXml(reader, true /* clearPropertyBag */, - PropertySet.FirstClassProperties, - false /* summaryPropertiesOnly */); + reader.read(); + if (reader.isStartElement(XmlNamespace.Types, XmlElementNames.Contact)) { + this.contact = new Contact(this.owner.getSession()); + this.contact.loadFromXml(reader, true /* clearPropertyBag */, + PropertySet.FirstClassProperties, + false /* summaryPropertiesOnly */); - reader.readEndElement(XmlNamespace.Types, - XmlElementNames.Resolution); - } else { - reader.ensureCurrentNodeIsEndElement(XmlNamespace.Types, - XmlElementNames.Resolution); - } - } + reader.readEndElement(XmlNamespace.Types, + XmlElementNames.Resolution); + } else { + reader.ensureCurrentNodeIsEndElement(XmlNamespace.Types, + XmlElementNames.Resolution); + } + } - /** - * Gets the mailbox of the suggested resolved name. - * - * @return the mailbox - */ - public EmailAddress getMailbox() { - return this.mailbox; - } + /** + * Gets the mailbox of the suggested resolved name. + * + * @return the mailbox + */ + public EmailAddress getMailbox() { + return this.mailbox; + } - /** - * Gets the contact information of the suggested resolved name. This - * property is only available when ResolveName is called with - * returnContactDetails = true. - * - * @return the contact - */ - public Contact getContact() { - return this.contact; - } + /** + * Gets the contact information of the suggested resolved name. This + * property is only available when ResolveName is called with + * returnContactDetails = true. + * + * @return the contact + */ + public Contact getContact() { + return this.contact; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java index 0faefd367..38cf89efb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java @@ -17,114 +17,115 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a list of suggested name resolutions. */ -public final class NameResolutionCollection implements - Iterable { - - /** The service. */ - private ExchangeService service; - - /** The includes all resolutions. */ - private boolean includesAllResolutions; - - /** The items. */ - private List items = new ArrayList(); - - /** - * Represents a list of suggested name resolutions. - * - * @param service - * the service - */ - protected NameResolutionCollection(ExchangeService service) { - EwsUtilities.EwsAssert(service != null, "NameResolutionSet.ctor", - "service is null."); - this.service = service; - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.ResolutionSet); - int totalItemsInView = reader.readAttributeValue(Integer.class, - XmlAttributeNames.TotalItemsInView); - this.includesAllResolutions = reader.readAttributeValue(Boolean.class, - XmlAttributeNames.IncludesLastItemInRange); - - for (int i = 0; i < totalItemsInView; i++) { - NameResolution nameResolution = new NameResolution(this); - nameResolution.loadFromXml(reader); - this.items.add(nameResolution); - } - - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.ResolutionSet); - } - - /** - * Gets the session. The session. - * - * @return the session - */ - protected ExchangeService getSession() { - return this.service; - } - - /** - * Gets the total number of elements in the list. - * - * @return the count - */ - public int getCount() { - return this.items.size(); - } - - /** - * Gets a value indicating whether more suggested resolutions are available. - * ResolveName only returns a maximum of 100 name resolutions. When - * IncludesAllResolutions is false, there were more than 100 matching names - * on the server. To narrow the search, provide a more precise name to - * ResolveName. - * - * @return the includes all resolutions - */ - public boolean getIncludesAllResolutions() { - return this.includesAllResolutions; - } - - /** - * Gets the name resolution at the specified index. - * - * @param index - * the index - * @return The name resolution at the speicfied index. - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public NameResolution nameResolutionCollection(int index) - throws ArgumentOutOfRangeException { - if (index < 0 || index >= this.getCount()) { - throw new ArgumentOutOfRangeException("index", - Strings.IndexIsOutOfRange); - } - - return this.items.get(index); - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - - return items.iterator(); - } +public final class NameResolutionCollection implements + Iterable { + + /** + * The service. + */ + private ExchangeService service; + + /** + * The includes all resolutions. + */ + private boolean includesAllResolutions; + + /** + * The items. + */ + private List items = new ArrayList(); + + /** + * Represents a list of suggested name resolutions. + * + * @param service the service + */ + protected NameResolutionCollection(ExchangeService service) { + EwsUtilities.EwsAssert(service != null, "NameResolutionSet.ctor", + "service is null."); + this.service = service; + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.ResolutionSet); + int totalItemsInView = reader.readAttributeValue(Integer.class, + XmlAttributeNames.TotalItemsInView); + this.includesAllResolutions = reader.readAttributeValue(Boolean.class, + XmlAttributeNames.IncludesLastItemInRange); + + for (int i = 0; i < totalItemsInView; i++) { + NameResolution nameResolution = new NameResolution(this); + nameResolution.loadFromXml(reader); + this.items.add(nameResolution); + } + + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.ResolutionSet); + } + + /** + * Gets the session. The session. + * + * @return the session + */ + protected ExchangeService getSession() { + return this.service; + } + + /** + * Gets the total number of elements in the list. + * + * @return the count + */ + public int getCount() { + return this.items.size(); + } + + /** + * Gets a value indicating whether more suggested resolutions are available. + * ResolveName only returns a maximum of 100 name resolutions. When + * IncludesAllResolutions is false, there were more than 100 matching names + * on the server. To narrow the search, provide a more precise name to + * ResolveName. + * + * @return the includes all resolutions + */ + public boolean getIncludesAllResolutions() { + return this.includesAllResolutions; + } + + /** + * Gets the name resolution at the specified index. + * + * @param index the index + * @return The name resolution at the speicfied index. + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public NameResolution nameResolutionCollection(int index) + throws ArgumentOutOfRangeException { + if (index < 0 || index >= this.getCount()) { + throw new ArgumentOutOfRangeException("index", + Strings.IndexIsOutOfRange); + } + + return this.items.get(index); + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + + return items.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java index da4d20396..c0dd9e42b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java @@ -14,48 +14,44 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents recurrence range with no end date. - * */ final class NoEndRecurrenceRange extends RecurrenceRange { - /** - * Initializes a new instance. - */ - public NoEndRecurrenceRange() { - super(); - } - - /** - * Initializes a new instance. - * - * @param startDate - * the start date - */ - public NoEndRecurrenceRange(Date startDate) { - super(startDate); - } - - /** - * Gets the name of the XML element. - * - * @return The name of the XML element - */ - protected String getXmlElementName() { - return XmlElementNames.NoEndRecurrence; - } - - /** - * Setups the recurrence. - * - * @param recurrence - * the new up recurrence - * @throws Exception - * the exception - */ - protected void setupRecurrence(Recurrence recurrence) throws Exception { - super.setupRecurrence(recurrence); - - recurrence.neverEnds(); - } + /** + * Initializes a new instance. + */ + public NoEndRecurrenceRange() { + super(); + } + + /** + * Initializes a new instance. + * + * @param startDate the start date + */ + public NoEndRecurrenceRange(Date startDate) { + super(startDate); + } + + /** + * Gets the name of the XML element. + * + * @return The name of the XML element + */ + protected String getXmlElementName() { + return XmlElementNames.NoEndRecurrence; + } + + /** + * Setups the recurrence. + * + * @param recurrence the new up recurrence + * @throws Exception the exception + */ + protected void setupRecurrence(Recurrence recurrence) throws Exception { + super.setupRecurrence(recurrence); + + recurrence.neverEnds(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index 2a47d5f37..c329d2bd9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -11,21 +11,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { - /** - * Instantiates a new argument exception. - */ - public NotSupportedException() { - super(); - - } - - /** - * Instantiates a new NotSupported exception. - * - * @param strMessage - * the str message - */ - public NotSupportedException(String strMessage) { - super(strMessage); - } + /** + * Instantiates a new argument exception. + */ + public NotSupportedException() { + super(); + + } + + /** + * Instantiates a new NotSupported exception. + * + * @param strMessage the str message + */ + public NotSupportedException(String strMessage) { + super(strMessage); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java index 67471b5ab..595dbae29 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java @@ -10,150 +10,131 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.Date; - import javax.xml.stream.XMLStreamException; +import java.util.Date; /** * Represents an event as exposed by push and pull notifications. - * */ public abstract class NotificationEvent { - /** - * Type of this event. - */ - private EventType eventType; - - /** - * Date and time when the event occurred. - */ - private Date timestamp; - - /** - * Id of parent folder of the item or folder this event applies to. - */ - private FolderId parentFolderId; - - /** - * Id of the old parent folder of the item or folder this event applies to. - * This property is only meaningful when EventType is equal to either - * EventType.Moved or EventType.Copied. For all other event types, - * oldParentFolderId will be null - */ - private FolderId oldParentFolderId; - - /** - * Initializes a new instance. - * - * @param eventType - * the event type - * @param timestamp - * the timestamp - */ - protected NotificationEvent(EventType eventType, Date timestamp) { - this.eventType = eventType; - this.timestamp = timestamp; - } - - /** - * Load from XML. - * - * @param reader - * the reader - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws Exception - * the exception - */ - protected void internalLoadFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, Exception { - } - - /** - * Loads this NotificationEvent from XML. - * - * @param reader - * the reader - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String xmlElementName) - throws Exception { - this.internalLoadFromXml(reader); - - reader.readEndElementIfNecessary(XmlNamespace.Types, xmlElementName); - } - - /** - * gets the eventType. - * - * @return the eventType. - * - */ - public EventType getEventType() { - return eventType; - } - - /** - * gets the timestamp. - * - * @return the timestamp. - * - */ - public Date getTimestamp() { - return timestamp; - } - - /** - * gets the parentFolderId. - * - * @return the parentFolderId. - * - */ - public FolderId getParentFolderId() { - return parentFolderId; - } - - /** - * Sets the parentFolderId. - * - * @param parentFolderId - * the new parent folder id - */ - protected void setParentFolderId(FolderId parentFolderId) { - this.parentFolderId = parentFolderId; - } - - /** - * gets the oldParentFolderId. - * - * @return the oldParentFolderId. - * - */ - public FolderId getOldParentFolderId() { - return oldParentFolderId; - } - - /** - * Sets the oldParentFolderId. - * - * @param oldParentFolderId - * the new old parent folder id - */ - protected void setOldParentFolderId(FolderId oldParentFolderId) { - - this.oldParentFolderId = oldParentFolderId; - } + /** + * Type of this event. + */ + private EventType eventType; + + /** + * Date and time when the event occurred. + */ + private Date timestamp; + + /** + * Id of parent folder of the item or folder this event applies to. + */ + private FolderId parentFolderId; + + /** + * Id of the old parent folder of the item or folder this event applies to. + * This property is only meaningful when EventType is equal to either + * EventType.Moved or EventType.Copied. For all other event types, + * oldParentFolderId will be null + */ + private FolderId oldParentFolderId; + + /** + * Initializes a new instance. + * + * @param eventType the event type + * @param timestamp the timestamp + */ + protected NotificationEvent(EventType eventType, Date timestamp) { + this.eventType = eventType; + this.timestamp = timestamp; + } + + /** + * Load from XML. + * + * @param reader the reader + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws Exception the exception + */ + protected void internalLoadFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, Exception { + } + + /** + * Loads this NotificationEvent from XML. + * + * @param reader the reader + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String xmlElementName) + throws Exception { + this.internalLoadFromXml(reader); + + reader.readEndElementIfNecessary(XmlNamespace.Types, xmlElementName); + } + + /** + * gets the eventType. + * + * @return the eventType. + */ + public EventType getEventType() { + return eventType; + } + + /** + * gets the timestamp. + * + * @return the timestamp. + */ + public Date getTimestamp() { + return timestamp; + } + + /** + * gets the parentFolderId. + * + * @return the parentFolderId. + */ + public FolderId getParentFolderId() { + return parentFolderId; + } + + /** + * Sets the parentFolderId. + * + * @param parentFolderId the new parent folder id + */ + protected void setParentFolderId(FolderId parentFolderId) { + this.parentFolderId = parentFolderId; + } + + /** + * gets the oldParentFolderId. + * + * @return the oldParentFolderId. + */ + public FolderId getOldParentFolderId() { + return oldParentFolderId; + } + + /** + * Sets the oldParentFolderId. + * + * @param oldParentFolderId the new old parent folder id + */ + protected void setOldParentFolderId(FolderId oldParentFolderId) { + + this.oldParentFolderId = oldParentFolderId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java index 72617f954..e124513c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java @@ -11,52 +11,55 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * Provides data to a StreamingSubscriptionConnection's + * Provides data to a StreamingSubscriptionConnection's * OnNotificationEvent event. */ public class NotificationEventArgs { - private StreamingSubscription subscription; - private Iterable events; - /** - * Initializes a new instance of the NotificationEventArgs class. - * @param subscription The subscription for which notifications have been received. - * @param events The events that were received. - */ - protected NotificationEventArgs( - StreamingSubscription subscription, - Iterable events) { - this.setSubscription(subscription); - this.setEvents(events); - } - - /** - * Gets the subscription for which notifications have been received. - */ - public StreamingSubscription getSubscription() { - return this.subscription; - - } - - /** - * Sets the events that were received. - */ - protected void setSubscription(StreamingSubscription value) { - this.subscription = value; - } - - /** - * Gets the events that were received. - */ - public Iterable getEvents() { - return this.events; - - } - /** - * Sets the events that were received. - */ - protected void setEvents(Iterable value) { - this.events = value; - } + private StreamingSubscription subscription; + private Iterable events; + + /** + * Initializes a new instance of the NotificationEventArgs class. + * + * @param subscription The subscription for which notifications have been received. + * @param events The events that were received. + */ + protected NotificationEventArgs( + StreamingSubscription subscription, + Iterable events) { + this.setSubscription(subscription); + this.setEvents(events); + } + + /** + * Gets the subscription for which notifications have been received. + */ + public StreamingSubscription getSubscription() { + return this.subscription; + + } + + /** + * Sets the events that were received. + */ + protected void setSubscription(StreamingSubscription value) { + this.subscription = value; + } + + /** + * Gets the events that were received. + */ + public Iterable getEvents() { + return this.events; + + } + + /** + * Sets the events that were received. + */ + protected void setEvents(Iterable value) { + this.events = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java index 7a38f1a86..e319555f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java @@ -10,126 +10,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.Date; - import javax.xml.stream.XMLStreamException; +import java.util.Date; /** * The Class NumberedRecurrenceRange. */ final class NumberedRecurrenceRange extends RecurrenceRange { - /** The number of occurrences. */ - private Integer numberOfOccurrences; - - /** - * Initializes a new instance. - */ - public NumberedRecurrenceRange() { - super(); - } - - /** - * Initializes a new instance. - * - * @param startDate - * the start date - * @param numberOfOccurrences - * the number of occurrences - */ - public NumberedRecurrenceRange(Date startDate, - Integer numberOfOccurrences) { - super(startDate); - this.numberOfOccurrences = numberOfOccurrences; - } - - /** - * Gets the name of the XML element. - * - * @return The name of the XML element - */ - protected String getXmlElementName() { - return XmlElementNames.NumberedRecurrence; - } - - /** - * Setups the recurrence. - * - * @param recurrence - * the new up recurrence - * @throws Exception - * the exception - */ - protected void setupRecurrence(Recurrence recurrence) throws Exception { - super.setupRecurrence(recurrence); - recurrence.setNumberOfOccurrences(this.numberOfOccurrences); - } - - /** - * Writes the elements to XML.. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - super.writeElementsToXml(writer); - - if (this.numberOfOccurrences != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.NumberOfOccurrences, - this.numberOfOccurrences); - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals( - XmlElementNames.NumberOfOccurrences)) { - this.numberOfOccurrences = reader - .readElementValue(Integer.class); - return true; - } else { - return false; - } - } - } - - /** - * Gets the number of occurrences. - * - * @return numberOfOccurrences - */ - - public Integer getNumberOfOccurrences() { - return this.numberOfOccurrences; - } - - /** - * sets the number of occurrences. - * - * @param value - * the new number of occurrences - */ - public void setNumberOfOccurrences(Integer value) { - this.canSetFieldValue(this.numberOfOccurrences, value); - - } + /** + * The number of occurrences. + */ + private Integer numberOfOccurrences; + + /** + * Initializes a new instance. + */ + public NumberedRecurrenceRange() { + super(); + } + + /** + * Initializes a new instance. + * + * @param startDate the start date + * @param numberOfOccurrences the number of occurrences + */ + public NumberedRecurrenceRange(Date startDate, + Integer numberOfOccurrences) { + super(startDate); + this.numberOfOccurrences = numberOfOccurrences; + } + + /** + * Gets the name of the XML element. + * + * @return The name of the XML element + */ + protected String getXmlElementName() { + return XmlElementNames.NumberedRecurrence; + } + + /** + * Setups the recurrence. + * + * @param recurrence the new up recurrence + * @throws Exception the exception + */ + protected void setupRecurrence(Recurrence recurrence) throws Exception { + super.setupRecurrence(recurrence); + recurrence.setNumberOfOccurrences(this.numberOfOccurrences); + } + + /** + * Writes the elements to XML.. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + super.writeElementsToXml(writer); + + if (this.numberOfOccurrences != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.NumberOfOccurrences, + this.numberOfOccurrences); + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals( + XmlElementNames.NumberOfOccurrences)) { + this.numberOfOccurrences = reader + .readElementValue(Integer.class); + return true; + } else { + return false; + } + } + } + + /** + * Gets the number of occurrences. + * + * @return numberOfOccurrences + */ + + public Integer getNumberOfOccurrences() { + return this.numberOfOccurrences; + } + + /** + * sets the number of occurrences. + * + * @param value the new number of occurrences + */ + public void setNumberOfOccurrences(Integer value) { + this.canSetFieldValue(this.numberOfOccurrences, value); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java index 70e60dc73..873fa267f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java @@ -14,96 +14,101 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Encapsulates information on the occurrence of a recurring appointment. - * */ public final class OccurrenceInfo extends ComplexProperty { - /** The item id. */ - private ItemId itemId; - - /** The start. */ - private Date start; - - /** The end. */ - private Date end; - - /** The original start. */ - private Date originalStart; - - /** - * Initializes a new instance of the OccurrenceInfo class. - */ - protected OccurrenceInfo() { - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.ItemId)) { - - this.itemId = new ItemId(); - this.itemId.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Start)) { - - this.start = reader.readElementValueAsDateTime(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.End)) { - - this.end = reader.readElementValueAsDateTime(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.OriginalStart)) { - - this.originalStart = reader.readElementValueAsDateTime(); - return true; - } else { - - return false; - } - } - - /** - * Gets the Id of the occurrence. - * - * @return the item id - */ - public ItemId getItemId() { - return itemId; - } - - /** - * Gets the start date and time of the occurrence. - * - * @return the start - */ - public Date getStart() { - return start; - } - - /** - * Gets the end date and time of the occurrence. - * - * @return the end - */ - public Date getEnd() { - return end; - } - - /** - * Gets the original start date and time of the occurrence. - * - * @return the original start - */ - public Date getOriginalStart() { - return originalStart; - } + /** + * The item id. + */ + private ItemId itemId; + + /** + * The start. + */ + private Date start; + + /** + * The end. + */ + private Date end; + + /** + * The original start. + */ + private Date originalStart; + + /** + * Initializes a new instance of the OccurrenceInfo class. + */ + protected OccurrenceInfo() { + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.ItemId)) { + + this.itemId = new ItemId(); + this.itemId.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Start)) { + + this.start = reader.readElementValueAsDateTime(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.End)) { + + this.end = reader.readElementValueAsDateTime(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.OriginalStart)) { + + this.originalStart = reader.readElementValueAsDateTime(); + return true; + } else { + + return false; + } + } + + /** + * Gets the Id of the occurrence. + * + * @return the item id + */ + public ItemId getItemId() { + return itemId; + } + + /** + * Gets the start date and time of the occurrence. + * + * @return the start + */ + public Date getStart() { + return start; + } + + /** + * Gets the end date and time of the occurrence. + * + * @return the end + */ + public Date getEnd() { + return end; + } + + /** + * Gets the original start date and time of the occurrence. + * + * @return the original start + */ + public Date getOriginalStart() { + return originalStart; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java index 8c997a315..ac41f11d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java @@ -15,42 +15,40 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class OccurrenceInfoCollection extends - ComplexPropertyCollection { + ComplexPropertyCollection { - /** - * Initializes a new instance of the - * class. - */ - protected OccurrenceInfoCollection() { - } + /** + * Initializes a new instance of the + * class. + */ + protected OccurrenceInfoCollection() { + } - /** - * Creates the complex property. - * - * @param xmlElementName - * Name of the XML element - * @return OccuranceInfo instance - */ - @Override - protected OccurrenceInfo createComplexProperty(String xmlElementName) { - if (xmlElementName.equals(XmlElementNames.Occurrence)) { - return new OccurrenceInfo(); - } else { - return null; - } - } + /** + * Creates the complex property. + * + * @param xmlElementName Name of the XML element + * @return OccuranceInfo instance + */ + @Override + protected OccurrenceInfo createComplexProperty(String xmlElementName) { + if (xmlElementName.equals(XmlElementNames.Occurrence)) { + return new OccurrenceInfo(); + } else { + return null; + } + } - /** - * Gets the name of the collection item XML element. - * - * @param complexProperty - * The complex property. - * @return XML element name. - */ - @Override - protected String getCollectionItemXmlElementName( - OccurrenceInfo complexProperty) { - return XmlElementNames.Occurrence; - } + /** + * Gets the name of the collection item XML element. + * + * @param complexProperty The complex property. + * @return XML element name. + */ + @Override + protected String getCollectionItemXmlElementName( + OccurrenceInfo complexProperty) { + return XmlElementNames.Occurrence; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java index 6d5eb00d4..4baadfa0c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java +++ b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java @@ -15,12 +15,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum OffsetBasePoint { - // The offset is from the beginning of the view. - /** The Beginning. */ - Beginning, + // The offset is from the beginning of the view. + /** + * The Beginning. + */ + Beginning, - // The offset is from the end of the view. - /** The End. */ - End + // The offset is from the end of the view. + /** + * The End. + */ + End } diff --git a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java index 42755b848..ccd889e56 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum OofExternalAudience { - // No external recipients should receive Out of Office notifications. - /** The None. */ - None, + // No external recipients should receive Out of Office notifications. + /** + * The None. + */ + None, - // Only recipients that are in the user's Contacts frolder should receive - // Out of Office notifications. - /** The Known. */ - Known, + // Only recipients that are in the user's Contacts frolder should receive + // Out of Office notifications. + /** + * The Known. + */ + Known, - // All recipients should receive Out of Office notifications. - /** The All. */ - All + // All recipients should receive Out of Office notifications. + /** + * The All. + */ + All } diff --git a/src/main/java/microsoft/exchange/webservices/data/OofReply.java b/src/main/java/microsoft/exchange/webservices/data/OofReply.java index 95a0045e4..3b3b27e4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofReply.java @@ -12,173 +12,161 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; -/*** +/** * Represents an Out of Office response. */ public final class OofReply { - /** The culture. */ - private String culture = "en-US"; - - /** The message. */ - private String message; - - /** - * Writes an empty OofReply to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - protected static void writeEmptyReplyToXml(EwsServiceXmlWriter writer, - String xmlElementName) throws XMLStreamException { - writer.writeStartElement(XmlNamespace.Types, xmlElementName); - writer.writeEndElement(); // xmlElementName - } - - /** - * Initializes a new instance of the class. - */ - public OofReply() { - } - - /** - * Initializes a new instance of the class. - * - * @param message - * the message - */ - public OofReply(String message) { - this.message = message; - } - - /** - * Initializes a new instance of the class. - * - * @param message - * the message - * @return the oof reply from string - */ - public static OofReply getOofReplyFromString(String message) { - return new OofReply(message); - } - - /** - * Gets the string from oof reply. - * - * @param oofReply - * the oof reply - * @return the string from oof reply - * @throws Exception - * the exception - */ - public static String getStringFromOofReply(OofReply oofReply) - throws Exception { - EwsUtilities.validateParam(oofReply, "oofReply"); - return oofReply.message; - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String xmlElementName) - throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - xmlElementName); - - if (reader.hasAttributes()) { - this.setCulture(reader.readAttributeValue("xml:lang")); - } - - this.message = reader.readElementValue(XmlNamespace.Types, - XmlElementNames.Message); - - reader.readEndElement(XmlNamespace.Types, xmlElementName); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, xmlElementName); - - if (this.culture != null) { - writer.writeAttributeValue("xml", "lang", this.culture); - } - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Message, - this.message); - - writer.writeEndElement(); // xmlElementName - } - - /*** - * Obtains a string representation of the reply. - * - * @return A string containing the reply message. - */ - public String toString() { - return this.message; - } - - /** - * Gets the culture of the reply. - * - * @return the culture - */ - public String getCulture() { - return this.culture; - - } - - /** - * Sets the culture. - * - * @param culture - * the new culture - */ - public void setCulture(String culture) { - this.culture = culture; - } - - /** - * Gets the the reply message. - * - * @return the message - */ - public String getMessage() { - return this.message; - } - - /** - * Sets the message. - * - * @param message - * the new message - */ - public void setMessage(String message) { - this.message = message; - } + /** + * The culture. + */ + private String culture = "en-US"; + + /** + * The message. + */ + private String message; + + /** + * Writes an empty OofReply to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + protected static void writeEmptyReplyToXml(EwsServiceXmlWriter writer, + String xmlElementName) throws XMLStreamException { + writer.writeStartElement(XmlNamespace.Types, xmlElementName); + writer.writeEndElement(); // xmlElementName + } + + /** + * Initializes a new instance of the class. + */ + public OofReply() { + } + + /** + * Initializes a new instance of the class. + * + * @param message the message + */ + public OofReply(String message) { + this.message = message; + } + + /** + * Initializes a new instance of the class. + * + * @param message the message + * @return the oof reply from string + */ + public static OofReply getOofReplyFromString(String message) { + return new OofReply(message); + } + + /** + * Gets the string from oof reply. + * + * @param oofReply the oof reply + * @return the string from oof reply + * @throws Exception the exception + */ + public static String getStringFromOofReply(OofReply oofReply) + throws Exception { + EwsUtilities.validateParam(oofReply, "oofReply"); + return oofReply.message; + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String xmlElementName) + throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + xmlElementName); + + if (reader.hasAttributes()) { + this.setCulture(reader.readAttributeValue("xml:lang")); + } + + this.message = reader.readElementValue(XmlNamespace.Types, + XmlElementNames.Message); + + reader.readEndElement(XmlNamespace.Types, xmlElementName); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, xmlElementName); + + if (this.culture != null) { + writer.writeAttributeValue("xml", "lang", this.culture); + } + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Message, + this.message); + + writer.writeEndElement(); // xmlElementName + } + + /** + * Obtains a string representation of the reply. + * + * @return A string containing the reply message. + */ + public String toString() { + return this.message; + } + + /** + * Gets the culture of the reply. + * + * @return the culture + */ + public String getCulture() { + return this.culture; + + } + + /** + * Sets the culture. + * + * @param culture the new culture + */ + public void setCulture(String culture) { + this.culture = culture; + } + + /** + * Gets the the reply message. + * + * @return the message + */ + public String getMessage() { + return this.message; + } + + /** + * Sets the message. + * + * @param message the new message + */ + public void setMessage(String message) { + this.message = message; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java index af8c796ad..32a277838 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java @@ -14,264 +14,259 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a user's Out of Office (OOF) settings. - * */ -public final class OofSettings extends -ComplexProperty implements ISelfValidate { - - /** The state. */ - private OofState state = OofState.Disabled; - - /** The external audience. */ - private OofExternalAudience externalAudience = OofExternalAudience.None; - - /** The allow external oof. */ - private OofExternalAudience allowExternalOof = OofExternalAudience.None; - - /** The duration. */ - private TimeWindow duration; - - /** The internal reply. */ - private OofReply internalReply; - - /** The external reply. */ - private OofReply externalReply; - - /** - * Serializes an OofReply. Emits an empty OofReply in case the one passed in - * is null. - * - * @param oofReply - * The oof reply - * @param writer - * The writer - * @param xmlElementName - * Name of the xml element - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void serializeOofReply(OofReply oofReply, - EwsServiceXmlWriter writer, String xmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - if (oofReply != null) { - oofReply.writeToXml(writer, xmlElementName); - } else { - OofReply.writeEmptyReplyToXml(writer, xmlElementName); - } - } - - /** - * Initializes a new instance of OofSettings. - */ - public OofSettings() - - { - super(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * The reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.OofState)) { - this.state = reader.readValue(OofState.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.ExternalAudience)) { - this.externalAudience = reader.readValue(OofExternalAudience.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Duration)) { - this.duration = new TimeWindow(); - this.duration.loadFromXml(reader); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.InternalReply)) { - this.internalReply = new OofReply(); - this.internalReply.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.ExternalReply)) { - this.externalReply = new OofReply(); - this.externalReply.loadFromXml(reader, reader.getLocalName()); - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * The writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.OofState, - this.getState()); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.ExternalAudience, this.getExternalAudience()); - - if (this.getDuration() != null && this.getState() == OofState.Scheduled) { - this.getDuration().writeToXml(writer, XmlElementNames.Duration); - } - - this.serializeOofReply(this.getInternalReply(), writer, - XmlElementNames.InternalReply); - this.serializeOofReply(this.getExternalReply(), writer, - XmlElementNames.ExternalReply); - } - - /** - * Gets the user's OOF state. - * - * @return The user's OOF state. - */ - public OofState getState() { - return state; - } - - /** - * Sets the user's OOF state. - * - * @param state - * the new state - */ - public void setState(OofState state) { - this.state = state; - } - - /** - * Gets a value indicating who should receive external OOF messages. - * - * @return the external audience - */ - public OofExternalAudience getExternalAudience() { - return externalAudience; - } - - /** - * Sets a value indicating who should receive external OOF messages. - * - * @param externalAudience - * the new external audience - */ - public void setExternalAudience(OofExternalAudience externalAudience) { - this.externalAudience = externalAudience; - } - - /** - * Gets the duration of the OOF status when State is set to - * OofState.Scheduled. - * - * @return the duration - */ - public TimeWindow getDuration() { - return duration; - } - - /** - * Sets the duration of the OOF status when State is set to - * OofState.Scheduled. - * - * @param duration - * the new duration - */ - public void setDuration(TimeWindow duration) { - this.duration = duration; - } - - /** - * Gets the OOF response sent other users in the user's domain or trusted - * domain. - * - * @return the internal reply - */ - public OofReply getInternalReply() { - return internalReply; - } - - /** - * Sets the OOF response sent other users in the user's domain or trusted - * domain. - * - * @param internalReply - * the new internal reply - */ - public void setInternalReply(OofReply internalReply) { - this.internalReply = internalReply; - } - - /** - * Gets the OOF response sent to addresses outside the user's domain or - * trusted domain. - * - * @return the external reply - */ - public OofReply getExternalReply() { - return externalReply; - } - - /** - * Sets the OOF response sent to addresses outside the user's domain or - * trusted domain. - * - * @param externalReply - * the new external reply - */ - public void setExternalReply(OofReply externalReply) { - this.externalReply = externalReply; - } - - /** - * Gets a value indicating the authorized external OOF notifications. - * - * @return the allow external oof - */ - public OofExternalAudience getAllowExternalOof() { - return allowExternalOof; - } - - /** - * Sets a value indicating the authorized external OOF notifications. - * - * @param allowExternalOof - * the new allow external oof - */ - public void setAllowExternalOof(OofExternalAudience allowExternalOof) { - this.allowExternalOof = allowExternalOof; - } - - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - @Override - public void validate() throws Exception { - if (this.getState() == OofState.Scheduled) { - if (this.getDuration() == null) { - throw new ArgumentException( - Strings.DurationMustBeSpecifiedWhenScheduled); - } - - EwsUtilities.validateParam(this.getDuration(), "Duration"); - } - } +public final class OofSettings extends + ComplexProperty implements ISelfValidate { + + /** + * The state. + */ + private OofState state = OofState.Disabled; + + /** + * The external audience. + */ + private OofExternalAudience externalAudience = OofExternalAudience.None; + + /** + * The allow external oof. + */ + private OofExternalAudience allowExternalOof = OofExternalAudience.None; + + /** + * The duration. + */ + private TimeWindow duration; + + /** + * The internal reply. + */ + private OofReply internalReply; + + /** + * The external reply. + */ + private OofReply externalReply; + + /** + * Serializes an OofReply. Emits an empty OofReply in case the one passed in + * is null. + * + * @param oofReply The oof reply + * @param writer The writer + * @param xmlElementName Name of the xml element + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void serializeOofReply(OofReply oofReply, + EwsServiceXmlWriter writer, String xmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + if (oofReply != null) { + oofReply.writeToXml(writer, xmlElementName); + } else { + OofReply.writeEmptyReplyToXml(writer, xmlElementName); + } + } + + /** + * Initializes a new instance of OofSettings. + */ + public OofSettings() + + { + super(); + } + + /** + * Tries to read element from XML. + * + * @param reader The reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.OofState)) { + this.state = reader.readValue(OofState.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.ExternalAudience)) { + this.externalAudience = reader.readValue(OofExternalAudience.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Duration)) { + this.duration = new TimeWindow(); + this.duration.loadFromXml(reader); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.InternalReply)) { + this.internalReply = new OofReply(); + this.internalReply.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ExternalReply)) { + this.externalReply = new OofReply(); + this.externalReply.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer The writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.OofState, + this.getState()); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.ExternalAudience, this.getExternalAudience()); + + if (this.getDuration() != null && this.getState() == OofState.Scheduled) { + this.getDuration().writeToXml(writer, XmlElementNames.Duration); + } + + this.serializeOofReply(this.getInternalReply(), writer, + XmlElementNames.InternalReply); + this.serializeOofReply(this.getExternalReply(), writer, + XmlElementNames.ExternalReply); + } + + /** + * Gets the user's OOF state. + * + * @return The user's OOF state. + */ + public OofState getState() { + return state; + } + + /** + * Sets the user's OOF state. + * + * @param state the new state + */ + public void setState(OofState state) { + this.state = state; + } + + /** + * Gets a value indicating who should receive external OOF messages. + * + * @return the external audience + */ + public OofExternalAudience getExternalAudience() { + return externalAudience; + } + + /** + * Sets a value indicating who should receive external OOF messages. + * + * @param externalAudience the new external audience + */ + public void setExternalAudience(OofExternalAudience externalAudience) { + this.externalAudience = externalAudience; + } + + /** + * Gets the duration of the OOF status when State is set to + * OofState.Scheduled. + * + * @return the duration + */ + public TimeWindow getDuration() { + return duration; + } + + /** + * Sets the duration of the OOF status when State is set to + * OofState.Scheduled. + * + * @param duration the new duration + */ + public void setDuration(TimeWindow duration) { + this.duration = duration; + } + + /** + * Gets the OOF response sent other users in the user's domain or trusted + * domain. + * + * @return the internal reply + */ + public OofReply getInternalReply() { + return internalReply; + } + + /** + * Sets the OOF response sent other users in the user's domain or trusted + * domain. + * + * @param internalReply the new internal reply + */ + public void setInternalReply(OofReply internalReply) { + this.internalReply = internalReply; + } + + /** + * Gets the OOF response sent to addresses outside the user's domain or + * trusted domain. + * + * @return the external reply + */ + public OofReply getExternalReply() { + return externalReply; + } + + /** + * Sets the OOF response sent to addresses outside the user's domain or + * trusted domain. + * + * @param externalReply the new external reply + */ + public void setExternalReply(OofReply externalReply) { + this.externalReply = externalReply; + } + + /** + * Gets a value indicating the authorized external OOF notifications. + * + * @return the allow external oof + */ + public OofExternalAudience getAllowExternalOof() { + return allowExternalOof; + } + + /** + * Sets a value indicating the authorized external OOF notifications. + * + * @param allowExternalOof the new allow external oof + */ + public void setAllowExternalOof(OofExternalAudience allowExternalOof) { + this.allowExternalOof = allowExternalOof; + } + + /** + * Validates this instance. + * + * @throws Exception the exception + */ + @Override + public void validate() throws Exception { + if (this.getState() == OofState.Scheduled) { + if (this.getDuration() == null) { + throw new ArgumentException( + Strings.DurationMustBeSpecifiedWhenScheduled); + } + + EwsUtilities.validateParam(this.getDuration(), "Duration"); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OofState.java b/src/main/java/microsoft/exchange/webservices/data/OofState.java index fd4918bb2..637de1478 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofState.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofState.java @@ -15,15 +15,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum OofState { - // The assistant is diabled. - /** The Disabled. */ - Disabled, + // The assistant is diabled. + /** + * The Disabled. + */ + Disabled, - // The assistant is enabled. - /** The Enabled. */ - Enabled, + // The assistant is enabled. + /** + * The Enabled. + */ + Enabled, - // The assistant is scheduled. - /** The Scheduled. */ - Scheduled + // The assistant is scheduled. + /** + * The Scheduled. + */ + Scheduled } diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index 8f527145f..43a93856f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -10,208 +10,191 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - import javax.xml.stream.XMLStreamException; +import java.util.*; /** * Represents an ordered collection of property definitions qualified with a * sort direction. - * */ public final class OrderByCollection implements - Iterable> { - - /** The prop def sort order pair list. */ - private List> propDefSortOrderPairList; - - /*** - * Initializes a new instance of the OrderByCollection class. - */ - protected OrderByCollection() { - this.propDefSortOrderPairList = new - ArrayList>(); - } - - /** - * Adds the specified property definition / sort direction pair to the - * collection. - * - * @param propertyDefinition - * the property definition - * @param sortDirection - * the sort direction - * @throws ServiceLocalException - * the service local exception - */ - public void add(PropertyDefinitionBase propertyDefinition, - SortDirection sortDirection) throws ServiceLocalException { - if (this.contains(propertyDefinition)) { - throw new ServiceLocalException(String.format( - Strings.PropertyAlreadyExistsInOrderByCollection, - propertyDefinition.getPrintableName())); - } - Map propertyDefinitionSortDirectionPair = new - HashMap(); - propertyDefinitionSortDirectionPair.put(propertyDefinition, - sortDirection); - this.propDefSortOrderPairList.add(propertyDefinitionSortDirectionPair); - } - - /** - * Removes all elements from the collection. - */ - public void clear() { - this.propDefSortOrderPairList.clear(); - } - - /** - * Determines whether the collection contains the specified property - * definition. - * - * @param propertyDefinition - * the property definition - * @return True if the collection contains the specified property - * definition; otherwise, false. - */ - protected boolean contains(PropertyDefinitionBase propertyDefinition) { - for (Map propDefSortOrderPair : propDefSortOrderPairList) { - return propDefSortOrderPair.containsKey(propertyDefinition); - } - return false; - } - - /** - * Gets the number of elements contained in the collection. - * - * @return the int - */ - public int count() { - return this.propDefSortOrderPairList.size(); - } - - /** - * Removes the specified property definition from the collection. - * - * @param propertyDefinition - * the property definition - * @return True if the property definition is successfully removed; - * otherwise, false - */ - public boolean remove(PropertyDefinitionBase propertyDefinition) { - List> removeList = new - ArrayList>(); - for (Map propDefSortOrderPair : propDefSortOrderPairList) { - if (propDefSortOrderPair.containsKey(propertyDefinition)) { - removeList.add(propDefSortOrderPair); - } - } - this.propDefSortOrderPairList.removeAll(removeList); - return removeList.size() > 0; - } - - /** - * Removes the element at the specified index from the collection. - * - * @param index - * the index - */ - public void removeAt(int index) { - this.propDefSortOrderPairList.remove(index); - } - - /** - * Tries to get the value for a property definition in the collection. - * - * @param propertyDefinition - * the property definition - * @param sortDirection - * the sort direction - * @return True if collection contains property definition, otherwise false. - */ - public boolean tryGetValue(PropertyDefinitionBase propertyDefinition, - OutParam sortDirection) { - for (Map pair : this.propDefSortOrderPairList) { - - if (pair.containsKey(propertyDefinition)) { - sortDirection.setParam(pair.get(propertyDefinition)); - return true; - } - } - sortDirection.setParam(SortDirection.Ascending); // out parameter has to - // be set to some - // value. - return false; - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - if (this.count() > 0) { - writer.writeStartElement(XmlNamespace.Messages, xmlElementName); - - for (Map keyValuePair : this.propDefSortOrderPairList) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.FieldOrder); - - writer.writeAttributeValue(XmlAttributeNames.Order, - keyValuePair.values().iterator().next()); - keyValuePair.keySet().iterator().next().writeToXml(writer); - - writer.writeEndElement(); // FieldOrder - } - - writer.writeEndElement(); - } - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator> iterator() { - return this.propDefSortOrderPairList.iterator(); - } - - /** - * Gets the element at the specified index from the collection. - * - * @param index - * the index - * @return the property definition sort direction pair - */ - public Map getPropertyDefinitionSortDirectionPair( - int index) { - return this.propDefSortOrderPairList.get(index); - } - - /** - * Returns an enumerator that iterates through the collection. - * - * @return A Iterator that can be used to iterate through the collection. - */ - public Iterator> getEnumerator() { - return (this.propDefSortOrderPairList.iterator()); - } + Iterable> { + + /** + * The prop def sort order pair list. + */ + private List> propDefSortOrderPairList; + + /** + * Initializes a new instance of the OrderByCollection class. + */ + protected OrderByCollection() { + this.propDefSortOrderPairList = new + ArrayList>(); + } + + /** + * Adds the specified property definition / sort direction pair to the + * collection. + * + * @param propertyDefinition the property definition + * @param sortDirection the sort direction + * @throws ServiceLocalException the service local exception + */ + public void add(PropertyDefinitionBase propertyDefinition, + SortDirection sortDirection) throws ServiceLocalException { + if (this.contains(propertyDefinition)) { + throw new ServiceLocalException(String.format( + Strings.PropertyAlreadyExistsInOrderByCollection, + propertyDefinition.getPrintableName())); + } + Map propertyDefinitionSortDirectionPair = new + HashMap(); + propertyDefinitionSortDirectionPair.put(propertyDefinition, + sortDirection); + this.propDefSortOrderPairList.add(propertyDefinitionSortDirectionPair); + } + + /** + * Removes all elements from the collection. + */ + public void clear() { + this.propDefSortOrderPairList.clear(); + } + + /** + * Determines whether the collection contains the specified property + * definition. + * + * @param propertyDefinition the property definition + * @return True if the collection contains the specified property + * definition; otherwise, false. + */ + protected boolean contains(PropertyDefinitionBase propertyDefinition) { + for (Map propDefSortOrderPair : propDefSortOrderPairList) { + return propDefSortOrderPair.containsKey(propertyDefinition); + } + return false; + } + + /** + * Gets the number of elements contained in the collection. + * + * @return the int + */ + public int count() { + return this.propDefSortOrderPairList.size(); + } + + /** + * Removes the specified property definition from the collection. + * + * @param propertyDefinition the property definition + * @return True if the property definition is successfully removed; + * otherwise, false + */ + public boolean remove(PropertyDefinitionBase propertyDefinition) { + List> removeList = new + ArrayList>(); + for (Map propDefSortOrderPair : propDefSortOrderPairList) { + if (propDefSortOrderPair.containsKey(propertyDefinition)) { + removeList.add(propDefSortOrderPair); + } + } + this.propDefSortOrderPairList.removeAll(removeList); + return removeList.size() > 0; + } + + /** + * Removes the element at the specified index from the collection. + * + * @param index the index + */ + public void removeAt(int index) { + this.propDefSortOrderPairList.remove(index); + } + + /** + * Tries to get the value for a property definition in the collection. + * + * @param propertyDefinition the property definition + * @param sortDirection the sort direction + * @return True if collection contains property definition, otherwise false. + */ + public boolean tryGetValue(PropertyDefinitionBase propertyDefinition, + OutParam sortDirection) { + for (Map pair : this.propDefSortOrderPairList) { + + if (pair.containsKey(propertyDefinition)) { + sortDirection.setParam(pair.get(propertyDefinition)); + return true; + } + } + sortDirection.setParam(SortDirection.Ascending); // out parameter has to + // be set to some + // value. + return false; + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + if (this.count() > 0) { + writer.writeStartElement(XmlNamespace.Messages, xmlElementName); + + for (Map keyValuePair : this.propDefSortOrderPairList) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.FieldOrder); + + writer.writeAttributeValue(XmlAttributeNames.Order, + keyValuePair.values().iterator().next()); + keyValuePair.keySet().iterator().next().writeToXml(writer); + + writer.writeEndElement(); // FieldOrder + } + + writer.writeEndElement(); + } + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator> iterator() { + return this.propDefSortOrderPairList.iterator(); + } + + /** + * Gets the element at the specified index from the collection. + * + * @param index the index + * @return the property definition sort direction pair + */ + public Map getPropertyDefinitionSortDirectionPair( + int index) { + return this.propDefSortOrderPairList.get(index); + } + + /** + * Returns an enumerator that iterates through the collection. + * + * @return A Iterator that can be used to iterate through the collection. + */ + public Iterator> getEnumerator() { + return (this.propDefSortOrderPairList.iterator()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutParam.java b/src/main/java/microsoft/exchange/webservices/data/OutParam.java index 00d8b2291..781ec0bea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutParam.java @@ -12,15 +12,14 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class OutParam. - * - * @param - * the generic type + * + * @param the generic type */ public class OutParam extends Param { - /** - * Instantiates a new out param. - */ - public OutParam() { - } + /** + * Instantiates a new out param. + */ + public OutParam() { + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index 202dbbdfd..f3b539641 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -19,162 +19,164 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) final class OutlookAccount { - //region Private constants - /** The Constant Settings. */ - private final static String Settings = "settings"; - - /** The Constant RedirectAddr. */ - private final static String RedirectAddr = "redirectAddr"; - - /** The Constant RedirectUrl. */ - private final static String RedirectUrl = "redirectUrl"; - //endRegion - - private String accountType; - private AutodiscoverResponseType responseType; - - //region Private fields - /** The protocols. */ - private HashMap protocols; - private AlternateMailboxCollection alternateMailboxes; - private String redirectTarget; - //endRegion - - /** - * Initializes a new instance of the OutlookAccount class. - */ - protected OutlookAccount() { - this.protocols = new HashMap(); - this.alternateMailboxes = new AlternateMailboxCollection(); - } - - /** - * Parses the specified reader. - * - * @param reader - * The reader. - * - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader) - throws Exception { - - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.AccountType)) { - this.setAccountType(reader.readElementValue()); - } else if (reader.getLocalName().equals(XmlElementNames.Action)) { - String xmlResponseType = reader.readElementValue(); - if (xmlResponseType.equals(OutlookAccount.Settings)) { - this.setResponseType(AutodiscoverResponseType.Success); - } else if (xmlResponseType - .equals(OutlookAccount.RedirectUrl)) { - this.setResponseType(AutodiscoverResponseType. - RedirectUrl); - } else if (xmlResponseType - .equals(OutlookAccount.RedirectAddr)) { - this.setResponseType( - AutodiscoverResponseType.RedirectAddress); - } else { - this.setResponseType(AutodiscoverResponseType.Error); - } - - } else if (reader.getLocalName().equals( - XmlElementNames.Protocol)) { - OutlookProtocol protocol = new OutlookProtocol(); - protocol.loadFromXml(reader); - this.protocols.put( - protocol.getProtocolType(), protocol); - } else if (reader.getLocalName().equals( - XmlElementNames.RedirectAddr)) { - this.setRedirectTarget(reader.readElementValue()); - } else if (reader.getLocalName().equals( - XmlElementNames.RedirectUrl)) { - this.setRedirectTarget(reader.readElementValue()); - } else if(reader.getLocalName().equals( - XmlElementNames.AlternateMailboxes)){ - AlternateMailbox alternateMailbox = AlternateMailbox. - loadFromXml(reader); - this.alternateMailboxes.getEntries().add(alternateMailbox); - } - else { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.Account)); - } - - /** - * Gets the type of the account. - */ - protected void convertToUserSettings(List requestedSettings, - GetUserSettingsResponse response) { - for(OutlookProtocol protocol : this.protocols.values()) { - protocol.convertToUserSettings(requestedSettings, response); + //region Private constants + /** + * The Constant Settings. + */ + private final static String Settings = "settings"; + + /** + * The Constant RedirectAddr. + */ + private final static String RedirectAddr = "redirectAddr"; + + /** + * The Constant RedirectUrl. + */ + private final static String RedirectUrl = "redirectUrl"; + //endRegion + + private String accountType; + private AutodiscoverResponseType responseType; + + //region Private fields + /** + * The protocols. + */ + private HashMap protocols; + private AlternateMailboxCollection alternateMailboxes; + private String redirectTarget; + //endRegion + + /** + * Initializes a new instance of the OutlookAccount class. + */ + protected OutlookAccount() { + this.protocols = new HashMap(); + this.alternateMailboxes = new AlternateMailboxCollection(); + } + + /** + * Parses the specified reader. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader) + throws Exception { + + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.AccountType)) { + this.setAccountType(reader.readElementValue()); + } else if (reader.getLocalName().equals(XmlElementNames.Action)) { + String xmlResponseType = reader.readElementValue(); + if (xmlResponseType.equals(OutlookAccount.Settings)) { + this.setResponseType(AutodiscoverResponseType.Success); + } else if (xmlResponseType + .equals(OutlookAccount.RedirectUrl)) { + this.setResponseType(AutodiscoverResponseType. + RedirectUrl); + } else if (xmlResponseType + .equals(OutlookAccount.RedirectAddr)) { + this.setResponseType( + AutodiscoverResponseType.RedirectAddress); + } else { + this.setResponseType(AutodiscoverResponseType.Error); + } + + } else if (reader.getLocalName().equals( + XmlElementNames.Protocol)) { + OutlookProtocol protocol = new OutlookProtocol(); + protocol.loadFromXml(reader); + this.protocols.put( + protocol.getProtocolType(), protocol); + } else if (reader.getLocalName().equals( + XmlElementNames.RedirectAddr)) { + this.setRedirectTarget(reader.readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.RedirectUrl)) { + this.setRedirectTarget(reader.readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.AlternateMailboxes)) { + AlternateMailbox alternateMailbox = AlternateMailbox. + loadFromXml(reader); + this.alternateMailboxes.getEntries().add(alternateMailbox); + } else { + reader.skipCurrentElement(); } + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.Account)); + } + + /** + * Gets the type of the account. + */ + protected void convertToUserSettings(List requestedSettings, + GetUserSettingsResponse response) { + for (OutlookProtocol protocol : this.protocols.values()) { + protocol.convertToUserSettings(requestedSettings, response); + } - if (requestedSettings.contains(UserSettingName.AlternateMailboxes)){ - response.getSettings().put(UserSettingName. - AlternateMailboxes,this.alternateMailboxes); - } + if (requestedSettings.contains(UserSettingName.AlternateMailboxes)) { + response.getSettings().put(UserSettingName. + AlternateMailboxes, this.alternateMailboxes); } - - /** - * Gets the type of the account. - * - * @return the account type - */ - protected String getAccountType() { - return accountType; - } - - /** - * Gets the type of the account. - */ - protected void setAccountType(String value) { - this.accountType=value; - } - - /** - * Gets the type of the response. - * - * @return the response type - */ - protected AutodiscoverResponseType getResponseType() { - return responseType; - } - - /** - * Sets the response type. - * - * @param value - * the new response type - */ - protected void setResponseType(AutodiscoverResponseType value) { - this.responseType = value; - } - - /** - * Gets the redirect target. - * - * @return the redirect target - */ - protected String getRedirectTarget() { - return redirectTarget; - - } - - /** - * Sets the redirect target. - * - * @param value - * the new redirect target - */ - protected void setRedirectTarget(String value) { - this.redirectTarget = value; - } + } + + /** + * Gets the type of the account. + * + * @return the account type + */ + protected String getAccountType() { + return accountType; + } + + /** + * Gets the type of the account. + */ + protected void setAccountType(String value) { + this.accountType = value; + } + + /** + * Gets the type of the response. + * + * @return the response type + */ + protected AutodiscoverResponseType getResponseType() { + return responseType; + } + + /** + * Sets the response type. + * + * @param value the new response type + */ + protected void setResponseType(AutodiscoverResponseType value) { + this.responseType = value; + } + + /** + * Gets the redirect target. + * + * @return the redirect target + */ + protected String getRedirectTarget() { + return redirectTarget; + + } + + /** + * Sets the redirect target. + * + * @param value the new redirect target + */ + protected void setRedirectTarget(String value) { + this.redirectTarget = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java index 5d905cb8b..12eb28ac5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java @@ -10,242 +10,225 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.net.URI; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents Outlook configuration settings. - * */ final class OutlookConfigurationSettings extends ConfigurationSettingsBase { - /** - * All user settings that are available from the Outlook provider. - */ - private static LazyMember> - allOutlookProviderSettings = new LazyMember>( - new ILazyMember>() { - public List createInstance() { - - List results = - new ArrayList(); - for (UserSettingName userSettingName : OutlookUser.getAvailableUserSettings()) { - results.add(userSettingName); - } - results.addAll(OutlookProtocol.getAvailableUserSettings()); - results.add(UserSettingName.AlternateMailboxes); - return results; - } - }); - - - /** The user. */ - private OutlookUser user; - - /** The account. */ - private OutlookAccount account; - - /** - * Initializes a new instance of the OutlookConfigurationSettings class. - */ - public OutlookConfigurationSettings() { - this.user = new OutlookUser(); - this.account = new OutlookAccount(); - } - - /** - * Determines whether user setting is available in the - * OutlookConfiguration or not. - * @param setting The setting. - * @return True if user setting is available, otherwise, false. - */ - protected static boolean isAvailableUserSetting(UserSettingName setting) { - return allOutlookProviderSettings.getMember().contains(setting); - } - - /** - * Gets the namespace that defines the settings. - * - * @return The namespace that defines the settings. - */ - @Override - protected String getNamespace() { - return "http://schemas.microsoft.com/exchange/" + - "autodiscover/outlook/responseschema/2006a"; - } - - /** - * Makes this instance a redirection response. - * - * @param redirectUrl - * The redirect URL. - */ - @Override - protected void makeRedirectionResponse(URI redirectUrl) { - this.account = new OutlookAccount(); - this.account.setRedirectTarget(redirectUrl.toString()); - this.account.setResponseType(AutodiscoverResponseType.RedirectUrl); - } - - /** - * Tries to read the current XML element. - * - * @param reader - * The reader. - * @return True is the current element was read, false otherwise. - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadCurrentXmlElement(EwsXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - Exception { - if (!super.tryReadCurrentXmlElement(reader)) { - if (reader.getLocalName().equals(XmlElementNames.User)) { - this.user.loadFromXml(reader); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Account)) { - this.account.loadFromXml(reader); - return true; - } else { - reader.skipCurrentElement(); - return false; - } - } else { - return true; - } - } - - /** - * Convert OutlookConfigurationSettings to GetUserSettings response. - * - * @param smtpAddress - * SMTP address requested. - * @param requestedSettings - * The requested settings. - * @return GetUserSettingsResponse - */ - @Override - protected GetUserSettingsResponse convertSettings(String smtpAddress, - List requestedSettings) { - GetUserSettingsResponse response = new GetUserSettingsResponse(); - response.setSmtpAddress(smtpAddress); - - if (this.getError() != null) - { - response.setErrorCode(AutodiscoverErrorCode.InternalServerError); - response.setErrorMessage(this.getError().getMessage()); - } - else - { - switch (this.getResponseType()) - { - case Success: - response.setErrorCode(AutodiscoverErrorCode.NoError); - response.setErrorMessage(""); - this.user.convertToUserSettings(requestedSettings, response); - this.account.convertToUserSettings(requestedSettings, response); - this.reportUnsupportedSettings(requestedSettings, response); - break; - case Error: - response.setErrorCode(AutodiscoverErrorCode.InternalServerError); - response.setErrorMessage(Strings.InvalidAutodiscoverServiceResponse); - break; - case RedirectAddress: - response.setErrorCode(AutodiscoverErrorCode.RedirectAddress); - response.setErrorMessage(""); - response.setRedirectTarget(this.getRedirectTarget()); - break; - case RedirectUrl: - response.setErrorCode(AutodiscoverErrorCode.RedirectUrl); - response.setErrorMessage(""); - response.setRedirectTarget(this.getRedirectTarget()); - break; - default: - EwsUtilities.EwsAssert( - false, - "OutlookConfigurationSettings.ConvertSettings", - "An unexpected error has occured. " + - "This code path should never be reached."); - break; - } + /** + * All user settings that are available from the Outlook provider. + */ + private static LazyMember> + allOutlookProviderSettings = new LazyMember>( + new ILazyMember>() { + public List createInstance() { + + List results = + new ArrayList(); + for (UserSettingName userSettingName : OutlookUser.getAvailableUserSettings()) { + results.add(userSettingName); + } + results.addAll(OutlookProtocol.getAvailableUserSettings()); + results.add(UserSettingName.AlternateMailboxes); + return results; } - return response; + }); + + + /** + * The user. + */ + private OutlookUser user; + + /** + * The account. + */ + private OutlookAccount account; + + /** + * Initializes a new instance of the OutlookConfigurationSettings class. + */ + public OutlookConfigurationSettings() { + this.user = new OutlookUser(); + this.account = new OutlookAccount(); + } + + /** + * Determines whether user setting is available in the + * OutlookConfiguration or not. + * + * @param setting The setting. + * @return True if user setting is available, otherwise, false. + */ + protected static boolean isAvailableUserSetting(UserSettingName setting) { + return allOutlookProviderSettings.getMember().contains(setting); + } + + /** + * Gets the namespace that defines the settings. + * + * @return The namespace that defines the settings. + */ + @Override + protected String getNamespace() { + return "http://schemas.microsoft.com/exchange/" + + "autodiscover/outlook/responseschema/2006a"; + } + + /** + * Makes this instance a redirection response. + * + * @param redirectUrl The redirect URL. + */ + @Override + protected void makeRedirectionResponse(URI redirectUrl) { + this.account = new OutlookAccount(); + this.account.setRedirectTarget(redirectUrl.toString()); + this.account.setResponseType(AutodiscoverResponseType.RedirectUrl); + } + + /** + * Tries to read the current XML element. + * + * @param reader The reader. + * @return True is the current element was read, false otherwise. + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws Exception the exception + */ + @Override + protected boolean tryReadCurrentXmlElement(EwsXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + Exception { + if (!super.tryReadCurrentXmlElement(reader)) { + if (reader.getLocalName().equals(XmlElementNames.User)) { + this.user.loadFromXml(reader); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Account)) { + this.account.loadFromXml(reader); + return true; + } else { + reader.skipCurrentElement(); + return false; + } + } else { + return true; + } + } + + /** + * Convert OutlookConfigurationSettings to GetUserSettings response. + * + * @param smtpAddress SMTP address requested. + * @param requestedSettings The requested settings. + * @return GetUserSettingsResponse + */ + @Override + protected GetUserSettingsResponse convertSettings(String smtpAddress, + List requestedSettings) { + GetUserSettingsResponse response = new GetUserSettingsResponse(); + response.setSmtpAddress(smtpAddress); + + if (this.getError() != null) { + response.setErrorCode(AutodiscoverErrorCode.InternalServerError); + response.setErrorMessage(this.getError().getMessage()); + } else { + switch (this.getResponseType()) { + case Success: + response.setErrorCode(AutodiscoverErrorCode.NoError); + response.setErrorMessage(""); + this.user.convertToUserSettings(requestedSettings, response); + this.account.convertToUserSettings(requestedSettings, response); + this.reportUnsupportedSettings(requestedSettings, response); + break; + case Error: + response.setErrorCode(AutodiscoverErrorCode.InternalServerError); + response.setErrorMessage(Strings.InvalidAutodiscoverServiceResponse); + break; + case RedirectAddress: + response.setErrorCode(AutodiscoverErrorCode.RedirectAddress); + response.setErrorMessage(""); + response.setRedirectTarget(this.getRedirectTarget()); + break; + case RedirectUrl: + response.setErrorCode(AutodiscoverErrorCode.RedirectUrl); + response.setErrorMessage(""); + response.setRedirectTarget(this.getRedirectTarget()); + break; + default: + EwsUtilities.EwsAssert( + false, + "OutlookConfigurationSettings.ConvertSettings", + "An unexpected error has occured. " + + "This code path should never be reached."); + break; + } + } + return response; + } + + /** + * Reports any requested user settings that aren't + * supported by the Outlook provider. + * + * @param requestedSettings The requested settings. + * @param response The response. + */ + private void reportUnsupportedSettings(List requestedSettings, + GetUserSettingsResponse response) { + // In English: find settings listed in requestedSettings that are not supported by the Legacy provider. + + //TODO need to check Iterable + List invalidSettingQuery = + new ArrayList(); + for (UserSettingName userSettingName : requestedSettings) { + if (!OutlookConfigurationSettings.isAvailableUserSetting(userSettingName)) { + invalidSettingQuery.add(userSettingName); + } } - - /** - * Reports any requested user settings that aren't - * supported by the Outlook provider. - * - * @param requestedSettings - * The requested settings. - * @param response - * The response. - */ - private void reportUnsupportedSettings(List requestedSettings, - GetUserSettingsResponse response) { - // In English: find settings listed in requestedSettings that are not supported by the Legacy provider. - - //TODO need to check Iterable - List invalidSettingQuery = - new ArrayList(); - for (UserSettingName userSettingName : requestedSettings) { - if(!OutlookConfigurationSettings.isAvailableUserSetting(userSettingName)) - { - invalidSettingQuery.add(userSettingName); - } - } /* from setting in requestedSettings where !OutlookConfigurationSettings.IsAvailableUserSetting(setting) select setting;*/ - // Add any unsupported settings to the UserSettingsError collection. - for (UserSettingName invalidSetting : invalidSettingQuery) - { - UserSettingError settingError = new UserSettingError(); - settingError.setErrorCode(AutodiscoverErrorCode.InvalidSetting); - settingError.setSettingName(invalidSetting.toString()); - settingError.setErrorMessage(String.format(Strings.AutodiscoverInvalidSettingForOutlookProvider, - invalidSetting.toString())); - response.getUserSettingErrors().add(settingError); - } - } - - /** - * Gets the type of the response. - * - * @return The type of the response. - */ - @Override - protected AutodiscoverResponseType getResponseType() - { - if (this.account != null) - { - return this.account.getResponseType(); - } - else - { - return AutodiscoverResponseType.Error; - } + // Add any unsupported settings to the UserSettingsError collection. + for (UserSettingName invalidSetting : invalidSettingQuery) { + UserSettingError settingError = new UserSettingError(); + settingError.setErrorCode(AutodiscoverErrorCode.InvalidSetting); + settingError.setSettingName(invalidSetting.toString()); + settingError.setErrorMessage(String.format(Strings.AutodiscoverInvalidSettingForOutlookProvider, + invalidSetting.toString())); + response.getUserSettingErrors().add(settingError); } - - /** - * Gets the redirect target. - * - * @return String - * the redirect target. - */ - @Override - protected String getRedirectTarget() - { - return this.account.getRedirectTarget(); + } + + /** + * Gets the type of the response. + * + * @return The type of the response. + */ + @Override + protected AutodiscoverResponseType getResponseType() { + if (this.account != null) { + return this.account.getResponseType(); + } else { + return AutodiscoverResponseType.Error; } + } + + /** + * Gets the redirect target. + * + * @return String + * the redirect target. + */ + @Override + protected String getRedirectTarget() { + return this.account.getRedirectTarget(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index 7cdaa37fd..ec6f12b6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -19,746 +19,752 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a supported Outlook protocol in an Outlook configurations settings * account. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) final class OutlookProtocol { - /** The Constant EXCH. */ - private final static String EXCH = "EXCH"; - - /** The Constant EXPR. */ - private final static String EXPR = "EXPR"; - - /** The Constant WEB. */ - private final static String WEB = "WEB"; - - /** - * Converters to translate common Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - commonProtocolSettings = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - - results.put(UserSettingName.EcpDeliveryReportUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlMt; - } - }); - results.put(UserSettingName.EcpEmailSubscriptionsUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlAggr; - } - }); - results.put(UserSettingName.EcpPublishingUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlPublish; - } - }); - results.put(UserSettingName.EcpRetentionPolicyTagsUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlRet; - } - }); - results.put(UserSettingName.EcpTextMessagingUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlSms; - } - }); - results.put(UserSettingName.EcpVoicemailUrlFragment, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrlUm; - } - }); - return results; - } - }); - - - /** - * Converters to translate internal (EXCH) Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - internalProtocolSettings = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - - results.put(UserSettingName.ActiveDirectoryServer, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.activeDirectoryServer; - } - }); - results.put(UserSettingName.CrossOrganizationSharingEnabled, - new IFunc() { - public Object func(OutlookProtocol arg) { - return String.valueOf(arg.sharingEnabled); - } - }); - results.put(UserSettingName.InternalEcpUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrl; - } - }); - results.put(UserSettingName.InternalEcpDeliveryReportUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlMt); - } - }); - results.put(UserSettingName.InternalEcpEmailSubscriptionsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlAggr); - } - }); - results.put(UserSettingName.InternalEcpPublishingUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlPublish); - } - }); - results.put(UserSettingName.InternalEcpRetentionPolicyTagsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); - } - }); - results.put(UserSettingName.InternalEcpTextMessagingUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlSms); - } - }); - results.put(UserSettingName.InternalEcpVoicemailUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlUm); - } - }); - results.put(UserSettingName.InternalEwsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.exchangeWebServicesUrl == null ? - arg.availabilityServiceUrl : arg.exchangeWebServicesUrl; - } - }); - results.put(UserSettingName.InternalMailboxServerDN, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.serverDN; - } - }); - results.put(UserSettingName.InternalRpcClientServer, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.server; - } - }); - results.put(UserSettingName.InternalOABUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.offlineAddressBookUrl; - } - }); - results.put(UserSettingName.InternalUMUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.unifiedMessagingUrl; - } - }); - results.put(UserSettingName.MailboxDN, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.mailboxDN; - } - }); - results.put(UserSettingName.PublicFolderServer, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.publicFolderServer; - } - }); - return results; - } - }); - - /** - * Converters to translate external (EXPR) Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - externalProtocolSettings = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - - results.put(UserSettingName.ExternalEcpDeliveryReportUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); - } - }); - results.put(UserSettingName.ExternalEcpEmailSubscriptionsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlAggr); - } - }); - results.put(UserSettingName.ExternalEcpPublishingUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlPublish); - } - }); - results.put(UserSettingName.ExternalEcpRetentionPolicyTagsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); - } - }); - results.put(UserSettingName.ExternalEcpTextMessagingUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlSms); - } - }); - results.put(UserSettingName.ExternalEcpUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.ecpUrl; - } - }); - results.put(UserSettingName.ExternalEcpVoicemailUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.convertEcpFragmentToUrl(arg.ecpUrlUm); - } - }); - results.put(UserSettingName.ExternalEwsUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.exchangeWebServicesUrl == null ? - arg.availabilityServiceUrl : arg.exchangeWebServicesUrl; - } - }); - results.put(UserSettingName.ExternalMailboxServer, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.server; - } - }); - results.put( - UserSettingName.ExternalMailboxServerAuthenticationMethods, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.authPackage; - } - }); - results.put( - UserSettingName.ExternalMailboxServerRequiresSSL, - new IFunc() { - public Object func(OutlookProtocol arg) { - return String.valueOf(arg.sslEnabled); - } - }); - results.put(UserSettingName.ExternalOABUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.offlineAddressBookUrl; - } - }); - results.put(UserSettingName.ExternalUMUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.unifiedMessagingUrl; - } - }); - results.put(UserSettingName.ExchangeRpcUrl, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.exchangeRpcUrl; - } - }); - return results; - } - }); - - - /** - * Merged converter dictionary for translating - * internal (EXCH) Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - internalProtocolConverterDictionary = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - for (Entry> kv : commonProtocolSettings.getMember().entrySet()) { - results.put(kv.getKey(), kv.getValue()); - } - for (Entry> kv : internalProtocolSettings.getMember().entrySet()) { - results.put(kv.getKey(), kv.getValue()); - } - return results; - } - }); - - - /** - * Merged converter dictionary for translating - * external (EXPR) Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - externalProtocolConverterDictionary = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - for (Entry> kv : commonProtocolSettings.getMember().entrySet()) { - results.put(kv.getKey(), kv.getValue()); - } - for (Entry> kv : externalProtocolSettings.getMember().entrySet()) { - results.put(kv.getKey(), kv.getValue()); - } - return results; - } - }); - - - /** - * Converters to translate Web (WEB) Outlook protocol settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember>> - webProtocolConverterDictionary = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - - Map> results = - new HashMap>(); - - results.put(UserSettingName.InternalWebClientUrls, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.internalOutlookWebAccessUrls; - } - }); - results.put(UserSettingName.ExternalWebClientUrls, - new IFunc() { - public Object func(OutlookProtocol arg) { - return arg.externalOutlookWebAccessUrls; - } - }); - return results; - } - }); - - /** - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookProtocol instance. - */ - private static LazyMember> - availableUserSettings = - new LazyMember>( - new ILazyMember>() { - public List createInstance() { - - List results = - new ArrayList(); - - results.addAll(commonProtocolSettings. - getMember().keySet()); - results.addAll(internalProtocolSettings. - getMember().keySet()); - results.addAll(externalProtocolSettings. - getMember().keySet()); - results.addAll(webProtocolConverterDictionary. - getMember().keySet()); - return results; - } - }); - - - /** - * Map Outlook protocol name to type. - */ - private static LazyMember> - protocolNameToTypeMap = - new LazyMember>( - new ILazyMember>() { - @Override - public Map createInstance() { - Map results = - new HashMap(); - results.put(OutlookProtocol.EXCH, OutlookProtocolType.Rpc); - results.put(OutlookProtocol.EXPR, OutlookProtocolType.RpcOverHttp); - results.put(OutlookProtocol.WEB, OutlookProtocolType.Web); - return results; - - } - }); - - - /** - * The constant activeDirectoryServer. - */ - private String activeDirectoryServer; - /** - * The constant authPackage. - */ - private String authPackage; - /** - * The constant availabilityServiceUrl. - */ - private String availabilityServiceUrl; - /** - * The constant ecpUrl. - */ - private String ecpUrl; - /** - * The constant ecpUrlAggr. - */ - private String ecpUrlAggr; - /** - * The constant ecpUrlMt. - */ - private String ecpUrlMt; - /** - * The constant ecpUrlPublish. - */ - private String ecpUrlPublish; - /** - * The constant ecpUrlRet. - */ - private String ecpUrlRet; - /** - * The constant ecpUrlSms. - */ - private String ecpUrlSms; - /** - * The constant ecpUrlUm. - */ - private String ecpUrlUm; - /** - * The constant exchangeWebServicesUrl. - */ - private String exchangeWebServicesUrl; - /** - * The constant mailboxDN. - */ - private String mailboxDN; - /** - * The constant offlineAddressBookUrl. - */ - private String offlineAddressBookUrl; - /** - * The constant exchangeRpcUrl. - */ - private String exchangeRpcUrl; - /** - * The constant publicFolderServer. - */ - private String publicFolderServer; - /** - * The constant server. - */ - private String server; - /** - * The constant serverDN. - */ - private String serverDN; - /** - * The constant unifiedMessagingUrl. - */ - private String unifiedMessagingUrl; - /** - * The constant sharingEnabled. - */ - private boolean sharingEnabled; - /** - * The constant sslEnabled. - */ - private boolean sslEnabled; - /** - * The constant externalOutlookWebAccessUrls. - */ - private WebClientUrlCollection externalOutlookWebAccessUrls; - /** - * The constant internalOutlookWebAccessUrls. - */ - private WebClientUrlCollection internalOutlookWebAccessUrls; - - - /** - * Initializes a new instance of the OutlookProtocol class. - */ - protected OutlookProtocol() { - this.internalOutlookWebAccessUrls = new WebClientUrlCollection(); - this.externalOutlookWebAccessUrls = new WebClientUrlCollection(); - } - - - /** - * Parses the XML using the specified reader and creates an Outlook - * protocol. - * - * @param reader - * The reader. - * - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader) - throws Exception { - do { - reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.Type)) { - this.setProtocolType(OutlookProtocol. - protocolNameToType(reader.readElementValue())); - } else if (reader.getLocalName().equals(XmlElementNames.AuthPackage)) { - this.authPackage = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.Server)) { - this.server = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.ServerDN)) { - this.serverDN = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.ServerVersion)){ - reader.readElementValue(); - }else if (reader.getLocalName().equals(XmlElementNames.AD)){ - this.activeDirectoryServer = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.MdbDN)) { - this.mailboxDN = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.EWSUrl)) { - this.exchangeWebServicesUrl = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.ASUrl)) { - this.availabilityServiceUrl = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.OOFUrl)) { - reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.UMUrl)) { - this.unifiedMessagingUrl = reader.readElementValue(); - } else if (reader.getLocalName().equals(XmlElementNames.OABUrl)) { - this.offlineAddressBookUrl = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.PublicFolderServer)) { - this.publicFolderServer = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.Internal)) { - OutlookProtocol.loadWebClientUrlsFromXml(reader, - this.internalOutlookWebAccessUrls, reader.getLocalName()); - } else if (reader.getLocalName().equals( - XmlElementNames.External)) { - OutlookProtocol.loadWebClientUrlsFromXml(reader, - this.externalOutlookWebAccessUrls, reader.getLocalName()); - } else if (reader.getLocalName().equals( - XmlElementNames.Ssl)) { - String sslStr = reader.readElementValue(); - this.sslEnabled = sslStr.equalsIgnoreCase("On"); - } else if (reader.getLocalName().equals( - XmlElementNames.SharingUrl)) { - this.sharingEnabled = reader. - readElementValue().length() > 0; - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl)) { - this.ecpUrl = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_um)) { - this.ecpUrlUm = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_aggr)) { - this.ecpUrlAggr = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_sms)) { - this.ecpUrlSms = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_mt)) { - this.ecpUrlMt = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_ret)) { - this.ecpUrlRet = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.EcpUrl_publish)) { - this.ecpUrlPublish = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.ExchangeRpcUrl)) { - this.exchangeRpcUrl = reader.readElementValue(); - } else { - reader.skipCurrentElement(); - } - } - }while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.Protocol)); - } - - /** - * Convert protocol name to protocol type. - * @param protocolName - * Name of the protocol. - * @return OutlookProtocolType - */ - private static OutlookProtocolType protocolNameToType(String - protocolName) { - OutlookProtocolType protocolType = null; - if(!(protocolNameToTypeMap.getMember().containsKey(protocolName))) { - protocolType = OutlookProtocolType.Unknown; - } - else { - protocolType = protocolNameToTypeMap.getMember().get(protocolName); - } - return protocolType; - - } - - /** - * Loads web client urls from XML. - * @param reader - * The reader. - * @param webClientUrls - * The web client urls. - * @param elementName - * Name of the element. - * @throws Exception - */ - private static void loadWebClientUrlsFromXml(EwsXmlReader reader, - WebClientUrlCollection webClientUrls, String elementName) throws Exception { - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if(reader.getLocalName().equals(XmlElementNames.OWAUrl)) { - String authMethod = reader.readAttributeValue( - XmlAttributeNames.AuthenticationMethod); - String owaUrl = reader.readElementValue(); - WebClientUrl webClientUrl = - new WebClientUrl(authMethod, owaUrl); - webClientUrls.getUrls().add(webClientUrl); - } else { - reader.skipCurrentElement(); - } - } - } - while (!reader.isEndElement(XmlNamespace.NotSpecified, elementName)); - } - - - /** - * Convert ECP fragment to full ECP URL. - * @param fragment - * The fragment. - * @return Full URL string (or null if either portion is empty. - */ - private String convertEcpFragmentToUrl(String fragment) { - return ((this.ecpUrl == null || this.ecpUrl.isEmpty()) || - (fragment == null || fragment.isEmpty())) ? null : (this.ecpUrl + fragment); - } - - /** - * Convert OutlookProtocol to GetUserSettings response. - * @param requestedSettings The requested settings. - * @param response The response. - */ - protected void convertToUserSettings( - List requestedSettings, - GetUserSettingsResponse response) { - if (this.getConverterDictionary() != null) { - // In English: collect converters that are contained in the requested settings. - Map> converterQuery = - new HashMap>(); - Map> t = - this.getConverterDictionary(); - for (Entry> map : t.entrySet()) { - if(requestedSettings.contains(map.getKey())) { - converterQuery.put(map.getKey(),map.getValue()); - } - } - - for(Entry> kv : converterQuery.entrySet()) - { - Object value = kv.getValue().func(this); - if (value != null) { - response.getSettings().put(kv.getKey(), value); - } - } - } - } - - private OutlookProtocolType protocolType; - /** - * Gets the type of the protocol. - * - * @return The type of the protocol. - */ - protected OutlookProtocolType getProtocolType() { - return this.protocolType; - } - - /** - * Sets the type of the protocol. - */ - protected void setProtocolType(OutlookProtocolType protocolType ) { - this.protocolType = protocolType; - } - - /** - * Gets the converter dictionary for protocol type. - * @return The converter dictionary. - */ - private Map> - getConverterDictionary() { - switch (this.getProtocolType()) { - case Rpc: - return internalProtocolConverterDictionary.getMember(); - case RpcOverHttp: - return externalProtocolConverterDictionary.getMember(); - case Web: - return webProtocolConverterDictionary.getMember(); - default: - return null; + /** + * The Constant EXCH. + */ + private final static String EXCH = "EXCH"; + + /** + * The Constant EXPR. + */ + private final static String EXPR = "EXPR"; + + /** + * The Constant WEB. + */ + private final static String WEB = "WEB"; + + /** + * Converters to translate common Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + commonProtocolSettings = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + + results.put(UserSettingName.EcpDeliveryReportUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlMt; + } + }); + results.put(UserSettingName.EcpEmailSubscriptionsUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlAggr; + } + }); + results.put(UserSettingName.EcpPublishingUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlPublish; + } + }); + results.put(UserSettingName.EcpRetentionPolicyTagsUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlRet; + } + }); + results.put(UserSettingName.EcpTextMessagingUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlSms; + } + }); + results.put(UserSettingName.EcpVoicemailUrlFragment, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrlUm; + } + }); + return results; + } + }); + + + /** + * Converters to translate internal (EXCH) Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + internalProtocolSettings = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + + results.put(UserSettingName.ActiveDirectoryServer, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.activeDirectoryServer; + } + }); + results.put(UserSettingName.CrossOrganizationSharingEnabled, + new IFunc() { + public Object func(OutlookProtocol arg) { + return String.valueOf(arg.sharingEnabled); + } + }); + results.put(UserSettingName.InternalEcpUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrl; + } + }); + results.put(UserSettingName.InternalEcpDeliveryReportUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlMt); + } + }); + results.put(UserSettingName.InternalEcpEmailSubscriptionsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlAggr); + } + }); + results.put(UserSettingName.InternalEcpPublishingUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlPublish); + } + }); + results.put(UserSettingName.InternalEcpRetentionPolicyTagsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); + } + }); + results.put(UserSettingName.InternalEcpTextMessagingUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlSms); + } + }); + results.put(UserSettingName.InternalEcpVoicemailUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlUm); + } + }); + results.put(UserSettingName.InternalEwsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.exchangeWebServicesUrl == null ? + arg.availabilityServiceUrl : arg.exchangeWebServicesUrl; + } + }); + results.put(UserSettingName.InternalMailboxServerDN, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.serverDN; + } + }); + results.put(UserSettingName.InternalRpcClientServer, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.server; + } + }); + results.put(UserSettingName.InternalOABUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.offlineAddressBookUrl; + } + }); + results.put(UserSettingName.InternalUMUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.unifiedMessagingUrl; + } + }); + results.put(UserSettingName.MailboxDN, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.mailboxDN; + } + }); + results.put(UserSettingName.PublicFolderServer, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.publicFolderServer; + } + }); + return results; + } + }); + + /** + * Converters to translate external (EXPR) Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + externalProtocolSettings = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + + results.put(UserSettingName.ExternalEcpDeliveryReportUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); + } + }); + results.put(UserSettingName.ExternalEcpEmailSubscriptionsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlAggr); + } + }); + results.put(UserSettingName.ExternalEcpPublishingUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlPublish); + } + }); + results.put(UserSettingName.ExternalEcpRetentionPolicyTagsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlRet); + } + }); + results.put(UserSettingName.ExternalEcpTextMessagingUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlSms); + } + }); + results.put(UserSettingName.ExternalEcpUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.ecpUrl; + } + }); + results.put(UserSettingName.ExternalEcpVoicemailUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.convertEcpFragmentToUrl(arg.ecpUrlUm); + } + }); + results.put(UserSettingName.ExternalEwsUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.exchangeWebServicesUrl == null ? + arg.availabilityServiceUrl : arg.exchangeWebServicesUrl; + } + }); + results.put(UserSettingName.ExternalMailboxServer, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.server; + } + }); + results.put( + UserSettingName.ExternalMailboxServerAuthenticationMethods, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.authPackage; + } + }); + results.put( + UserSettingName.ExternalMailboxServerRequiresSSL, + new IFunc() { + public Object func(OutlookProtocol arg) { + return String.valueOf(arg.sslEnabled); + } + }); + results.put(UserSettingName.ExternalOABUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.offlineAddressBookUrl; + } + }); + results.put(UserSettingName.ExternalUMUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.unifiedMessagingUrl; + } + }); + results.put(UserSettingName.ExchangeRpcUrl, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.exchangeRpcUrl; + } + }); + return results; + } + }); + + + /** + * Merged converter dictionary for translating + * internal (EXCH) Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + internalProtocolConverterDictionary = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + for (Entry> kv : commonProtocolSettings + .getMember().entrySet()) { + results.put(kv.getKey(), kv.getValue()); + } + for (Entry> kv : internalProtocolSettings + .getMember().entrySet()) { + results.put(kv.getKey(), kv.getValue()); + } + return results; + } + }); + + + /** + * Merged converter dictionary for translating + * external (EXPR) Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + externalProtocolConverterDictionary = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + for (Entry> kv : commonProtocolSettings + .getMember().entrySet()) { + results.put(kv.getKey(), kv.getValue()); + } + for (Entry> kv : externalProtocolSettings + .getMember().entrySet()) { + results.put(kv.getKey(), kv.getValue()); + } + return results; + } + }); + + + /** + * Converters to translate Web (WEB) Outlook protocol settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember>> + webProtocolConverterDictionary = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + + Map> results = + new HashMap>(); + + results.put(UserSettingName.InternalWebClientUrls, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.internalOutlookWebAccessUrls; + } + }); + results.put(UserSettingName.ExternalWebClientUrls, + new IFunc() { + public Object func(OutlookProtocol arg) { + return arg.externalOutlookWebAccessUrls; + } + }); + return results; + } + }); + + /** + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookProtocol instance. + */ + private static LazyMember> + availableUserSettings = + new LazyMember>( + new ILazyMember>() { + public List createInstance() { + + List results = + new ArrayList(); + + results.addAll(commonProtocolSettings. + getMember().keySet()); + results.addAll(internalProtocolSettings. + getMember().keySet()); + results.addAll(externalProtocolSettings. + getMember().keySet()); + results.addAll(webProtocolConverterDictionary. + getMember().keySet()); + return results; + } + }); + + + /** + * Map Outlook protocol name to type. + */ + private static LazyMember> + protocolNameToTypeMap = + new LazyMember>( + new ILazyMember>() { + @Override + public Map createInstance() { + Map results = + new HashMap(); + results.put(OutlookProtocol.EXCH, OutlookProtocolType.Rpc); + results.put(OutlookProtocol.EXPR, OutlookProtocolType.RpcOverHttp); + results.put(OutlookProtocol.WEB, OutlookProtocolType.Web); + return results; + + } + }); + + + /** + * The constant activeDirectoryServer. + */ + private String activeDirectoryServer; + /** + * The constant authPackage. + */ + private String authPackage; + /** + * The constant availabilityServiceUrl. + */ + private String availabilityServiceUrl; + /** + * The constant ecpUrl. + */ + private String ecpUrl; + /** + * The constant ecpUrlAggr. + */ + private String ecpUrlAggr; + /** + * The constant ecpUrlMt. + */ + private String ecpUrlMt; + /** + * The constant ecpUrlPublish. + */ + private String ecpUrlPublish; + /** + * The constant ecpUrlRet. + */ + private String ecpUrlRet; + /** + * The constant ecpUrlSms. + */ + private String ecpUrlSms; + /** + * The constant ecpUrlUm. + */ + private String ecpUrlUm; + /** + * The constant exchangeWebServicesUrl. + */ + private String exchangeWebServicesUrl; + /** + * The constant mailboxDN. + */ + private String mailboxDN; + /** + * The constant offlineAddressBookUrl. + */ + private String offlineAddressBookUrl; + /** + * The constant exchangeRpcUrl. + */ + private String exchangeRpcUrl; + /** + * The constant publicFolderServer. + */ + private String publicFolderServer; + /** + * The constant server. + */ + private String server; + /** + * The constant serverDN. + */ + private String serverDN; + /** + * The constant unifiedMessagingUrl. + */ + private String unifiedMessagingUrl; + /** + * The constant sharingEnabled. + */ + private boolean sharingEnabled; + /** + * The constant sslEnabled. + */ + private boolean sslEnabled; + /** + * The constant externalOutlookWebAccessUrls. + */ + private WebClientUrlCollection externalOutlookWebAccessUrls; + /** + * The constant internalOutlookWebAccessUrls. + */ + private WebClientUrlCollection internalOutlookWebAccessUrls; + + + /** + * Initializes a new instance of the OutlookProtocol class. + */ + protected OutlookProtocol() { + this.internalOutlookWebAccessUrls = new WebClientUrlCollection(); + this.externalOutlookWebAccessUrls = new WebClientUrlCollection(); + } + + + /** + * Parses the XML using the specified reader and creates an Outlook + * protocol. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader) + throws Exception { + do { + reader.read(); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.Type)) { + this.setProtocolType(OutlookProtocol. + protocolNameToType(reader.readElementValue())); + } else if (reader.getLocalName().equals(XmlElementNames.AuthPackage)) { + this.authPackage = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.Server)) { + this.server = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.ServerDN)) { + this.serverDN = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.ServerVersion)) { + reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.AD)) { + this.activeDirectoryServer = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.MdbDN)) { + this.mailboxDN = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.EWSUrl)) { + this.exchangeWebServicesUrl = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.ASUrl)) { + this.availabilityServiceUrl = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.OOFUrl)) { + reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.UMUrl)) { + this.unifiedMessagingUrl = reader.readElementValue(); + } else if (reader.getLocalName().equals(XmlElementNames.OABUrl)) { + this.offlineAddressBookUrl = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.PublicFolderServer)) { + this.publicFolderServer = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.Internal)) { + OutlookProtocol.loadWebClientUrlsFromXml(reader, + this.internalOutlookWebAccessUrls, reader.getLocalName()); + } else if (reader.getLocalName().equals( + XmlElementNames.External)) { + OutlookProtocol.loadWebClientUrlsFromXml(reader, + this.externalOutlookWebAccessUrls, reader.getLocalName()); + } else if (reader.getLocalName().equals( + XmlElementNames.Ssl)) { + String sslStr = reader.readElementValue(); + this.sslEnabled = sslStr.equalsIgnoreCase("On"); + } else if (reader.getLocalName().equals( + XmlElementNames.SharingUrl)) { + this.sharingEnabled = reader. + readElementValue().length() > 0; + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl)) { + this.ecpUrl = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_um)) { + this.ecpUrlUm = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_aggr)) { + this.ecpUrlAggr = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_sms)) { + this.ecpUrlSms = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_mt)) { + this.ecpUrlMt = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_ret)) { + this.ecpUrlRet = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.EcpUrl_publish)) { + this.ecpUrlPublish = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.ExchangeRpcUrl)) { + this.exchangeRpcUrl = reader.readElementValue(); + } else { + reader.skipCurrentElement(); } - } - + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.Protocol)); + } + + /** + * Convert protocol name to protocol type. + * + * @param protocolName Name of the protocol. + * @return OutlookProtocolType + */ + private static OutlookProtocolType protocolNameToType(String + protocolName) { + OutlookProtocolType protocolType = null; + if (!(protocolNameToTypeMap.getMember().containsKey(protocolName))) { + protocolType = OutlookProtocolType.Unknown; + } else { + protocolType = protocolNameToTypeMap.getMember().get(protocolName); + } + return protocolType; + + } + + /** + * Loads web client urls from XML. + * + * @param reader The reader. + * @param webClientUrls The web client urls. + * @param elementName Name of the element. + * @throws Exception + */ + private static void loadWebClientUrlsFromXml(EwsXmlReader reader, + WebClientUrlCollection webClientUrls, String elementName) throws Exception { + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.OWAUrl)) { + String authMethod = reader.readAttributeValue( + XmlAttributeNames.AuthenticationMethod); + String owaUrl = reader.readElementValue(); + WebClientUrl webClientUrl = + new WebClientUrl(authMethod, owaUrl); + webClientUrls.getUrls().add(webClientUrl); + } else { + reader.skipCurrentElement(); + } + } + } + while (!reader.isEndElement(XmlNamespace.NotSpecified, elementName)); + } + + + /** + * Convert ECP fragment to full ECP URL. + * + * @param fragment The fragment. + * @return Full URL string (or null if either portion is empty. + */ + private String convertEcpFragmentToUrl(String fragment) { + return ((this.ecpUrl == null || this.ecpUrl.isEmpty()) || + (fragment == null || fragment.isEmpty())) ? null : (this.ecpUrl + fragment); + } + + /** + * Convert OutlookProtocol to GetUserSettings response. + * + * @param requestedSettings The requested settings. + * @param response The response. + */ + protected void convertToUserSettings( + List requestedSettings, + GetUserSettingsResponse response) { + if (this.getConverterDictionary() != null) { + // In English: collect converters that are contained in the requested settings. + Map> converterQuery = + new HashMap>(); + Map> t = + this.getConverterDictionary(); + for (Entry> map : t.entrySet()) { + if (requestedSettings.contains(map.getKey())) { + converterQuery.put(map.getKey(), map.getValue()); + } + } - /** - * Gets the available user settings. - * @return availableUserSettings - */ - protected static List getAvailableUserSettings() { - return availableUserSettings.getMember(); - } + for (Entry> kv : converterQuery.entrySet()) { + Object value = kv.getValue().func(this); + if (value != null) { + response.getSettings().put(kv.getKey(), value); + } + } + } + } + + private OutlookProtocolType protocolType; + + /** + * Gets the type of the protocol. + * + * @return The type of the protocol. + */ + protected OutlookProtocolType getProtocolType() { + return this.protocolType; + } + + /** + * Sets the type of the protocol. + */ + protected void setProtocolType(OutlookProtocolType protocolType) { + this.protocolType = protocolType; + } + + /** + * Gets the converter dictionary for protocol type. + * + * @return The converter dictionary. + */ + private Map> + getConverterDictionary() { + switch (this.getProtocolType()) { + case Rpc: + return internalProtocolConverterDictionary.getMember(); + case RpcOverHttp: + return externalProtocolConverterDictionary.getMember(); + case Web: + return webProtocolConverterDictionary.getMember(); + default: + return null; + } + } + + + /** + * Gets the available user settings. + * + * @return availableUserSettings + */ + protected static List getAvailableUserSettings() { + return availableUserSettings.getMember(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java index ab4a04303..eaa7ac2e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java @@ -15,20 +15,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ enum OutlookProtocolType { - // The Remote Procedure Call (RPC) protocol. - /** The Rpc. */ - Rpc, + // The Remote Procedure Call (RPC) protocol. + /** + * The Rpc. + */ + Rpc, - // The Remote Procedure Call (RPC) over HTTP protocol. - /** The Rpc over http. */ - RpcOverHttp, + // The Remote Procedure Call (RPC) over HTTP protocol. + /** + * The Rpc over http. + */ + RpcOverHttp, - // The Web protocol. - /** The Web. */ - Web, + // The Web protocol. + /** + * The Web. + */ + Web, - // The protocol is unknown. - /** The Unknown. */ - Unknown + // The protocol is unknown. + /** + * The Unknown. + */ + Unknown } diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index 9059923a7..4829b8930 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -17,128 +17,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the user Outlook configuration settings apply to. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) final class OutlookUser { - /** - * Converters to translate Outlook user settings. - * Each entry maps to a lambda expression used to - * get the matching property from the OutlookUser instance. - */ - private static LazyMember>> - converterDictionary = - new LazyMember>>( - new ILazyMember>>() { - public Map> createInstance() { - Map> results = - new HashMap>(); - results.put(UserSettingName.UserDisplayName, - new IFunc() { - public String func(OutlookUser arg) { - return arg.displayName; - } - }); - results.put(UserSettingName.UserDN, - new IFunc() { - public String func(OutlookUser arg) { - return arg.legacyDN; - } - }); - results.put(UserSettingName.UserDeploymentId, - new IFunc() { - public String func(OutlookUser arg) { - return arg.deploymentId; - } - }); - return results; - } - }); - - /** The display name. */ - private String displayName; + /** + * Converters to translate Outlook user settings. + * Each entry maps to a lambda expression used to + * get the matching property from the OutlookUser instance. + */ + private static LazyMember>> + converterDictionary = + new LazyMember>>( + new ILazyMember>>() { + public Map> createInstance() { + Map> results = + new HashMap>(); + results.put(UserSettingName.UserDisplayName, + new IFunc() { + public String func(OutlookUser arg) { + return arg.displayName; + } + }); + results.put(UserSettingName.UserDN, + new IFunc() { + public String func(OutlookUser arg) { + return arg.legacyDN; + } + }); + results.put(UserSettingName.UserDeploymentId, + new IFunc() { + public String func(OutlookUser arg) { + return arg.deploymentId; + } + }); + return results; + } + }); - /** The legacy dn. */ - private String legacyDN; + /** + * The display name. + */ + private String displayName; - /** The deployment id. */ - private String deploymentId; + /** + * The legacy dn. + */ + private String legacyDN; - /** - * Initializes a new instance of the OutlookUser class. - */ - protected OutlookUser() { - } + /** + * The deployment id. + */ + private String deploymentId; - /** - * Load from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader) throws Exception { - - do { - reader.read(); + /** + * Initializes a new instance of the OutlookUser class. + */ + protected OutlookUser() { + } - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { - this.displayName = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.LegacyDN)) { - this.legacyDN = reader.readElementValue(); - } else if (reader.getLocalName().equals( - XmlElementNames.DeploymentId)) { - this.deploymentId = reader.readElementValue(); - } else { - reader.skipCurrentElement(); + /** + * Load from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader) throws Exception { - } - } - } while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.User)); - } + do { + reader.read(); - /** - * Convert OutlookUser to GetUserSettings response. - * - * @param requestedSettings - * The requested settings. - * @param response - * The response. - */ - protected void convertToUserSettings( - List requestedSettings, - GetUserSettingsResponse response) { - // In English: collect converters that are - //contained in the requested settings. - Map> - converterQuery = new HashMap>(); - for (Entry> map : converterDictionary.getMember().entrySet()) { - if(requestedSettings.contains(map.getKey())) { - converterQuery.put(map.getKey(),map.getValue()); - } - } + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { + this.displayName = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.LegacyDN)) { + this.legacyDN = reader.readElementValue(); + } else if (reader.getLocalName().equals( + XmlElementNames.DeploymentId)) { + this.deploymentId = reader.readElementValue(); + } else { + reader.skipCurrentElement(); - for (Entry> kv : converterQuery.entrySet()) - { - String value = kv.getValue().func(this); - if (!(value == null || value.isEmpty())) { - response.getSettings().put(kv.getKey(), value); - } } + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.User)); + } + + /** + * Convert OutlookUser to GetUserSettings response. + * + * @param requestedSettings The requested settings. + * @param response The response. + */ + protected void convertToUserSettings( + List requestedSettings, + GetUserSettingsResponse response) { + // In English: collect converters that are + //contained in the requested settings. + Map> + converterQuery = new HashMap>(); + for (Entry> map : converterDictionary.getMember() + .entrySet()) { + if (requestedSettings.contains(map.getKey())) { + converterQuery.put(map.getKey(), map.getValue()); + } } - /** - * Gets the available user settings. - * - * @return The available user settings. - */ - protected static Iterable getAvailableUserSettings() { - return converterDictionary.getMember().keySet(); + for (Entry> kv : converterQuery.entrySet()) { + String value = kv.getValue().func(this); + if (!(value == null || value.isEmpty())) { + response.getSettings().put(kv.getKey(), value); + } } + } + + /** + * Gets the available user settings. + * + * @return The available user settings. + */ + protected static Iterable getAvailableUserSettings() { + return converterDictionary.getMember().keySet(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PagedView.java b/src/main/java/microsoft/exchange/webservices/data/PagedView.java index 32402e8be..27b7e7b92 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PagedView.java +++ b/src/main/java/microsoft/exchange/webservices/data/PagedView.java @@ -18,207 +18,192 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class PagedView extends ViewBase { - /** The page size. */ - private int pageSize; - - /** The offset base point. */ - private OffsetBasePoint offsetBasePoint = OffsetBasePoint.Beginning; - - /** The offset. */ - private int offset; - - /** - * Write to XML. - * - * @param writer - * The Writer - * @throws Exception - * the exception - */ - @Override - protected void internalWriteViewToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWriteViewToXml(writer); - - writer.writeAttributeValue(XmlAttributeNames.Offset, this.getOffset()); - writer.writeAttributeValue(XmlAttributeNames.BasePoint, this - .getOffsetBasePoint()); - } - - /** - * Gets the maximum number of items or folders the search operation should - * return. - * - * @return The maximum number of items or folders that should be returned by - * the search operation. - */ - @Override - protected Integer getMaxEntriesReturned() { - return this.getPageSize(); - } - - /** - * Internals the write search settings to XML. - * - * @param writer - * The writer - * @param groupBy - * The group by clause. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, - Grouping groupBy) throws XMLStreamException, - ServiceXmlSerializationException { - if (groupBy != null) { - groupBy.writeToXml(writer); - } - } - - /** - * Writes OrderBy property to XML. - * - * @param writer - * The Writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeOrderByToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - // No order by for paged view - } - - /** - * Validates this view. - * - * @param request - * The request using this view. - * @throws ServiceVersionException - * the service version exception - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate(ServiceRequestBase request) - throws ServiceVersionException, ServiceValidationException { - super.internalValidate(request); - } - - /** - * Initializes a new instance of the "PagedView" class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - */ - protected PagedView(int pageSize) { - super(); - this.setPageSize(pageSize); - } - - /** - * Initializes a new instance of the "PagedView" class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - * @param offset - * The offset of the view from the base point. - */ - protected PagedView(int pageSize, int offset) { - this(pageSize); - this.setOffset(offset); - } - - /** - * Initializes a new instance of the "PagedView" class. - * - * @param pageSize - * The maximum number of elements the search operation should - * return. - * @param offset - * The offset of the view from the base point. - * @param offsetBasePoint - * The base point of the offset. - */ - protected PagedView(int pageSize, int offset, - OffsetBasePoint offsetBasePoint) { - this(pageSize, offset); - this.setOffsetBasePoint(offsetBasePoint); - } - - /** - * Gets the maximum number of items or folders the search operation should - * return. - * - * @return the page size - */ - public int getPageSize() { - return pageSize; - } - - /** - * Sets the maximum number of items or folders the search operation should - * return. - * - * @param pageSize - * the new page size - */ - public void setPageSize(int pageSize) { - if (pageSize <= 0) { - throw new IllegalArgumentException( - Strings.ValueMustBeGreaterThanZero); - } - this.pageSize = pageSize; - } - - /** - * Gets the base point of the offset. - * - * @return the offset base point - */ - public OffsetBasePoint getOffsetBasePoint() { - return offsetBasePoint; - } - - /** - * Sets the base point of the offset. - * - * @param offsetBasePoint - * the new offset base point - */ - public void setOffsetBasePoint(OffsetBasePoint offsetBasePoint) { - this.offsetBasePoint = offsetBasePoint; - } - - /** - * Gets the offset. - * - * @return the offset - */ - public int getOffset() { - return offset; - } - - /** - * Sets the offset. - * - * @param offset - * the new offset - */ - public void setOffset(int offset) { - if (offset >= 0) { - this.offset = offset; - } else { - throw new IllegalArgumentException( - Strings.OffsetMustBeGreaterThanZero); - } - } + /** + * The page size. + */ + private int pageSize; + + /** + * The offset base point. + */ + private OffsetBasePoint offsetBasePoint = OffsetBasePoint.Beginning; + + /** + * The offset. + */ + private int offset; + + /** + * Write to XML. + * + * @param writer The Writer + * @throws Exception the exception + */ + @Override + protected void internalWriteViewToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWriteViewToXml(writer); + + writer.writeAttributeValue(XmlAttributeNames.Offset, this.getOffset()); + writer.writeAttributeValue(XmlAttributeNames.BasePoint, this + .getOffsetBasePoint()); + } + + /** + * Gets the maximum number of items or folders the search operation should + * return. + * + * @return The maximum number of items or folders that should be returned by + * the search operation. + */ + @Override + protected Integer getMaxEntriesReturned() { + return this.getPageSize(); + } + + /** + * Internals the write search settings to XML. + * + * @param writer The writer + * @param groupBy The group by clause. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, + Grouping groupBy) throws XMLStreamException, + ServiceXmlSerializationException { + if (groupBy != null) { + groupBy.writeToXml(writer); + } + } + + /** + * Writes OrderBy property to XML. + * + * @param writer The Writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeOrderByToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + // No order by for paged view + } + + /** + * Validates this view. + * + * @param request The request using this view. + * @throws ServiceVersionException the service version exception + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate(ServiceRequestBase request) + throws ServiceVersionException, ServiceValidationException { + super.internalValidate(request); + } + + /** + * Initializes a new instance of the "PagedView" class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + */ + protected PagedView(int pageSize) { + super(); + this.setPageSize(pageSize); + } + + /** + * Initializes a new instance of the "PagedView" class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + * @param offset The offset of the view from the base point. + */ + protected PagedView(int pageSize, int offset) { + this(pageSize); + this.setOffset(offset); + } + + /** + * Initializes a new instance of the "PagedView" class. + * + * @param pageSize The maximum number of elements the search operation should + * return. + * @param offset The offset of the view from the base point. + * @param offsetBasePoint The base point of the offset. + */ + protected PagedView(int pageSize, int offset, + OffsetBasePoint offsetBasePoint) { + this(pageSize, offset); + this.setOffsetBasePoint(offsetBasePoint); + } + + /** + * Gets the maximum number of items or folders the search operation should + * return. + * + * @return the page size + */ + public int getPageSize() { + return pageSize; + } + + /** + * Sets the maximum number of items or folders the search operation should + * return. + * + * @param pageSize the new page size + */ + public void setPageSize(int pageSize) { + if (pageSize <= 0) { + throw new IllegalArgumentException( + Strings.ValueMustBeGreaterThanZero); + } + this.pageSize = pageSize; + } + + /** + * Gets the base point of the offset. + * + * @return the offset base point + */ + public OffsetBasePoint getOffsetBasePoint() { + return offsetBasePoint; + } + + /** + * Sets the base point of the offset. + * + * @param offsetBasePoint the new offset base point + */ + public void setOffsetBasePoint(OffsetBasePoint offsetBasePoint) { + this.offsetBasePoint = offsetBasePoint; + } + + /** + * Gets the offset. + * + * @return the offset + */ + public int getOffset() { + return offset; + } + + /** + * Sets the offset. + * + * @param offset the new offset + */ + public void setOffset(int offset) { + if (offset >= 0) { + this.offset = offset; + } else { + throw new IllegalArgumentException( + Strings.OffsetMustBeGreaterThanZero); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Param.java b/src/main/java/microsoft/exchange/webservices/data/Param.java index 6e95a0512..cc5019faa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Param.java +++ b/src/main/java/microsoft/exchange/webservices/data/Param.java @@ -12,32 +12,32 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class Param. - * - * @param - * the generic type + * + * @param the generic type */ - abstract class Param { +abstract class Param { - /** The param. */ - private T param; + /** + * The param. + */ + private T param; - /** - * Gets the param. - * - * @return the param - */ - public T getParam() { - return param; - } + /** + * Gets the param. + * + * @return the param + */ + public T getParam() { + return param; + } - /** - * Sets the param. - * - * @param param - * the new param - */ - public void setParam(T param) { - this.param = param; - } + /** + * Sets the param. + * + * @param param the new param + */ + public void setParam(T param) { + this.param = param; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java index e70e8618c..4fbfe99bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java @@ -1,7 +1,7 @@ /************************************************************************** * copyright file="PermissionCollectionPropertyDefinition.java" company="Microsoft" * Copyright (c) Microsoft Corporation. All rights reserved. - * + * * Defines the PermissionCollectionPropertyDefinition class. **************************************************************************/ package microsoft.exchange.webservices.data; @@ -11,43 +11,45 @@ /** * Represents permission set property definition. */ -class PermissionSetPropertyDefinition extends ComplexPropertyDefinitionBase{ - - /** - * Initializes a new instance of the PermissionSetPropertyDefinition class. - * @param xmlElementName Name of the XML element. - * @param uri The URI. - * @param flags The flags. - * @param version The version. - */ - protected PermissionSetPropertyDefinition(String xmlElementName,String uri, - EnumSet flags,ExchangeVersion version) { - super(xmlElementName,uri,flags,version); - } - - /** - * Creates the property instance. - * @param owner The owner. - * @return ComplexProperty. - */ - @Override - protected ComplexProperty createPropertyInstance(ServiceObject owner) { - Folder folder = (Folder)owner; - - EwsUtilities.EwsAssert( - folder != null, - "PermissionCollectionPropertyDefinition.CreatePropertyInstance", - "The owner parameter is not of type Folder or a derived class."); - - return new FolderPermissionCollection(folder); - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return FolderPermissionCollection.class; - } +class PermissionSetPropertyDefinition extends ComplexPropertyDefinitionBase { + + /** + * Initializes a new instance of the PermissionSetPropertyDefinition class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected PermissionSetPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } + + /** + * Creates the property instance. + * + * @param owner The owner. + * @return ComplexProperty. + */ + @Override + protected ComplexProperty createPropertyInstance(ServiceObject owner) { + Folder folder = (Folder) owner; + + EwsUtilities.EwsAssert( + folder != null, + "PermissionCollectionPropertyDefinition.CreatePropertyInstance", + "The owner parameter is not of type Folder or a derived class."); + + return new FolderPermissionCollection(folder); + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return FolderPermissionCollection.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java index ae3a02f92..5756fe774 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum PermissionScope { - // The user does not have the associated permission. - /** The None. */ - None, + // The user does not have the associated permission. + /** + * The None. + */ + None, - // The user has the associated permission on items that it owns. - /** The Owned. */ - Owned, + // The user has the associated permission on items that it owns. + /** + * The Owned. + */ + Owned, - // The user has the associated permission on all items. - /** The All. */ - All + // The user has the associated permission on all items. + /** + * The All. + */ + All } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java index a572a97ed..908c3e4cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java @@ -12,165 +12,173 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a phone call. - * */ public final class PhoneCall extends ComplexProperty { - - /** The Constant successfullResponseText. */ - private final static String SuccessfullResponseText = "OK"; - - /** The Constant successfullResponseCode. */ - private final static int SuccessfullResponseCode = 200; - - /** The service. */ - private ExchangeService service; - - /** The state. */ - private PhoneCallState state; - - /** The connection failure cause. */ - private ConnectionFailureCause connectionFailureCause; - - /** The sip response text. */ - private String sipResponseText; - - /** The sip response code. */ - private int sipResponseCode; - - /** The id. */ - private PhoneCallId id; - - /** - * PhoneCall Constructor. - * - * @param service - * the service - */ - protected PhoneCall(ExchangeService service) { - EwsUtilities.EwsAssert(service != null, "PhoneCall.ctor", - "service is null"); - - this.service = service; - this.state = PhoneCallState.Connecting; - this.connectionFailureCause = ConnectionFailureCause.None; - this.sipResponseText = PhoneCall.SuccessfullResponseText; - this.sipResponseCode = PhoneCall.SuccessfullResponseCode; - } - - /** - * PhoneCall Constructor. - * - * @param service - * the service - * @param id - * the id - */ - protected PhoneCall(ExchangeService service, PhoneCallId id) { - this(service); - this.id = id; - } - - /** - * Refreshes the state of this phone call. - * - * @throws Exception - * the exception - */ - public void refresh() throws Exception { - PhoneCall phoneCall = service.getUnifiedMessaging() - .getPhoneCallInformation(this.id); - this.state = phoneCall.getState(); - this.connectionFailureCause = phoneCall.getConnectionFailureCause(); - this.sipResponseText = phoneCall.getSipResponseText(); - this.sipResponseCode = phoneCall.getSipResponseCode(); - } - - /** - * Disconnects this phone call. - * - * @throws Exception - * the exception - */ - public void disconnect() throws Exception { - // If call is already disconnected, throw exception - // - if (this.state == PhoneCallState.Disconnected) { - throw new ServiceLocalException( - Strings.PhoneCallAlreadyDisconnected); - } - - this.service.getUnifiedMessaging().disconnectPhoneCall(this.id); - this.state = PhoneCallState.Disconnected; - } - - /** - * Tries to read an element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.PhoneCallState)) { - this.state = reader.readElementValue(PhoneCallState.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.ConnectionFailureCause)) { - this.connectionFailureCause = reader - .readElementValue(ConnectionFailureCause.class); - return true; - } else if (reader.getLocalName() - .equals(XmlElementNames.SIPResponseText)) { - this.sipResponseText = reader.readElementValue(); - return true; - } else if (reader.getLocalName() - .equals(XmlElementNames.SIPResponseCode)) { - this.sipResponseCode = reader.readElementValue(Integer.class); - return true; - } else { - return false; - } - - } - - /** - * Gets a value indicating the last known state of this phone call. - * - * @return the state - */ - public PhoneCallState getState() { - return state; - } - - /** - * Gets the SIP response text of this phone call. - * - * @return the sip response text - */ - public String getSipResponseText() { - return sipResponseText; - } - - /** - * Gets the SIP response code of this phone call. - * - * @return the sip response code - */ - public int getSipResponseCode() { - return sipResponseCode; - } - - /** - * Gets a value indicating the reason why this phone call failed to connect. - * - * @return the connection failure cause - */ - public ConnectionFailureCause getConnectionFailureCause() { - return connectionFailureCause; - } + + /** + * The Constant successfullResponseText. + */ + private final static String SuccessfullResponseText = "OK"; + + /** + * The Constant successfullResponseCode. + */ + private final static int SuccessfullResponseCode = 200; + + /** + * The service. + */ + private ExchangeService service; + + /** + * The state. + */ + private PhoneCallState state; + + /** + * The connection failure cause. + */ + private ConnectionFailureCause connectionFailureCause; + + /** + * The sip response text. + */ + private String sipResponseText; + + /** + * The sip response code. + */ + private int sipResponseCode; + + /** + * The id. + */ + private PhoneCallId id; + + /** + * PhoneCall Constructor. + * + * @param service the service + */ + protected PhoneCall(ExchangeService service) { + EwsUtilities.EwsAssert(service != null, "PhoneCall.ctor", + "service is null"); + + this.service = service; + this.state = PhoneCallState.Connecting; + this.connectionFailureCause = ConnectionFailureCause.None; + this.sipResponseText = PhoneCall.SuccessfullResponseText; + this.sipResponseCode = PhoneCall.SuccessfullResponseCode; + } + + /** + * PhoneCall Constructor. + * + * @param service the service + * @param id the id + */ + protected PhoneCall(ExchangeService service, PhoneCallId id) { + this(service); + this.id = id; + } + + /** + * Refreshes the state of this phone call. + * + * @throws Exception the exception + */ + public void refresh() throws Exception { + PhoneCall phoneCall = service.getUnifiedMessaging() + .getPhoneCallInformation(this.id); + this.state = phoneCall.getState(); + this.connectionFailureCause = phoneCall.getConnectionFailureCause(); + this.sipResponseText = phoneCall.getSipResponseText(); + this.sipResponseCode = phoneCall.getSipResponseCode(); + } + + /** + * Disconnects this phone call. + * + * @throws Exception the exception + */ + public void disconnect() throws Exception { + // If call is already disconnected, throw exception + // + if (this.state == PhoneCallState.Disconnected) { + throw new ServiceLocalException( + Strings.PhoneCallAlreadyDisconnected); + } + + this.service.getUnifiedMessaging().disconnectPhoneCall(this.id); + this.state = PhoneCallState.Disconnected; + } + + /** + * Tries to read an element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.PhoneCallState)) { + this.state = reader.readElementValue(PhoneCallState.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.ConnectionFailureCause)) { + this.connectionFailureCause = reader + .readElementValue(ConnectionFailureCause.class); + return true; + } else if (reader.getLocalName() + .equals(XmlElementNames.SIPResponseText)) { + this.sipResponseText = reader.readElementValue(); + return true; + } else if (reader.getLocalName() + .equals(XmlElementNames.SIPResponseCode)) { + this.sipResponseCode = reader.readElementValue(Integer.class); + return true; + } else { + return false; + } + + } + + /** + * Gets a value indicating the last known state of this phone call. + * + * @return the state + */ + public PhoneCallState getState() { + return state; + } + + /** + * Gets the SIP response text of this phone call. + * + * @return the sip response text + */ + public String getSipResponseText() { + return sipResponseText; + } + + /** + * Gets the SIP response code of this phone call. + * + * @return the sip response code + */ + public int getSipResponseCode() { + return sipResponseCode; + } + + /** + * Gets a value indicating the reason why this phone call failed to connect. + * + * @return the connection failure cause + */ + public ConnectionFailureCause getConnectionFailureCause() { + return connectionFailureCause; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java index fba5d73c9..fac450a6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java @@ -12,86 +12,79 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the Id of a phone call. - * */ final class PhoneCallId extends ComplexProperty { - /** The id. */ - private String id; + /** + * The id. + */ + private String id; - /** - * Initializes a new instance of the PhoneCallId class. - */ - protected PhoneCallId() { - } + /** + * Initializes a new instance of the PhoneCallId class. + */ + protected PhoneCallId() { + } - /** - * Initializes a new instance of the PhoneCallId class. - * - * @param id - * the id - */ - protected PhoneCallId(String id) { - this.id = id; - } + /** + * Initializes a new instance of the PhoneCallId class. + * + * @param id the id + */ + protected PhoneCallId(String id) { + this.id = id; + } - /** - * Reads attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.id = reader.readAttributeValue(XmlAttributeNames.Id); - } + /** + * Reads attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.id = reader.readAttributeValue(XmlAttributeNames.Id); + } - /** - * Writes attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Id, this.id); - } + /** + * Writes attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Id, this.id); + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, XmlElementNames.PhoneCallId); - } + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, XmlElementNames.PhoneCallId); + } - /** - * Gets the Id of the phone call. - * - * @return the id - */ - protected String getId() { - return id; - } + /** + * Gets the Id of the phone call. + * + * @return the id + */ + protected String getId() { + return id; + } - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(String id) { - this.id = id; - } + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(String id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java index 19948fac2..b34d1584c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java @@ -15,36 +15,52 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum PhoneCallState { - // Idle - /** The Idle. */ - Idle, + // Idle + /** + * The Idle. + */ + Idle, - // Connecting - /** The Connecting. */ - Connecting, + // Connecting + /** + * The Connecting. + */ + Connecting, - // Alerted - /** The Alerted. */ - Alerted, + // Alerted + /** + * The Alerted. + */ + Alerted, - // Connected - /** The Connected. */ - Connected, + // Connected + /** + * The Connected. + */ + Connected, - // Disconnected - /** The Disconnected. */ - Disconnected, + // Disconnected + /** + * The Disconnected. + */ + Disconnected, - // Incoming - /** The Incoming. */ - Incoming, + // Incoming + /** + * The Incoming. + */ + Incoming, - // Transferring - /** The Transferring. */ - Transferring, + // Transferring + /** + * The Transferring. + */ + Transferring, - // Forwarding - /** The Forwarding. */ - Forwarding + // Forwarding + /** + * The Forwarding. + */ + Forwarding } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index c7f55aec0..d3ad09d78 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -12,90 +12,85 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a dictionary of phone numbers. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class PhoneNumberDictionary extends - DictionaryProperty { + DictionaryProperty { - /** - * Gets the field URI. - * - * @return Field URI. - */ - @Override - protected String getFieldURI() { - return "contacts:PhoneNumber"; - } + /** + * Gets the field URI. + * + * @return Field URI. + */ + @Override + protected String getFieldURI() { + return "contacts:PhoneNumber"; + } - /** - * Creates instance of dictionary entry. - * - * @return New instance. - */ - @Override - protected PhoneNumberEntry createEntryInstance() { - return new PhoneNumberEntry(); - } + /** + * Creates instance of dictionary entry. + * + * @return New instance. + */ + @Override + protected PhoneNumberEntry createEntryInstance() { + return new PhoneNumberEntry(); + } - /** - * Gets the phone number at the specified key. - * - * @param key The phone number key. - * @return The phone number at the specified key if found; otherwise null. - */ - public String getPhoneNumber(PhoneNumberKey key) { - PhoneNumberEntry phoneNumberEntry = this.getEntries().get(key); - if (phoneNumberEntry == null) { - return null; - } + /** + * Gets the phone number at the specified key. + * + * @param key The phone number key. + * @return The phone number at the specified key if found; otherwise null. + */ + public String getPhoneNumber(PhoneNumberKey key) { + PhoneNumberEntry phoneNumberEntry = this.getEntries().get(key); + if (phoneNumberEntry == null) { + return null; + } - return phoneNumberEntry.getPhoneNumber(); - } + return phoneNumberEntry.getPhoneNumber(); + } - /** - * Sets the phone number. - * - * @param key - * the key - * @param value - * the value - */ - public void setPhoneNumber(PhoneNumberKey key, String value) { - if (value == null) { - this.internalRemove(key); - } else { - PhoneNumberEntry entry; + /** + * Sets the phone number. + * + * @param key the key + * @param value the value + */ + public void setPhoneNumber(PhoneNumberKey key, String value) { + if (value == null) { + this.internalRemove(key); + } else { + PhoneNumberEntry entry; - if (this.getEntries().containsKey(key)) { - entry = this.getEntries().get(key); - entry.setPhoneNumber(value); - complexPropertyChanged( entry ); - this.changed(); - } else { - entry = new PhoneNumberEntry(key, value); - this.internalAdd(entry); - } - } - } + if (this.getEntries().containsKey(key)) { + entry = this.getEntries().get(key); + entry.setPhoneNumber(value); + complexPropertyChanged(entry); + this.changed(); + } else { + entry = new PhoneNumberEntry(key, value); + this.internalAdd(entry); + } + } + } - /** - * Tries to get the phone number associated with the specified key. - * - * @param key - * the key - * @param outparam - * the outparam - * @return true if the Dictionary contains a phone number associated with - * the specified key; otherwise, false. - */ - public boolean tryGetValue(PhoneNumberKey key, OutParam outparam) { - String phoneNumber = this.getPhoneNumber(key); - if (phoneNumber == null) { - return false; - } + /** + * Tries to get the phone number associated with the specified key. + * + * @param key the key + * @param outparam the outparam + * @return true if the Dictionary contains a phone number associated with + * the specified key; otherwise, false. + */ + public boolean tryGetValue(PhoneNumberKey key, OutParam outparam) { + String phoneNumber = this.getPhoneNumber(key); + if (phoneNumber == null) { + return false; + } - outparam.setParam(phoneNumber); - return true; - } + outparam.setParam(phoneNumber); + return true; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java index 9e3283465..fa81a6e12 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java @@ -15,77 +15,72 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class PhoneNumberEntry extends - DictionaryEntryProperty { + DictionaryEntryProperty { - /** The phone number. */ - private String phoneNumber; + /** + * The phone number. + */ + private String phoneNumber; - /** - * Initializes a new instance of the "PhoneNumberEntry" class. - */ - protected PhoneNumberEntry() { - super(PhoneNumberKey.class); - } + /** + * Initializes a new instance of the "PhoneNumberEntry" class. + */ + protected PhoneNumberEntry() { + super(PhoneNumberKey.class); + } - /** - * Initializes a new instance of the class. - * - * @param key - * The key. - * @param phoneNumber - * The phone number. - */ - protected PhoneNumberEntry(PhoneNumberKey key, String phoneNumber) { - super(PhoneNumberKey.class, key); - this.phoneNumber = phoneNumber; - } + /** + * Initializes a new instance of the class. + * + * @param key The key. + * @param phoneNumber The phone number. + */ + protected PhoneNumberEntry(PhoneNumberKey key, String phoneNumber) { + super(PhoneNumberKey.class, key); + this.phoneNumber = phoneNumber; + } - /** - * Reads the text value from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws Exception - * throws Exception - */ - @Override - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws Exception { - this.phoneNumber = reader.readValue(); - } + /** + * Reads the text value from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws Exception throws Exception + */ + @Override + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws Exception { + this.phoneNumber = reader.readValue(); + } - /** - * Writes elements to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeValue(this.phoneNumber, XmlElementNames.PhoneNumber); - } + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeValue(this.phoneNumber, XmlElementNames.PhoneNumber); + } - /** - * Gets the phone number of the entry. - * - * @return the phone number - */ - public String getPhoneNumber() { - return this.phoneNumber; - } + /** + * Gets the phone number of the entry. + * + * @return the phone number + */ + public String getPhoneNumber() { + return this.phoneNumber; + } - /** - * Sets the phone number of the entry. - * - * @param value - * the new phone number - */ - public void setPhoneNumber(Object value) { - //this.canSetFieldValue((String) this.phoneNumber, value); - if( this.canSetFieldValue(this.phoneNumber, value) ) { - this.phoneNumber = (String)value; - } - } + /** + * Sets the phone number of the entry. + * + * @param value the new phone number + */ + public void setPhoneNumber(Object value) { + //this.canSetFieldValue((String) this.phoneNumber, value); + if (this.canSetFieldValue(this.phoneNumber, value)) { + this.phoneNumber = (String) value; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java index db7de43dc..9b246ccdc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java @@ -15,79 +15,117 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum PhoneNumberKey { - // The assistant's phone number. - /** The Assistant phone. */ - AssistantPhone, - - // The business fax number. - /** The Business fax. */ - BusinessFax, - - // The business phone number. - /** The Business phone. */ - BusinessPhone, - - // The second business phone number. - /** The Business phone2. */ - BusinessPhone2, - - // The callback number. - /** The Callback. */ - Callback, - - // The car phone number. - /** The Car phone. */ - CarPhone, - - // The company's main phone number. - /** The Company main phone. */ - CompanyMainPhone, - - // The home fax number. - /** The Home fax. */ - HomeFax, - - // The home phone number. - /** The Home phone. */ - HomePhone, - - // The second home phone number. - /** The Home phone2. */ - HomePhone2, - - // The ISDN number. - /** The Isdn. */ - Isdn, - - // The mobile phone number. - /** The Mobile phone. */ - MobilePhone, - - // An alternate fax number. - /** The Other fax. */ - OtherFax, - - // An alternate phone number. - /** The Other telephone. */ - OtherTelephone, - - // The pager number. - /** The Pager. */ - Pager, - - // The primary phone number. - /** The Primary phone. */ - PrimaryPhone, - - // The radio phone number. - /** The Radio phone. */ - RadioPhone, - - // The Telex number. - /** The Telex. */ - Telex, - - // The TTY/TTD phone number. - /** The Tty tdd phone. */ - TtyTddPhone + // The assistant's phone number. + /** + * The Assistant phone. + */ + AssistantPhone, + + // The business fax number. + /** + * The Business fax. + */ + BusinessFax, + + // The business phone number. + /** + * The Business phone. + */ + BusinessPhone, + + // The second business phone number. + /** + * The Business phone2. + */ + BusinessPhone2, + + // The callback number. + /** + * The Callback. + */ + Callback, + + // The car phone number. + /** + * The Car phone. + */ + CarPhone, + + // The company's main phone number. + /** + * The Company main phone. + */ + CompanyMainPhone, + + // The home fax number. + /** + * The Home fax. + */ + HomeFax, + + // The home phone number. + /** + * The Home phone. + */ + HomePhone, + + // The second home phone number. + /** + * The Home phone2. + */ + HomePhone2, + + // The ISDN number. + /** + * The Isdn. + */ + Isdn, + + // The mobile phone number. + /** + * The Mobile phone. + */ + MobilePhone, + + // An alternate fax number. + /** + * The Other fax. + */ + OtherFax, + + // An alternate phone number. + /** + * The Other telephone. + */ + OtherTelephone, + + // The pager number. + /** + * The Pager. + */ + Pager, + + // The primary phone number. + /** + * The Primary phone. + */ + PrimaryPhone, + + // The radio phone number. + /** + * The Radio phone. + */ + RadioPhone, + + // The Telex number. + /** + * The Telex. + */ + Telex, + + // The TTY/TTD phone number. + /** + * The Tty tdd phone. + */ + TtyTddPhone } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java index 6aa535c39..ce05859fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java @@ -12,67 +12,61 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a dictionary of physical addresses. - * */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class PhysicalAddressDictionary extends - DictionaryProperty { + DictionaryProperty { - /** - * Creates instance of dictionary entry. - * - * @return New instance. - */ - @Override - protected PhysicalAddressEntry createEntryInstance() { - return new PhysicalAddressEntry(); - } + /** + * Creates instance of dictionary entry. + * + * @return New instance. + */ + @Override + protected PhysicalAddressEntry createEntryInstance() { + return new PhysicalAddressEntry(); + } - /** - * Gets the physical address at the specified key. - * - * @param key - * the key - * @return The physical address at the specified key. - */ - public PhysicalAddressEntry getPhysicalAddress(PhysicalAddressKey key) { - return this.getEntries().get(key); - } + /** + * Gets the physical address at the specified key. + * + * @param key the key + * @return The physical address at the specified key. + */ + public PhysicalAddressEntry getPhysicalAddress(PhysicalAddressKey key) { + return this.getEntries().get(key); + } - /** - * Sets the physical address. - * - * @param key - * the key - * @param value - * the value - */ - public void setPhysicalAddress(PhysicalAddressKey key, - PhysicalAddressEntry value) { - if (value == null) { - this.internalRemove(key); - } else { - value.setKey(key); - this.internalAddOrReplace(value); - } - } + /** + * Sets the physical address. + * + * @param key the key + * @param value the value + */ + public void setPhysicalAddress(PhysicalAddressKey key, + PhysicalAddressEntry value) { + if (value == null) { + this.internalRemove(key); + } else { + value.setKey(key); + this.internalAddOrReplace(value); + } + } - /** - * Tries to get the physical address associated with the specified key. - * - * @param key - * the key - * @param outparam - * the outparam - * @return true if the Dictionary contains a physical address associated - * with the specified key; otherwise, false. - */ - public boolean tryGetValue(PhysicalAddressKey key, - OutParam outparam) { - if (this.getEntries().containsKey(key)) { - outparam.setParam(this.getEntries().get(key)); - } - return this.getEntries().containsKey(key); - } + /** + * Tries to get the physical address associated with the specified key. + * + * @param key the key + * @param outparam the outparam + * @return true if the Dictionary contains a physical address associated + * with the specified key; otherwise, false. + */ + public boolean tryGetValue(PhysicalAddressKey key, + OutParam outparam) { + if (this.getEntries().containsKey(key)) { + outparam.setParam(this.getEntries().get(key)); + } + return this.getEntries().containsKey(key); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index ea2abda41..2df8307aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -10,388 +10,368 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents an entry of an PhysicalAddressDictionary. */ public final class PhysicalAddressEntry extends - DictionaryEntryProperty implements - IPropertyBagChangedDelegate { - - /** The property bag. */ - private SimplePropertyBag propertyBag; - - /** - * Initializes a new instance of PhysicalAddressEntry. - */ - public PhysicalAddressEntry() { - super(PhysicalAddressKey.class); - this.propertyBag = new SimplePropertyBag(); - this.propertyBag.addOnChangeEvent(this); - } - - /** - * Property was changed. - * - * @param simplePropertyBag - * the simple property bag - */ - public void propertyBagChanged(SimplePropertyBag simplePropertyBag) { - this.changed(); - } - - /** - * Gets the street. - * - * @return the street - * @throws Exception - * the exception - */ - public String getStreet() throws Exception { - return (String)this.propertyBag - .getSimplePropertyBag(PhysicalAddressSchema.Street); - } - - /** - * Sets the street. - * - * @param value - * the new street - * @throws Exception - * the exception - */ - public void setStreet(String value) throws Exception { - this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.Street, - value); - - } - - /** - * Gets the city. - * - * @return the city - * @throws Exception - * the exception - */ - public String getCity() throws Exception { - return (String)this.propertyBag - .getSimplePropertyBag(PhysicalAddressSchema.City); - } - - /** - * Sets the city. - * - * @param value - * the new city - */ - public void setCity(String value) { - this.propertyBag - .setSimplePropertyBag(PhysicalAddressSchema.City, value); - } - - /** - * Gets the state. - * - * @return the state - * @throws Exception - * the exception - */ - public String getState() throws Exception { - return (String)this.propertyBag - .getSimplePropertyBag(PhysicalAddressSchema.State); - } - - /** - * Sets the state. - * - * @param value - * the new state - */ - public void setState(String value) { - this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.State, - value); - } - - /** - * Gets the country or region. - * - * @return the country or region - * @throws Exception - * the exception - */ - public String getCountryOrRegion() throws Exception { - return (String)this.propertyBag - .getSimplePropertyBag(PhysicalAddressSchema.CountryOrRegion); - } - - /** - * Sets the country or region. - * - * @param value - * the new country or region - */ - public void setCountryOrRegion(String value) { - this.propertyBag.setSimplePropertyBag( - PhysicalAddressSchema.CountryOrRegion, value); - } - - /** - * Gets the postal code. - * - * @return the postal code - */ - public String getPostalCode() { - return (String)this.propertyBag - .getSimplePropertyBag(PhysicalAddressSchema.PostalCode); - } - - /** - * Sets the postal code. - * - * @param value - * the new postal code - */ - public void setPostalCode(String value) { - this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.PostalCode, - value); - } - - /** - * Clears the change log. - */ - @Override - protected void clearChangeLog() { - this.propertyBag.clearChangeLog(); - } - - /** - * Writes elements to XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (PhysicalAddressSchema.getXmlElementNames().contains( - reader.getLocalName())) { - this.propertyBag.setSimplePropertyBag(reader.getLocalName(), reader - .readElementValue()); - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - for (String xmlElementName : PhysicalAddressSchema.getXmlElementNames()) { - writer.writeElementValue(XmlNamespace.Types, xmlElementName, - this.propertyBag.getSimplePropertyBag(xmlElementName)); - - } - } - - /** - * Writes the update to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @param ownerDictionaryXmlElementName - * the owner dictionary xml element name - * @return True if update XML was written. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, String ownerDictionaryXmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - List fieldsToSet = new ArrayList(); - - for (String xmlElementName : this.propertyBag.getAddedItems()) { - fieldsToSet.add(xmlElementName); - } - - for (String xmlElementName : this.propertyBag.getModifiedItems()) { - fieldsToSet.add(xmlElementName); - } - - for (String xmlElementName : fieldsToSet) { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getSetFieldXmlElementName()); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.IndexedFieldURI); - writer.writeAttributeValue(XmlAttributeNames.FieldURI, - getFieldUri(xmlElementName)); - writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this - .getKey().toString()); - writer.writeEndElement(); // IndexedFieldURI - - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getXmlElementName()); - writer.writeStartElement(XmlNamespace.Types, - ownerDictionaryXmlElementName); - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Entry); - this.writeAttributesToXml(writer); - writer.writeElementValue(XmlNamespace.Types, xmlElementName, - this.propertyBag.getSimplePropertyBag(xmlElementName)); - writer.writeEndElement(); // Entry - writer.writeEndElement(); // ownerDictionaryXmlElementName - writer.writeEndElement(); // ewsObject.GetXmlElementName() - - writer.writeEndElement(); // ewsObject.GetSetFieldXmlElementName() - } - - for (String xmlElementName : this.propertyBag.getRemovedItems()) { - this.internalWriteDeleteFieldToXml(writer, ewsObject, - xmlElementName); - } - - return true; - } - - /** - * Writes the delete update to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @return True if update XML was written. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject) throws XMLStreamException, - ServiceXmlSerializationException { - for (String xmlElementName : PhysicalAddressSchema.getXmlElementNames()) { - this.internalWriteDeleteFieldToXml(writer, ewsObject, - xmlElementName); - } - return true; - } - - /** - * Gets the field URI. - * - * @param xmlElementName - * the xml element name - * @return Field URI. - */ - private static String getFieldUri(String xmlElementName) { - return "contacts:PhysicalAddress:" + xmlElementName; - } - - /** - * Property bag was changed. - */ - private void propertyBagChanged() { - this.changed(); - } - - /** - * Write field deletion to XML. - * - * @param writer - * the writer - * @param ewsObject - * the ews object - * @param fieldXmlElementName - * the field xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void internalWriteDeleteFieldToXml(EwsServiceXmlWriter writer, - ServiceObject ewsObject, String fieldXmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, ewsObject - .getDeleteFieldXmlElementName()); - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.IndexedFieldURI); - writer.writeAttributeValue(XmlAttributeNames.FieldURI, - getFieldUri(fieldXmlElementName)); - writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this.getKey() - .toString()); - writer.writeEndElement(); // IndexedFieldURI - writer.writeEndElement(); // ewsObject.GetDeleteFieldXmlElementName() - } - - /** - * Schema definition for PhysicalAddress. - */ - private static class PhysicalAddressSchema { - - /** The Constant Street. */ - public static final String Street = "Street"; - - /** The Constant City. */ - public static final String City = "City"; - - /** The Constant State. */ - public static final String State = "State"; - - /** The Constant CountryOrRegion. */ - public static final String CountryOrRegion = "CountryOrRegion"; - - /** The Constant PostalCode. */ - public static final String PostalCode = "PostalCode"; - - /** - * List of XML element names. - */ - private static LazyMember> xmlElementNames = - new LazyMember>( - - new ILazyMember>() { - @Override - public List createInstance() { - List result = new ArrayList(); - result.add(Street); - result.add(City); - result.add(State); - result.add(CountryOrRegion); - result.add(PostalCode); - return result; - } - }); - - /** - * Gets the XML element names. - * - * @return The XML element names. - */ - public static List getXmlElementNames() { - return xmlElementNames.getMember(); - } - } + DictionaryEntryProperty implements + IPropertyBagChangedDelegate { + + /** + * The property bag. + */ + private SimplePropertyBag propertyBag; + + /** + * Initializes a new instance of PhysicalAddressEntry. + */ + public PhysicalAddressEntry() { + super(PhysicalAddressKey.class); + this.propertyBag = new SimplePropertyBag(); + this.propertyBag.addOnChangeEvent(this); + } + + /** + * Property was changed. + * + * @param simplePropertyBag the simple property bag + */ + public void propertyBagChanged(SimplePropertyBag simplePropertyBag) { + this.changed(); + } + + /** + * Gets the street. + * + * @return the street + * @throws Exception the exception + */ + public String getStreet() throws Exception { + return (String) this.propertyBag + .getSimplePropertyBag(PhysicalAddressSchema.Street); + } + + /** + * Sets the street. + * + * @param value the new street + * @throws Exception the exception + */ + public void setStreet(String value) throws Exception { + this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.Street, + value); + + } + + /** + * Gets the city. + * + * @return the city + * @throws Exception the exception + */ + public String getCity() throws Exception { + return (String) this.propertyBag + .getSimplePropertyBag(PhysicalAddressSchema.City); + } + + /** + * Sets the city. + * + * @param value the new city + */ + public void setCity(String value) { + this.propertyBag + .setSimplePropertyBag(PhysicalAddressSchema.City, value); + } + + /** + * Gets the state. + * + * @return the state + * @throws Exception the exception + */ + public String getState() throws Exception { + return (String) this.propertyBag + .getSimplePropertyBag(PhysicalAddressSchema.State); + } + + /** + * Sets the state. + * + * @param value the new state + */ + public void setState(String value) { + this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.State, + value); + } + + /** + * Gets the country or region. + * + * @return the country or region + * @throws Exception the exception + */ + public String getCountryOrRegion() throws Exception { + return (String) this.propertyBag + .getSimplePropertyBag(PhysicalAddressSchema.CountryOrRegion); + } + + /** + * Sets the country or region. + * + * @param value the new country or region + */ + public void setCountryOrRegion(String value) { + this.propertyBag.setSimplePropertyBag( + PhysicalAddressSchema.CountryOrRegion, value); + } + + /** + * Gets the postal code. + * + * @return the postal code + */ + public String getPostalCode() { + return (String) this.propertyBag + .getSimplePropertyBag(PhysicalAddressSchema.PostalCode); + } + + /** + * Sets the postal code. + * + * @param value the new postal code + */ + public void setPostalCode(String value) { + this.propertyBag.setSimplePropertyBag(PhysicalAddressSchema.PostalCode, + value); + } + + /** + * Clears the change log. + */ + @Override + protected void clearChangeLog() { + this.propertyBag.clearChangeLog(); + } + + /** + * Writes elements to XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (PhysicalAddressSchema.getXmlElementNames().contains( + reader.getLocalName())) { + this.propertyBag.setSimplePropertyBag(reader.getLocalName(), reader + .readElementValue()); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + for (String xmlElementName : PhysicalAddressSchema.getXmlElementNames()) { + writer.writeElementValue(XmlNamespace.Types, xmlElementName, + this.propertyBag.getSimplePropertyBag(xmlElementName)); + + } + } + + /** + * Writes the update to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @param ownerDictionaryXmlElementName the owner dictionary xml element name + * @return True if update XML was written. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, String ownerDictionaryXmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + List fieldsToSet = new ArrayList(); + + for (String xmlElementName : this.propertyBag.getAddedItems()) { + fieldsToSet.add(xmlElementName); + } + + for (String xmlElementName : this.propertyBag.getModifiedItems()) { + fieldsToSet.add(xmlElementName); + } + + for (String xmlElementName : fieldsToSet) { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getSetFieldXmlElementName()); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.IndexedFieldURI); + writer.writeAttributeValue(XmlAttributeNames.FieldURI, + getFieldUri(xmlElementName)); + writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this + .getKey().toString()); + writer.writeEndElement(); // IndexedFieldURI + + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getXmlElementName()); + writer.writeStartElement(XmlNamespace.Types, + ownerDictionaryXmlElementName); + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Entry); + this.writeAttributesToXml(writer); + writer.writeElementValue(XmlNamespace.Types, xmlElementName, + this.propertyBag.getSimplePropertyBag(xmlElementName)); + writer.writeEndElement(); // Entry + writer.writeEndElement(); // ownerDictionaryXmlElementName + writer.writeEndElement(); // ewsObject.GetXmlElementName() + + writer.writeEndElement(); // ewsObject.GetSetFieldXmlElementName() + } + + for (String xmlElementName : this.propertyBag.getRemovedItems()) { + this.internalWriteDeleteFieldToXml(writer, ewsObject, + xmlElementName); + } + + return true; + } + + /** + * Writes the delete update to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @return True if update XML was written. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject) throws XMLStreamException, + ServiceXmlSerializationException { + for (String xmlElementName : PhysicalAddressSchema.getXmlElementNames()) { + this.internalWriteDeleteFieldToXml(writer, ewsObject, + xmlElementName); + } + return true; + } + + /** + * Gets the field URI. + * + * @param xmlElementName the xml element name + * @return Field URI. + */ + private static String getFieldUri(String xmlElementName) { + return "contacts:PhysicalAddress:" + xmlElementName; + } + + /** + * Property bag was changed. + */ + private void propertyBagChanged() { + this.changed(); + } + + /** + * Write field deletion to XML. + * + * @param writer the writer + * @param ewsObject the ews object + * @param fieldXmlElementName the field xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void internalWriteDeleteFieldToXml(EwsServiceXmlWriter writer, + ServiceObject ewsObject, String fieldXmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, ewsObject + .getDeleteFieldXmlElementName()); + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.IndexedFieldURI); + writer.writeAttributeValue(XmlAttributeNames.FieldURI, + getFieldUri(fieldXmlElementName)); + writer.writeAttributeValue(XmlAttributeNames.FieldIndex, this.getKey() + .toString()); + writer.writeEndElement(); // IndexedFieldURI + writer.writeEndElement(); // ewsObject.GetDeleteFieldXmlElementName() + } + + /** + * Schema definition for PhysicalAddress. + */ + private static class PhysicalAddressSchema { + + /** + * The Constant Street. + */ + public static final String Street = "Street"; + + /** + * The Constant City. + */ + public static final String City = "City"; + + /** + * The Constant State. + */ + public static final String State = "State"; + + /** + * The Constant CountryOrRegion. + */ + public static final String CountryOrRegion = "CountryOrRegion"; + + /** + * The Constant PostalCode. + */ + public static final String PostalCode = "PostalCode"; + + /** + * List of XML element names. + */ + private static LazyMember> xmlElementNames = + new LazyMember>( + + new ILazyMember>() { + @Override + public List createInstance() { + List result = new ArrayList(); + result.add(Street); + result.add(City); + result.add(State); + result.add(CountryOrRegion); + result.add(PostalCode); + return result; + } + }); + + /** + * Gets the XML element names. + * + * @return The XML element names. + */ + public static List getXmlElementNames() { + return xmlElementNames.getMember(); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java index 678d9533c..7d7524892 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java @@ -15,19 +15,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum PhysicalAddressIndex { - // None. - /** The None. */ - None, + // None. + /** + * The None. + */ + None, - // The business address. - /** The Business. */ - Business, + // The business address. + /** + * The Business. + */ + Business, - // The home address. - /** The Home. */ - Home, + // The home address. + /** + * The Home. + */ + Home, - // The alternate address. - /** The Other. */ - Other + // The alternate address. + /** + * The Other. + */ + Other } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java index 067d66a32..d034e3b0a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java @@ -15,16 +15,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum PhysicalAddressKey { - // The business address. - /** The Business. */ - Business, + // The business address. + /** + * The Business. + */ + Business, - // The home address. - /** The Home. */ - Home, + // The home address. + /** + * The Home. + */ + Home, - // An alternate address. - /** The Other. */ - Other + // An alternate address. + /** + * The Other. + */ + Other } diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index 15bb6cc4a..4934fbdd6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -15,140 +15,136 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class PlayOnPhoneRequest extends SimpleServiceRequestBase { - /** The item id. */ - private ItemId itemId; - - /** The dial string. */ - private String dialString; - - /** - * Initializes a new instance of the PlayOnPhoneRequest class. - * - * @param service - * the service - * @throws Exception - */ - protected PlayOnPhoneRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.PlayOnPhone; - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.itemId.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ItemId); - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.DialString, dialString); - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name, - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.PlayOnPhoneResponse; - } - - /** - * Parses the response. - * - * @param reader - * the reader - * @return Response object. - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - PlayOnPhoneResponse serviceResponse = new PlayOnPhoneResponse(this - .getService()); - serviceResponse - .loadFromXml(reader, XmlElementNames.PlayOnPhoneResponse); - return serviceResponse; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } - - /** - * Executes this request. - * - * @return Service response. - * @throws Exception - * the exception - */ - protected PlayOnPhoneResponse execute() throws Exception { - PlayOnPhoneResponse serviceResponse = (PlayOnPhoneResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } - - /** - * Gets the item id of the message to play. - * - * @return the item id - */ - protected ItemId getItemId() { - return this.itemId; - } - - /** - * Sets the item id. - * - * @param itemId - * the new item id - */ - protected void setItemId(ItemId itemId) { - this.itemId = itemId; - } - - /** - * Gets the dial string. - * - * @return the dial string - */ - protected String getDialString() { - return this.dialString; - } - - /** - * Sets the dial string. - * - * @param dialString - * the new dial string - */ - protected void setDialString(String dialString) { - this.dialString = dialString; - } + /** + * The item id. + */ + private ItemId itemId; + + /** + * The dial string. + */ + private String dialString; + + /** + * Initializes a new instance of the PlayOnPhoneRequest class. + * + * @param service the service + * @throws Exception + */ + protected PlayOnPhoneRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.PlayOnPhone; + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.itemId.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ItemId); + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.DialString, dialString); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name, + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.PlayOnPhoneResponse; + } + + /** + * Parses the response. + * + * @param reader the reader + * @return Response object. + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + PlayOnPhoneResponse serviceResponse = new PlayOnPhoneResponse(this + .getService()); + serviceResponse + .loadFromXml(reader, XmlElementNames.PlayOnPhoneResponse); + return serviceResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } + + /** + * Executes this request. + * + * @return Service response. + * @throws Exception the exception + */ + protected PlayOnPhoneResponse execute() throws Exception { + PlayOnPhoneResponse serviceResponse = (PlayOnPhoneResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } + + /** + * Gets the item id of the message to play. + * + * @return the item id + */ + protected ItemId getItemId() { + return this.itemId; + } + + /** + * Sets the item id. + * + * @param itemId the new item id + */ + protected void setItemId(ItemId itemId) { + this.itemId = itemId; + } + + /** + * Gets the dial string. + * + * @return the dial string + */ + protected String getDialString() { + return this.dialString; + } + + /** + * Sets the dial string. + * + * @param dialString the new dial string + */ + protected void setDialString(String dialString) { + this.dialString = dialString; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java index 4694bffe9..b1f65afc0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java @@ -15,49 +15,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class PlayOnPhoneResponse extends ServiceResponse { - /** The phone call id. */ - private PhoneCallId phoneCallId; - - /** - * Initializes a new instance of the PlayOnPhoneResponse class. - * - * @param service - * the service - */ - protected PlayOnPhoneResponse(ExchangeService service) { - super(); - EwsUtilities.EwsAssert(service != null, "PlayOnPhoneResponse.ctor", - "service is null"); - - this.phoneCallId = new PhoneCallId(); - } - - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.PhoneCallId); - this.phoneCallId.loadFromXml(reader, XmlNamespace.Messages, - XmlElementNames.PhoneCallId); - reader.readEndElementIfNecessary(XmlNamespace.Messages, - XmlElementNames.PhoneCallId); - } - - /** - * Gets the Id of the phone call. - * - * @return the phone call id - */ - protected PhoneCallId getPhoneCallId() { - return phoneCallId; - } + /** + * The phone call id. + */ + private PhoneCallId phoneCallId; + + /** + * Initializes a new instance of the PlayOnPhoneResponse class. + * + * @param service the service + */ + protected PlayOnPhoneResponse(ExchangeService service) { + super(); + EwsUtilities.EwsAssert(service != null, "PlayOnPhoneResponse.ctor", + "service is null"); + + this.phoneCallId = new PhoneCallId(); + } + + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.PhoneCallId); + this.phoneCallId.loadFromXml(reader, XmlNamespace.Messages, + XmlElementNames.PhoneCallId); + reader.readEndElementIfNecessary(XmlNamespace.Messages, + XmlElementNames.PhoneCallId); + } + + /** + * Gets the Id of the phone call. + * + * @return the phone call id + */ + protected PhoneCallId getPhoneCallId() { + return phoneCallId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItem.java b/src/main/java/microsoft/exchange/webservices/data/PostItem.java index 6ac9c0fc1..af9b73e90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItem.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItem.java @@ -17,356 +17,314 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a post item. Properties available on post items are defined in the * PostItemSchema class. - * */ @Attachable @ServiceObjectDefinition(xmlElementName = XmlElementNames.PostItem) public final class PostItem extends Item { - /** - * Initializes an unsaved local instance of PostItem.To bind to an existing - * post item, use PostItem.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public PostItem(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of PostItem.To bind to an existing + * post item, use PostItem.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + public PostItem(ExchangeService service) throws Exception { + super(service); + } - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * the parent attachment - * @throws Exception - * the exception - */ - protected PostItem(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } + /** + * Initializes a new instance of the class. + * + * @param parentAttachment the parent attachment + * @throws Exception the exception + */ + protected PostItem(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } - /** - * Binds to an existing post item and loads the specified set of properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return An PostItem instance representing the post item corresponding to - * the specified Id. - * @throws Exception - * the exception - */ - public static PostItem bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(PostItem.class, id, propertySet); - } + /** + * Binds to an existing post item and loads the specified set of properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return An PostItem instance representing the post item corresponding to + * the specified Id. + * @throws Exception the exception + */ + public static PostItem bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(PostItem.class, id, propertySet); + } - /** - * Binds to an existing post item and loads its first class properties. - * calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return An PostItem instance representing the post item corresponding to - * the specified Id. - * @throws Exception - * the exception - */ - public static PostItem bind(ExchangeService service, ItemId id) - throws Exception { - return PostItem - .bind(service, id, PropertySet.getFirstClassProperties()); - } + /** + * Binds to an existing post item and loads its first class properties. + * calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return An PostItem instance representing the post item corresponding to + * the specified Id. + * @throws Exception the exception + */ + public static PostItem bind(ExchangeService service, ItemId id) + throws Exception { + return PostItem + .bind(service, id, PropertySet.getFirstClassProperties()); + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return PostItemSchema.Instance; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return PostItemSchema.Instance; + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Creates a post reply to this post item. - * - * @return A PostReply that can be modified and saved. - * @throws Exception - * the exception - */ - public PostReply createPostReply() throws Exception { - this.throwIfThisIsNew(); - return new PostReply(this); - } + /** + * Creates a post reply to this post item. + * + * @return A PostReply that can be modified and saved. + * @throws Exception the exception + */ + public PostReply createPostReply() throws Exception { + this.throwIfThisIsNew(); + return new PostReply(this); + } - /** - * Posts a reply to this post item. Calling this method results in a call to - * EWS. - * - * @param bodyPrefix - * the body prefix - * @throws Exception - * the exception - */ - public void postReply(MessageBody bodyPrefix) throws Exception { - PostReply postReply = this.createPostReply(); - postReply.setBodyPrefix(bodyPrefix); - postReply.save(); - } + /** + * Posts a reply to this post item. Calling this method results in a call to + * EWS. + * + * @param bodyPrefix the body prefix + * @throws Exception the exception + */ + public void postReply(MessageBody bodyPrefix) throws Exception { + PostReply postReply = this.createPostReply(); + postReply.setBodyPrefix(bodyPrefix); + postReply.save(); + } - /** - * Creates a e-mail reply response to the post item. - * - * @param replyAll - * the reply all - * @return A ResponseMessage representing the e-mail reply response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createReply(boolean replyAll) throws Exception { - this.throwIfThisIsNew(); - return new ResponseMessage(this, - replyAll ? ResponseMessageType.ReplyAll : - ResponseMessageType.Reply); - } + /** + * Creates a e-mail reply response to the post item. + * + * @param replyAll the reply all + * @return A ResponseMessage representing the e-mail reply response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createReply(boolean replyAll) throws Exception { + this.throwIfThisIsNew(); + return new ResponseMessage(this, + replyAll ? ResponseMessageType.ReplyAll : + ResponseMessageType.Reply); + } - /** - * Replies to the post item. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param replyAll - * the reply all - * @throws Exception - * the exception - */ - public void reply(MessageBody bodyPrefix, boolean replyAll) - throws Exception { - ResponseMessage responseMessage = this.createReply(replyAll); - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.sendAndSaveCopy(); - } + /** + * Replies to the post item. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param replyAll the reply all + * @throws Exception the exception + */ + public void reply(MessageBody bodyPrefix, boolean replyAll) + throws Exception { + ResponseMessage responseMessage = this.createReply(replyAll); + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.sendAndSaveCopy(); + } - /** - * Creates a forward response to the post item. - * - * @return A ResponseMessage representing the forward response that can - * subsequently be modified and sent. - * @throws Exception - * the exception - */ - public ResponseMessage createForward() throws Exception { - this.throwIfThisIsNew(); - return new ResponseMessage(this, ResponseMessageType.Forward); - } + /** + * Creates a forward response to the post item. + * + * @return A ResponseMessage representing the forward response that can + * subsequently be modified and sent. + * @throws Exception the exception + */ + public ResponseMessage createForward() throws Exception { + this.throwIfThisIsNew(); + return new ResponseMessage(this, ResponseMessageType.Forward); + } - /** - * Forwards the post item. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) - throws Exception { - List list = new ArrayList(); - for (EmailAddress address : toRecipients) { - list.add(address); - } - this.forward(bodyPrefix, list); - } + /** + * Forwards the post item. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) + throws Exception { + List list = new ArrayList(); + for (EmailAddress address : toRecipients) { + list.add(address); + } + this.forward(bodyPrefix, list); + } - /** - * Forwards the post item. Calling this method results in a call to EWS. - * - * @param bodyPrefix - * the body prefix - * @param toRecipients - * the to recipients - * @throws Exception - * the exception - */ - public void forward(MessageBody bodyPrefix, - Iterable toRecipients) throws Exception { - ResponseMessage responseMessage = this.createForward(); - responseMessage.setBodyPrefix(bodyPrefix); - responseMessage.getToRecipients() - .addEmailRange(toRecipients.iterator()); + /** + * Forwards the post item. Calling this method results in a call to EWS. + * + * @param bodyPrefix the body prefix + * @param toRecipients the to recipients + * @throws Exception the exception + */ + public void forward(MessageBody bodyPrefix, + Iterable toRecipients) throws Exception { + ResponseMessage responseMessage = this.createForward(); + responseMessage.setBodyPrefix(bodyPrefix); + responseMessage.getToRecipients() + .addEmailRange(toRecipients.iterator()); - responseMessage.sendAndSaveCopy(); - } + responseMessage.sendAndSaveCopy(); + } - // Properties - /** - * Gets the conversation index of the post item. - * - * @return the conversation index - * @throws ServiceLocalException - * the service local exception - */ - public byte[] getConversationIndex() throws ServiceLocalException { - return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.ConversationIndex); - } + // Properties - /** - * Gets the conversation topic of the post item. - * - * @return the conversation topic - * @throws ServiceLocalException - * the service local exception - */ - public String getConversationTopic() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.ConversationTopic); - } + /** + * Gets the conversation index of the post item. + * + * @return the conversation index + * @throws ServiceLocalException the service local exception + */ + public byte[] getConversationIndex() throws ServiceLocalException { + return (byte[]) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.ConversationIndex); + } - /** - * Gets the "on behalf" poster of the post item. - * - * @return the from - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getFrom() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(EmailMessageSchema.From); - } + /** + * Gets the conversation topic of the post item. + * + * @return the conversation topic + * @throws ServiceLocalException the service local exception + */ + public String getConversationTopic() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.ConversationTopic); + } - /** - * Sets the from. - * - * @param value - * the new from - * @throws Exception - * the exception - */ - public void setFrom(EmailAddress value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.From, value); - } + /** + * Gets the "on behalf" poster of the post item. + * + * @return the from + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getFrom() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(EmailMessageSchema.From); + } - /** - * Gets the Internet message Id of the post item. - * - * @return the internet message id - * @throws ServiceLocalException - * the service local exception - */ - public String getInternetMessageId() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.InternetMessageId); - } + /** + * Sets the from. + * + * @param value the new from + * @throws Exception the exception + */ + public void setFrom(EmailAddress value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.From, value); + } - /** - * Gets a value indicating whether the post item is read. - * - * @return the checks if is read - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsRead() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.IsRead); - } + /** + * Gets the Internet message Id of the post item. + * + * @return the internet message id + * @throws ServiceLocalException the service local exception + */ + public String getInternetMessageId() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.InternetMessageId); + } - /** - * Sets the checks if is read. - * - * @param value - * the new checks if is read - * @throws Exception - * the exception - */ - public void setIsRead(Boolean value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.IsRead, value); - } + /** + * Gets a value indicating whether the post item is read. + * + * @return the checks if is read + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsRead() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.IsRead); + } - /** - * Gets the the date and time when the post item was posted. - * - * @return the posted time - * @throws ServiceLocalException - * the service local exception - */ - public Date getPostedTime() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - PostItemSchema.PostedTime); - } + /** + * Sets the checks if is read. + * + * @param value the new checks if is read + * @throws Exception the exception + */ + public void setIsRead(Boolean value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.IsRead, value); + } - /** - * Gets the references of the post item. - * - * @return the references - * @throws ServiceLocalException - * the service local exception - */ - public String getReferences() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - EmailMessageSchema.References); - } + /** + * Gets the the date and time when the post item was posted. + * + * @return the posted time + * @throws ServiceLocalException the service local exception + */ + public Date getPostedTime() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + PostItemSchema.PostedTime); + } - /** - * Sets the checks if is read. - * - * @param value - * the new checks if is read - * @throws Exception - * the exception - */ - public void setIsRead(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.References, value); - } + /** + * Gets the references of the post item. + * + * @return the references + * @throws ServiceLocalException the service local exception + */ + public String getReferences() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + EmailMessageSchema.References); + } - /** - * Gets the sender (poster) of the post item. - * - * @return the sender - * @throws ServiceLocalException - * the service local exception - */ - public EmailAddress getSender() throws ServiceLocalException { - return (EmailAddress) this.getPropertyBag() - .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); - } + /** + * Sets the checks if is read. + * + * @param value the new checks if is read + * @throws Exception the exception + */ + public void setIsRead(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.References, value); + } - /** - * Sets the sender. - * - * @param value - * the new sender - * @throws Exception - * the exception - */ - public void setSender(EmailAddress value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.Sender, value); - } + /** + * Gets the sender (poster) of the post item. + * + * @return the sender + * @throws ServiceLocalException the service local exception + */ + public EmailAddress getSender() throws ServiceLocalException { + return (EmailAddress) this.getPropertyBag() + .getObjectFromPropertyDefinition(EmailMessageSchema.Sender); + } + + /** + * Sets the sender. + * + * @param value the new sender + * @throws Exception the exception + */ + public void setSender(EmailAddress value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.Sender, value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java index 37cb9857d..c4ab1124b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java @@ -14,96 +14,100 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the schema for post items. - * */ @Schema public final class PostItemSchema extends ItemSchema { - /** - * Field URIs for PostItem. - */ - private static interface FieldUris { - - /** The Posted time. */ - String PostedTime = "postitem:PostedTime"; - } - - /** - * Defines the ConversationIndex property. - */ - public static final PropertyDefinition ConversationIndex = - EmailMessageSchema.ConversationIndex; - - /** - * Defines the ConversationTopic property. - */ - public static final PropertyDefinition ConversationTopic = - EmailMessageSchema.ConversationTopic; - - /** - * Defines the From property. - */ - public static final PropertyDefinition From = EmailMessageSchema.From; - - /** - * Defines the InternetMessageId property. - */ - public static final PropertyDefinition InternetMessageId = - EmailMessageSchema.InternetMessageId; - - /** - * Defines the IsRead property. - */ - public static final PropertyDefinition IsRead = EmailMessageSchema.IsRead; - - /** - * Defines the PostedTime property. - */ - public static final PropertyDefinition PostedTime = - new DateTimePropertyDefinition( - XmlElementNames.PostedTime, FieldUris.PostedTime, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the References property. - */ - public static final PropertyDefinition References = - EmailMessageSchema.References; - - /** - * Defines the Sender property. - */ - public static final PropertyDefinition Sender = EmailMessageSchema.Sender; - - // This must be after the declaration of property definitions - /** The Constant Instance. */ - protected static final PostItemSchema Instance = new PostItemSchema(); - - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(ConversationIndex); - this.registerProperty(ConversationTopic); - this.registerProperty(From); - this.registerProperty(InternetMessageId); - this.registerProperty(IsRead); - this.registerProperty(PostedTime); - this.registerProperty(References); - this.registerProperty(Sender); - } - - /** - * Initializes a new instance of the PostItemSchema class. - */ - protected PostItemSchema() { - super(); - } -} \ No newline at end of file + /** + * Field URIs for PostItem. + */ + private static interface FieldUris { + + /** + * The Posted time. + */ + String PostedTime = "postitem:PostedTime"; + } + + + /** + * Defines the ConversationIndex property. + */ + public static final PropertyDefinition ConversationIndex = + EmailMessageSchema.ConversationIndex; + + /** + * Defines the ConversationTopic property. + */ + public static final PropertyDefinition ConversationTopic = + EmailMessageSchema.ConversationTopic; + + /** + * Defines the From property. + */ + public static final PropertyDefinition From = EmailMessageSchema.From; + + /** + * Defines the InternetMessageId property. + */ + public static final PropertyDefinition InternetMessageId = + EmailMessageSchema.InternetMessageId; + + /** + * Defines the IsRead property. + */ + public static final PropertyDefinition IsRead = EmailMessageSchema.IsRead; + + /** + * Defines the PostedTime property. + */ + public static final PropertyDefinition PostedTime = + new DateTimePropertyDefinition( + XmlElementNames.PostedTime, FieldUris.PostedTime, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the References property. + */ + public static final PropertyDefinition References = + EmailMessageSchema.References; + + /** + * Defines the Sender property. + */ + public static final PropertyDefinition Sender = EmailMessageSchema.Sender; + + // This must be after the declaration of property definitions + /** + * The Constant Instance. + */ + protected static final PostItemSchema Instance = new PostItemSchema(); + + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(ConversationIndex); + this.registerProperty(ConversationTopic); + this.registerProperty(From); + this.registerProperty(InternetMessageId); + this.registerProperty(IsRead); + this.registerProperty(PostedTime); + this.registerProperty(References); + this.registerProperty(Sender); + } + + /** + * Initializes a new instance of the PostItemSchema class. + */ + protected PostItemSchema() { + super(); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReply.java b/src/main/java/microsoft/exchange/webservices/data/PostReply.java index b745d477a..852beb155 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReply.java @@ -16,235 +16,212 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a reply to a post item. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.PostReplyItem, returnedByServer = false) -public final class PostReply extends ServiceObject{ - - /** The reference item. */ - private Item referenceItem; - - /** - * Initializes a new instance of the class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - protected PostReply(Item referenceItem) throws Exception { - super(referenceItem.getService()); - EwsUtilities.EwsAssert(referenceItem != null, "PostReply.ctor", - "referenceItem is null"); - referenceItem.throwIfThisIsNew(); - - this.referenceItem = referenceItem; - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - public ServiceObjectSchema getSchema() { - return PostReplySchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Create a PostItem response. - * - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @return Created PostItem. - * @throws Exception - * the exception - */ - protected PostItem internalCreate(FolderId parentFolderId, - MessageDisposition messageDisposition) throws Exception { - ((ItemId)this - .getObjectFromPropertyDefinition( - ResponseObjectSchema.ReferenceItemId)) - .assign(this.referenceItem.getId()); - - List items = this.getService().internalCreateResponseObject(this, - parentFolderId, messageDisposition); - - PostItem postItem = EwsUtilities.findFirstItemOfType(PostItem.class, - items); - - // This should never happen. If it does, we have a bug. - EwsUtilities - .EwsAssert(postItem != null, "PostReply.InternalCreate", - "postItem is null. The CreateItem call did" + - " not return the expected PostItem."); - - return postItem; - } - - /** - * Loads the specified set of properties on the object. - * - * @param propertySet - * the property set - * @throws InvalidOperationException - * the invalid operation exception - */ - @Override - protected void internalLoad(PropertySet propertySet) - throws InvalidOperationException { - throw new InvalidOperationException( - Strings.LoadingThisObjectTypeNotSupported); - } - - /** - * Deletes the object. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @throws InvalidOperationException - * the invalid operation exception - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) - throws InvalidOperationException { - throw new InvalidOperationException( - Strings.DeletingThisObjectTypeNotAuthorized); - } - - /** - * Saves the post reply in the same folder as the original post item. - * Calling this method results in a call to EWS. - * - * @return A PostItem representing the posted reply - * @throws Exception - * the exception - */ - public PostItem save() throws Exception { - return this.internalCreate(null, null); - } - - /** - * Saves the post reply in the same folder as the original post item. - * Calling this method results in a call to EWS. - * - * @param destinationFolderId - * the destination folder id - * @return A PostItem representing the posted reply - * @throws Exception - * the exception - */ - public PostItem save(FolderId destinationFolderId) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return this.internalCreate(destinationFolderId, null); - } - - /** - * Saves the post reply in a specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderName - * the destination folder name - * @return A PostItem representing the posted reply. - * @throws Exception - * the exception - */ - public PostItem save(WellKnownFolderName destinationFolderName) - throws Exception { - return this.internalCreate(new FolderId(destinationFolderName), null); - } - - /** - * Gets the subject of the post reply. - * - * @return the subject - * @throws Exception - * the exception - */ - public String getSubject() throws Exception { - return (String) this - .getObjectFromPropertyDefinition(EmailMessageSchema.Subject); - } - - /** - * Sets the subject. - * - * @param value - * the new subject - * @throws Exception - * the exception - */ - public void setSubject(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.Subject, value); - } - - /** - * Gets the body of the post reply. - * - * @return the body - * @throws Exception - * the exception - */ - public MessageBody getBody() throws Exception { - return (MessageBody) this - .getObjectFromPropertyDefinition(ItemSchema.Body); - } - - /** - * Sets the body. - * - * @param value - * the new body - * @throws Exception - * the exception - */ - public void setBody(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, - value); - } - - /** - * Gets the body prefix that should be prepended to the original - * post item's body. - * - * @return the body prefix - * @throws Exception - * the exception - */ - public MessageBody getBodyPrefix() throws Exception { - return (MessageBody) this - .getObjectFromPropertyDefinition( - ResponseObjectSchema.BodyPrefix); - } - - /** - * Sets the body prefix. - * - * @param value - * the new body prefix - * @throws Exception - * the exception - */ - public void setBodyPrefix(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ResponseObjectSchema.BodyPrefix, value); - } +public final class PostReply extends ServiceObject { + + /** + * The reference item. + */ + private Item referenceItem; + + /** + * Initializes a new instance of the class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + protected PostReply(Item referenceItem) throws Exception { + super(referenceItem.getService()); + EwsUtilities.EwsAssert(referenceItem != null, "PostReply.ctor", + "referenceItem is null"); + referenceItem.throwIfThisIsNew(); + + this.referenceItem = referenceItem; + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + public ServiceObjectSchema getSchema() { + return PostReplySchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Create a PostItem response. + * + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @return Created PostItem. + * @throws Exception the exception + */ + protected PostItem internalCreate(FolderId parentFolderId, + MessageDisposition messageDisposition) throws Exception { + ((ItemId) this + .getObjectFromPropertyDefinition( + ResponseObjectSchema.ReferenceItemId)) + .assign(this.referenceItem.getId()); + + List items = this.getService().internalCreateResponseObject(this, + parentFolderId, messageDisposition); + + PostItem postItem = EwsUtilities.findFirstItemOfType(PostItem.class, + items); + + // This should never happen. If it does, we have a bug. + EwsUtilities + .EwsAssert(postItem != null, "PostReply.InternalCreate", + "postItem is null. The CreateItem call did" + + " not return the expected PostItem."); + + return postItem; + } + + /** + * Loads the specified set of properties on the object. + * + * @param propertySet the property set + * @throws InvalidOperationException the invalid operation exception + */ + @Override + protected void internalLoad(PropertySet propertySet) + throws InvalidOperationException { + throw new InvalidOperationException( + Strings.LoadingThisObjectTypeNotSupported); + } + + /** + * Deletes the object. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @throws InvalidOperationException the invalid operation exception + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) + throws InvalidOperationException { + throw new InvalidOperationException( + Strings.DeletingThisObjectTypeNotAuthorized); + } + + /** + * Saves the post reply in the same folder as the original post item. + * Calling this method results in a call to EWS. + * + * @return A PostItem representing the posted reply + * @throws Exception the exception + */ + public PostItem save() throws Exception { + return this.internalCreate(null, null); + } + + /** + * Saves the post reply in the same folder as the original post item. + * Calling this method results in a call to EWS. + * + * @param destinationFolderId the destination folder id + * @return A PostItem representing the posted reply + * @throws Exception the exception + */ + public PostItem save(FolderId destinationFolderId) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return this.internalCreate(destinationFolderId, null); + } + + /** + * Saves the post reply in a specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderName the destination folder name + * @return A PostItem representing the posted reply. + * @throws Exception the exception + */ + public PostItem save(WellKnownFolderName destinationFolderName) + throws Exception { + return this.internalCreate(new FolderId(destinationFolderName), null); + } + + /** + * Gets the subject of the post reply. + * + * @return the subject + * @throws Exception the exception + */ + public String getSubject() throws Exception { + return (String) this + .getObjectFromPropertyDefinition(EmailMessageSchema.Subject); + } + + /** + * Sets the subject. + * + * @param value the new subject + * @throws Exception the exception + */ + public void setSubject(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.Subject, value); + } + + /** + * Gets the body of the post reply. + * + * @return the body + * @throws Exception the exception + */ + public MessageBody getBody() throws Exception { + return (MessageBody) this + .getObjectFromPropertyDefinition(ItemSchema.Body); + } + + /** + * Sets the body. + * + * @param value the new body + * @throws Exception the exception + */ + public void setBody(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, + value); + } + + /** + * Gets the body prefix that should be prepended to the original + * post item's body. + * + * @return the body prefix + * @throws Exception the exception + */ + public MessageBody getBodyPrefix() throws Exception { + return (MessageBody) this + .getObjectFromPropertyDefinition( + ResponseObjectSchema.BodyPrefix); + } + + /** + * Sets the body prefix. + * + * @param value the new body prefix + * @throws Exception the exception + */ + public void setBodyPrefix(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ResponseObjectSchema.BodyPrefix, value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java index ed157182e..ef3e88ec5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java @@ -12,27 +12,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents PostReply schema definition. - * */ final class PostReplySchema extends ServiceObjectSchema { - // This must be declared after the property definitions - /** The Constant Instance. */ - static final PostReplySchema Instance = new PostReplySchema(); + // This must be declared after the property definitions + /** + * The Constant Instance. + */ + static final PostReplySchema Instance = new PostReplySchema(); - /** - * Registers properties. - * - * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - * same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); + /** + * Registers properties. + *

+ * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + * same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); - this.registerProperty(ItemSchema.Subject); - this.registerProperty(ItemSchema.Body); - this.registerProperty(ResponseObjectSchema.ReferenceItemId); - this.registerProperty(ResponseObjectSchema.BodyPrefix); - } -} \ No newline at end of file + this.registerProperty(ItemSchema.Subject); + this.registerProperty(ItemSchema.Body); + this.registerProperty(ResponseObjectSchema.ReferenceItemId); + this.registerProperty(ResponseObjectSchema.BodyPrefix); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index 024282108..d3737188b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -10,880 +10,853 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.Map.Entry; /** * Represents a property bag keyed on PropertyDefinition objects. */ class PropertyBag implements IComplexPropertyChanged, - IComplexPropertyChangedDelegate { - - /** The owner. */ - private ServiceObject owner; - - /** The is dirty. */ - private boolean isDirty; - - /** The loading. */ - private boolean loading; - - /** The only summary properties requested. */ - private boolean onlySummaryPropertiesRequested; - - /** The loaded properties. */ - private List loadedProperties = - new ArrayList(); - - /** The properties. */ - private Map properties = - new HashMap(); - - /** The deleted properties. */ - private Map deletedProperties = - new HashMap(); - - /** The modified properties. */ - private List modifiedProperties = - new ArrayList(); - - /** The added properties. */ - private List addedProperties = - new ArrayList(); - - /** The requested property set. */ - private PropertySet requestedPropertySet; - - /** - * Initializes a new instance of PropertyBag. - * - * @param owner - * The owner of the bag. - */ - protected PropertyBag(ServiceObject owner) { - EwsUtilities.EwsAssert(owner != null, "PropertyBag.ctor", - "owner is null"); - - this.owner = owner; - } - - /** - * Gets a Map holding the bag's properties. - * - * @return A Map holding the bag's properties. - */ - protected Map getProperties() { - return this.properties; - } - - /** - * Gets the owner of this bag. - * - * @return The owner of this bag. - */ - protected ServiceObject getOwner() { - return this.owner; - } - - /** - * Indicates if a bag has pending changes. - * - * @return True if the bag has pending changes, false otherwise. - */ - protected boolean getIsDirty() { - int changes = this.modifiedProperties.size() + - this.deletedProperties.size() + this.addedProperties.size(); - return changes > 0 || this.isDirty; - } - - /** - * Adds the specified property to the specified change list if it is not - * already present. - * - * @param propertyDefinition - * The property to add to the change list. - * @param changeList - * The change list to add the property to. - */ - protected static void addToChangeList( - PropertyDefinition propertyDefinition, - List changeList) { - if (!changeList.contains(propertyDefinition)) { - changeList.add(propertyDefinition); - } - } - - /** - * Checks if is property loaded. - * - * @param propertyDefinition - * the property definition - * @return true, if is property loaded - */ - protected boolean isPropertyLoaded(PropertyDefinition propertyDefinition) { - // Is the property loaded? - if (this.loadedProperties.contains(propertyDefinition)) { - return true; - } else { - // Was the property requested? - return this.isRequestedProperty(propertyDefinition); - } - } - - /** - * Checks if is requested property. - * - * @param propertyDefinition - * the property definition - * @return true, if is requested property - */ - private boolean isRequestedProperty(PropertyDefinition propertyDefinition) { - // If no requested property set, then property wasn't requested. - if (this.requestedPropertySet == null) { - return false; - } - - // If base property set is all first-class properties, use the - // appropriate list of - // property definitions to see if this property was requested. - // Otherwise, property had - // to be explicitly requested and needs to be listed in - // AdditionalProperties. - if (this.requestedPropertySet.getBasePropertySet() == BasePropertySet.FirstClassProperties) { - List firstClassProps = - this.onlySummaryPropertiesRequested ? this - .getOwner().getSchema().getFirstClassSummaryProperties() : - this.getOwner().getSchema().getFirstClassProperties(); - - return firstClassProps.contains(propertyDefinition) || - this.requestedPropertySet.contains(propertyDefinition); - } else { - return this.requestedPropertySet.contains(propertyDefinition); - } - } - - /** - * Determines whether the specified property has been updated. - * - * @param propertyDefinition - * The property definition. - * @return true if the specified property has been updated; otherwise, - * false. - */ - protected boolean isPropertyUpdated(PropertyDefinition propertyDefinition) { - return this.modifiedProperties.contains(propertyDefinition) || - this.addedProperties.contains(propertyDefinition); - } - - /** - * Tries to get a property value based on a property definition. - * - * @param propertyDefinition - * The property definition. - * @param propertyValueOutParam - * The property value. - * @return True if property was retrieved. - */ - protected boolean tryGetProperty(PropertyDefinition propertyDefinition, - OutParam propertyValueOutParam) { - OutParam serviceExceptionOutParam = - new OutParam(); - propertyValueOutParam.setParam(this.getPropertyValueOrException( - propertyDefinition, serviceExceptionOutParam)); - return serviceExceptionOutParam.getParam() == null; - } - - /** - * Tries to get a property value based on a property definition. - * - * @param - * The types of the property. - * @param propertyDefinition - * The property definition. - * @param propertyValue - * The property value. - * @return True if property was retrieved. - * @throws ArgumentException - */ - protected boolean tryGetPropertyType(Class cls, - PropertyDefinition propertyDefinition, - OutParam propertyValue) throws ArgumentException { - // Verify that the type parameter and - //property definition's type are compatible. - if (!cls.isAssignableFrom(propertyDefinition.getType())){ - String errorMessage = String.format( - Strings.PropertyDefinitionTypeMismatch, - EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), - EwsUtilities.getPrintableTypeName(cls)); - throw new ArgumentException(errorMessage, "propertyDefinition"); + IComplexPropertyChangedDelegate { + + /** + * The owner. + */ + private ServiceObject owner; + + /** + * The is dirty. + */ + private boolean isDirty; + + /** + * The loading. + */ + private boolean loading; + + /** + * The only summary properties requested. + */ + private boolean onlySummaryPropertiesRequested; + + /** + * The loaded properties. + */ + private List loadedProperties = + new ArrayList(); + + /** + * The properties. + */ + private Map properties = + new HashMap(); + + /** + * The deleted properties. + */ + private Map deletedProperties = + new HashMap(); + + /** + * The modified properties. + */ + private List modifiedProperties = + new ArrayList(); + + /** + * The added properties. + */ + private List addedProperties = + new ArrayList(); + + /** + * The requested property set. + */ + private PropertySet requestedPropertySet; + + /** + * Initializes a new instance of PropertyBag. + * + * @param owner The owner of the bag. + */ + protected PropertyBag(ServiceObject owner) { + EwsUtilities.EwsAssert(owner != null, "PropertyBag.ctor", + "owner is null"); + + this.owner = owner; + } + + /** + * Gets a Map holding the bag's properties. + * + * @return A Map holding the bag's properties. + */ + protected Map getProperties() { + return this.properties; + } + + /** + * Gets the owner of this bag. + * + * @return The owner of this bag. + */ + protected ServiceObject getOwner() { + return this.owner; + } + + /** + * Indicates if a bag has pending changes. + * + * @return True if the bag has pending changes, false otherwise. + */ + protected boolean getIsDirty() { + int changes = this.modifiedProperties.size() + + this.deletedProperties.size() + this.addedProperties.size(); + return changes > 0 || this.isDirty; + } + + /** + * Adds the specified property to the specified change list if it is not + * already present. + * + * @param propertyDefinition The property to add to the change list. + * @param changeList The change list to add the property to. + */ + protected static void addToChangeList( + PropertyDefinition propertyDefinition, + List changeList) { + if (!changeList.contains(propertyDefinition)) { + changeList.add(propertyDefinition); + } + } + + /** + * Checks if is property loaded. + * + * @param propertyDefinition the property definition + * @return true, if is property loaded + */ + protected boolean isPropertyLoaded(PropertyDefinition propertyDefinition) { + // Is the property loaded? + if (this.loadedProperties.contains(propertyDefinition)) { + return true; + } else { + // Was the property requested? + return this.isRequestedProperty(propertyDefinition); + } + } + + /** + * Checks if is requested property. + * + * @param propertyDefinition the property definition + * @return true, if is requested property + */ + private boolean isRequestedProperty(PropertyDefinition propertyDefinition) { + // If no requested property set, then property wasn't requested. + if (this.requestedPropertySet == null) { + return false; + } + + // If base property set is all first-class properties, use the + // appropriate list of + // property definitions to see if this property was requested. + // Otherwise, property had + // to be explicitly requested and needs to be listed in + // AdditionalProperties. + if (this.requestedPropertySet.getBasePropertySet() == BasePropertySet.FirstClassProperties) { + List firstClassProps = + this.onlySummaryPropertiesRequested ? this + .getOwner().getSchema().getFirstClassSummaryProperties() : + this.getOwner().getSchema().getFirstClassProperties(); + + return firstClassProps.contains(propertyDefinition) || + this.requestedPropertySet.contains(propertyDefinition); + } else { + return this.requestedPropertySet.contains(propertyDefinition); + } + } + + /** + * Determines whether the specified property has been updated. + * + * @param propertyDefinition The property definition. + * @return true if the specified property has been updated; otherwise, + * false. + */ + protected boolean isPropertyUpdated(PropertyDefinition propertyDefinition) { + return this.modifiedProperties.contains(propertyDefinition) || + this.addedProperties.contains(propertyDefinition); + } + + /** + * Tries to get a property value based on a property definition. + * + * @param propertyDefinition The property definition. + * @param propertyValueOutParam The property value. + * @return True if property was retrieved. + */ + protected boolean tryGetProperty(PropertyDefinition propertyDefinition, + OutParam propertyValueOutParam) { + OutParam serviceExceptionOutParam = + new OutParam(); + propertyValueOutParam.setParam(this.getPropertyValueOrException( + propertyDefinition, serviceExceptionOutParam)); + return serviceExceptionOutParam.getParam() == null; + } + + /** + * Tries to get a property value based on a property definition. + * + * @param The types of the property. + * @param propertyDefinition The property definition. + * @param propertyValue The property value. + * @return True if property was retrieved. + * @throws ArgumentException + */ + protected boolean tryGetPropertyType(Class cls, + PropertyDefinition propertyDefinition, + OutParam propertyValue) throws ArgumentException { + // Verify that the type parameter and + //property definition's type are compatible. + if (!cls.isAssignableFrom(propertyDefinition.getType())) { + String errorMessage = String.format( + Strings.PropertyDefinitionTypeMismatch, + EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), + EwsUtilities.getPrintableTypeName(cls)); + throw new ArgumentException(errorMessage, "propertyDefinition"); + } + + OutParam value = new OutParam(); + boolean result = this.tryGetProperty(propertyDefinition, value); + if (result) { + propertyValue.setParam((T) value.getParam()); + } else { + propertyValue.setParam(null); + } + + return result; + } + + + /** + * Gets the property value. + * + * @param propertyDefinition The property definition. + * @param serviceExceptionOutParam Exception that would be raised if there's an error retrieving + * the property. + * @return Property value. May be null. + */ + private Object getPropertyValueOrException( + PropertyDefinition propertyDefinition, + OutParam serviceExceptionOutParam) { + OutParam propertyValueOutParam = new OutParam(); + propertyValueOutParam.setParam(null); + serviceExceptionOutParam.setParam(null); + + if (propertyDefinition.getVersion().ordinal() > this.getOwner() + .getService().getRequestedServerVersion().ordinal()) { + serviceExceptionOutParam.setParam(new ServiceVersionException( + String.format( + Strings.PropertyIncompatibleWithRequestVersion, + propertyDefinition.getName(), propertyDefinition + .getVersion()))); + return null; + } + + if (this.tryGetValue(propertyDefinition, propertyValueOutParam)) { + // If the requested property is in the bag, return it. + return propertyValueOutParam.getParam(); + } else { + if (propertyDefinition + .hasFlag(PropertyDefinitionFlags.AutoInstantiateOnRead)) { + EwsUtilities + .EwsAssert( + propertyDefinition instanceof + ComplexPropertyDefinitionBase, + "PropertyBag.get_this[]", + "propertyDefinition is " + + "marked with AutoInstantiateOnRead " + + "but is not a descendant " + + "of ComplexPropertyDefinitionBase"); + + // The requested property is an auto-instantiate-on-read + // property + ComplexPropertyDefinitionBase complexPropertyDefinition = + (ComplexPropertyDefinitionBase) propertyDefinition; + Object propertyValue = complexPropertyDefinition + .createPropertyInstance(this.getOwner()); + propertyValueOutParam.setParam(propertyValue); + if (propertyValue != null) { + this.initComplexProperty((ComplexProperty) propertyValue); + this.properties.put(propertyDefinition, propertyValue); + } + } else { + // If the property is not the Id (we need to let developers read + // the Id when it's null) and if has + // not been loaded, we throw. + if (propertyDefinition != this.getOwner() + .getIdPropertyDefinition()) { + if (!this.isPropertyLoaded(propertyDefinition)) { + serviceExceptionOutParam + .setParam(new ServiceObjectPropertyException( + Strings. + MustLoadOrAssignPropertyBeforeAccess, + propertyDefinition)); + return null; + } + + // Non-nullable properties (int, bool, etc.) must be + // assigned or loaded; cannot return null value. + if (!propertyDefinition.isNullable()) { + String errorMessage = this + .isRequestedProperty(propertyDefinition) ? + Strings.ValuePropertyNotLoaded : + Strings.ValuePropertyNotAssigned; + serviceExceptionOutParam + .setParam(new ServiceObjectPropertyException( + errorMessage, propertyDefinition)); + } + } + } + return propertyValueOutParam.getParam(); + } + } + + /** + * Sets the isDirty flag to true and triggers dispatch of the change event + * to the owner of the property bag. Changed must be called whenever an + * operation that changes the state of this property bag is performed (e.g. + * adding or removing a property). + */ + protected void changed() { + this.isDirty = true; + this.getOwner().changed(); + } + + /** + * Determines whether the property bag contains a specific property. + * + * @param propertyDefinition The property to check against. + * @return True if the specified property is in the bag, false otherwise. + */ + protected boolean contains(PropertyDefinition propertyDefinition) { + return this.properties.containsKey(propertyDefinition); + } + + + + /** + * Tries to retrieve the value of the specified property. + * + * @param propertyDefinition The property for which to retrieve a value. + * @param propertyValueOutParam If the method succeeds, contains the value of the property. + * @return True if the value could be retrieved, false otherwise. + */ + protected boolean tryGetValue(PropertyDefinition propertyDefinition, + OutParam propertyValueOutParam) { + if (this.properties.containsKey(propertyDefinition)) { + propertyValueOutParam.setParam(this.properties + .get(propertyDefinition)); + return true; + } else { + propertyValueOutParam.setParam(null); + return false; + } + } + + /** + * Handles a change event for the specified property. + * + * @param complexProperty The property that changes. + */ + protected void propertyChanged(ComplexProperty complexProperty) { + Iterator> it = this.properties + .entrySet().iterator(); + while (it.hasNext()) { + Entry keyValuePair = it.next(); + if (keyValuePair.getValue().equals(complexProperty)) { + if (!this.deletedProperties.containsKey(keyValuePair.getKey())) { + addToChangeList(keyValuePair.getKey(), + this.modifiedProperties); + this.changed(); } + } + } + } + + /** + * Deletes the property from the bag. + * + * @param propertyDefinition The property to delete. + */ + protected void deleteProperty(PropertyDefinition propertyDefinition) { + if (!this.deletedProperties.containsKey(propertyDefinition)) { + Object propertyValue = null; + + if (this.properties.containsKey(propertyDefinition)) { + propertyValue = this.properties.get(propertyDefinition); + } + + this.properties.remove(propertyDefinition); + this.modifiedProperties.remove(propertyDefinition); + this.deletedProperties.put(propertyDefinition, propertyValue); + + if (propertyValue instanceof ComplexProperty) { + ComplexProperty complexProperty = + (ComplexProperty) propertyValue; + complexProperty.addOnChangeEvent(this); + } + } + } + + /** + * Clears the bag. + */ + protected void clear() { + this.clearChangeLog(); + this.properties.clear(); + this.loadedProperties.clear(); + this.requestedPropertySet = null; + } + + /** + * Clears the bag's change log. + */ + protected void clearChangeLog() { + this.deletedProperties.clear(); + this.modifiedProperties.clear(); + this.addedProperties.clear(); + + Iterator> it = this.properties + .entrySet().iterator(); + while (it.hasNext()) { + Entry keyValuePair = it.next(); + if (keyValuePair.getValue() instanceof ComplexProperty) { + ComplexProperty complexProperty = (ComplexProperty) keyValuePair + .getValue(); + complexProperty.clearChangeLog(); + } + } - OutParam value = new OutParam(); - boolean result = this.tryGetProperty(propertyDefinition, value); - if(result) { - propertyValue.setParam((T)value.getParam()); + this.isDirty = false; + } + + /** + * Loads properties from XML and inserts them in the bag. + * + * @param reader The reader from which to read the properties. + * @param clear Indicates whether the bag should be cleared before properties + * are loaded. + * @param requestedPropertySet The requested property set. + * @param onlySummaryPropertiesRequested Indicates whether summary or full properties were requested. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, boolean clear, + PropertySet requestedPropertySet, + boolean onlySummaryPropertiesRequested) throws Exception { + if (clear) { + this.clear(); + } + + // Put the property bag in "loading" mode. When in loading mode, no + // checking is done + // when setting property values. + this.loading = true; + + this.requestedPropertySet = requestedPropertySet; + this.onlySummaryPropertiesRequested = onlySummaryPropertiesRequested; + + try { + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + OutParam propertyDefinitionOut = + new OutParam(); + PropertyDefinition propertyDefinition; + + if (this.getOwner().schema().tryGetPropertyDefinition( + reader.getLocalName(), propertyDefinitionOut)) { + propertyDefinition = propertyDefinitionOut.getParam(); + propertyDefinition.loadPropertyValueFromXml(reader, + this); + + this.loadedProperties.add(propertyDefinition); + } else { + reader.skipCurrentElement(); + } } - else { - propertyValue.setParam(null); + } while (!reader.isEndElement(XmlNamespace.Types, this.getOwner() + .getXmlElementName())); + + this.clearChangeLog(); + } finally { + this.loading = false; + } + } + + /** + * Writes the bag's properties to XML. + * + * @param writer The writer to write the properties to. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + writer.writeStartElement(XmlNamespace.Types, this.getOwner() + .getXmlElementName()); + + Iterator it = this.getOwner().getSchema() + .iterator(); + while (it.hasNext()) { + PropertyDefinition propertyDefinition = it.next(); + // The following test should not be necessary since the property bag + // prevents + // properties to be set if they don't have the CanSet flag, but it + // doesn't hurt... + if (propertyDefinition + .hasFlag(PropertyDefinitionFlags.CanSet, writer.getService().getRequestedServerVersion())) { + if (this.contains(propertyDefinition)) { + propertyDefinition.writePropertyValueToXml(writer, this, + false /* isUpdateOperation */); } + } + } + + writer.writeEndElement(); + } + + /** + * Writes the EWS update operations corresponding to the changes that + * occurred in the bag to XML. + * + * @param writer The writer to write the updates to. + * @throws Exception the exception + */ + protected void writeToXmlForUpdate(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Types, this.getOwner() + .getChangeXmlElementName()); + + this.getOwner().getId().writeToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Updates); + + for (PropertyDefinition propertyDefinition : this.addedProperties) { + this.writeSetUpdateToXml(writer, propertyDefinition); + } - return result; + for (PropertyDefinition propertyDefinition : this.modifiedProperties) { + this.writeSetUpdateToXml(writer, propertyDefinition); } - - - /** - * Gets the property value. - * - * @param propertyDefinition - * The property definition. - * @param serviceExceptionOutParam - * Exception that would be raised if there's an error retrieving - * the property. - * @return Property value. May be null. - */ - private Object getPropertyValueOrException( - PropertyDefinition propertyDefinition, - OutParam serviceExceptionOutParam) { - OutParam propertyValueOutParam = new OutParam(); - propertyValueOutParam.setParam(null); - serviceExceptionOutParam.setParam(null); - - if (propertyDefinition.getVersion().ordinal() > this.getOwner() - .getService().getRequestedServerVersion().ordinal()) { - serviceExceptionOutParam.setParam(new ServiceVersionException( - String.format( - Strings.PropertyIncompatibleWithRequestVersion, - propertyDefinition.getName(), propertyDefinition - .getVersion()))); - return null; - } - - if (this.tryGetValue(propertyDefinition, propertyValueOutParam)) { - // If the requested property is in the bag, return it. - return propertyValueOutParam.getParam(); - } else { - if (propertyDefinition - .hasFlag(PropertyDefinitionFlags.AutoInstantiateOnRead)) { - EwsUtilities - .EwsAssert( - propertyDefinition instanceof - ComplexPropertyDefinitionBase, - "PropertyBag.get_this[]", - "propertyDefinition is " + - "marked with AutoInstantiateOnRead " + - "but is not a descendant " + - "of ComplexPropertyDefinitionBase"); - - // The requested property is an auto-instantiate-on-read - // property - ComplexPropertyDefinitionBase complexPropertyDefinition = - (ComplexPropertyDefinitionBase)propertyDefinition; - Object propertyValue = complexPropertyDefinition - .createPropertyInstance(this.getOwner()); - propertyValueOutParam.setParam(propertyValue); - if (propertyValue != null) { - this.initComplexProperty((ComplexProperty)propertyValue); - this.properties.put(propertyDefinition, propertyValue); - } - } else { - // If the property is not the Id (we need to let developers read - // the Id when it's null) and if has - // not been loaded, we throw. - if (propertyDefinition != this.getOwner() - .getIdPropertyDefinition()) { - if (!this.isPropertyLoaded(propertyDefinition)) { - serviceExceptionOutParam - .setParam(new ServiceObjectPropertyException( - Strings. - MustLoadOrAssignPropertyBeforeAccess, - propertyDefinition)); - return null; - } - - // Non-nullable properties (int, bool, etc.) must be - // assigned or loaded; cannot return null value. - if (!propertyDefinition.isNullable()) { - String errorMessage = this - .isRequestedProperty(propertyDefinition) ? - Strings.ValuePropertyNotLoaded : - Strings.ValuePropertyNotAssigned; - serviceExceptionOutParam - .setParam(new ServiceObjectPropertyException( - errorMessage, propertyDefinition)); - } - } - } - return propertyValueOutParam.getParam(); - } - } - - /** - * Sets the isDirty flag to true and triggers dispatch of the change event - * to the owner of the property bag. Changed must be called whenever an - * operation that changes the state of this property bag is performed (e.g. - * adding or removing a property). - */ - protected void changed() { - this.isDirty = true; - this.getOwner().changed(); - } - - /** - * Determines whether the property bag contains a specific property. - * - * @param propertyDefinition - * The property to check against. - * @return True if the specified property is in the bag, false otherwise. - */ - protected boolean contains(PropertyDefinition propertyDefinition) { - return this.properties.containsKey(propertyDefinition); - } - - - - /** - * Tries to retrieve the value of the specified property. - * - * @param propertyDefinition - * The property for which to retrieve a value. - * @param propertyValueOutParam - * If the method succeeds, contains the value of the property. - * @return True if the value could be retrieved, false otherwise. - */ - protected boolean tryGetValue(PropertyDefinition propertyDefinition, - OutParam propertyValueOutParam) { - if (this.properties.containsKey(propertyDefinition)) { - propertyValueOutParam.setParam(this.properties - .get(propertyDefinition)); - return true; - } else { - propertyValueOutParam.setParam(null); - return false; - } - } - - /** - * Handles a change event for the specified property. - * - * @param complexProperty - * The property that changes. - */ - protected void propertyChanged(ComplexProperty complexProperty) { - Iterator> it = this.properties - .entrySet().iterator(); - while (it.hasNext()) { - Entry keyValuePair = it.next(); - if (keyValuePair.getValue().equals(complexProperty)) { - if (!this.deletedProperties.containsKey(keyValuePair.getKey())) { - addToChangeList(keyValuePair.getKey(), - this.modifiedProperties); - this.changed(); - } - } - } - } - - /** - * Deletes the property from the bag. - * - * @param propertyDefinition - * The property to delete. - */ - protected void deleteProperty(PropertyDefinition propertyDefinition) { - if (!this.deletedProperties.containsKey(propertyDefinition)) { - Object propertyValue = null; - - if (this.properties.containsKey(propertyDefinition)) { - propertyValue = this.properties.get(propertyDefinition); - } - - this.properties.remove(propertyDefinition); - this.modifiedProperties.remove(propertyDefinition); - this.deletedProperties.put(propertyDefinition, propertyValue); - - if (propertyValue instanceof ComplexProperty) { - ComplexProperty complexProperty = - (ComplexProperty)propertyValue; - complexProperty.addOnChangeEvent(this); - } - } - } - - /** - * Clears the bag. - */ - protected void clear() { - this.clearChangeLog(); - this.properties.clear(); - this.loadedProperties.clear(); - this.requestedPropertySet = null; - } - - /** - * Clears the bag's change log. - */ - protected void clearChangeLog() { - this.deletedProperties.clear(); - this.modifiedProperties.clear(); - this.addedProperties.clear(); - - Iterator> it = this.properties - .entrySet().iterator(); - while (it.hasNext()) { - Entry keyValuePair = it.next(); - if (keyValuePair.getValue() instanceof ComplexProperty) { - ComplexProperty complexProperty = (ComplexProperty)keyValuePair - .getValue(); - complexProperty.clearChangeLog(); - } - } - - this.isDirty = false; - } - - /** - * Loads properties from XML and inserts them in the bag. - * - * @param reader - * The reader from which to read the properties. - * @param clear - * Indicates whether the bag should be cleared before properties - * are loaded. - * @param requestedPropertySet - * The requested property set. - * @param onlySummaryPropertiesRequested - * Indicates whether summary or full properties were requested. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, boolean clear, - PropertySet requestedPropertySet, - boolean onlySummaryPropertiesRequested) throws Exception { - if (clear) { - this.clear(); - } - - // Put the property bag in "loading" mode. When in loading mode, no - // checking is done - // when setting property values. - this.loading = true; - - this.requestedPropertySet = requestedPropertySet; - this.onlySummaryPropertiesRequested = onlySummaryPropertiesRequested; - - try { - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - OutParam propertyDefinitionOut = - new OutParam(); - PropertyDefinition propertyDefinition; - - if (this.getOwner().schema().tryGetPropertyDefinition( - reader.getLocalName(), propertyDefinitionOut)) { - propertyDefinition = propertyDefinitionOut.getParam(); - propertyDefinition.loadPropertyValueFromXml(reader, - this); - - this.loadedProperties.add(propertyDefinition); - } else { - reader.skipCurrentElement(); - } - } - } while (!reader.isEndElement(XmlNamespace.Types, this.getOwner() - .getXmlElementName())); - - this.clearChangeLog(); - } finally { - this.loading = false; - } - } - - /** - * Writes the bag's properties to XML. - * - * @param writer - * The writer to write the properties to. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - writer.writeStartElement(XmlNamespace.Types, this.getOwner() - .getXmlElementName()); - - Iterator it = this.getOwner().getSchema() - .iterator(); - while (it.hasNext()) { - PropertyDefinition propertyDefinition = it.next(); - // The following test should not be necessary since the property bag - // prevents - // properties to be set if they don't have the CanSet flag, but it - // doesn't hurt... - if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanSet, writer.getService().getRequestedServerVersion())) { - if (this.contains(propertyDefinition)) { - propertyDefinition.writePropertyValueToXml(writer, this, - false /* isUpdateOperation */); - } - } - } - - writer.writeEndElement(); - } - - /** - * Writes the EWS update operations corresponding to the changes that - * occurred in the bag to XML. - * - * @param writer - * The writer to write the updates to. - * @throws Exception - * the exception - */ - protected void writeToXmlForUpdate(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Types, this.getOwner() - .getChangeXmlElementName()); - - this.getOwner().getId().writeToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Updates); - - for (PropertyDefinition propertyDefinition : this.addedProperties) { - this.writeSetUpdateToXml(writer, propertyDefinition); - } - - for (PropertyDefinition propertyDefinition : this.modifiedProperties) { - this.writeSetUpdateToXml(writer, propertyDefinition); - } - - Iterator> it = this.deletedProperties - .entrySet().iterator(); - while (it.hasNext()) { - Entry property = it.next(); - this.writeDeleteUpdateToXml(writer, property.getKey(), property - .getValue()); - } - - writer.writeEndElement(); - writer.writeEndElement(); - } - - /** - * Determines whether an EWS UpdateItem/UpdateFolder call is necessary to - * save the changes that occurred in the bag. - * - * @return True if an UpdateItem/UpdateFolder call is necessary, false - * otherwise. - */ - protected boolean getIsUpdateCallNecessary() { - List propertyDefinitions = - new ArrayList(); - propertyDefinitions.addAll(this.addedProperties); - propertyDefinitions.addAll(this.modifiedProperties); - propertyDefinitions.addAll(this.deletedProperties.keySet()); - for (PropertyDefinition propertyDefinition : propertyDefinitions) { - if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanUpdate)) { - return true; - } - } - return false; - } - - /** - * Initializes a ComplexProperty instance. When a property is inserted into - * the bag, it needs to be initialized in order for changes that occur on - * that property to be properly detected and dispatched. - * - * @param complexProperty - * The ComplexProperty instance to initialize. - */ - private void initComplexProperty(ComplexProperty complexProperty) { - if (complexProperty != null) { - complexProperty.addOnChangeEvent(this); - if (complexProperty instanceof IOwnedProperty) { - IOwnedProperty ownedProperty = (IOwnedProperty)complexProperty; - ownedProperty.setOwner(this.getOwner()); - } - } - } - - /** - * Writes an EWS SetUpdate opeartion for the specified property. - * - * @param writer - * The writer to write the update to. - * @param propertyDefinition - * The property fro which to write the update. - * @throws Exception - * the exception - */ - private void writeSetUpdateToXml(EwsServiceXmlWriter writer, - PropertyDefinition propertyDefinition) throws Exception { - // The following test should not be necessary since the property bag - // prevents - // properties to be updated if they don't have the CanUpdate flag, but - // it - // doesn't hurt... - if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanUpdate)) { - Object propertyValue = this - .getObjectFromPropertyDefinition(propertyDefinition); - - boolean handled = false; - - if (propertyValue instanceof ICustomXmlUpdateSerializer) { - ICustomXmlUpdateSerializer updateSerializer = - (ICustomXmlUpdateSerializer)propertyValue; - handled = updateSerializer.writeSetUpdateToXml(writer, this - .getOwner(), propertyDefinition); - } - - if (!handled) { - writer.writeStartElement(XmlNamespace.Types, this.getOwner() - .getSetFieldXmlElementName()); - - propertyDefinition.writeToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, this.getOwner() - .getXmlElementName()); - propertyDefinition - .writePropertyValueToXml(writer, this, - true /* isUpdateOperation */); - writer.writeEndElement(); - - writer.writeEndElement(); - } - } - } - - /** - * Writes an EWS DeleteUpdate opeartion for the specified property. - * - * @param writer - * The writer to write the update to. - * @param propertyDefinition - * The property fro which to write the update. - * @param propertyValue - * The current value of the property. - * @throws Exception - * the exception - */ - private void writeDeleteUpdateToXml(EwsServiceXmlWriter writer, - PropertyDefinition propertyDefinition, Object propertyValue) - throws Exception { - // The following test should not be necessary since the property bag - // prevents - // properties to be deleted (set to null) if they don't have the - // CanDelete flag, - // but it doesn't hurt... - if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanDelete)) { - boolean handled = false; - - if (propertyValue instanceof ICustomXmlUpdateSerializer) { - ICustomXmlUpdateSerializer updateSerializer = - (ICustomXmlUpdateSerializer)propertyValue; - handled = updateSerializer.writeDeleteUpdateToXml(writer, this - .getOwner()); - } - - if (!handled) { - writer.writeStartElement(XmlNamespace.Types, this.getOwner() - .getDeleteFieldXmlElementName()); - propertyDefinition.writeToXml(writer); - writer.writeEndElement(); - } - } - } - - /** - * Validate property bag instance. - * - * @throws Exception - * the exception - */ - protected void validate() throws Exception { - for (PropertyDefinition propertyDefinition : this.addedProperties) { - this.validatePropertyValue(propertyDefinition); - } - - for (PropertyDefinition propertyDefinition : this.modifiedProperties) { - this.validatePropertyValue(propertyDefinition); - } - } - - /** - * Validates the property value. - * - * @param propertyDefinition - * The property definition. - * @throws Exception - * the exception - */ - private void validatePropertyValue(PropertyDefinition propertyDefinition) - throws Exception { - OutParam propertyValueOut = new OutParam(); - if (this.tryGetProperty(propertyDefinition, propertyValueOut)) { - Object propertyValue = propertyValueOut.getParam(); - - if (propertyValue instanceof ISelfValidate) { - ISelfValidate validatingValue = (ISelfValidate)propertyValue; - validatingValue.validate(); - } - } - } - - /** - * Gets the value of a property. - * - * @param propertyDefinition - * The property to get or set. - * @return An object representing the value of the property. - * @throws ServiceLocalException - * ServiceVersionException will be raised if this property - * requires a later version of Exchange. - * ServiceObjectPropertyException will be raised for get if - * property hasn't been assigned or loaded, raised for set if - * property cannot be updated or deleted. - */ - protected Object getObjectFromPropertyDefinition( - PropertyDefinition propertyDefinition) - throws ServiceLocalException { - ServiceLocalException serviceException = null; - OutParam serviceExceptionOut = - new OutParam(); - Object propertyValue = this.getPropertyValueOrException( - propertyDefinition, serviceExceptionOut); - serviceException = serviceExceptionOut.getParam(); - if (serviceException == null) { - return propertyValue; - } else { - //throw new ServiceLocalException(); - throw serviceException; - } - } - - /** - * Gets the value of a property. - * - * @param propertyDefinition - * The property to get or set. - * @param object - * An object representing the value of the property. - * @throws Exception - * the exception - */ - protected void setObjectFromPropertyDefinition( - PropertyDefinition propertyDefinition, Object object) - throws Exception { - if (propertyDefinition.getVersion().ordinal() > this.getOwner() - .getService().getRequestedServerVersion().ordinal()) { - throw new ServiceVersionException(String.format( - Strings.PropertyIncompatibleWithRequestVersion, - propertyDefinition.getName(), propertyDefinition - .getVersion())); - } - - // If the property bag is not in the loading state, we need to verify - // whether - // the property can actually be set or updated. - if (!this.loading) { - // If the owner is new and if the property cannot be set, throw. - if (this.getOwner().isNew() - && !propertyDefinition - .hasFlag(PropertyDefinitionFlags.CanSet,this.getOwner() - .getService().getRequestedServerVersion())) { - throw new ServiceObjectPropertyException( - Strings.PropertyIsReadOnly, propertyDefinition); - } - - if (!this.getOwner().isNew()) { - // If owner is an item attachment, properties cannot be updated - // (EWS doesn't support updating item attachments) - - if ((this.getOwner() instanceof Item)) { - Item ownerItem = (Item) this.getOwner(); - if (ownerItem.isAttachment()) { - throw new ServiceObjectPropertyException( - Strings.ItemAttachmentCannotBeUpdated, - propertyDefinition); - } - } - - // If the property cannot be deleted, throw. - if (object == null - && !propertyDefinition - .hasFlag(PropertyDefinitionFlags.CanDelete)) { - throw new ServiceObjectPropertyException( - Strings.PropertyCannotBeDeleted, - propertyDefinition); - } - - // If the property cannot be updated, throw. - if (!propertyDefinition - .hasFlag(PropertyDefinitionFlags.CanUpdate)) { - throw new ServiceObjectPropertyException( - Strings.PropertyCannotBeUpdated, - propertyDefinition); - } - } - } - - // If the value is set to null, delete the property. - if (object == null) { - this.deleteProperty(propertyDefinition); - } else { - ComplexProperty complexProperty = null; - Object currentValue = null; - - if (this.properties.containsKey(propertyDefinition)) { - currentValue = this.properties.get(propertyDefinition); - - if (currentValue instanceof ComplexProperty) { - complexProperty = (ComplexProperty) currentValue; - complexProperty.removeChangeEvent(this); - } - } - - // If the property was to be deleted, the deletion becomes an - // update. - if (this.deletedProperties.containsKey(propertyDefinition)) { - this.deletedProperties.remove(propertyDefinition); - addToChangeList(propertyDefinition, this.modifiedProperties); - } else { - // If the property value was not set, we have a newly set - // property. - if (!this.properties.containsKey(propertyDefinition)) { - addToChangeList(propertyDefinition, this.addedProperties); - } else { - // The last case is that we have a modified property. - if (!this.modifiedProperties.contains(propertyDefinition)) { - addToChangeList(propertyDefinition, - this.modifiedProperties); - } - } - } - - if (object instanceof ComplexProperty) { - this.initComplexProperty((ComplexProperty) object); - } - this.properties.put(propertyDefinition, object); - this.changed(); - } - - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.ComplexPropertyChangedInterface# - * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.propertyChanged(complexProperty); - } + + Iterator> it = this.deletedProperties + .entrySet().iterator(); + while (it.hasNext()) { + Entry property = it.next(); + this.writeDeleteUpdateToXml(writer, property.getKey(), property + .getValue()); + } + + writer.writeEndElement(); + writer.writeEndElement(); + } + + /** + * Determines whether an EWS UpdateItem/UpdateFolder call is necessary to + * save the changes that occurred in the bag. + * + * @return True if an UpdateItem/UpdateFolder call is necessary, false + * otherwise. + */ + protected boolean getIsUpdateCallNecessary() { + List propertyDefinitions = + new ArrayList(); + propertyDefinitions.addAll(this.addedProperties); + propertyDefinitions.addAll(this.modifiedProperties); + propertyDefinitions.addAll(this.deletedProperties.keySet()); + for (PropertyDefinition propertyDefinition : propertyDefinitions) { + if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanUpdate)) { + return true; + } + } + return false; + } + + /** + * Initializes a ComplexProperty instance. When a property is inserted into + * the bag, it needs to be initialized in order for changes that occur on + * that property to be properly detected and dispatched. + * + * @param complexProperty The ComplexProperty instance to initialize. + */ + private void initComplexProperty(ComplexProperty complexProperty) { + if (complexProperty != null) { + complexProperty.addOnChangeEvent(this); + if (complexProperty instanceof IOwnedProperty) { + IOwnedProperty ownedProperty = (IOwnedProperty) complexProperty; + ownedProperty.setOwner(this.getOwner()); + } + } + } + + /** + * Writes an EWS SetUpdate opeartion for the specified property. + * + * @param writer The writer to write the update to. + * @param propertyDefinition The property fro which to write the update. + * @throws Exception the exception + */ + private void writeSetUpdateToXml(EwsServiceXmlWriter writer, + PropertyDefinition propertyDefinition) throws Exception { + // The following test should not be necessary since the property bag + // prevents + // properties to be updated if they don't have the CanUpdate flag, but + // it + // doesn't hurt... + if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanUpdate)) { + Object propertyValue = this + .getObjectFromPropertyDefinition(propertyDefinition); + + boolean handled = false; + + if (propertyValue instanceof ICustomXmlUpdateSerializer) { + ICustomXmlUpdateSerializer updateSerializer = + (ICustomXmlUpdateSerializer) propertyValue; + handled = updateSerializer.writeSetUpdateToXml(writer, this + .getOwner(), propertyDefinition); + } + + if (!handled) { + writer.writeStartElement(XmlNamespace.Types, this.getOwner() + .getSetFieldXmlElementName()); + + propertyDefinition.writeToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, this.getOwner() + .getXmlElementName()); + propertyDefinition + .writePropertyValueToXml(writer, this, + true /* isUpdateOperation */); + writer.writeEndElement(); + + writer.writeEndElement(); + } + } + } + + /** + * Writes an EWS DeleteUpdate opeartion for the specified property. + * + * @param writer The writer to write the update to. + * @param propertyDefinition The property fro which to write the update. + * @param propertyValue The current value of the property. + * @throws Exception the exception + */ + private void writeDeleteUpdateToXml(EwsServiceXmlWriter writer, + PropertyDefinition propertyDefinition, Object propertyValue) + throws Exception { + // The following test should not be necessary since the property bag + // prevents + // properties to be deleted (set to null) if they don't have the + // CanDelete flag, + // but it doesn't hurt... + if (propertyDefinition.hasFlag(PropertyDefinitionFlags.CanDelete)) { + boolean handled = false; + + if (propertyValue instanceof ICustomXmlUpdateSerializer) { + ICustomXmlUpdateSerializer updateSerializer = + (ICustomXmlUpdateSerializer) propertyValue; + handled = updateSerializer.writeDeleteUpdateToXml(writer, this + .getOwner()); + } + + if (!handled) { + writer.writeStartElement(XmlNamespace.Types, this.getOwner() + .getDeleteFieldXmlElementName()); + propertyDefinition.writeToXml(writer); + writer.writeEndElement(); + } + } + } + + /** + * Validate property bag instance. + * + * @throws Exception the exception + */ + protected void validate() throws Exception { + for (PropertyDefinition propertyDefinition : this.addedProperties) { + this.validatePropertyValue(propertyDefinition); + } + + for (PropertyDefinition propertyDefinition : this.modifiedProperties) { + this.validatePropertyValue(propertyDefinition); + } + } + + /** + * Validates the property value. + * + * @param propertyDefinition The property definition. + * @throws Exception the exception + */ + private void validatePropertyValue(PropertyDefinition propertyDefinition) + throws Exception { + OutParam propertyValueOut = new OutParam(); + if (this.tryGetProperty(propertyDefinition, propertyValueOut)) { + Object propertyValue = propertyValueOut.getParam(); + + if (propertyValue instanceof ISelfValidate) { + ISelfValidate validatingValue = (ISelfValidate) propertyValue; + validatingValue.validate(); + } + } + } + + /** + * Gets the value of a property. + * + * @param propertyDefinition The property to get or set. + * @return An object representing the value of the property. + * @throws ServiceLocalException ServiceVersionException will be raised if this property + * requires a later version of Exchange. + * ServiceObjectPropertyException will be raised for get if + * property hasn't been assigned or loaded, raised for set if + * property cannot be updated or deleted. + */ + protected Object getObjectFromPropertyDefinition( + PropertyDefinition propertyDefinition) + throws ServiceLocalException { + ServiceLocalException serviceException = null; + OutParam serviceExceptionOut = + new OutParam(); + Object propertyValue = this.getPropertyValueOrException( + propertyDefinition, serviceExceptionOut); + serviceException = serviceExceptionOut.getParam(); + if (serviceException == null) { + return propertyValue; + } else { + //throw new ServiceLocalException(); + throw serviceException; + } + } + + /** + * Gets the value of a property. + * + * @param propertyDefinition The property to get or set. + * @param object An object representing the value of the property. + * @throws Exception the exception + */ + protected void setObjectFromPropertyDefinition( + PropertyDefinition propertyDefinition, Object object) + throws Exception { + if (propertyDefinition.getVersion().ordinal() > this.getOwner() + .getService().getRequestedServerVersion().ordinal()) { + throw new ServiceVersionException(String.format( + Strings.PropertyIncompatibleWithRequestVersion, + propertyDefinition.getName(), propertyDefinition + .getVersion())); + } + + // If the property bag is not in the loading state, we need to verify + // whether + // the property can actually be set or updated. + if (!this.loading) { + // If the owner is new and if the property cannot be set, throw. + if (this.getOwner().isNew() + && !propertyDefinition + .hasFlag(PropertyDefinitionFlags.CanSet, this.getOwner() + .getService().getRequestedServerVersion())) { + throw new ServiceObjectPropertyException( + Strings.PropertyIsReadOnly, propertyDefinition); + } + + if (!this.getOwner().isNew()) { + // If owner is an item attachment, properties cannot be updated + // (EWS doesn't support updating item attachments) + + if ((this.getOwner() instanceof Item)) { + Item ownerItem = (Item) this.getOwner(); + if (ownerItem.isAttachment()) { + throw new ServiceObjectPropertyException( + Strings.ItemAttachmentCannotBeUpdated, + propertyDefinition); + } + } + + // If the property cannot be deleted, throw. + if (object == null + && !propertyDefinition + .hasFlag(PropertyDefinitionFlags.CanDelete)) { + throw new ServiceObjectPropertyException( + Strings.PropertyCannotBeDeleted, + propertyDefinition); + } + + // If the property cannot be updated, throw. + if (!propertyDefinition + .hasFlag(PropertyDefinitionFlags.CanUpdate)) { + throw new ServiceObjectPropertyException( + Strings.PropertyCannotBeUpdated, + propertyDefinition); + } + } + } + + // If the value is set to null, delete the property. + if (object == null) { + this.deleteProperty(propertyDefinition); + } else { + ComplexProperty complexProperty = null; + Object currentValue = null; + + if (this.properties.containsKey(propertyDefinition)) { + currentValue = this.properties.get(propertyDefinition); + + if (currentValue instanceof ComplexProperty) { + complexProperty = (ComplexProperty) currentValue; + complexProperty.removeChangeEvent(this); + } + } + + // If the property was to be deleted, the deletion becomes an + // update. + if (this.deletedProperties.containsKey(propertyDefinition)) { + this.deletedProperties.remove(propertyDefinition); + addToChangeList(propertyDefinition, this.modifiedProperties); + } else { + // If the property value was not set, we have a newly set + // property. + if (!this.properties.containsKey(propertyDefinition)) { + addToChangeList(propertyDefinition, this.addedProperties); + } else { + // The last case is that we have a modified property. + if (!this.modifiedProperties.contains(propertyDefinition)) { + addToChangeList(propertyDefinition, + this.modifiedProperties); + } + } + } + + if (object instanceof ComplexProperty) { + this.initComplexProperty((ComplexProperty) object); + } + this.properties.put(propertyDefinition, object); + this.changed(); + } + + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.ComplexPropertyChangedInterface# + * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.propertyChanged(complexProperty); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java index 2a83d8da0..e5567d82a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java @@ -10,249 +10,221 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.EnumSet; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents the definition of a folder or item property. - * - * */ public abstract class PropertyDefinition extends -ServiceObjectPropertyDefinition { - - /** The xml element name. */ - private String xmlElementName; - - /** The flags. */ - private EnumSet flags; - - /** The name. */ - private String name; - - /** The version. */ - private ExchangeVersion version; - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected PropertyDefinition(String xmlElementName, String uri, - ExchangeVersion version) { - super(uri); - this.xmlElementName = xmlElementName; - this.flags = EnumSet.of(PropertyDefinitionFlags.None); - this.version = version; - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param flags - * The flags. - * @param version - * The version. - */ - protected PropertyDefinition(String xmlElementName, - EnumSet flags, ExchangeVersion version) { - super(); - this.xmlElementName = xmlElementName; - this.flags = flags; - this.version = version; - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected PropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - this(xmlElementName, uri, version); - this.flags = flags; - } - - /** - * Determines whether the specified flag is set. - * - * @param flag - * The flag. - * @return true if the specified flag is set; otherwise, false. - */ - protected boolean hasFlag(PropertyDefinitionFlags flag) { - return this.hasFlag(flag, null); + ServiceObjectPropertyDefinition { + + /** + * The xml element name. + */ + private String xmlElementName; + + /** + * The flags. + */ + private EnumSet flags; + + /** + * The name. + */ + private String name; + + /** + * The version. + */ + private ExchangeVersion version; + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected PropertyDefinition(String xmlElementName, String uri, + ExchangeVersion version) { + super(uri); + this.xmlElementName = xmlElementName; + this.flags = EnumSet.of(PropertyDefinitionFlags.None); + this.version = version; + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param flags The flags. + * @param version The version. + */ + protected PropertyDefinition(String xmlElementName, + EnumSet flags, ExchangeVersion version) { + super(); + this.xmlElementName = xmlElementName; + this.flags = flags; + this.version = version; + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected PropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + this(xmlElementName, uri, version); + this.flags = flags; + } + + /** + * Determines whether the specified flag is set. + * + * @param flag The flag. + * @return true if the specified flag is set; otherwise, false. + */ + protected boolean hasFlag(PropertyDefinitionFlags flag) { + return this.hasFlag(flag, null); + } + + /** + * Determines whether the specified flag is set. + * + * @param flag The flag. + * @return true if the specified flag is set; otherwise, false. + */ + protected boolean hasFlag(PropertyDefinitionFlags flag, + ExchangeVersion version) { + return this.flags.contains(flag); + } + + /** + * Registers associated internal properties. + * + * @param properties The list in which to add the associated properties. + */ + protected void registerAssociatedInternalProperties( + List properties) { + } + + /** + * Gets a list of associated internal properties. + * + * @return A list of PropertyDefinition objects. This is a hack. It is here + * (currently) solely to help the API register the MeetingTimeZone + * property definition that is internal. + */ + protected List getAssociatedInternalProperties() { + List properties = new + ArrayList(); + this.registerAssociatedInternalProperties(properties); + return properties; + } + + /** + * Gets the minimum Exchange version that supports this property. + * + * @return The version. + */ + public ExchangeVersion getVersion() { + return version; + } + + /** + * Gets a value indicating whether this property definition is for a + * nullable type. + * + * @return always true + */ + protected boolean isNullable() { + return true; + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param propertyBag The property bag. + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceObjectPropertyException the service object property exception + * @throws ServiceVersionException the service version exception + * @throws Exception the exception + */ + protected abstract void loadPropertyValueFromXml( + EwsServiceXmlReader reader, PropertyBag propertyBag) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceObjectPropertyException, ServiceVersionException, Exception; + + /** + * Writes the property value to XML. + * + * @param writer The writer. + * @param propertyBag The property bag. + * @param isUpdateOperation Indicates whether the context is an update operation. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws ServiceLocalException the service local exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + protected abstract void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceLocalException, InstantiationException, + IllegalAccessException, ServiceValidationException, Exception; + + /** + * Gets the name of the XML element. + * + * @return The name of the XML element. + */ + protected String getXmlElement() { + return this.xmlElementName; + } + + /** + * Gets the name of the property. + * + * @return Name of the property. + */ + public String getName() { + + if (null == this.name || this.name.isEmpty()) { + ServiceObjectSchema.initializeSchemaPropertyNames(); } - - /** - * Determines whether the specified flag is set. - * - * @param flag - * The flag. - * @return true if the specified flag is set; otherwise, false. - */ - protected boolean hasFlag(PropertyDefinitionFlags flag, - ExchangeVersion version) { - return this.flags.contains(flag); - } - - /** - * Registers associated internal properties. - * - * @param properties - * The list in which to add the associated properties. - */ - protected void registerAssociatedInternalProperties( - List properties) { - } - - /** - * Gets a list of associated internal properties. - * - * @return A list of PropertyDefinition objects. This is a hack. It is here - * (currently) solely to help the API register the MeetingTimeZone - * property definition that is internal. - */ - protected List getAssociatedInternalProperties() { - List properties = new - ArrayList(); - this.registerAssociatedInternalProperties(properties); - return properties; - } - - /** - * Gets the minimum Exchange version that supports this property. - * - * @return The version. - */ - public ExchangeVersion getVersion() { - return version; - } - - /** - * Gets a value indicating whether this property definition is for a - * nullable type. - * - * @return always true - */ - protected boolean isNullable() { - return true; - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param propertyBag - * The property bag. - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceObjectPropertyException - * the service object property exception - * @throws ServiceVersionException - * the service version exception - * @throws Exception - * the exception - */ - protected abstract void loadPropertyValueFromXml( - EwsServiceXmlReader reader, PropertyBag propertyBag) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceObjectPropertyException, ServiceVersionException, Exception; - - /** - * Writes the property value to XML. - * - * @param writer - * The writer. - * @param propertyBag - * The property bag. - * @param isUpdateOperation - * Indicates whether the context is an update operation. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws ServiceLocalException - * the service local exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - protected abstract void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceLocalException, InstantiationException, - IllegalAccessException, ServiceValidationException, Exception; - - /** - * Gets the name of the XML element. - * - * @return The name of the XML element. - */ - protected String getXmlElement() { - return this.xmlElementName; - } - - /** - * Gets the name of the property. - * - * @return Name of the property. - */ - public String getName() { - - if (null == this.name || this.name.isEmpty()) { - ServiceObjectSchema.initializeSchemaPropertyNames(); - } - return name; - } - - /** - * Sets the name of the property. - * - * @param name - * name of the property - */ - protected void setName(String name) { - this.name = name; - } - - /** - * Gets the property definition's printable name. - * - * @return The property definition's printable name. - */ - @Override - protected String getPrintableName() { - return this.getName(); - } + return name; + } + + /** + * Sets the name of the property. + * + * @param name name of the property + */ + protected void setName(String name) { + this.name = name; + } + + /** + * Gets the property definition's printable name. + * + * @return The property definition's printable name. + */ + @Override + protected String getPrintableName() { + return this.getName(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index f26dd475e..60b5c2332 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -17,113 +17,105 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public abstract class PropertyDefinitionBase { - /** - * Initializes a new instance. - */ - protected PropertyDefinitionBase() { + /** + * Initializes a new instance. + */ + protected PropertyDefinitionBase() { - } + } - /** - * Tries to load from XML. - * - * @param reader - * The reader. - * @param propertyDefinition - * The property definition. - * @return True if property was loaded. - * @throws Exception - * the exception - */ - protected static boolean tryLoadFromXml(EwsServiceXmlReader reader, - OutParam propertyDefinition) - throws Exception { - String strLocalName = reader.getLocalName(); - if (strLocalName.equals(XmlElementNames.FieldURI)) { - PropertyDefinitionBase p = ServiceObjectSchema - .findPropertyDefinition(reader - .readAttributeValue(XmlAttributeNames.FieldURI)); - propertyDefinition.setParam(p); - return true; - } else if (strLocalName.equals(XmlElementNames.IndexedFieldURI)) { - reader.skipCurrentElement(); - return true; - } else if (strLocalName.equals(XmlElementNames.ExtendedFieldURI)) { - ExtendedPropertyDefinition p = new ExtendedPropertyDefinition(); - p.loadFromXml(reader); - propertyDefinition.setParam(p); - return true; - } else { - return false; - } + /** + * Tries to load from XML. + * + * @param reader The reader. + * @param propertyDefinition The property definition. + * @return True if property was loaded. + * @throws Exception the exception + */ + protected static boolean tryLoadFromXml(EwsServiceXmlReader reader, + OutParam propertyDefinition) + throws Exception { + String strLocalName = reader.getLocalName(); + if (strLocalName.equals(XmlElementNames.FieldURI)) { + PropertyDefinitionBase p = ServiceObjectSchema + .findPropertyDefinition(reader + .readAttributeValue(XmlAttributeNames.FieldURI)); + propertyDefinition.setParam(p); + return true; + } else if (strLocalName.equals(XmlElementNames.IndexedFieldURI)) { + reader.skipCurrentElement(); + return true; + } else if (strLocalName.equals(XmlElementNames.ExtendedFieldURI)) { + ExtendedPropertyDefinition p = new ExtendedPropertyDefinition(); + p.loadFromXml(reader); + propertyDefinition.setParam(p); + return true; + } else { + return false; + } - } + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - protected abstract String getXmlElementName(); + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + protected abstract String getXmlElementName(); - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException; + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException; - /** - * Gets the minimum Exchange version that supports this property. - * - * @return The version. - */ - public abstract ExchangeVersion getVersion(); + /** + * Gets the minimum Exchange version that supports this property. + * + * @return The version. + */ + public abstract ExchangeVersion getVersion(); - /** - * Gets the property definition's printable name. - * - * @return The property definition's printable name. - */ - protected abstract String getPrintableName(); - - /** - * Gets the type of the property. - */ - public abstract Class getType(); - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); - this.writeAttributesToXml(writer); - writer.writeEndElement(); - } + /** + * Gets the property definition's printable name. + * + * @return The property definition's printable name. + */ + protected abstract String getPrintableName(); - /* - * (non-Javadoc) - * - * @see java.lang.Object#toString() - */ - @Override - /** - * Returns a string that represents the current object. - * @return A string that represents the current object. - */ - public String toString() { - return this.getPrintableName(); - } + /** + * Gets the type of the property. + */ + public abstract Class getType(); + + /** + * Writes to XML. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); + this.writeAttributesToXml(writer); + writer.writeEndElement(); + } + + /* + * (non-Javadoc) + * + * @see java.lang.Object#toString() + */ + @Override + /** + * Returns a string that represents the current object. + * @return A string that represents the current object. + */ + public String toString() { + return this.getPrintableName(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java index 6fa4b36be..c022248b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java @@ -10,58 +10,58 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.EnumSet; - /** * defines how a complex property behaves. */ public enum PropertyDefinitionFlags { - - /** - * No specific behavior. - */ - None, - /** - * The property is automatically instantiated when it is read. - */ - AutoInstantiateOnRead, + /** + * No specific behavior. + */ + None, + + /** + * The property is automatically instantiated when it is read. + */ + AutoInstantiateOnRead, + + /** + * The existing instance of the property is reusable. + */ + ReuseInstance, + + /** + * The property can be set. + */ + CanSet, + + /** + * The property can be updated. + */ + CanUpdate, - /** - * The existing instance of the property is reusable. - */ - ReuseInstance, + /** + * The property can be deleted. + */ + CanDelete, - /** - * The property can be set. - */ - CanSet, + /** + * The property can be searched. + */ + CanFind, - /** - * The property can be updated. - */ - CanUpdate, + /** + * The property must be loaded explicitly. + */ + MustBeExplicitlyLoaded, - /** - * The property can be deleted. - */ - CanDelete, + /** + * Only meaningful for "collection" property. With this flag, the item in the collection gets updated, + * instead of creating and adding new items to the collection. + * Should be used together with the ReuseInstance flag. + */ - /** - * The property can be searched. - */ - CanFind, + UpdateCollectionItems; - /** The property must be loaded explicitly. */ - MustBeExplicitlyLoaded, - - /** - * Only meaningful for "collection" property. With this flag, the item in the collection gets updated, - * instead of creating and adding new items to the collection. - * Should be used together with the ReuseInstance flag. - */ - - UpdateCollectionItems; - } diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index 8713afc16..8f10335e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -12,67 +12,62 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an error that occurs when an operation on a property fails. - * */ public class PropertyException extends ServiceLocalException { - /** The name. */ - private String name; + /** + * The name. + */ + private String name; - /** - * Instantiates a new property exception. - */ - public PropertyException() { - super(); - } + /** + * Instantiates a new property exception. + */ + public PropertyException() { + super(); + } - /** - * Instantiates a new property exception. - * - * @param name - * the name - */ - public PropertyException(String name) { - super(); - this.name = name; - } + /** + * Instantiates a new property exception. + * + * @param name the name + */ + public PropertyException(String name) { + super(); + this.name = name; + } - /** - * Instantiates a new property exception. - * - * @param message - * the message - * @param name - * the name - */ - public PropertyException(String message, String name) { - super(message); - this.name = name; - } + /** + * Instantiates a new property exception. + * + * @param message the message + * @param name the name + */ + public PropertyException(String message, String name) { + super(message); + this.name = name; + } - /** - * Instantiates a new property exception. - * - * @param message - * the message - * @param name - * the name - * @param innerException - * the inner exception - */ - public PropertyException(String message, String name, - Exception innerException) { - super(message, innerException); - this.name = name; - } + /** + * Instantiates a new property exception. + * + * @param message the message + * @param name the name + * @param innerException the inner exception + */ + public PropertyException(String message, String name, + Exception innerException) { + super(message, innerException); + this.name = name; + } - /** - * Gets the name. - * - * @return the name - */ - public String getName() { - return name; - } + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 45f0f0b77..55e43b1d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -10,598 +10,561 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - import javax.xml.stream.XMLStreamException; +import java.util.*; -/*** - *Represents a set of item or folder properties. Property sets are used to +/** + * Represents a set of item or folder properties. Property sets are used to * indicate what properties of an item or folder should be loaded when binding * to an existing item or folder or when loading an item or folder's properties. - * */ public final class PropertySet implements ISelfValidate, - Iterable { - - /** The Constant IdOnly. */ - public static final PropertySet IdOnly = PropertySet. - createReadonlyPropertySet(BasePropertySet.IdOnly); - - /** - * Returns a predefined property set that only includes the Id property. - * - * @return Returns a predefined property set that only includes the Id - * property. - */ - private static PropertySet getIdOnly() { - return IdOnly; - } - - /** The Constant FirstClassProperties. */ - public static final PropertySet FirstClassProperties = PropertySet. - createReadonlyPropertySet(BasePropertySet.FirstClassProperties); - - /** - * Returns a predefined property set that includes the first class - * properties of an item or folder. - * - * @return A predefined property set that includes the first class - * properties of an item or folder. - */ - public static PropertySet getFirstClassProperties() { - return FirstClassProperties; - } - - /** - * Maps BasePropertySet values to EWS's BaseShape values. - */ - private static LazyMember> defaultPropertySetMap = - new LazyMember>(new - ILazyMember>() { - @Override - public Map createInstance() { - Map result = new - HashMap(); - result.put(BasePropertySet.IdOnly, BasePropertySet.IdOnly - .getBaseShapeValue()); - result.put(BasePropertySet.FirstClassProperties, - BasePropertySet.FirstClassProperties - .getBaseShapeValue()); - return result; - } - }); - /** - * The base property set this property set is based upon. - */ - private BasePropertySet basePropertySet; - - /** - * The list of additional properties included in this property set. - */ - private List additionalProperties = new - ArrayList(); - - /** - * The requested body type for get and find operations. If null, the - * "best body" is returned. - */ - private BodyType requestedBodyType; - - /** - * Value indicating whether or not the server should filter HTML content. - */ - private Boolean filterHtml; - - /** - * Value indicating whether or not the server - * should convert HTML code page to UTF8. - */ - private Boolean convertHtmlCodePageToUTF8; - - /** - * Value indicating whether or not this PropertySet can be modified. - */ - private boolean isReadOnly; - - /** - * Initializes a new instance of PropertySet. - * - * @param basePropertySet - * The base property set to base the property set upon. - * @param additionalProperties - * Additional properties to include in the property set. Property - * definitions are available as static members from schema - * classes (for example, EmailMessageSchema.Subject, - * AppointmentSchema.Start, ContactSchema.GivenName, etc.) - */ - public PropertySet(BasePropertySet basePropertySet, - PropertyDefinitionBase... additionalProperties) { - this.basePropertySet = basePropertySet; - if (null != additionalProperties) { - for (PropertyDefinitionBase property : additionalProperties) { - this.additionalProperties.add(property); - } - } - } - - /** - * Initializes a new instance of PropertySet. - * - * @param basePropertySet - * The base property set to base the property set upon. - * @param additionalProperties - * Additional properties to include in the property set. Property - * definitions are available as static members from schema - * classes (for example, EmailMessageSchema.Subject, - * AppointmentSchema.Start, ContactSchema.GivenName, etc.) - */ - public PropertySet(BasePropertySet basePropertySet, - Iterator additionalProperties) { - this.basePropertySet = basePropertySet; - if (null != additionalProperties) { - while (additionalProperties.hasNext()) { - this.additionalProperties.add(additionalProperties.next()); - } - } - } - - /** - * Initializes a new instance of PropertySet based upon - * BasePropertySet.IdOnly. - */ - public PropertySet() { - this.basePropertySet = BasePropertySet.IdOnly; - } - - /** - * Initializes a new instance of PropertySet. - * - * @param basePropertySet - * The base property set to base the property set upon. - */ - public PropertySet(BasePropertySet basePropertySet) { - this.basePropertySet = basePropertySet; - } - - /** - * Initializes a new instance of PropertySet based upon - * BasePropertySet.IdOnly. - * - * @param additionalProperties - * Additional properties to include in the property set. Property - * definitions are available as static members from schema - * classes (for example, EmailMessageSchema.Subject, - * AppointmentSchema.Start, ContactSchema.GivenName, etc.) - */ - public PropertySet(PropertyDefinitionBase... additionalProperties) { - this(BasePropertySet.IdOnly, additionalProperties); - } - - /** - * Initializes a new instance of PropertySet based upon - * BasePropertySet.IdOnly. - * - * @param additionalProperties - * Additional properties to include in the property set. Property - * definitions are available as static members from schema - * classes (for example, EmailMessageSchema.Subject, - * AppointmentSchema.Start, ContactSchema.GivenName, etc.) - */ - public PropertySet(Iterator additionalProperties) { - this(BasePropertySet.IdOnly, additionalProperties); - } - - /** - * Implements an implicit conversion between - * PropertySet and BasePropertySet. - * @param basePropertySet The BasePropertySet value to convert from. - * @return A PropertySet instance based on the specified base property set. - */ - public static PropertySet getPropertySetFromBasePropertySet(BasePropertySet - basePropertySet) { - return new PropertySet(basePropertySet); + Iterable { + + /** + * The Constant IdOnly. + */ + public static final PropertySet IdOnly = PropertySet. + createReadonlyPropertySet(BasePropertySet.IdOnly); + + /** + * Returns a predefined property set that only includes the Id property. + * + * @return Returns a predefined property set that only includes the Id + * property. + */ + private static PropertySet getIdOnly() { + return IdOnly; + } + + /** + * The Constant FirstClassProperties. + */ + public static final PropertySet FirstClassProperties = PropertySet. + createReadonlyPropertySet(BasePropertySet.FirstClassProperties); + + /** + * Returns a predefined property set that includes the first class + * properties of an item or folder. + * + * @return A predefined property set that includes the first class + * properties of an item or folder. + */ + public static PropertySet getFirstClassProperties() { + return FirstClassProperties; + } + + /** + * Maps BasePropertySet values to EWS's BaseShape values. + */ + private static LazyMember> defaultPropertySetMap = + new LazyMember>(new + ILazyMember>() { + @Override + public Map createInstance() { + Map result = new + HashMap(); + result.put(BasePropertySet.IdOnly, + BasePropertySet.IdOnly + .getBaseShapeValue()); + result.put(BasePropertySet.FirstClassProperties, + BasePropertySet.FirstClassProperties + .getBaseShapeValue()); + return result; + } + }); + /** + * The base property set this property set is based upon. + */ + private BasePropertySet basePropertySet; + + /** + * The list of additional properties included in this property set. + */ + private List additionalProperties = new + ArrayList(); + + /** + * The requested body type for get and find operations. If null, the + * "best body" is returned. + */ + private BodyType requestedBodyType; + + /** + * Value indicating whether or not the server should filter HTML content. + */ + private Boolean filterHtml; + + /** + * Value indicating whether or not the server + * should convert HTML code page to UTF8. + */ + private Boolean convertHtmlCodePageToUTF8; + + /** + * Value indicating whether or not this PropertySet can be modified. + */ + private boolean isReadOnly; + + /** + * Initializes a new instance of PropertySet. + * + * @param basePropertySet The base property set to base the property set upon. + * @param additionalProperties Additional properties to include in the property set. Property + * definitions are available as static members from schema + * classes (for example, EmailMessageSchema.Subject, + * AppointmentSchema.Start, ContactSchema.GivenName, etc.) + */ + public PropertySet(BasePropertySet basePropertySet, + PropertyDefinitionBase... additionalProperties) { + this.basePropertySet = basePropertySet; + if (null != additionalProperties) { + for (PropertyDefinitionBase property : additionalProperties) { + this.additionalProperties.add(property); + } + } + } + + /** + * Initializes a new instance of PropertySet. + * + * @param basePropertySet The base property set to base the property set upon. + * @param additionalProperties Additional properties to include in the property set. Property + * definitions are available as static members from schema + * classes (for example, EmailMessageSchema.Subject, + * AppointmentSchema.Start, ContactSchema.GivenName, etc.) + */ + public PropertySet(BasePropertySet basePropertySet, + Iterator additionalProperties) { + this.basePropertySet = basePropertySet; + if (null != additionalProperties) { + while (additionalProperties.hasNext()) { + this.additionalProperties.add(additionalProperties.next()); + } + } + } + + /** + * Initializes a new instance of PropertySet based upon + * BasePropertySet.IdOnly. + */ + public PropertySet() { + this.basePropertySet = BasePropertySet.IdOnly; + } + + /** + * Initializes a new instance of PropertySet. + * + * @param basePropertySet The base property set to base the property set upon. + */ + public PropertySet(BasePropertySet basePropertySet) { + this.basePropertySet = basePropertySet; + } + + /** + * Initializes a new instance of PropertySet based upon + * BasePropertySet.IdOnly. + * + * @param additionalProperties Additional properties to include in the property set. Property + * definitions are available as static members from schema + * classes (for example, EmailMessageSchema.Subject, + * AppointmentSchema.Start, ContactSchema.GivenName, etc.) + */ + public PropertySet(PropertyDefinitionBase... additionalProperties) { + this(BasePropertySet.IdOnly, additionalProperties); + } + + /** + * Initializes a new instance of PropertySet based upon + * BasePropertySet.IdOnly. + * + * @param additionalProperties Additional properties to include in the property set. Property + * definitions are available as static members from schema + * classes (for example, EmailMessageSchema.Subject, + * AppointmentSchema.Start, ContactSchema.GivenName, etc.) + */ + public PropertySet(Iterator additionalProperties) { + this(BasePropertySet.IdOnly, additionalProperties); + } + + /** + * Implements an implicit conversion between + * PropertySet and BasePropertySet. + * + * @param basePropertySet The BasePropertySet value to convert from. + * @return A PropertySet instance based on the specified base property set. + */ + public static PropertySet getPropertySetFromBasePropertySet(BasePropertySet + basePropertySet) { + return new PropertySet(basePropertySet); + } + + + /** + * Adds the specified property to the property set. + * + * @param property The property to add. + * @throws Exception the exception + */ + public void add(PropertyDefinitionBase property) throws Exception { + this.throwIfReadonly(); + EwsUtilities.validateParam(property, "property"); + + if (!this.additionalProperties.contains(property)) { + this.additionalProperties.add(property); + } + } + + /** + * Adds the specified properties to the property set. + * + * @param properties The properties to add. + * @throws Exception the exception + */ + public void addRange(Iterable properties) + throws Exception { + this.throwIfReadonly(); + Iterator property = properties.iterator(); + EwsUtilities.validateParamCollection(property, "properties"); + + for (Iterator it = properties.iterator(); it + .hasNext(); ) { + this.add(it.next()); + } + } + + /** + * Remove all explicitly added properties from the property set. + */ + public void clear() { + this.throwIfReadonly(); + this.additionalProperties.clear(); + } + + /** + * Creates a read-only PropertySet. + * + * @param basePropertySet The base property set. + * @return PropertySet + */ + private static PropertySet createReadonlyPropertySet( + BasePropertySet basePropertySet) { + PropertySet propertySet = new PropertySet(basePropertySet); + propertySet.isReadOnly = true; + return propertySet; + } + + /** + * Throws if readonly property set. + */ + private void throwIfReadonly() { + if (this.isReadOnly) { + throw new UnsupportedOperationException( + Strings.PropertySetCannotBeModified); + } + } + + /** + * Determines whether the specified property has been explicitly added to + * this property set using the Add or AddRange methods. + * + * @param property The property. + * @return true if this property set contains the specified property + * otherwise, false + */ + public boolean contains(PropertyDefinitionBase property) { + return this.additionalProperties.contains(property); + } + + /** + * Removes the specified property from the set. + * + * @param property The property to remove. + * @return true if the property was successfully removed, false otherwise. + */ + public boolean remove(PropertyDefinitionBase property) { + this.throwIfReadonly(); + return this.additionalProperties.remove(property); + } + + /** + * Gets the base property set, the property set is based upon. + * + * @return the base property set + */ + public BasePropertySet getBasePropertySet() { + return this.basePropertySet; + } + + /** + * Maps BasePropertySet values to EWS's BaseShape values. + * + * @return the base property set + */ + public static LazyMember> getDefaultPropertySetMap() { + return PropertySet.defaultPropertySetMap; + + } + + /** + * Sets the base property set, the property set is based upon. + * + * @param basePropertySet Base property set. + */ + public void setBasePropertySet(BasePropertySet basePropertySet) { + this.throwIfReadonly(); + this.basePropertySet = basePropertySet; + } + + /** + * Gets type of body that should be loaded on items. If RequestedBodyType + * is null, body is returned as HTML if available, plain text otherwise. + * + * @return the requested body type + */ + public BodyType getRequestedBodyType() { + return this.requestedBodyType; + } + + /** + * Sets type of body that should be loaded on items. If RequestedBodyType is + * null, body is returned as HTML if available, plain text otherwise. + * + * @param requestedBodyType Type of body that should be loaded on items. + */ + public void setRequestedBodyType(BodyType requestedBodyType) { + this.throwIfReadonly(); + this.requestedBodyType = requestedBodyType; + } + + /** + * Gets the number of explicitly added properties in this set. + * + * @return the count + */ + public int getCount() { + return this.additionalProperties.size(); + } + + /** + * Gets value indicating whether or not to filter potentially unsafe HTML + * content from message bodies. + * + * @return the filter html content + */ + public Boolean getFilterHtmlContent() { + return this.filterHtml; + } + + /** + * Sets value indicating whether or not to filter potentially unsafe HTML + * content from message bodies. + * + * @param filterHtml true to filter otherwise false. + */ + public void setFilterHtmlContent(Boolean filterHtml) { + this.throwIfReadonly(); + this.filterHtml = filterHtml; + } + + + + /** + * Gets value indicating whether or not to convert + * HTML code page to UTF8 encoding. + */ + public Boolean getConvertHtmlCodePageToUTF8() { + return this.convertHtmlCodePageToUTF8; + + } + + /** + * Sets value indicating whether or not to + * convert HTML code page to UTF8 encoding. + */ + public void setConvertHtmlCodePageToUTF8(Boolean value) { + this.throwIfReadonly(); + this.convertHtmlCodePageToUTF8 = value; + + } + + + /** + * Gets the PropertyDefinitionBase at the specified index. + * + * @param index Index. + * @return the property definition base at + */ + public PropertyDefinitionBase getPropertyDefinitionBaseAt(int index) { + return this.additionalProperties.get(index); + } + + + /** + * Validate. + * + * @throws ServiceValidationException the service validation exception + */ + @Override + public void validate() throws ServiceValidationException { + this.internalValidate(); + } + + /** + * Writes additonal properties to XML. + * + * @param writer The writer to write to. + * @param propertyDefinitions The property definitions to write. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected static void writeAdditionalPropertiesToXml( + EwsServiceXmlWriter writer, + Iterator propertyDefinitions) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.AdditionalProperties); + + while (propertyDefinitions.hasNext()) { + PropertyDefinitionBase propertyDefinition = propertyDefinitions + .next(); + propertyDefinition.writeToXml(writer); + } + + writer.writeEndElement(); + } + + /** + * Validates this property set. + * + * @throws ServiceValidationException the service validation exception + */ + protected void internalValidate() throws ServiceValidationException { + for (int i = 0; i < this.additionalProperties.size(); i++) { + if (this.additionalProperties.get(i) == null) { + throw new ServiceValidationException(String.format( + Strings.AdditionalPropertyIsNull, i)); + } + } + } + + /** + * Validates this property set instance for request to ensure that: 1. + * Properties are valid for the request server version 2. If only summary + * properties are legal for this request (e.g. FindItem) then only summary + * properties were specified. + * + * @param request The request. + * @param summaryPropertiesOnly if set to true then only summary properties are allowed. + * @throws ServiceVersionException the service version exception + * @throws ServiceValidationException the service validation exception + */ + protected void validateForRequest(ServiceRequestBase request, + boolean summaryPropertiesOnly) throws ServiceVersionException, + ServiceValidationException { + for (PropertyDefinitionBase propDefBase : this.additionalProperties) { + if (propDefBase instanceof PropertyDefinition) { + PropertyDefinition propertyDefinition = + (PropertyDefinition) propDefBase; + if (propertyDefinition.getVersion().ordinal() > request + .getService().getRequestedServerVersion().ordinal()) { + throw new ServiceVersionException(String.format( + Strings.PropertyIncompatibleWithRequestVersion, + propertyDefinition.getName(), propertyDefinition + .getVersion())); + } + + if (summaryPropertiesOnly && + !propertyDefinition.hasFlag( + PropertyDefinitionFlags.CanFind, request. + getService().getRequestedServerVersion())) { + throw new ServiceValidationException(String.format( + "ServiceValidationException :%s,%s,%s", + Strings.NonSummaryPropertyCannotBeUsed, + propertyDefinition.getName(), request + .getXmlElementName())); + } + } + } + if (this.getFilterHtmlContent() != null) { + if (request.getService().getRequestedServerVersion().compareTo(ExchangeVersion.Exchange2010) < 0) { + throw new ServiceVersionException( + String.format( + Strings.PropertyIncompatibleWithRequestVersion, + "FilterHtmlContent", + ExchangeVersion.Exchange2010)); + } + } + + if (this.getConvertHtmlCodePageToUTF8() != null) { + if (request.getService().getRequestedServerVersion().compareTo(ExchangeVersion.Exchange2010_SP1) < 0) { + throw new ServiceVersionException( + String.format( + Strings.PropertyIncompatibleWithRequestVersion, + "ConvertHtmlCodePageToUTF8", + ExchangeVersion.Exchange2010_SP1)); + } + } + } + + /** + * Writes the property set to XML. + * + * @param writer The writer to write to. + * @param serviceObjectType The type of service object the property set is emitted for. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + ServiceObjectType serviceObjectType) throws XMLStreamException, + ServiceXmlSerializationException { + writer + .writeStartElement( + XmlNamespace.Messages, + serviceObjectType == ServiceObjectType.Item ? + XmlElementNames.ItemShape + : XmlElementNames.FolderShape); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.BaseShape, + this.getBasePropertySet().getBaseShapeValue()); + + if (serviceObjectType == ServiceObjectType.Item) { + if (this.getRequestedBodyType() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.BodyType, this.getRequestedBodyType()); + } + + if (this.getFilterHtmlContent() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.FilterHtmlContent, this + .getFilterHtmlContent()); + } + if ((this.getConvertHtmlCodePageToUTF8() != null) && + writer.getService().getRequestedServerVersion(). + compareTo(ExchangeVersion.Exchange2010_SP1) >= 0) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.ConvertHtmlCodePageToUTF8, + this.getConvertHtmlCodePageToUTF8()); + } + } + + if (this.additionalProperties.size() > 0) { + writeAdditionalPropertiesToXml(writer, this.additionalProperties + .iterator()); } - - /** - * Adds the specified property to the property set. - * - * @param property - * The property to add. - * @throws Exception - * the exception - */ - public void add(PropertyDefinitionBase property) throws Exception { - this.throwIfReadonly(); - EwsUtilities.validateParam(property, "property"); - - if (!this.additionalProperties.contains(property)) { - this.additionalProperties.add(property); - } - } - - /** - * Adds the specified properties to the property set. - * - * @param properties - * The properties to add. - * @throws Exception - * the exception - */ - public void addRange(Iterable properties) - throws Exception { - this.throwIfReadonly(); - Iterator property = properties.iterator(); - EwsUtilities.validateParamCollection(property, "properties"); - - for (Iterator it = properties.iterator(); it - .hasNext();) { - this.add(it.next()); - } - } - - /** - * Remove all explicitly added properties from the property set. - */ - public void clear() { - this.throwIfReadonly(); - this.additionalProperties.clear(); - } - - /** - * Creates a read-only PropertySet. - * - * @param basePropertySet - * The base property set. - * @return PropertySet - */ - private static PropertySet createReadonlyPropertySet( - BasePropertySet basePropertySet) { - PropertySet propertySet = new PropertySet(basePropertySet); - propertySet.isReadOnly = true; - return propertySet; - } - - /** - * Throws if readonly property set. - */ - private void throwIfReadonly() { - if (this.isReadOnly) { - throw new UnsupportedOperationException( - Strings.PropertySetCannotBeModified); - } - } - - /** - * Determines whether the specified property has been explicitly added to - * this property set using the Add or AddRange methods. - * - * @param property - * The property. - * @return true if this property set contains the specified property - * otherwise, false - */ - public boolean contains(PropertyDefinitionBase property) { - return this.additionalProperties.contains(property); - } - - /** - * Removes the specified property from the set. - * - * @param property - * The property to remove. - * @return true if the property was successfully removed, false otherwise. - */ - public boolean remove(PropertyDefinitionBase property) { - this.throwIfReadonly(); - return this.additionalProperties.remove(property); - } - - /** - * Gets the base property set, the property set is based upon. - * - * @return the base property set - */ - public BasePropertySet getBasePropertySet() { - return this.basePropertySet; - } - - /** - *Maps BasePropertySet values to EWS's BaseShape values. - * - * @return the base property set - */ - public static LazyMember> getDefaultPropertySetMap() { - return PropertySet.defaultPropertySetMap; - - } - /** - * Sets the base property set, the property set is based upon. - * - * @param basePropertySet - * Base property set. - */ - public void setBasePropertySet(BasePropertySet basePropertySet) { - this.throwIfReadonly(); - this.basePropertySet = basePropertySet; - } - - /** - * Gets type of body that should be loaded on items. If RequestedBodyType - * is null, body is returned as HTML if available, plain text otherwise. - * - * @return the requested body type - */ - public BodyType getRequestedBodyType() { - return this.requestedBodyType; - } - - /** - * Sets type of body that should be loaded on items. If RequestedBodyType is - * null, body is returned as HTML if available, plain text otherwise. - * - * @param requestedBodyType - * Type of body that should be loaded on items. - */ - public void setRequestedBodyType(BodyType requestedBodyType) { - this.throwIfReadonly(); - this.requestedBodyType = requestedBodyType; - } - - /** - * Gets the number of explicitly added properties in this set. - * - * @return the count - */ - public int getCount() { - return this.additionalProperties.size(); - } - - /** - * Gets value indicating whether or not to filter potentially unsafe HTML - * content from message bodies. - * - * @return the filter html content - */ - public Boolean getFilterHtmlContent() { - return this.filterHtml; - } - - /** - * Sets value indicating whether or not to filter potentially unsafe HTML - * content from message bodies. - * - * @param filterHtml - * true to filter otherwise false. - */ - public void setFilterHtmlContent(Boolean filterHtml) { - this.throwIfReadonly(); - this.filterHtml = filterHtml; - } - - - - - /** - * Gets value indicating whether or not to convert - * HTML code page to UTF8 encoding. - */ - public Boolean getConvertHtmlCodePageToUTF8() { - return this.convertHtmlCodePageToUTF8; - - } - - /** - * Sets value indicating whether or not to - * convert HTML code page to UTF8 encoding. - */ - public void setConvertHtmlCodePageToUTF8(Boolean value) { - this.throwIfReadonly(); - this.convertHtmlCodePageToUTF8 = value; - - } - - - /** - * Gets the PropertyDefinitionBase at the specified index. - * - * @param index - * Index. - * @return the property definition base at - */ - public PropertyDefinitionBase getPropertyDefinitionBaseAt(int index) { - return this.additionalProperties.get(index); - } - - - /** - * Validate. - * - * @throws ServiceValidationException - * the service validation exception - */ - @Override - public void validate() throws ServiceValidationException { - this.internalValidate(); - } - - /** - * Writes additonal properties to XML. - * - * @param writer - * The writer to write to. - * @param propertyDefinitions - * The property definitions to write. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected static void writeAdditionalPropertiesToXml( - EwsServiceXmlWriter writer, - Iterator propertyDefinitions) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.AdditionalProperties); - - while (propertyDefinitions.hasNext()) { - PropertyDefinitionBase propertyDefinition = propertyDefinitions - .next(); - propertyDefinition.writeToXml(writer); - } - - writer.writeEndElement(); - } - - /** - * Validates this property set. - * - * @throws ServiceValidationException - * the service validation exception - */ - protected void internalValidate() throws ServiceValidationException { - for (int i = 0; i < this.additionalProperties.size(); i++) { - if (this.additionalProperties.get(i) == null) { - throw new ServiceValidationException(String.format( - Strings.AdditionalPropertyIsNull, i)); - } - } - } - - /** - * Validates this property set instance for request to ensure that: 1. - * Properties are valid for the request server version 2. If only summary - * properties are legal for this request (e.g. FindItem) then only summary - * properties were specified. - * - * @param request - * The request. - * @param summaryPropertiesOnly - * if set to true then only summary properties are allowed. - * @throws ServiceVersionException - * the service version exception - * @throws ServiceValidationException - * the service validation exception - */ - protected void validateForRequest(ServiceRequestBase request, - boolean summaryPropertiesOnly) throws ServiceVersionException, - ServiceValidationException { - for (PropertyDefinitionBase propDefBase : this.additionalProperties) { - if (propDefBase instanceof PropertyDefinition) { - PropertyDefinition propertyDefinition = - (PropertyDefinition) propDefBase; - if (propertyDefinition.getVersion().ordinal() > request - .getService().getRequestedServerVersion().ordinal()) { - throw new ServiceVersionException(String.format( - Strings.PropertyIncompatibleWithRequestVersion, - propertyDefinition.getName(), propertyDefinition - .getVersion())); - } - - if (summaryPropertiesOnly && - !propertyDefinition.hasFlag( - PropertyDefinitionFlags.CanFind,request. - getService().getRequestedServerVersion())) { - throw new ServiceValidationException(String.format( - "ServiceValidationException :%s,%s,%s", - Strings.NonSummaryPropertyCannotBeUsed, - propertyDefinition.getName(), request - .getXmlElementName())); - } - } - } - if (this.getFilterHtmlContent()!= null) - { - if (request.getService().getRequestedServerVersion().compareTo(ExchangeVersion.Exchange2010)< 0) - { - throw new ServiceVersionException( - String.format( - Strings.PropertyIncompatibleWithRequestVersion, - "FilterHtmlContent", - ExchangeVersion.Exchange2010)); - } - } - - if (this.getConvertHtmlCodePageToUTF8()!= null) - { - if (request.getService().getRequestedServerVersion().compareTo(ExchangeVersion.Exchange2010_SP1) < 0) - { - throw new ServiceVersionException( - String.format( - Strings.PropertyIncompatibleWithRequestVersion, - "ConvertHtmlCodePageToUTF8", - ExchangeVersion.Exchange2010_SP1)); - } - } - } - - /** - * Writes the property set to XML. - * - * @param writer - * The writer to write to. - * @param serviceObjectType - * The type of service object the property set is emitted for. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - ServiceObjectType serviceObjectType) throws XMLStreamException, - ServiceXmlSerializationException { - writer - .writeStartElement( - XmlNamespace.Messages, - serviceObjectType == ServiceObjectType.Item ? - XmlElementNames.ItemShape - : XmlElementNames.FolderShape); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.BaseShape, - this.getBasePropertySet().getBaseShapeValue()); - - if (serviceObjectType == ServiceObjectType.Item) { - if (this.getRequestedBodyType() != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.BodyType, this.getRequestedBodyType()); - } - - if (this.getFilterHtmlContent() != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.FilterHtmlContent, this - .getFilterHtmlContent()); - } - if ((this.getConvertHtmlCodePageToUTF8()!=null) && - writer.getService().getRequestedServerVersion(). - compareTo(ExchangeVersion.Exchange2010_SP1) >= 0) - { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.ConvertHtmlCodePageToUTF8, - this.getConvertHtmlCodePageToUTF8()); - } - } - - if (this.additionalProperties.size() > 0) { - writeAdditionalPropertiesToXml(writer, this.additionalProperties - .iterator()); - } - - writer.writeEndElement(); // Item/FolderShape - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - return this.additionalProperties.iterator(); - } + writer.writeEndElement(); // Item/FolderShape + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + return this.additionalProperties.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index 99eebc0ca..f88aea01b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -13,133 +13,130 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the email Protocol connection settings for pop/imap/smtp * protocols. - * */ public final class ProtocolConnection { - /** The encryption method. */ - private String encryptionMethod; - - /** The hostname. */ - private String hostname; - - /** The port. */ - private int port; - - /** - * Initializes a new instance of the class. - */ - - protected ProtocolConnection() { - } - - /** - * Read user setting with ProtocolConnection value. - * - * @param reader - * EwsServiceXmlReader - * @return the protocol connection - * @throws Exception - * the exception - */ - protected static ProtocolConnection loadFromXml(EwsXmlReader reader) - throws Exception { - ProtocolConnection connection = new ProtocolConnection(); - - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - XmlElementNames.EncryptionMethod)) { - connection.setEncryptionMethod(reader - .readElementValue(String.class)); - } else if (reader.getLocalName().equals( - XmlElementNames.Hostname)) { - connection.setHostname(reader - .readElementValue(String.class)); - } else if (reader.getLocalName().equals(XmlElementNames.Port)) { - connection.setPort(reader.readElementValue(int.class)); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.ProtocolConnection)); - - return connection; - } - - /** - * Initializes a new instance of the ProtocolConnection class. - * - * @param encryptionMethod - * The encryption method. - * @param hostname - * The hostname. - * @param port - * The port number to use for the portocol. - */ - protected ProtocolConnection(String encryptionMethod, String hostname, - int port) { - this.encryptionMethod = encryptionMethod; - this.hostname = hostname; - this.port = port; - } - - /** - * Gets the encryption method. - * - * @return The encryption method. - */ - public String getEncryptionMethod() { - return this.encryptionMethod; - } - - /** - * Sets the encryption method. - * - * @param value - * the new encryption method - */ - public void setEncryptionMethod(String value) { - this.encryptionMethod = value; - } - - /** - * Gets the hostname. - * - * @return The hostname. - */ - public String getHostname() { - return this.hostname; - - } - - /** - * Sets the hostname. - * - * @param value - * the new hostname - */ - public void setHostname(String value) { - this.hostname = value; - } - - /** - * Gets the port number. - * - * @return The port number. - */ - public int getPort() { - return this.port; - } - - /** - * Sets the port. - * - * @param value - * the new port - */ - public void setPort(int value) { - this.port = value; - } + /** + * The encryption method. + */ + private String encryptionMethod; + + /** + * The hostname. + */ + private String hostname; + + /** + * The port. + */ + private int port; + + /** + * Initializes a new instance of the class. + */ + + protected ProtocolConnection() { + } + + /** + * Read user setting with ProtocolConnection value. + * + * @param reader EwsServiceXmlReader + * @return the protocol connection + * @throws Exception the exception + */ + protected static ProtocolConnection loadFromXml(EwsXmlReader reader) + throws Exception { + ProtocolConnection connection = new ProtocolConnection(); + + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + XmlElementNames.EncryptionMethod)) { + connection.setEncryptionMethod(reader + .readElementValue(String.class)); + } else if (reader.getLocalName().equals( + XmlElementNames.Hostname)) { + connection.setHostname(reader + .readElementValue(String.class)); + } else if (reader.getLocalName().equals(XmlElementNames.Port)) { + connection.setPort(reader.readElementValue(int.class)); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.ProtocolConnection)); + + return connection; + } + + /** + * Initializes a new instance of the ProtocolConnection class. + * + * @param encryptionMethod The encryption method. + * @param hostname The hostname. + * @param port The port number to use for the portocol. + */ + protected ProtocolConnection(String encryptionMethod, String hostname, + int port) { + this.encryptionMethod = encryptionMethod; + this.hostname = hostname; + this.port = port; + } + + /** + * Gets the encryption method. + * + * @return The encryption method. + */ + public String getEncryptionMethod() { + return this.encryptionMethod; + } + + /** + * Sets the encryption method. + * + * @param value the new encryption method + */ + public void setEncryptionMethod(String value) { + this.encryptionMethod = value; + } + + /** + * Gets the hostname. + * + * @return The hostname. + */ + public String getHostname() { + return this.hostname; + + } + + /** + * Sets the hostname. + * + * @param value the new hostname + */ + public void setHostname(String value) { + this.hostname = value; + } + + /** + * Gets the port number. + * + * @return The port number. + */ + public int getPort() { + return this.port; + } + + /** + * Sets the port. + * + * @param value the new port + */ + public void setPort(int value) { + this.port = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index 950dec52a..2d74e33c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -14,69 +14,67 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a user setting that is a collection of protocol connection. - * */ public final class ProtocolConnectionCollection { - /** The connections. */ - private ArrayList connections; + /** + * The connections. + */ + private ArrayList connections; - /** - * Initializes a new instance of the class. - */ - ProtocolConnectionCollection() { - this.connections = new ArrayList(); - } + /** + * Initializes a new instance of the class. + */ + ProtocolConnectionCollection() { + this.connections = new ArrayList(); + } - /** - * Read user setting with ProtocolConnectionCollection value. - * - * @param reader - * EwsServiceXmlReader - * @return the protocol connection collection - * @throws Exception - * the exception - */ - static ProtocolConnectionCollection LoadFromXml(EwsXmlReader reader) - throws Exception { - ProtocolConnectionCollection value = new ProtocolConnectionCollection(); - ProtocolConnection connection = null; + /** + * Read user setting with ProtocolConnectionCollection value. + * + * @param reader EwsServiceXmlReader + * @return the protocol connection collection + * @throws Exception the exception + */ + static ProtocolConnectionCollection LoadFromXml(EwsXmlReader reader) + throws Exception { + ProtocolConnectionCollection value = new ProtocolConnectionCollection(); + ProtocolConnection connection = null; - do { - reader.read(); + do { + reader.read(); - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - XmlElementNames.ProtocolConnection)) { - connection = ProtocolConnection.loadFromXml(reader); - if (connection != null) { - value.getConnections().add(connection); - } - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.ProtocolConnections)); + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + XmlElementNames.ProtocolConnection)) { + connection = ProtocolConnection.loadFromXml(reader); + if (connection != null) { + value.getConnections().add(connection); + } + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.ProtocolConnections)); - return value; - } + return value; + } - /** - * Gets the Connections. - * - * @return the connections - */ - public ArrayList getConnections() { - return this.connections; - } + /** + * Gets the Connections. + * + * @return the connections + */ + public ArrayList getConnections() { + return this.connections; + } - /** - * Sets the connections. - * - * @param value - * the new connections - */ - void setConnections(ArrayList value) { - this.connections = value; - } + /** + * Sets the connections. + * + * @param value the new connections + */ + void setConnections(ArrayList value) { + this.connections = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java index 0257411a1..11ce8ab48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java @@ -12,119 +12,109 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a pull subscription. - * - * */ public final class PullSubscription extends SubscriptionBase { - /** The more events available. */ - private boolean moreEventsAvailable; + /** + * The more events available. + */ + private boolean moreEventsAvailable; - /** - * Initializes a new instance. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected PullSubscription(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes a new instance. + * + * @param service the service + * @throws Exception the exception + */ + protected PullSubscription(ExchangeService service) throws Exception { + super(service); + } - /** - * Obtains a collection of events that occurred on the subscribed folders - * since the point in time defined by the Watermark property. When GetEvents - * succeeds, Watermark is updated. - * - * @return Returns a collection of events that occurred since the last - * watermark - * @throws Exception - * the exception - */ - public GetEventsResults getEvents() throws Exception { - GetEventsResults results = getService().getEvents(this.getId(), - this.getWaterMark()); - this.setWaterMark(results.getNewWatermark()); - this.moreEventsAvailable = results.isMoreEventsAvailable(); - return results; - } - - /** - * Begins an asynchronous request to obtain a collection of events that occurred on the subscribed - * folders since the point in time defined by the Watermark property - * @param callback - * The AsyncCallback delegate - * @param state - * An object that contains state information for this request - * @throws Exception - * @return An IAsyncResult that references the asynchronous request - */ - public IAsyncResult beginGetEvents(AsyncCallback callback, Object state) throws Exception - { - return this.getService().beginGetEvents(callback,state, this.getId(), this.getWaterMark()); - } + /** + * Obtains a collection of events that occurred on the subscribed folders + * since the point in time defined by the Watermark property. When GetEvents + * succeeds, Watermark is updated. + * + * @return Returns a collection of events that occurred since the last + * watermark + * @throws Exception the exception + */ + public GetEventsResults getEvents() throws Exception { + GetEventsResults results = getService().getEvents(this.getId(), + this.getWaterMark()); + this.setWaterMark(results.getNewWatermark()); + this.moreEventsAvailable = results.isMoreEventsAvailable(); + return results; + } - /** - * Ends an asynchronous request to obtain a collection of events that occurred on the subscribed - * folders since the point in time defined by the Watermark property. When EndGetEvents succeeds, - * Watermark is updated. - * - * @param asyncResult An IAsyncResult that references the asynchronous request. - * @return Returns a collection of events that occurred since the last watermark. - * @throws Exception - */ - public GetEventsResults endGetEvents(IAsyncResult asyncResult) throws Exception - { - GetEventsResults results = this.getService().endGetEvents(asyncResult); + /** + * Begins an asynchronous request to obtain a collection of events that occurred on the subscribed + * folders since the point in time defined by the Watermark property + * + * @param callback The AsyncCallback delegate + * @param state An object that contains state information for this request + * @return An IAsyncResult that references the asynchronous request + * @throws Exception + */ + public IAsyncResult beginGetEvents(AsyncCallback callback, Object state) throws Exception { + return this.getService().beginGetEvents(callback, state, this.getId(), this.getWaterMark()); + } - this.setWaterMark(results.getNewWatermark()); - this.moreEventsAvailable = results.isMoreEventsAvailable(); + /** + * Ends an asynchronous request to obtain a collection of events that occurred on the subscribed + * folders since the point in time defined by the Watermark property. When EndGetEvents succeeds, + * Watermark is updated. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @return Returns a collection of events that occurred since the last watermark. + * @throws Exception + */ + public GetEventsResults endGetEvents(IAsyncResult asyncResult) throws Exception { + GetEventsResults results = this.getService().endGetEvents(asyncResult); - return results; - } + this.setWaterMark(results.getNewWatermark()); + this.moreEventsAvailable = results.isMoreEventsAvailable(); - /** - * Unsubscribes from the pull subscription. - * - * @throws Exception - * the exception - */ - public void unsubscribe() throws Exception { - getService().unsubscribe(getId()); - } + return results; + } - /** - * Begins an asynchronous request to unsubscribe from the pull subscription. - * @param callback - * The AsyncCallback delegate. - * @param state - * An object that contains state information for this request - * @throws Exception - * @return An IAsyncResult that references the asynchronous request - */ - public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception - { - return this.getService().beginUnsubscribe(callback,state, this.getId()); - } + /** + * Unsubscribes from the pull subscription. + * + * @throws Exception the exception + */ + public void unsubscribe() throws Exception { + getService().unsubscribe(getId()); + } - /** - * Ends an asynchronous request to unsubscribe from the pull subscription. - * - * @param asyncResult An IAsyncResult that references the asynchronous request. - * @throws Exception - */ - public void endUnsubscribe(IAsyncResult asyncResult) throws Exception - { - this.getService().endUnsubscribe(asyncResult); - } + /** + * Begins an asynchronous request to unsubscribe from the pull subscription. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request + * @return An IAsyncResult that references the asynchronous request + * @throws Exception + */ + public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception { + return this.getService().beginUnsubscribe(callback, state, this.getId()); + } - /** - * Gets a value indicating whether more events are available on the server. - * MoreEventsAvailable is undefined (null) until GetEvents is called. - * - * @return true, if is more events available - */ - public boolean isMoreEventsAvailable() { - return moreEventsAvailable; - } + /** + * Ends an asynchronous request to unsubscribe from the pull subscription. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public void endUnsubscribe(IAsyncResult asyncResult) throws Exception { + this.getService().endUnsubscribe(asyncResult); + } + + /** + * Gets a value indicating whether more events are available on the server. + * MoreEventsAvailable is undefined (null) until GetEvents is called. + * + * @return true, if is more events available + */ + public boolean isMoreEventsAvailable() { + return moreEventsAvailable; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java index e35b4b358..ab5ff6feb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java @@ -12,19 +12,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a push subscriptions.. - * */ public final class PushSubscription extends SubscriptionBase { - /** - * Initializes a new instance. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected PushSubscription(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes a new instance. + * + * @param service the service + * @throws Exception the exception + */ + protected PushSubscription(ExchangeService service) throws Exception { + super(service); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java index cb9663d6b..c09e31103 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java @@ -10,1560 +10,1485 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Date; -import java.util.Iterator; - import javax.xml.stream.XMLStreamException; +import java.util.*; /** - *Represents a recurrence pattern, as used by Appointment and Task items. - * + * Represents a recurrence pattern, as used by Appointment and Task items. */ public abstract class Recurrence extends ComplexProperty { - /** The start date. */ - private Date startDate; - - /** The number of occurrences. */ - private Integer numberOfOccurrences; - - /** The end date. */ - private Date endDate; - - /** - * Initializes a new instance. - */ - protected Recurrence() { - super(); - } - - /** - * Initializes a new instance. - * - * @param startDate - * the start date - */ - protected Recurrence(Date startDate) { - this(); - this.startDate = startDate; - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - protected abstract String getXmlElementName(); - - /** - * Gets a value indicating whether this instance is regeneration pattern. - * - * @return true, if is regeneration pattern - */ - protected boolean isRegenerationPattern() { - return false; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceValidationException, Exception { - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected final void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); - this.internalWritePropertiesToXml(writer); - writer.writeEndElement(); - - RecurrenceRange range = null; - - if (!this.hasEnd()) { - range = new NoEndRecurrenceRange(this.getStartDate()); - } else if (this.getNumberOfOccurrences() != null) { - range = new NumberedRecurrenceRange(this.startDate, - this.numberOfOccurrences); - } else { - if (this.getEndDate() != null) { - range = new EndDateRecurrenceRange(this.getStartDate(), this - .getEndDate()); - } - } - if (range != null) { - range.writeToXml(writer, range.getXmlElementName()); - } - - } - - /** - * Gets a property value or throw if null. * - * - * @param - * the generic type - * @param cls - * the cls - * @param value - * the value - * @param name - * the name - * @return Property value - * @throws ServiceValidationException - * the service validation exception - */ - protected T getFieldValueOrThrowIfNull(Class cls, Object value, - String name) throws ServiceValidationException { - if (value != null) { - return (T) value; - } else { - throw new ServiceValidationException(String.format( - Strings.PropertyValueMustBeSpecifiedForRecurrencePattern, - name)); - } - } - - /** - * Gets the date and time when the recurrence start. - * - * @return Date - * @throws ServiceValidationException - * the service validation exception - */ - public Date getStartDate() throws ServiceValidationException { - return this.getFieldValueOrThrowIfNull(Date.class, this.startDate, - "StartDate"); - - } - - /** - * sets the date and time when the recurrence start. - * - * @param value - * the new start date - */ - public void setStartDate(Date value) { - this.startDate = value; - } - - /** - * Gets a value indicating whether the pattern has a fixed number of - * occurrences or an end date. - * - * @return boolean - */ - public boolean hasEnd() { - - return ((this.numberOfOccurrences != null) || (this.endDate != null)); - } - - /** - * Sets up this recurrence so that it never ends. Calling NeverEnds is - * equivalent to setting both NumberOfOccurrences and EndDate to null. - * - */ - public void neverEnds() { - this.numberOfOccurrences = null; - this.endDate = null; - this.changed(); - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.startDate == null) { - throw new ServiceValidationException( - Strings.RecurrencePatternMustHaveStartDate); - } - } - - /** - * Gets the number of occurrences after which the recurrence ends. - * Setting NumberOfOccurrences resets EndDate. - * - * @return the number of occurrences - */ - public Integer getNumberOfOccurrences() { - return this.numberOfOccurrences; - - } - - /** - * Gets the number of occurrences after which the recurrence ends. - * Setting NumberOfOccurrences resets EndDate. - * - * @param value - * the new number of occurrences - * @throws ArgumentException - * the argument exception - */ - public void setNumberOfOccurrences(Integer value) throws ArgumentException { - if (value < 1) { - throw new ArgumentException( - Strings.NumberOfOccurrencesMustBeGreaterThanZero); - } - - if (this.canSetFieldValue(this.numberOfOccurrences, value)) { - numberOfOccurrences = value; - this.changed(); - } - - this.endDate = null; - - } - - /** - * Gets the date after which the recurrence ends. Setting EndDate resets - * NumberOfOccurrences. - * - * @return the end date - */ - public Date getEndDate() { - - return this.endDate; - } - - /** - * sets the date after which the recurrence ends. Setting EndDate resets - * NumberOfOccurrences. - * - * @param value - * the new end date - */ - public void setEndDate(Date value) { - - if (this.canSetFieldValue(this.endDate, value)) { - this.endDate = value; - this.changed(); - } - - this.numberOfOccurrences = null; - - } - - /** - * Represents a recurrence pattern where each occurrence happens a specific - * number of days after the previous one. - * - */ - public final static class DailyPattern extends IntervalPattern { - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.DailyRecurrence; - } - - /** - * Initializes a new instance of the DailyPattern class. - */ - - public DailyPattern() { - super(); - } - - /** - * Initializes a new instance of the DailyPattern class. - * - * @param startDate - * The date and time when the recurrence starts. - * @param interval - * The number of days between each occurrence. - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public DailyPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - super(startDate, interval); - } - - } - - /** - * - * Represents a regeneration pattern, as used with recurring tasks, where - * each occurrence happens a specified number of days after the previous one - * is completed. - * - */ - - public final static class DailyRegenerationPattern extends IntervalPattern { - - /** - * Initializes a new instance of the DailyRegenerationPattern class. - */ - public DailyRegenerationPattern() { - super(); - } - - /** - * Initializes a new instance of the DailyRegenerationPattern class. - * - * @param startDate - * The date and time when the recurrence starts. - * @param interval - * The number of days between each occurrence. - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public DailyRegenerationPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - protected String getXmlElementName() { - return XmlElementNames.DailyRegeneration; - } - - /** - * Gets a value indicating whether this instance is a regeneration - * pattern. - * - * @return true, if is regeneration pattern - */ - protected boolean isRegenerationPattern() { - return true; - } - - } - - /** - * Represents a recurrence pattern where each occurrence happens at a - * specific interval after the previous one. - * [EditorBrowsable(EditorBrowsableState.Never)] - */ - @EditorBrowsable(state = EditorBrowsableState.Never) - public abstract static class IntervalPattern extends Recurrence { - - /** The interval. */ - private int interval = 1; - - /** - * Initializes a new instance of the IntervalPattern class. - */ - protected IntervalPattern() { - super(); - } - - /** - * Initializes a new instance of the IntervalPattern class. - * - * @param startDate - * The date and time when the recurrence starts. - * @param interval - * The number of days between each occurrence. - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - protected IntervalPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - - super(startDate); - if (interval < 1) { - throw new ArgumentOutOfRangeException("interval", - Strings.IntervalMustBeGreaterOrEqualToOne); - } - - this.setInterval(interval); - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceValidationException, Exception { - super.internalWritePropertiesToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.Interval, this.getInterval()); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - - if (reader.getLocalName().equals(XmlElementNames.Interval)) { - this.interval = reader.readElementValue(Integer.class); - return true; - } else { - return false; - } - } - } - - /** - * Gets the interval between occurrences. - * - * @return the interval - */ - public int getInterval() { - return this.interval; - } - - /** - * Sets the interval. - * - * @param value - * the new interval - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public void setInterval(int value) throws ArgumentOutOfRangeException { - - if (value < 1) { - throw new ArgumentOutOfRangeException("value", - Strings.IntervalMustBeGreaterOrEqualToOne); - } - - if (this.canSetFieldValue(this.interval, value)) { - this.interval = value; - this.changed(); - } - - } - - } - - /** - * Represents a recurrence pattern where each occurrence happens on a - * specific day a specific number of months after the previous one. - */ - - public final static class MonthlyPattern extends IntervalPattern { - - /** The day of month. */ - private Integer dayOfMonth; - - /** - * Initializes a new instance of the MonthlyPattern class. - */ - public MonthlyPattern() { - super(); - - } - - /** - * Initializes a new instance of the MonthlyPattern class. - * - * @param startDate - * the start date - * @param interval - * the interval - * @param dayOfMonth - * the day of month - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public MonthlyPattern(Date startDate, int interval, int dayOfMonth) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - this.setDayOfMonth(dayOfMonth); - } - - // / Gets the name of the XML element. - - /* - * (non-Javadoc) - * - * @see microsoft.exchange.webservices.Recurrence#getXmlElementName() - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AbsoluteMonthlyRecurrence; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWritePropertiesToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfMonth, this.getDayOfMonth()); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DayOfMonth)) { - this.dayOfMonth = reader.readElementValue(int.class); - return true; - } else { - return false; - } - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.dayOfMonth == null) { - throw new ServiceValidationException( - Strings.DayOfMonthMustBeBetween1And31); - } - } - - /** - * Gets the day of month. - * - * @return the day of month - * @throws ServiceValidationException - * the service validation exception - */ - public int getDayOfMonth() throws ServiceValidationException { - return this.getFieldValueOrThrowIfNull(int.class, this.dayOfMonth, - "DayOfMonth"); - - } - - /** - * Sets the day of month. - * - * @param value - * the new day of month - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public void setDayOfMonth(int value) - throws ArgumentOutOfRangeException { - if (value < 1 || value > 31) { - throw new ArgumentOutOfRangeException("DayOfMonth", - Strings.DayOfMonthMustBeBetween1And31); - } - - if (this.canSetFieldValue(this.dayOfMonth, value)) { - this.dayOfMonth = value; - this.changed(); - } - } - } - - /** - * Represents a regeneration pattern, as used with recurring tasks, where - * each occurrence happens a specified number of months after the previous - * one is completed. - */ - public final static class MonthlyRegenerationPattern extends - IntervalPattern { - - /** - * Instantiates a new monthly regeneration pattern. - */ - public MonthlyRegenerationPattern() { - super(); - - } - - /** - * Instantiates a new monthly regeneration pattern. - * - * @param startDate - * the start date - * @param interval - * the interval - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public MonthlyRegenerationPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - } - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.MonthlyRegeneration; - } - - /** - * Gets a value indicating whether this instance is regeneration - * pattern. true if this instance is regeneration - * pattern; otherwise, false. - * - * @return true, if is regeneration pattern - */ - protected boolean isRegenerationPattern() { - return true; - } - } - - /** - * Represents a recurrence pattern where each occurrence happens on a - * relative day a specific number of months after the previous one. - */ - public final static class RelativeMonthlyPattern extends IntervalPattern { - - /** The day of the week. */ - private DayOfTheWeek dayOfTheWeek; - - /** The day of the week index. */ - private DayOfTheWeekIndex dayOfTheWeekIndex; - - // / Initializes a new instance of the class. - - /** - * Instantiates a new relative monthly pattern. - */ - public RelativeMonthlyPattern() { - super(); - } - - /** - * Instantiates a new relative monthly pattern. - * - * @param startDate - * the start date - * @param interval - * the interval - * @param dayOfTheWeek - * the day of the week - * @param dayOfTheWeekIndex - * the day of the week index - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public RelativeMonthlyPattern(Date startDate, int interval, - DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - this.setDayOfTheWeek(dayOfTheWeek); - this.setDayOfTheWeekIndex(dayOfTheWeekIndex); - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RelativeMonthlyRecurrence; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWritePropertiesToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DaysOfWeek, this.getDayOfTheWeek()); - - writer - .writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfWeekIndex, this - .getDayOfTheWeekIndex()); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { - - this.dayOfTheWeek = reader - .readElementValue(DayOfTheWeek.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.DayOfWeekIndex)) { - - this.dayOfTheWeekIndex = reader - .readElementValue(DayOfTheWeekIndex.class); - return true; - } else { - - return false; - } - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.dayOfTheWeek == null) { - throw new ServiceValidationException( - Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern); - } - - if (this.dayOfTheWeekIndex == null) { - throw new ServiceValidationException( - Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern); - } - } - - /** - * Day of the week index. - * - * @return the day of the week index - * @throws ServiceValidationException - * the service validation exception - */ - public DayOfTheWeekIndex getDayOfTheWeekIndex() - throws ServiceValidationException { - return this.getFieldValueOrThrowIfNull(DayOfTheWeekIndex.class, - this.dayOfTheWeekIndex, "DayOfTheWeekIndex"); - } - - /** - * Day of the week index. - * - * @param value - * the value - */ - public void setDayOfTheWeekIndex(DayOfTheWeekIndex value) { - if (this.canSetFieldValue(this.dayOfTheWeekIndex, value)) { - this.dayOfTheWeekIndex = value; - this.changed(); - } - - } - - /** - * Gets the day of the week. - * - * @return the day of the week - * @throws ServiceValidationException - * the service validation exception - */ - public DayOfTheWeek getDayOfTheWeek() - throws ServiceValidationException { - return this.getFieldValueOrThrowIfNull(DayOfTheWeek.class, - this.dayOfTheWeek, "DayOfTheWeek"); - - } - - /** - * Sets the day of the week. - * - * @param value - * the new day of the week - */ - public void setDayOfTheWeek(DayOfTheWeek value) { - - if (this.canSetFieldValue(this.dayOfTheWeek, value)) { - this.dayOfTheWeek = value; - this.changed(); - } - } - } - - /** - * The Class RelativeYearlyPattern. - */ - public final static class RelativeYearlyPattern extends Recurrence { - - /** The day of the week. */ - private DayOfTheWeek dayOfTheWeek; - - /** The day of the week index. */ - private DayOfTheWeekIndex dayOfTheWeekIndex; - - /** The month. */ - private Month month; - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RelativeYearlyRecurrence; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWritePropertiesToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DaysOfWeek, this.dayOfTheWeek); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfWeekIndex, this.dayOfTheWeekIndex); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, - this.month); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { - - this.dayOfTheWeek = reader - .readElementValue(DayOfTheWeek.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.DayOfWeekIndex)) { - - this.dayOfTheWeekIndex = reader - .readElementValue(DayOfTheWeekIndex.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Month)) { - - this.month = reader.readElementValue(Month.class); - return true; - } else { - - return false; - } - } - } - - /** - * Instantiates a new relative yearly pattern. - */ - public RelativeYearlyPattern() { - super(); - - } - - /** - * Instantiates a new relative yearly pattern. - * - * @param startDate - * the start date - * @param month - * the month - * @param dayOfTheWeek - * the day of the week - * @param dayOfTheWeekIndex - * the day of the week index - */ - public RelativeYearlyPattern(Date startDate, Month month, - DayOfTheWeek dayOfTheWeek, - DayOfTheWeekIndex dayOfTheWeekIndex) { - super(startDate); - - this.month = month; - this.dayOfTheWeek = dayOfTheWeek; - this.dayOfTheWeekIndex = dayOfTheWeekIndex; - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.dayOfTheWeekIndex == null) { - throw new ServiceValidationException( - Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern); - } - - if (this.dayOfTheWeek == null) { - throw new ServiceValidationException( - Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern); - } - - if (this.month == null) { - throw new ServiceValidationException( - Strings.MonthMustBeSpecifiedForRecurrencePattern); - } - } - - /** - * Gets the relative position of the day specified in DayOfTheWeek - * within the month. - * - * @return the day of the week index - * @throws ServiceValidationException - * the service validation exception - */ - public DayOfTheWeekIndex getDayOfTheWeekIndex() - throws ServiceValidationException { - - return this.getFieldValueOrThrowIfNull(DayOfTheWeekIndex.class, - this.dayOfTheWeekIndex, "DayOfTheWeekIndex"); - } - - /** - * Sets the relative position of the day specified in DayOfTheWeek - * within the month. - * - * @param value - * the new day of the week index - */ - public void setDayOfTheWeekIndex(DayOfTheWeekIndex value) { - - if (this.canSetFieldValue(this.dayOfTheWeekIndex, value)) { - this.dayOfTheWeekIndex = value; - this.changed(); - } - } - - /** - * Gets the day of the week. - * - * @return the day of the week - * @throws ServiceValidationException - * the service validation exception - */ - public DayOfTheWeek getDayOfTheWeek() - throws ServiceValidationException { - - return this.getFieldValueOrThrowIfNull(DayOfTheWeek.class, - this.dayOfTheWeek, "DayOfTheWeek"); - } - - /** - * Sets the day of the week. - * - * @param value - * the new day of the week - */ - public void setDayOfTheWeek(DayOfTheWeek value) { - - if (this.canSetFieldValue(this.dayOfTheWeek, value)) { - this.dayOfTheWeek = value; - this.changed(); - } - } - - /** - * Gets the month. - * - * @return the month - * @throws ServiceValidationException - * the service validation exception - */ - public Month getMonth() throws ServiceValidationException { - - return this.getFieldValueOrThrowIfNull(Month.class, this.month, - "Month"); - - } - - /** - * Sets the month. - * - * @param value - * the new month - */ - public void setMonth(Month value) { - - if (this.canSetFieldValue(this.month, value)) { - this.month = value; - this.changed(); - } - } - } - - /** - * Represents a recurrence pattern where each occurrence happens on specific - * days a specific number of weeks after the previous one. - */ - public final static class WeeklyPattern extends IntervalPattern implements - IComplexPropertyChangedDelegate { - - /** The days of the week. */ - private DayOfTheWeekCollection daysOfTheWeek = - new DayOfTheWeekCollection(); - - private Calendar firstDayOfWeek; - - /** - * Initializes a new instance of the WeeklyPattern class. specific days - * a specific number of weeks after the previous one. - */ - public WeeklyPattern() { - super(); - - this.daysOfTheWeek.addOnChangeEvent(this); - } - - /** - * Initializes a new instance of the WeeklyPattern class. - * - * @param startDate - * the start date - * @param interval - * the interval - * @param daysOfTheWeek - * the days of the week - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public WeeklyPattern(Date startDate, int interval, - DayOfTheWeek... daysOfTheWeek) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - ArrayList toProcess = new ArrayList( - Arrays.asList(daysOfTheWeek)); - Iterator idaysOfTheWeek = toProcess.iterator(); - this.daysOfTheWeek.addRange(idaysOfTheWeek); - } - - /** - * Change event handler. - * - * @param complexProperty - * the complex property - */ - private void daysOfTheWeekChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.WeeklyRecurrence; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWritePropertiesToXml(writer); - - this.getDaysOfTheWeek().writeToXml(writer, - XmlElementNames.DaysOfWeek); - if (this.firstDayOfWeek!=null) - { - - EwsUtilities.validatePropertyVersion( - (ExchangeService) writer.getService(), - ExchangeVersion.Exchange2010_SP1, - "FirstDayOfWeek"); - - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.FirstDayOfWeek, - this.firstDayOfWeek); - } - - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { - - this.getDaysOfTheWeek().loadFromXml(reader, - reader.getLocalName()); - return true;} - else if(reader.getLocalName().equals(XmlElementNames.FirstDayOfWeek)) { - this.firstDayOfWeek = reader. - readElementValue(Calendar.class, - XmlNamespace.Types, - XmlElementNames.FirstDayOfWeek); - return true; - } else { - - return false; - } - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.getDaysOfTheWeek().getCount() == 0) { - throw new ServiceValidationException( - Strings.DaysOfTheWeekNotSpecified); - } - } - - /** - * Gets the list of the days of the week when occurrences happen. - * - * @return the days of the week - */ - public DayOfTheWeekCollection getDaysOfTheWeek() { - return this.daysOfTheWeek; - } - - public Calendar getFirstDayOfWeek() throws ServiceValidationException - { - return this.getFieldValueOrThrowIfNull(Calendar.class, - this.firstDayOfWeek, "FirstDayOfWeek"); + /** + * The start date. + */ + private Date startDate; + + /** + * The number of occurrences. + */ + private Integer numberOfOccurrences; + + /** + * The end date. + */ + private Date endDate; + + /** + * Initializes a new instance. + */ + protected Recurrence() { + super(); + } + + /** + * Initializes a new instance. + * + * @param startDate the start date + */ + protected Recurrence(Date startDate) { + this(); + this.startDate = startDate; + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + protected abstract String getXmlElementName(); + + /** + * Gets a value indicating whether this instance is regeneration pattern. + * + * @return true, if is regeneration pattern + */ + protected boolean isRegenerationPattern() { + return false; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceValidationException, Exception { + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected final void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); + this.internalWritePropertiesToXml(writer); + writer.writeEndElement(); + + RecurrenceRange range = null; + + if (!this.hasEnd()) { + range = new NoEndRecurrenceRange(this.getStartDate()); + } else if (this.getNumberOfOccurrences() != null) { + range = new NumberedRecurrenceRange(this.startDate, + this.numberOfOccurrences); + } else { + if (this.getEndDate() != null) { + range = new EndDateRecurrenceRange(this.getStartDate(), this + .getEndDate()); + } + } + if (range != null) { + range.writeToXml(writer, range.getXmlElementName()); + } + + } + + /** + * Gets a property value or throw if null. * + * + * @param the generic type + * @param cls the cls + * @param value the value + * @param name the name + * @return Property value + * @throws ServiceValidationException the service validation exception + */ + protected T getFieldValueOrThrowIfNull(Class cls, Object value, + String name) throws ServiceValidationException { + if (value != null) { + return (T) value; + } else { + throw new ServiceValidationException(String.format( + Strings.PropertyValueMustBeSpecifiedForRecurrencePattern, + name)); + } + } + + /** + * Gets the date and time when the recurrence start. + * + * @return Date + * @throws ServiceValidationException the service validation exception + */ + public Date getStartDate() throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(Date.class, this.startDate, + "StartDate"); + + } + + /** + * sets the date and time when the recurrence start. + * + * @param value the new start date + */ + public void setStartDate(Date value) { + this.startDate = value; + } + + /** + * Gets a value indicating whether the pattern has a fixed number of + * occurrences or an end date. + * + * @return boolean + */ + public boolean hasEnd() { + + return ((this.numberOfOccurrences != null) || (this.endDate != null)); + } + + /** + * Sets up this recurrence so that it never ends. Calling NeverEnds is + * equivalent to setting both NumberOfOccurrences and EndDate to null. + */ + public void neverEnds() { + this.numberOfOccurrences = null; + this.endDate = null; + this.changed(); + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.startDate == null) { + throw new ServiceValidationException( + Strings.RecurrencePatternMustHaveStartDate); + } + } + + /** + * Gets the number of occurrences after which the recurrence ends. + * Setting NumberOfOccurrences resets EndDate. + * + * @return the number of occurrences + */ + public Integer getNumberOfOccurrences() { + return this.numberOfOccurrences; + + } + + /** + * Gets the number of occurrences after which the recurrence ends. + * Setting NumberOfOccurrences resets EndDate. + * + * @param value the new number of occurrences + * @throws ArgumentException the argument exception + */ + public void setNumberOfOccurrences(Integer value) throws ArgumentException { + if (value < 1) { + throw new ArgumentException( + Strings.NumberOfOccurrencesMustBeGreaterThanZero); + } + + if (this.canSetFieldValue(this.numberOfOccurrences, value)) { + numberOfOccurrences = value; + this.changed(); + } + + this.endDate = null; + + } + + /** + * Gets the date after which the recurrence ends. Setting EndDate resets + * NumberOfOccurrences. + * + * @return the end date + */ + public Date getEndDate() { + + return this.endDate; + } + + /** + * sets the date after which the recurrence ends. Setting EndDate resets + * NumberOfOccurrences. + * + * @param value the new end date + */ + public void setEndDate(Date value) { + + if (this.canSetFieldValue(this.endDate, value)) { + this.endDate = value; + this.changed(); + } + + this.numberOfOccurrences = null; + + } + + /** + * Represents a recurrence pattern where each occurrence happens a specific + * number of days after the previous one. + */ + public final static class DailyPattern extends IntervalPattern { + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.DailyRecurrence; + } + + /** + * Initializes a new instance of the DailyPattern class. + */ + + public DailyPattern() { + super(); + } + + /** + * Initializes a new instance of the DailyPattern class. + * + * @param startDate The date and time when the recurrence starts. + * @param interval The number of days between each occurrence. + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public DailyPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + super(startDate, interval); + } + + } + + + /** + * Represents a regeneration pattern, as used with recurring tasks, where + * each occurrence happens a specified number of days after the previous one + * is completed. + */ + + public final static class DailyRegenerationPattern extends IntervalPattern { + + /** + * Initializes a new instance of the DailyRegenerationPattern class. + */ + public DailyRegenerationPattern() { + super(); + } + + /** + * Initializes a new instance of the DailyRegenerationPattern class. + * + * @param startDate The date and time when the recurrence starts. + * @param interval The number of days between each occurrence. + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public DailyRegenerationPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + protected String getXmlElementName() { + return XmlElementNames.DailyRegeneration; + } + + /** + * Gets a value indicating whether this instance is a regeneration + * pattern. + * + * @return true, if is regeneration pattern + */ + protected boolean isRegenerationPattern() { + return true; + } + + } + + + /** + * Represents a recurrence pattern where each occurrence happens at a + * specific interval after the previous one. + * [EditorBrowsable(EditorBrowsableState.Never)] + */ + @EditorBrowsable(state = EditorBrowsableState.Never) + public abstract static class IntervalPattern extends Recurrence { + + /** + * The interval. + */ + private int interval = 1; + + /** + * Initializes a new instance of the IntervalPattern class. + */ + protected IntervalPattern() { + super(); + } + + /** + * Initializes a new instance of the IntervalPattern class. + * + * @param startDate The date and time when the recurrence starts. + * @param interval The number of days between each occurrence. + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + protected IntervalPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + + super(startDate); + if (interval < 1) { + throw new ArgumentOutOfRangeException("interval", + Strings.IntervalMustBeGreaterOrEqualToOne); + } + + this.setInterval(interval); + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceValidationException, Exception { + super.internalWritePropertiesToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.Interval, this.getInterval()); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + + if (reader.getLocalName().equals(XmlElementNames.Interval)) { + this.interval = reader.readElementValue(Integer.class); + return true; + } else { + return false; + } + } + } + + /** + * Gets the interval between occurrences. + * + * @return the interval + */ + public int getInterval() { + return this.interval; + } + + /** + * Sets the interval. + * + * @param value the new interval + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public void setInterval(int value) throws ArgumentOutOfRangeException { + + if (value < 1) { + throw new ArgumentOutOfRangeException("value", + Strings.IntervalMustBeGreaterOrEqualToOne); + } + + if (this.canSetFieldValue(this.interval, value)) { + this.interval = value; + this.changed(); + } + + } + + } + + + /** + * Represents a recurrence pattern where each occurrence happens on a + * specific day a specific number of months after the previous one. + */ + + public final static class MonthlyPattern extends IntervalPattern { + + /** + * The day of month. + */ + private Integer dayOfMonth; + + /** + * Initializes a new instance of the MonthlyPattern class. + */ + public MonthlyPattern() { + super(); + + } + + /** + * Initializes a new instance of the MonthlyPattern class. + * + * @param startDate the start date + * @param interval the interval + * @param dayOfMonth the day of month + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public MonthlyPattern(Date startDate, int interval, int dayOfMonth) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + this.setDayOfMonth(dayOfMonth); + } + + // / Gets the name of the XML element. + + /* + * (non-Javadoc) + * + * @see microsoft.exchange.webservices.Recurrence#getXmlElementName() + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AbsoluteMonthlyRecurrence; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWritePropertiesToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfMonth, this.getDayOfMonth()); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DayOfMonth)) { + this.dayOfMonth = reader.readElementValue(int.class); + return true; + } else { + return false; + } + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.dayOfMonth == null) { + throw new ServiceValidationException( + Strings.DayOfMonthMustBeBetween1And31); + } + } + + /** + * Gets the day of month. + * + * @return the day of month + * @throws ServiceValidationException the service validation exception + */ + public int getDayOfMonth() throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(int.class, this.dayOfMonth, + "DayOfMonth"); + + } + + /** + * Sets the day of month. + * + * @param value the new day of month + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public void setDayOfMonth(int value) + throws ArgumentOutOfRangeException { + if (value < 1 || value > 31) { + throw new ArgumentOutOfRangeException("DayOfMonth", + Strings.DayOfMonthMustBeBetween1And31); + } + + if (this.canSetFieldValue(this.dayOfMonth, value)) { + this.dayOfMonth = value; + this.changed(); + } + } + } + + + /** + * Represents a regeneration pattern, as used with recurring tasks, where + * each occurrence happens a specified number of months after the previous + * one is completed. + */ + public final static class MonthlyRegenerationPattern extends + IntervalPattern { + + /** + * Instantiates a new monthly regeneration pattern. + */ + public MonthlyRegenerationPattern() { + super(); + + } + + /** + * Instantiates a new monthly regeneration pattern. + * + * @param startDate the start date + * @param interval the interval + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public MonthlyRegenerationPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + } + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.MonthlyRegeneration; + } + + /** + * Gets a value indicating whether this instance is regeneration + * pattern. true if this instance is regeneration + * pattern; otherwise, false. + * + * @return true, if is regeneration pattern + */ + protected boolean isRegenerationPattern() { + return true; + } + } + + + /** + * Represents a recurrence pattern where each occurrence happens on a + * relative day a specific number of months after the previous one. + */ + public final static class RelativeMonthlyPattern extends IntervalPattern { + + /** + * The day of the week. + */ + private DayOfTheWeek dayOfTheWeek; + + /** + * The day of the week index. + */ + private DayOfTheWeekIndex dayOfTheWeekIndex; + + // / Initializes a new instance of the class. + + /** + * Instantiates a new relative monthly pattern. + */ + public RelativeMonthlyPattern() { + super(); + } + + /** + * Instantiates a new relative monthly pattern. + * + * @param startDate the start date + * @param interval the interval + * @param dayOfTheWeek the day of the week + * @param dayOfTheWeekIndex the day of the week index + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public RelativeMonthlyPattern(Date startDate, int interval, + DayOfTheWeek dayOfTheWeek, DayOfTheWeekIndex dayOfTheWeekIndex) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + this.setDayOfTheWeek(dayOfTheWeek); + this.setDayOfTheWeekIndex(dayOfTheWeekIndex); + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RelativeMonthlyRecurrence; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWritePropertiesToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DaysOfWeek, this.getDayOfTheWeek()); + + writer + .writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfWeekIndex, this + .getDayOfTheWeekIndex()); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { + + this.dayOfTheWeek = reader + .readElementValue(DayOfTheWeek.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.DayOfWeekIndex)) { + + this.dayOfTheWeekIndex = reader + .readElementValue(DayOfTheWeekIndex.class); + return true; + } else { + + return false; + } + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.dayOfTheWeek == null) { + throw new ServiceValidationException( + Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern); + } + + if (this.dayOfTheWeekIndex == null) { + throw new ServiceValidationException( + Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern); + } + } + + /** + * Day of the week index. + * + * @return the day of the week index + * @throws ServiceValidationException the service validation exception + */ + public DayOfTheWeekIndex getDayOfTheWeekIndex() + throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(DayOfTheWeekIndex.class, + this.dayOfTheWeekIndex, "DayOfTheWeekIndex"); + } + + /** + * Day of the week index. + * + * @param value the value + */ + public void setDayOfTheWeekIndex(DayOfTheWeekIndex value) { + if (this.canSetFieldValue(this.dayOfTheWeekIndex, value)) { + this.dayOfTheWeekIndex = value; + this.changed(); + } + + } + + /** + * Gets the day of the week. + * + * @return the day of the week + * @throws ServiceValidationException the service validation exception + */ + public DayOfTheWeek getDayOfTheWeek() + throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(DayOfTheWeek.class, + this.dayOfTheWeek, "DayOfTheWeek"); + + } + + /** + * Sets the day of the week. + * + * @param value the new day of the week + */ + public void setDayOfTheWeek(DayOfTheWeek value) { + + if (this.canSetFieldValue(this.dayOfTheWeek, value)) { + this.dayOfTheWeek = value; + this.changed(); + } + } + } + + + /** + * The Class RelativeYearlyPattern. + */ + public final static class RelativeYearlyPattern extends Recurrence { + + /** + * The day of the week. + */ + private DayOfTheWeek dayOfTheWeek; + + /** + * The day of the week index. + */ + private DayOfTheWeekIndex dayOfTheWeekIndex; + + /** + * The month. + */ + private Month month; + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RelativeYearlyRecurrence; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWritePropertiesToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DaysOfWeek, this.dayOfTheWeek); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfWeekIndex, this.dayOfTheWeekIndex); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, + this.month); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { + + this.dayOfTheWeek = reader + .readElementValue(DayOfTheWeek.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.DayOfWeekIndex)) { + + this.dayOfTheWeekIndex = reader + .readElementValue(DayOfTheWeekIndex.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Month)) { + + this.month = reader.readElementValue(Month.class); + return true; + } else { + + return false; + } + } + } + + /** + * Instantiates a new relative yearly pattern. + */ + public RelativeYearlyPattern() { + super(); + + } + + /** + * Instantiates a new relative yearly pattern. + * + * @param startDate the start date + * @param month the month + * @param dayOfTheWeek the day of the week + * @param dayOfTheWeekIndex the day of the week index + */ + public RelativeYearlyPattern(Date startDate, Month month, + DayOfTheWeek dayOfTheWeek, + DayOfTheWeekIndex dayOfTheWeekIndex) { + super(startDate); + + this.month = month; + this.dayOfTheWeek = dayOfTheWeek; + this.dayOfTheWeekIndex = dayOfTheWeekIndex; + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.dayOfTheWeekIndex == null) { + throw new ServiceValidationException( + Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern); + } + + if (this.dayOfTheWeek == null) { + throw new ServiceValidationException( + Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern); + } + + if (this.month == null) { + throw new ServiceValidationException( + Strings.MonthMustBeSpecifiedForRecurrencePattern); + } + } + + /** + * Gets the relative position of the day specified in DayOfTheWeek + * within the month. + * + * @return the day of the week index + * @throws ServiceValidationException the service validation exception + */ + public DayOfTheWeekIndex getDayOfTheWeekIndex() + throws ServiceValidationException { + + return this.getFieldValueOrThrowIfNull(DayOfTheWeekIndex.class, + this.dayOfTheWeekIndex, "DayOfTheWeekIndex"); + } + + /** + * Sets the relative position of the day specified in DayOfTheWeek + * within the month. + * + * @param value the new day of the week index + */ + public void setDayOfTheWeekIndex(DayOfTheWeekIndex value) { + + if (this.canSetFieldValue(this.dayOfTheWeekIndex, value)) { + this.dayOfTheWeekIndex = value; + this.changed(); + } + } + + /** + * Gets the day of the week. + * + * @return the day of the week + * @throws ServiceValidationException the service validation exception + */ + public DayOfTheWeek getDayOfTheWeek() + throws ServiceValidationException { + + return this.getFieldValueOrThrowIfNull(DayOfTheWeek.class, + this.dayOfTheWeek, "DayOfTheWeek"); + } + + /** + * Sets the day of the week. + * + * @param value the new day of the week + */ + public void setDayOfTheWeek(DayOfTheWeek value) { + + if (this.canSetFieldValue(this.dayOfTheWeek, value)) { + this.dayOfTheWeek = value; + this.changed(); + } + } + + /** + * Gets the month. + * + * @return the month + * @throws ServiceValidationException the service validation exception + */ + public Month getMonth() throws ServiceValidationException { + + return this.getFieldValueOrThrowIfNull(Month.class, this.month, + "Month"); + + } + + /** + * Sets the month. + * + * @param value the new month + */ + public void setMonth(Month value) { + + if (this.canSetFieldValue(this.month, value)) { + this.month = value; + this.changed(); + } + } + } + + + /** + * Represents a recurrence pattern where each occurrence happens on specific + * days a specific number of weeks after the previous one. + */ + public final static class WeeklyPattern extends IntervalPattern implements + IComplexPropertyChangedDelegate { + + /** + * The days of the week. + */ + private DayOfTheWeekCollection daysOfTheWeek = + new DayOfTheWeekCollection(); + + private Calendar firstDayOfWeek; + + /** + * Initializes a new instance of the WeeklyPattern class. specific days + * a specific number of weeks after the previous one. + */ + public WeeklyPattern() { + super(); + + this.daysOfTheWeek.addOnChangeEvent(this); + } + + /** + * Initializes a new instance of the WeeklyPattern class. + * + * @param startDate the start date + * @param interval the interval + * @param daysOfTheWeek the days of the week + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public WeeklyPattern(Date startDate, int interval, + DayOfTheWeek... daysOfTheWeek) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + ArrayList toProcess = new ArrayList( + Arrays.asList(daysOfTheWeek)); + Iterator idaysOfTheWeek = toProcess.iterator(); + this.daysOfTheWeek.addRange(idaysOfTheWeek); + } + + /** + * Change event handler. + * + * @param complexProperty the complex property + */ + private void daysOfTheWeekChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.WeeklyRecurrence; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWritePropertiesToXml(writer); + + this.getDaysOfTheWeek().writeToXml(writer, + XmlElementNames.DaysOfWeek); + if (this.firstDayOfWeek != null) { + + EwsUtilities.validatePropertyVersion( + (ExchangeService) writer.getService(), + ExchangeVersion.Exchange2010_SP1, + "FirstDayOfWeek"); + + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.FirstDayOfWeek, + this.firstDayOfWeek); + } + + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DaysOfWeek)) { + + this.getDaysOfTheWeek().loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.FirstDayOfWeek)) { + this.firstDayOfWeek = reader. + readElementValue(Calendar.class, + XmlNamespace.Types, + XmlElementNames.FirstDayOfWeek); + return true; + } else { + + return false; + } + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.getDaysOfTheWeek().getCount() == 0) { + throw new ServiceValidationException( + Strings.DaysOfTheWeekNotSpecified); + } + } + + /** + * Gets the list of the days of the week when occurrences happen. + * + * @return the days of the week + */ + public DayOfTheWeekCollection getDaysOfTheWeek() { + return this.daysOfTheWeek; + } + + public Calendar getFirstDayOfWeek() throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(Calendar.class, + this.firstDayOfWeek, "FirstDayOfWeek"); + } + + public void setFirstDayOfWeek(Calendar value) { + if (this.canSetFieldValue(this.firstDayOfWeek, value)) { + this.firstDayOfWeek = value; + this.changed(); + } + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices. + * ComplexPropertyChangedDelegateInterface# + * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty + * ) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.daysOfTheWeekChanged(complexProperty); + } + + } + + + /** + * Represents a regeneration pattern, as used with recurring tasks, where + * each occurrence happens a specified number of weeks after the previous + * one is completed. + */ + public final static class WeeklyRegenerationPattern extends + IntervalPattern { + + /** + * Initializes a new instance of the WeeklyRegenerationPattern class. + */ + public WeeklyRegenerationPattern() { + + super(); + } + + /** + * Initializes a new instance of the WeeklyRegenerationPattern class. + * + * @param startDate the start date + * @param interval the interval + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public WeeklyRegenerationPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + } + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.WeeklyRegeneration; + } + + /** + * Gets a value indicating whether this instance is regeneration + * pattern. true if this instance is regeneration + * pattern; otherwise, false. + * + * @return true, if is regeneration pattern + */ + protected boolean isRegenerationPattern() { + return true; + } + } + + + /** + * Represents a recurrence pattern where each occurrence happens on a + * specific day every year. + */ + public final static class YearlyPattern extends Recurrence { + + /** + * The month. + */ + private Month month; + + /** + * The day of month. + */ + private Integer dayOfMonth; + + /** + * Initializes a new instance of the YearlyPattern class. + */ + public YearlyPattern() { + super(); + + } + + /** + * Initializes a new instance of the YearlyPattern class. + * + * @param startDate the start date + * @param month the month + * @param dayOfMonth the day of month + */ + public YearlyPattern(Date startDate, Month month, int dayOfMonth) { + super(startDate); + + this.month = month; + this.dayOfMonth = dayOfMonth; + } + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.AbsoluteYearlyRecurrence; + } + + /** + * Write properties to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) + throws Exception { + super.internalWritePropertiesToXml(writer); + + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfMonth, this.getDayOfMonth()); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, + this.getMonth()); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DayOfMonth)) { + + this.dayOfMonth = reader.readElementValue(int.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Month)) { + + this.month = reader.readElementValue(Month.class); + return true; + } else { + + return false; } - - public void setFirstDayOfWeek(Calendar value) - { - if (this.canSetFieldValue(this.firstDayOfWeek, value)) { - this.firstDayOfWeek = value; - this.changed(); - } - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices. - * ComplexPropertyChangedDelegateInterface# - * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty - * ) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.daysOfTheWeekChanged(complexProperty); - } - - } - - /** - * Represents a regeneration pattern, as used with recurring tasks, where - * each occurrence happens a specified number of weeks after the previous - * one is completed. - */ - public final static class WeeklyRegenerationPattern extends - IntervalPattern { - - /** - * Initializes a new instance of the WeeklyRegenerationPattern class. - */ - public WeeklyRegenerationPattern() { - - super(); - } - - /** - * Initializes a new instance of the WeeklyRegenerationPattern class. - * - * @param startDate - * the start date - * @param interval - * the interval - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public WeeklyRegenerationPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - } - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.WeeklyRegeneration; - } - - /** - * Gets a value indicating whether this instance is regeneration - * pattern. true if this instance is regeneration - * pattern; otherwise, false. - * - * @return true, if is regeneration pattern - */ - protected boolean isRegenerationPattern() { - return true; - } - } - - /** - * Represents a recurrence pattern where each occurrence happens on a - * specific day every year. - */ - public final static class YearlyPattern extends Recurrence { - - /** The month. */ - private Month month; - - /** The day of month. */ - private Integer dayOfMonth; - - /** - * Initializes a new instance of the YearlyPattern class. - */ - public YearlyPattern() { - super(); - - } - - /** - * Initializes a new instance of the YearlyPattern class. - * - * @param startDate - * the start date - * @param month - * the month - * @param dayOfMonth - * the day of month - */ - public YearlyPattern(Date startDate, Month month, int dayOfMonth) { - super(startDate); - - this.month = month; - this.dayOfMonth = dayOfMonth; - } - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.AbsoluteYearlyRecurrence; - } - - /** - * Write properties to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void internalWritePropertiesToXml(EwsServiceXmlWriter writer) - throws Exception { - super.internalWritePropertiesToXml(writer); - - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfMonth, this.getDayOfMonth()); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, - this.getMonth()); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DayOfMonth)) { - - this.dayOfMonth = reader.readElementValue(int.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Month)) { - - this.month = reader.readElementValue(Month.class); - return true; - } else { - - return false; - } - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - - if (this.month == null) { - throw new ServiceValidationException( - Strings.MonthMustBeSpecifiedForRecurrencePattern); - } - - if (this.dayOfMonth == null) { - throw new ServiceValidationException( - Strings.DayOfMonthMustBeSpecifiedForRecurrencePattern); - } - } - - /** - * Gets the month of the year when each occurrence happens. - * - * @return the month - * @throws ServiceValidationException - * the service validation exception - */ - public Month getMonth() throws ServiceValidationException { - return this.getFieldValueOrThrowIfNull(Month.class, this.month, - "Month"); - } - - /** - * Sets the month. - * - * @param value - * the new month - */ - public void setMonth(Month value) { - - if (this.canSetFieldValue(this.month, value)) { - this.month = value; - this.changed(); - } - } - - /** - * Gets the day of the month when each occurrence happens. DayOfMonth - * must be between 1 and 31. - * - * @return the day of month - * @throws ServiceValidationException - * the service validation exception - */ - public int getDayOfMonth() throws ServiceValidationException { - - return this.getFieldValueOrThrowIfNull(int.class, this.dayOfMonth, - "DayOfMonth"); - - } - - /** - * Sets the day of the month when each occurrence happens. DayOfMonth - * must be between 1 and 31. - * - * @param value - * the new day of month - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public void setDayOfMonth(int value) - throws ArgumentOutOfRangeException { - - if (value < 1 || value > 31) { - throw new ArgumentOutOfRangeException("DayOfMonth", - Strings.DayOfMonthMustBeBetween1And31); - } - - if (this.canSetFieldValue(this.dayOfMonth, value)) { - this.dayOfMonth = value; - this.changed(); - } - } - } - - /** - * Represents a regeneration pattern, as used with recurring tasks, where - * each occurrence happens a specified number of years after the previous - * one is completed. - */ - public final static class YearlyRegenerationPattern extends - IntervalPattern { - - /** - * Gets the name of the XML element. The name of the XML - * element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.YearlyRegeneration; - } - - /** - * Gets a value indicating whether this instance is regeneration - * pattern. - * - * @return true, if is regeneration pattern - */ - protected boolean isRegenerationPattern() { - return true; - } - - /** - * Initializes a new instance of the YearlyRegenerationPattern class. - */ - public YearlyRegenerationPattern() { - super(); - - } - - /** - * Initializes a new instance of the YearlyRegenerationPattern class. - * - * @param startDate - * the start date - * @param interval - * the interval - * @throws ArgumentOutOfRangeException - * the argument out of range exception - */ - public YearlyRegenerationPattern(Date startDate, int interval) - throws ArgumentOutOfRangeException { - super(startDate, interval); - - } - } + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + + if (this.month == null) { + throw new ServiceValidationException( + Strings.MonthMustBeSpecifiedForRecurrencePattern); + } + + if (this.dayOfMonth == null) { + throw new ServiceValidationException( + Strings.DayOfMonthMustBeSpecifiedForRecurrencePattern); + } + } + + /** + * Gets the month of the year when each occurrence happens. + * + * @return the month + * @throws ServiceValidationException the service validation exception + */ + public Month getMonth() throws ServiceValidationException { + return this.getFieldValueOrThrowIfNull(Month.class, this.month, + "Month"); + } + + /** + * Sets the month. + * + * @param value the new month + */ + public void setMonth(Month value) { + + if (this.canSetFieldValue(this.month, value)) { + this.month = value; + this.changed(); + } + } + + /** + * Gets the day of the month when each occurrence happens. DayOfMonth + * must be between 1 and 31. + * + * @return the day of month + * @throws ServiceValidationException the service validation exception + */ + public int getDayOfMonth() throws ServiceValidationException { + + return this.getFieldValueOrThrowIfNull(int.class, this.dayOfMonth, + "DayOfMonth"); + + } + + /** + * Sets the day of the month when each occurrence happens. DayOfMonth + * must be between 1 and 31. + * + * @param value the new day of month + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public void setDayOfMonth(int value) + throws ArgumentOutOfRangeException { + + if (value < 1 || value > 31) { + throw new ArgumentOutOfRangeException("DayOfMonth", + Strings.DayOfMonthMustBeBetween1And31); + } + + if (this.canSetFieldValue(this.dayOfMonth, value)) { + this.dayOfMonth = value; + this.changed(); + } + } + } + + + /** + * Represents a regeneration pattern, as used with recurring tasks, where + * each occurrence happens a specified number of years after the previous + * one is completed. + */ + public final static class YearlyRegenerationPattern extends + IntervalPattern { + + /** + * Gets the name of the XML element. The name of the XML + * element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.YearlyRegeneration; + } + + /** + * Gets a value indicating whether this instance is regeneration + * pattern. + * + * @return true, if is regeneration pattern + */ + protected boolean isRegenerationPattern() { + return true; + } + + /** + * Initializes a new instance of the YearlyRegenerationPattern class. + */ + public YearlyRegenerationPattern() { + super(); + + } + + /** + * Initializes a new instance of the YearlyRegenerationPattern class. + * + * @param startDate the start date + * @param interval the interval + * @throws ArgumentOutOfRangeException the argument out of range exception + */ + public YearlyRegenerationPattern(Date startDate, int interval) + throws ArgumentOutOfRangeException { + super(startDate, interval); + + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index 42104a8d8..0584cda4c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -17,154 +17,143 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class RecurrencePropertyDefinition extends PropertyDefinition { - /** - * Initializes a new instance of the RecurrencePropertyDefinition class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected RecurrencePropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - - super(xmlElementName, uri, flags, version); - - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - XmlElementNames.Recurrence); - - Recurrence recurrence = null; - - reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the - // pattern - // element - - if (reader.getLocalName().equals( - XmlElementNames.RelativeYearlyRecurrence)) { - - recurrence = new Recurrence.RelativeYearlyPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.AbsoluteYearlyRecurrence)) { - - recurrence = new Recurrence.YearlyPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.RelativeMonthlyRecurrence)) { - - recurrence = new Recurrence.RelativeMonthlyPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.AbsoluteMonthlyRecurrence)) { - - recurrence = new Recurrence.MonthlyPattern(); - } else if (reader.getLocalName() - .equals(XmlElementNames.DailyRecurrence)) { - - recurrence = new Recurrence.DailyPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.DailyRegeneration)) { - - recurrence = new Recurrence.DailyRegenerationPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.WeeklyRecurrence)) { - - recurrence = new Recurrence.WeeklyPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.WeeklyRegeneration)) { - - recurrence = new Recurrence.WeeklyRegenerationPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.MonthlyRegeneration)) { - - recurrence = new Recurrence.MonthlyRegenerationPattern(); - } else if (reader.getLocalName().equals( - XmlElementNames.YearlyRegeneration)) { - - recurrence = new Recurrence.YearlyRegenerationPattern(); - } else { - - throw new ServiceXmlDeserializationException(String.format( - Strings.InvalidRecurrencePattern, reader.getLocalName())); - } - - recurrence.loadFromXml(reader, reader.getLocalName()); - - reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the - // range - // element - - RecurrenceRange range; - - if (reader.getLocalName().equals(XmlElementNames.NoEndRecurrence)) { - - range = new NoEndRecurrenceRange(); - } else if (reader.getLocalName().equals( - XmlElementNames.EndDateRecurrence)) { - - range = new EndDateRecurrenceRange(); - } else if (reader.getLocalName().equals( - XmlElementNames.NumberedRecurrence)) { - - range = new NumberedRecurrenceRange(); - } else { - throw new ServiceXmlDeserializationException(String.format( - Strings.InvalidRecurrenceRange, reader.getLocalName())); - } - - range.loadFromXml(reader, reader.getLocalName()); - range.setupRecurrence(recurrence); - - reader.readEndElementIfNecessary(XmlNamespace.Types, - XmlElementNames.Recurrence); - - propertyBag.setObjectFromPropertyDefinition(this, recurrence); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - * @throws Exception - * the exception - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { - Recurrence value = (Recurrence)propertyBag - .getObjectFromPropertyDefinition(this); - - if (value != null) { - value.writeToXml(writer, XmlElementNames.Recurrence); - } - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return Recurrence.class; - } + /** + * Initializes a new instance of the RecurrencePropertyDefinition class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected RecurrencePropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + + super(xmlElementName, uri, flags, version); + + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + XmlElementNames.Recurrence); + + Recurrence recurrence = null; + + reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the + // pattern + // element + + if (reader.getLocalName().equals( + XmlElementNames.RelativeYearlyRecurrence)) { + + recurrence = new Recurrence.RelativeYearlyPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.AbsoluteYearlyRecurrence)) { + + recurrence = new Recurrence.YearlyPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.RelativeMonthlyRecurrence)) { + + recurrence = new Recurrence.RelativeMonthlyPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.AbsoluteMonthlyRecurrence)) { + + recurrence = new Recurrence.MonthlyPattern(); + } else if (reader.getLocalName() + .equals(XmlElementNames.DailyRecurrence)) { + + recurrence = new Recurrence.DailyPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.DailyRegeneration)) { + + recurrence = new Recurrence.DailyRegenerationPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.WeeklyRecurrence)) { + + recurrence = new Recurrence.WeeklyPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.WeeklyRegeneration)) { + + recurrence = new Recurrence.WeeklyRegenerationPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.MonthlyRegeneration)) { + + recurrence = new Recurrence.MonthlyRegenerationPattern(); + } else if (reader.getLocalName().equals( + XmlElementNames.YearlyRegeneration)) { + + recurrence = new Recurrence.YearlyRegenerationPattern(); + } else { + + throw new ServiceXmlDeserializationException(String.format( + Strings.InvalidRecurrencePattern, reader.getLocalName())); + } + + recurrence.loadFromXml(reader, reader.getLocalName()); + + reader.read(new XmlNodeType(XmlNodeType.START_ELEMENT)); // This is the + // range + // element + + RecurrenceRange range; + + if (reader.getLocalName().equals(XmlElementNames.NoEndRecurrence)) { + + range = new NoEndRecurrenceRange(); + } else if (reader.getLocalName().equals( + XmlElementNames.EndDateRecurrence)) { + + range = new EndDateRecurrenceRange(); + } else if (reader.getLocalName().equals( + XmlElementNames.NumberedRecurrence)) { + + range = new NumberedRecurrenceRange(); + } else { + throw new ServiceXmlDeserializationException(String.format( + Strings.InvalidRecurrenceRange, reader.getLocalName())); + } + + range.loadFromXml(reader, reader.getLocalName()); + range.setupRecurrence(recurrence); + + reader.readEndElementIfNecessary(XmlNamespace.Types, + XmlElementNames.Recurrence); + + propertyBag.setObjectFromPropertyDefinition(this, recurrence); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + * @throws Exception the exception + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { + Recurrence value = (Recurrence) propertyBag + .getObjectFromPropertyDefinition(this); + + if (value != null) { + value.writeToXml(writer, XmlElementNames.Recurrence); + } + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return Recurrence.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java index 571315ec1..79bcaed6e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java @@ -10,173 +10,156 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; -import javax.xml.stream.XMLStreamException; - /** * Represents recurrence range with start and end dates. - * */ abstract class RecurrenceRange extends ComplexProperty { - /** The start date. */ - private Date startDate; - - /** The recurrence. */ - private Recurrence recurrence; - - /** - * Initializes a new instance. - */ - protected RecurrenceRange() { - super(); - } - - /** - * Initializes a new instance. - * - * @param startDate - * the start date - */ - protected RecurrenceRange(Date startDate) { - this(); - this.startDate = startDate; - } - - /** - * Changes handler. - */ - protected void changed() { - if (this.recurrence != null) { - this.recurrence.changed(); - } - } - - /** - * Setup the recurrence. - * - * @param recurrence - * the new up recurrence - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - protected void setupRecurrence(Recurrence recurrence) - throws InstantiationException, IllegalAccessException, - ServiceValidationException, Exception { - recurrence.setStartDate(this.getStartDate()); - } - - /** - * Writes elements to XML.. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - Date d = this.startDate; - DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); - String formattedString = df.format(d); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.StartDate, - formattedString); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.text.ParseException - * the parse exception - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, InstantiationException, - IllegalAccessException, XMLStreamException, ParseException, - Exception { - if (reader.getLocalName().equals(XmlElementNames.StartDate)) { - //this.startDate = reader.readElementValueAsDateTime(); - Date startDate = reader.readElementValueAsUnspecifiedDate(); - if (startDate != null) - { - this.startDate = startDate; - return true; - } - return false; - } else { - return false; - } - } - - /** - * Gets the name of the XML element. - * - * @return recurrence - */ - protected abstract String getXmlElementName(); - - /** - * Gets or sets the recurrence. - * - * @return recurrence - */ - protected Recurrence getRecurrence() { - return this.recurrence; - } - - /** - * Sets the recurrence. - * - * @param value - * the new recurrence - */ - protected void setRecurrence(Recurrence value) { - this.recurrence = value; - } - - /** - * Gets the start date. - * - * @return startDate - */ - protected Date getStartDate() { - return this.startDate; - - } - - /** - * Sets the start date. - * - * @param value - * the new start date - */ - protected void setStartDate(Date value) { - this.canSetFieldValue(this.startDate, value); - } + /** + * The start date. + */ + private Date startDate; + + /** + * The recurrence. + */ + private Recurrence recurrence; + + /** + * Initializes a new instance. + */ + protected RecurrenceRange() { + super(); + } + + /** + * Initializes a new instance. + * + * @param startDate the start date + */ + protected RecurrenceRange(Date startDate) { + this(); + this.startDate = startDate; + } + + /** + * Changes handler. + */ + protected void changed() { + if (this.recurrence != null) { + this.recurrence.changed(); + } + } + + /** + * Setup the recurrence. + * + * @param recurrence the new up recurrence + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + protected void setupRecurrence(Recurrence recurrence) + throws InstantiationException, IllegalAccessException, + ServiceValidationException, Exception { + recurrence.setStartDate(this.getStartDate()); + } + + /** + * Writes elements to XML.. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + Date d = this.startDate; + DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + String formattedString = df.format(d); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.StartDate, + formattedString); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.text.ParseException the parse exception + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, InstantiationException, + IllegalAccessException, XMLStreamException, ParseException, + Exception { + if (reader.getLocalName().equals(XmlElementNames.StartDate)) { + //this.startDate = reader.readElementValueAsDateTime(); + Date startDate = reader.readElementValueAsUnspecifiedDate(); + if (startDate != null) { + this.startDate = startDate; + return true; + } + return false; + } else { + return false; + } + } + + /** + * Gets the name of the XML element. + * + * @return recurrence + */ + protected abstract String getXmlElementName(); + + /** + * Gets or sets the recurrence. + * + * @return recurrence + */ + protected Recurrence getRecurrence() { + return this.recurrence; + } + + /** + * Sets the recurrence. + * + * @param value the new recurrence + */ + protected void setRecurrence(Recurrence value) { + this.recurrence = value; + } + + /** + * Gets the start date. + * + * @return startDate + */ + protected Date getStartDate() { + return this.startDate; + + } + + /** + * Sets the start date. + * + * @param value the new start date + */ + protected void setStartDate(Date value) { + this.canSetFieldValue(this.startDate, value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java index 4cf2a3ea2..fb0878e2a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java @@ -15,43 +15,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class RecurringAppointmentMasterId extends ItemId { - /** - * Represents the Id of an occurrence of a recurring appointment. - * - * @param occurrenceId - * the occurrence id - * @throws Exception - * the exception - */ - public RecurringAppointmentMasterId(String occurrenceId) throws Exception { - super(occurrenceId); - } + /** + * Represents the Id of an occurrence of a recurring appointment. + * + * @param occurrenceId the occurrence id + * @throws Exception the exception + */ + public RecurringAppointmentMasterId(String occurrenceId) throws Exception { + super(occurrenceId); + } - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RecurringMasterItemId; - } + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RecurringMasterItemId; + } - /** - * Writes attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.OccurrenceId, this - .getUniqueId()); - writer.writeAttributeValue(XmlAttributeNames.ChangeKey, this - .getChangeKey()); - } + /** + * Writes attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.OccurrenceId, this + .getUniqueId()); + writer.writeAttributeValue(XmlAttributeNames.ChangeKey, this + .getChangeKey()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RefParam.java b/src/main/java/microsoft/exchange/webservices/data/RefParam.java index 6a8ef91f3..8845f7c2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RefParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/RefParam.java @@ -12,19 +12,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class RefParam. - * - * @param - * the generic type + * + * @param the generic type */ public class RefParam extends Param { - /** - * Instantiates a new ref param. - * - * @param param - * the param - */ - public RefParam(T param) { - this.setParam(param); - } + /** + * Instantiates a new ref param. + * + * @param param the param + */ + public RefParam(T param) { + this.setParam(param); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java index c141286dd..dd11fe9fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java @@ -18,115 +18,111 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class RelativeDayOfMonthTransition extends AbsoluteMonthTransition { - /** The day of the week. */ - private DayOfTheWeek dayOfTheWeek; - - /** The week index. */ - private int weekIndex; + /** + * The day of the week. + */ + private DayOfTheWeek dayOfTheWeek; - /** - * Gets the XML element name associated with the transition. - * - * @return The XML element name associated with the transition. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RecurringDayTransition; - } - - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read. - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (super.tryReadElementFromXml(reader)) { - return true; - } else { - if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { - this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Occurrence)) { - this.weekIndex = reader.readElementValue(Integer.class); - return true; - } else { - return false; - } - } - } + /** + * The week index. + */ + private int weekIndex; - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - super.writeElementsToXml(writer); + /** + * Gets the XML element name associated with the transition. + * + * @return The XML element name associated with the transition. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RecurringDayTransition; + } - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.DayOfWeek, - this.dayOfTheWeek); + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read. + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (super.tryReadElementFromXml(reader)) { + return true; + } else { + if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { + this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Occurrence)) { + this.weekIndex = reader.readElementValue(Integer.class); + return true; + } else { + return false; + } + } + } - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Occurrence, - this.weekIndex); - } + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + super.writeElementsToXml(writer); - /** - * Initializes a new instance of the "RelativeDayOfMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - */ - protected RelativeDayOfMonthTransition( - TimeZoneDefinition timeZoneDefinition) { - super(timeZoneDefinition); - } + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.DayOfWeek, + this.dayOfTheWeek); - /** - * Initializes a new instance of the "RelativeDayOfMonthTransition class. - * - * @param timeZoneDefinition - * the time zone definition - * @param targetPeriod - * the target period - */ - protected RelativeDayOfMonthTransition( - TimeZoneDefinition timeZoneDefinition, - TimeZonePeriod targetPeriod) { - super(timeZoneDefinition, targetPeriod); - } + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Occurrence, + this.weekIndex); + } - /** - * Gets the day of the week when the transition occurs. - * - * @return the day of the week - */ - protected DayOfTheWeek getDayOfTheWeek() { - return this.dayOfTheWeek; - } + /** + * Initializes a new instance of the "RelativeDayOfMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + */ + protected RelativeDayOfMonthTransition( + TimeZoneDefinition timeZoneDefinition) { + super(timeZoneDefinition); + } - /** - * Gets the index of the week in the month when the transition occurs. - * - * @return the week index - */ - protected int getWeekIndex() { - return this.weekIndex; - } + /** + * Initializes a new instance of the "RelativeDayOfMonthTransition class. + * + * @param timeZoneDefinition the time zone definition + * @param targetPeriod the target period + */ + protected RelativeDayOfMonthTransition( + TimeZoneDefinition timeZoneDefinition, + TimeZonePeriod targetPeriod) { + super(timeZoneDefinition, targetPeriod); + } + + /** + * Gets the day of the week when the transition occurs. + * + * @return the day of the week + */ + protected DayOfTheWeek getDayOfTheWeek() { + return this.dayOfTheWeek; + } + + /** + * Gets the index of the week in the month when the transition occurs. + * + * @return the week index + */ + protected int getWeekIndex() { + return this.weekIndex; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java index fc4ca110e..b39548ca2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java @@ -17,105 +17,103 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a RemoveDelete request. */ class RemoveDelegateRequest extends - DelegateManagementRequestBase { + DelegateManagementRequestBase { - /** The user ids. */ - private List userIds = new ArrayList(); + /** + * The user ids. + */ + private List userIds = new ArrayList(); - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected RemoveDelegateRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected RemoveDelegateRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Asserts the valid. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getUserIds().iterator(), - "UserIds"); - } + /** + * Asserts the valid. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getUserIds().iterator(), + "UserIds"); + } - /** - * Asserts the valid. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - writer - .writeStartElement(XmlNamespace.Messages, - XmlElementNames.UserIds); + /** + * Asserts the valid. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + writer + .writeStartElement(XmlNamespace.Messages, + XmlElementNames.UserIds); - for (UserId userId : this.getUserIds()) { - userId.writeToXml(writer, XmlElementNames.UserId); - } + for (UserId userId : this.getUserIds()) { + userId.writeToXml(writer, XmlElementNames.UserId); + } - writer.writeEndElement(); // UserIds - } + writer.writeEndElement(); // UserIds + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.RemoveDelegateResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.RemoveDelegateResponse; + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.RemoveDelegate; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.RemoveDelegate; + } - /** - * Creates the response. - * - * @return Service response - */ - @Override - protected DelegateManagementResponse createResponse() { - return new DelegateManagementResponse(false, null); - } + /** + * Creates the response. + * + * @return Service response + */ + @Override + protected DelegateManagementResponse createResponse() { + return new DelegateManagementResponse(false, null); + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the user ids. The user ids. - * - * @return the user ids - */ - public List getUserIds() { - return this.userIds; - } + /** + * Gets the user ids. The user ids. + * + * @return the user ids + */ + public List getUserIds() { + return this.userIds; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index d64f11df1..92a82ffe1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -17,98 +17,91 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * cancellation. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.RemoveItem, returnedByServer = false) - class RemoveFromCalendar extends ServiceObject { +class RemoveFromCalendar extends ServiceObject { - /** The reference item. */ - private Item referenceItem; + /** + * The reference item. + */ + private Item referenceItem; - /** - * Initializes a new instance of the RemoveFromCalendar class. - * - * @param referenceItem - * The reference item - * @throws Exception - * the exception - */ - RemoveFromCalendar(Item referenceItem) throws Exception { - super(referenceItem.getService()); + /** + * Initializes a new instance of the RemoveFromCalendar class. + * + * @param referenceItem The reference item + * @throws Exception the exception + */ + RemoveFromCalendar(Item referenceItem) throws Exception { + super(referenceItem.getService()); - referenceItem.throwIfThisIsNew(); + referenceItem.throwIfThisIsNew(); - this.referenceItem = referenceItem; - } + this.referenceItem = referenceItem; + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ResponseObjectSchema.Instance; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ResponseObjectSchema.Instance; + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Loads the specified set of properties on the object. - * - * @param propertySet - * The properties to load. - */ - @Override - protected void internalLoad(PropertySet propertySet) { - throw new UnsupportedOperationException(); - } + /** + * Loads the specified set of properties on the object. + * + * @param propertySet The properties to load. + */ + @Override + protected void internalLoad(PropertySet propertySet) { + throw new UnsupportedOperationException(); + } - /** - * Deletes the object. - * - * @param deleteMode - * The deletion mode. - * @param sendCancellationsMode - * Indicates whether meeting cancellation messages should be - * sent. - * @param affectedTaskOccurrences - * Indicate which occurrence of a recurring task should be - * deleted. - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) { - throw new UnsupportedOperationException(); - } + /** + * Deletes the object. + * + * @param deleteMode The deletion mode. + * @param sendCancellationsMode Indicates whether meeting cancellation messages should be + * sent. + * @param affectedTaskOccurrences Indicate which occurrence of a recurring task should be + * deleted. + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) { + throw new UnsupportedOperationException(); + } - /** - * Create response object. - * - * @param parentFolderId - * The parent folder id. - * @param messageDisposition - * The message disposition. - * @return A list of items that were created or modified as a results of - * this operation. - * @throws Exception - * the exception - */ - protected List internalCreate(FolderId parentFolderId, - MessageDisposition messageDisposition) throws Exception { - ((ItemId)this.getPropertyBag().getObjectFromPropertyDefinition( - ResponseObjectSchema.ReferenceItemId)) - .assign(this.referenceItem.getId()); + /** + * Create response object. + * + * @param parentFolderId The parent folder id. + * @param messageDisposition The message disposition. + * @return A list of items that were created or modified as a results of + * this operation. + * @throws Exception the exception + */ + protected List internalCreate(FolderId parentFolderId, + MessageDisposition messageDisposition) throws Exception { + ((ItemId) this.getPropertyBag().getObjectFromPropertyDefinition( + ResponseObjectSchema.ReferenceItemId)) + .assign(this.referenceItem.getId()); - return this.getService().internalCreateResponseObject(this, - parentFolderId, messageDisposition); - } + return this.getService().internalCreateResponseObject(this, + parentFolderId, messageDisposition); + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java index f8179eaae..521ff6f4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java @@ -18,14 +18,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Interface RequiredServerVersion. */ -@Target( { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD }) -@Retention(RetentionPolicy.RUNTIME) -@interface RequiredServerVersion { +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) @interface RequiredServerVersion { - /** - * Version. - * - * @return the exchange version - */ - ExchangeVersion version(); + /** + * Version. + * + * @return the exchange version + */ + ExchangeVersion version(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java index 8b88bec5a..6e9903f95 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java @@ -15,21 +15,29 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ResolveNameSearchLocation { - // The name is resolved against the Global Address List. - /** The Directory only. */ - DirectoryOnly, + // The name is resolved against the Global Address List. + /** + * The Directory only. + */ + DirectoryOnly, - // The name is resolved against the Global Address List and then against the - // Contacts folder if no match was found. - /** The Directory then contacts. */ - DirectoryThenContacts, + // The name is resolved against the Global Address List and then against the + // Contacts folder if no match was found. + /** + * The Directory then contacts. + */ + DirectoryThenContacts, - // The name is resolved against the Contacts folder. - /** The Contacts only. */ - ContactsOnly, + // The name is resolved against the Contacts folder. + /** + * The Contacts only. + */ + ContactsOnly, - // The name is resolved against the Contacts folder and then against the - // Global Address List if no match was found. - /** The Contacts then directory. */ - ContactsThenDirectory + // The name is resolved against the Contacts folder and then against the + // Global Address List if no match was found. + /** + * The Contacts then directory. + */ + ContactsThenDirectory } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index 22c589830..db17fe455 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -17,294 +17,293 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a ResolveNames request. */ final class ResolveNamesRequest extends -MultiResponseServiceRequest { - - /** The Search scope map. */ - private static LazyMember> - searchScopeMap = - new LazyMember>( - new ILazyMember>() { - @Override - public Map - createInstance() { - - Map map = - new HashMap(); - - map.put(ResolveNameSearchLocation.DirectoryOnly, - "ActiveDirectory"); - map.put(ResolveNameSearchLocation.DirectoryThenContacts, - "ActiveDirectoryContacts"); - map.put(ResolveNameSearchLocation.ContactsOnly, - "Contacts"); - map.put(ResolveNameSearchLocation.ContactsThenDirectory, - "ContactsActiveDirectory"); - - return map; - } - - }); - - /** The name to resolve. */ - private String nameToResolve; - - /** The return full contact data. */ - private boolean returnFullContactData; - - /** The search location. */ - private ResolveNameSearchLocation searchLocation; - - /** The Contact PropertySet. **/ - private PropertySet contactDataPropertySet; - - /** The parent folder ids. */ - private FolderIdWrapperList parentFolderIds = new FolderIdWrapperList(); - - - - - - /** - * Asserts the valid. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateNonBlankStringParam(this. - getNameToResolve(), "NameToResolve"); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response - */ - @Override - protected ResolveNamesResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new ResolveNamesResponse(service); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.ResolveNames; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.ResolveNamesResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.ResolveNamesResponseMessage; - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected ResolveNamesRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.ReturnFullContactData, - this.returnFullContactData); - - String searchScope = null; - if (searchScopeMap.getMember().containsKey(searchLocation)) { - searchScope = searchScopeMap.getMember().get(searchLocation); - } - - EwsUtilities - .EwsAssert( - (!(searchScope == null || searchScope.isEmpty())), - "ResolveNameRequest.WriteAttributesToXml", - "The specified search location cannot " + - "be mapped to an EWS search scope."); - - String propertySet = null; - if(this.getContactDataPropertySet() != null){ - //((PropertyBag)PropertySet.getDefaultPropertySetDictionary( ).getMember()).tryGetValue(this.contactDataPropertySet.getBasePropertySet(), propertySet); - if(PropertySet.getDefaultPropertySetMap() .getMember().containsKey( this.getContactDataPropertySet().getBasePropertySet())){ - propertySet= PropertySet.getDefaultPropertySetMap().getMember().get(this.getContactDataPropertySet().getBasePropertySet()); - } - } - - if(!this.getService().getExchange2007CompatibilityMode()) - { - writer.writeAttributeValue(XmlAttributeNames. - SearchScope, searchScope); - } - if(! ( propertySet == null)){ - writer.writeAttributeValue(XmlAttributeNames.ContactDataShape, propertySet); - } - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getParentFolderIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.ParentFolderIds); - - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.UnresolvedEntry, this.getNameToResolve()); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the name to resolve. The name to resolve. - * - * @return the name to resolve - */ - public String getNameToResolve() { - return this.nameToResolve; - } - - /** - * Sets the name to resolve. - * - * @param nameToResolve - * the new name to resolve - */ - public void setNameToResolve(String nameToResolve) { - this.nameToResolve = nameToResolve; - } - - /** - * Gets a value indicating whether to return full contact data or - * not. true if should return full contact data; otherwise, - * false. - * - * @return the return full contact data - */ - public boolean getReturnFullContactData() { - return this.returnFullContactData; - } - - /** - * Sets the return full contact data. - * - * @param returnFullContactData - * the new return full contact data - */ - public void setReturnFullContactData(boolean returnFullContactData) { - this.returnFullContactData = returnFullContactData; - } - - /** - * Gets the search location. The search scope. - * - * @return the search location - */ - public ResolveNameSearchLocation getSearchLocation() { - return this.searchLocation; - } - - /** - * Sets the search location. - * - * @param searchLocation - * the new search location - */ - public void setSearchLocation(ResolveNameSearchLocation searchLocation) { - this.searchLocation = searchLocation; - } - - /** - * Gets the parent folder ids. The parent folder ids. - * - * @return the parent folder ids - */ - public FolderIdWrapperList getParentFolderIds() { - return this.parentFolderIds; - } - - /** - *Gets or sets the PropertySet for Contact Data - * - * The PropertySet - */ - public void setContactDataPropertySet(PropertySet propertySet){ - - - this.contactDataPropertySet = propertySet; + MultiResponseServiceRequest { + + /** + * The Search scope map. + */ + private static LazyMember> + searchScopeMap = + new LazyMember>( + new ILazyMember>() { + @Override + public Map + createInstance() { + + Map map = + new HashMap(); + + map.put(ResolveNameSearchLocation.DirectoryOnly, + "ActiveDirectory"); + map.put(ResolveNameSearchLocation.DirectoryThenContacts, + "ActiveDirectoryContacts"); + map.put(ResolveNameSearchLocation.ContactsOnly, + "Contacts"); + map.put(ResolveNameSearchLocation.ContactsThenDirectory, + "ContactsActiveDirectory"); + + return map; + } + + }); + + /** + * The name to resolve. + */ + private String nameToResolve; + + /** + * The return full contact data. + */ + private boolean returnFullContactData; + + /** + * The search location. + */ + private ResolveNameSearchLocation searchLocation; + + /** + * The Contact PropertySet. * + */ + private PropertySet contactDataPropertySet; + + /** + * The parent folder ids. + */ + private FolderIdWrapperList parentFolderIds = new FolderIdWrapperList(); + + + + /** + * Asserts the valid. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateNonBlankStringParam(this. + getNameToResolve(), "NameToResolve"); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response + */ + @Override + protected ResolveNamesResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new ResolveNamesResponse(service); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.ResolveNames; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.ResolveNamesResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.ResolveNamesResponseMessage; + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected ResolveNamesRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.ReturnFullContactData, + this.returnFullContactData); + + String searchScope = null; + if (searchScopeMap.getMember().containsKey(searchLocation)) { + searchScope = searchScopeMap.getMember().get(searchLocation); } - - /** - * Gets or sets the PropertySet for Contact Data - * @return The PropertySet - * - */ - public PropertySet getContactDataPropertySet(){ - return this.contactDataPropertySet; - } - - - + + EwsUtilities + .EwsAssert( + (!(searchScope == null || searchScope.isEmpty())), + "ResolveNameRequest.WriteAttributesToXml", + "The specified search location cannot " + + "be mapped to an EWS search scope."); + + String propertySet = null; + if (this.getContactDataPropertySet() != null) { + //((PropertyBag)PropertySet.getDefaultPropertySetDictionary( ).getMember()).tryGetValue(this.contactDataPropertySet.getBasePropertySet(), propertySet); + if (PropertySet.getDefaultPropertySetMap().getMember() + .containsKey(this.getContactDataPropertySet().getBasePropertySet())) { + propertySet = PropertySet.getDefaultPropertySetMap().getMember() + .get(this.getContactDataPropertySet().getBasePropertySet()); + } + } + + if (!this.getService().getExchange2007CompatibilityMode()) { + writer.writeAttributeValue(XmlAttributeNames. + SearchScope, searchScope); + } + if (!(propertySet == null)) { + writer.writeAttributeValue(XmlAttributeNames.ContactDataShape, propertySet); + } + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getParentFolderIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.ParentFolderIds); + + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.UnresolvedEntry, this.getNameToResolve()); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the name to resolve. The name to resolve. + * + * @return the name to resolve + */ + public String getNameToResolve() { + return this.nameToResolve; + } + + /** + * Sets the name to resolve. + * + * @param nameToResolve the new name to resolve + */ + public void setNameToResolve(String nameToResolve) { + this.nameToResolve = nameToResolve; + } + + /** + * Gets a value indicating whether to return full contact data or + * not. true if should return full contact data; otherwise, + * false. + * + * @return the return full contact data + */ + public boolean getReturnFullContactData() { + return this.returnFullContactData; + } + + /** + * Sets the return full contact data. + * + * @param returnFullContactData the new return full contact data + */ + public void setReturnFullContactData(boolean returnFullContactData) { + this.returnFullContactData = returnFullContactData; + } + + /** + * Gets the search location. The search scope. + * + * @return the search location + */ + public ResolveNameSearchLocation getSearchLocation() { + return this.searchLocation; + } + + /** + * Sets the search location. + * + * @param searchLocation the new search location + */ + public void setSearchLocation(ResolveNameSearchLocation searchLocation) { + this.searchLocation = searchLocation; + } + + /** + * Gets the parent folder ids. The parent folder ids. + * + * @return the parent folder ids + */ + public FolderIdWrapperList getParentFolderIds() { + return this.parentFolderIds; + } + + /** + * Gets or sets the PropertySet for Contact Data + *

+ * The PropertySet + */ + public void setContactDataPropertySet(PropertySet propertySet) { + + + this.contactDataPropertySet = propertySet; + } + + /** + * Gets or sets the PropertySet for Contact Data + * + * @return The PropertySet + */ + public PropertySet getContactDataPropertySet() { + return this.contactDataPropertySet; + } + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java index 870fc8c22..b7ba3d1ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java @@ -15,59 +15,57 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class ResolveNamesResponse extends ServiceResponse { - /** The resolutions. */ - private NameResolutionCollection resolutions; + /** + * The resolutions. + */ + private NameResolutionCollection resolutions; - /** - * Initializes a new instance of the class. - * - * @param service - * the service - */ - protected ResolveNamesResponse(ExchangeService service) { - super(); - EwsUtilities.EwsAssert(service != null, "ResolveNamesResponse.ctor", - "service is null"); + /** + * Initializes a new instance of the class. + * + * @param service the service + */ + protected ResolveNamesResponse(ExchangeService service) { + super(); + EwsUtilities.EwsAssert(service != null, "ResolveNamesResponse.ctor", + "service is null"); - this.resolutions = new NameResolutionCollection(service); - } + this.resolutions = new NameResolutionCollection(service); + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); - this.resolutions.loadFromXml(reader); - } + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); + this.resolutions.loadFromXml(reader); + } - /** - * Override base implementation so that API does not throw when name - * resolution fails to find a match. EWS returns an error in this case but - * the API will just return an empty NameResolutionCollection. - * - * @throws ServiceResponseException - * the service response exception - */ - @Override - protected void internalThrowIfNecessary() throws ServiceResponseException { - if (this.getErrorCode() != ServiceError.ErrorNameResolutionNoResults) { - super.internalThrowIfNecessary(); - } - } + /** + * Override base implementation so that API does not throw when name + * resolution fails to find a match. EWS returns an error in this case but + * the API will just return an empty NameResolutionCollection. + * + * @throws ServiceResponseException the service response exception + */ + @Override + protected void internalThrowIfNecessary() throws ServiceResponseException { + if (this.getErrorCode() != ServiceError.ErrorNameResolutionNoResults) { + super.internalThrowIfNecessary(); + } + } - /** - * Gets a list of name resolution suggestions. - * - * @return the resolutions - */ - public NameResolutionCollection getResolutions() { - return this.resolutions; - } + /** + * Gets a list of name resolution suggestions. + * + * @return the resolutions + */ + public NameResolutionCollection getResolutions() { + return this.resolutions; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index 407dee5c4..027b6b435 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -16,62 +16,85 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Flags public enum ResponseActions { - // No action can be taken. - /** The None. */ - None(0), - - // The item can be accepted. - /** The Accept. */ - Accept(1), - - // The item can be tentatively accepted. - /** The Tentatively accept. */ - TentativelyAccept(2), - - // The item can be declined. - /** The Decline. */ - Decline(4), - - // The item can be replied to. - - /** The Reply. */ - Reply(8), - - // The item can be replied to. - /** The Reply all. */ - ReplyAll(16), - - // The item can be forwarded. - /** The Forward. */ - Forward(32), - - // The item can be cancelled. - /** The Cancel. */ - Cancel(64), - - // The item can be removed from the calendar. - /** The Remove from calendar. */ - RemoveFromCalendar(128), - - // The item's read receipt can be suppressed. - /** The Suppress read receipt. */ - SuppressReadReceipt(256), - - // A reply to the item can be posted. - /** The Post reply. */ - PostReply(512); - - /** The response act. */ - @SuppressWarnings("unused") - private final int responseAct; - - /** - * Instantiates a new response actions. - * - * @param responseAct - * the response act - */ - ResponseActions(int responseAct) { - this.responseAct = responseAct; - } + // No action can be taken. + /** + * The None. + */ + None(0), + + // The item can be accepted. + /** + * The Accept. + */ + Accept(1), + + // The item can be tentatively accepted. + /** + * The Tentatively accept. + */ + TentativelyAccept(2), + + // The item can be declined. + /** + * The Decline. + */ + Decline(4), + + // The item can be replied to. + + /** + * The Reply. + */ + Reply(8), + + // The item can be replied to. + /** + * The Reply all. + */ + ReplyAll(16), + + // The item can be forwarded. + /** + * The Forward. + */ + Forward(32), + + // The item can be cancelled. + /** + * The Cancel. + */ + Cancel(64), + + // The item can be removed from the calendar. + /** + * The Remove from calendar. + */ + RemoveFromCalendar(128), + + // The item's read receipt can be suppressed. + /** + * The Suppress read receipt. + */ + SuppressReadReceipt(256), + + // A reply to the item can be posted. + /** + * The Post reply. + */ + PostReply(512); + + /** + * The response act. + */ + @SuppressWarnings("unused") + private final int responseAct; + + /** + * Instantiates a new response actions. + * + * @param responseAct the response act + */ + ResponseActions(int responseAct) { + this.responseAct = responseAct; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java index 30519b40d..4e009433a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java @@ -15,200 +15,185 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ResponseMessage extends ResponseObject { - /** - * Represents the base class for e-mail related responses (Reply, Reply all - * and Forward). - */ - private ResponseMessageType responseType; - - /** - * Initializes a new instance of the class. - * - * @param referenceItem - * the reference item - * @param responseType - * the response type - * @throws Exception - * the exception - */ - ResponseMessage(Item referenceItem, ResponseMessageType responseType) - throws Exception { - super(referenceItem); - this.responseType = responseType; - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ResponseMessageSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * This methods lets subclasses of ServiceObject override the default - * mechanism by which the XML element name associated with their type is - * retrieved. - * - * @return The XML element name associated with this type. If this method - * returns null or empty, the XML element name associated with this - * type is determined by the EwsObjectDefinition attribute that - * decorates the type,if present. - */ - protected String getXmlElementNameOverride() { - - if (this.responseType == ResponseMessageType.Reply) { - return XmlElementNames.ReplyToItem; - } else if (this.responseType == ResponseMessageType.ReplyAll) { - return XmlElementNames.ReplyAllToItem; - } else if (this.responseType == ResponseMessageType.Forward) { - return XmlElementNames.ForwardItem; - } else { - EwsUtilities.EwsAssert(false, - "ResponseMessage.GetXmlElementNameOverride", - "An unexpected value for responseType " + - "could not be handled."); - return null; // Because the compiler wants it - } - - } - - /** - * Gets a value indicating the type of response this object represents. - * - * @return the response type - */ - public ResponseMessageType getResponseType() { - return this.responseType; - } - - /** - * Gets the body of the response. - * - * @return the body - * @throws Exception - * the exception - */ - public MessageBody getBody() throws Exception { - return (MessageBody)this - .getObjectFromPropertyDefinition(ItemSchema.Body); - } - - /** - * Sets the body. - * - * @param value - * the new body - * @throws Exception - * the exception - */ - public void setBody(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, - value); - } - - /** - * Gets a list of recipients the response will be sent to. - * - * @return the to recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getToRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.ToRecipients); - } - - /** - * Gets a list of recipients the response will be sent to as Cc. - * - * @return the cc recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getCcRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.CcRecipients); - } - - /** - * Gets a list of recipients the response will be sent to as Cc. - * - * @return the bcc recipients - * @throws Exception - * the exception - */ - public EmailAddressCollection getBccRecipients() throws Exception { - return (EmailAddressCollection)this - .getObjectFromPropertyDefinition( - EmailMessageSchema.BccRecipients); - } - - /** - * Gets the subject of this response. - * - * @return the subject - * @throws Exception - * the exception - */ - public String getSubject() throws Exception { - return (String)this - .getObjectFromPropertyDefinition(EmailMessageSchema.Subject); - } - - /** - * Sets the subject. - * - * @param value - * the new subject - * @throws Exception - * the exception - */ - public void setSubject(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - EmailMessageSchema.Subject, value); - } - - /** - * Gets the body prefix of this response. The body prefix will be - * prepended to the original message's body when the response is created. - * - * @return the body prefix - * @throws Exception - * the exception - */ - public MessageBody getBodyPrefix() throws Exception { - return (MessageBody)this - .getObjectFromPropertyDefinition( - ResponseObjectSchema.BodyPrefix); - } - - /** - * Sets the body prefix. - * - * @param value - * the new body prefix - * @throws Exception - * the exception - */ - public void setBodyPrefix(MessageBody value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - ResponseObjectSchema.BodyPrefix, value); - } + /** + * Represents the base class for e-mail related responses (Reply, Reply all + * and Forward). + */ + private ResponseMessageType responseType; + + /** + * Initializes a new instance of the class. + * + * @param referenceItem the reference item + * @param responseType the response type + * @throws Exception the exception + */ + ResponseMessage(Item referenceItem, ResponseMessageType responseType) + throws Exception { + super(referenceItem); + this.responseType = responseType; + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ResponseMessageSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * This methods lets subclasses of ServiceObject override the default + * mechanism by which the XML element name associated with their type is + * retrieved. + * + * @return The XML element name associated with this type. If this method + * returns null or empty, the XML element name associated with this + * type is determined by the EwsObjectDefinition attribute that + * decorates the type,if present. + */ + protected String getXmlElementNameOverride() { + + if (this.responseType == ResponseMessageType.Reply) { + return XmlElementNames.ReplyToItem; + } else if (this.responseType == ResponseMessageType.ReplyAll) { + return XmlElementNames.ReplyAllToItem; + } else if (this.responseType == ResponseMessageType.Forward) { + return XmlElementNames.ForwardItem; + } else { + EwsUtilities.EwsAssert(false, + "ResponseMessage.GetXmlElementNameOverride", + "An unexpected value for responseType " + + "could not be handled."); + return null; // Because the compiler wants it + } + + } + + /** + * Gets a value indicating the type of response this object represents. + * + * @return the response type + */ + public ResponseMessageType getResponseType() { + return this.responseType; + } + + /** + * Gets the body of the response. + * + * @return the body + * @throws Exception the exception + */ + public MessageBody getBody() throws Exception { + return (MessageBody) this + .getObjectFromPropertyDefinition(ItemSchema.Body); + } + + /** + * Sets the body. + * + * @param value the new body + * @throws Exception the exception + */ + public void setBody(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition(ItemSchema.Body, + value); + } + + /** + * Gets a list of recipients the response will be sent to. + * + * @return the to recipients + * @throws Exception the exception + */ + public EmailAddressCollection getToRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.ToRecipients); + } + + /** + * Gets a list of recipients the response will be sent to as Cc. + * + * @return the cc recipients + * @throws Exception the exception + */ + public EmailAddressCollection getCcRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.CcRecipients); + } + + /** + * Gets a list of recipients the response will be sent to as Cc. + * + * @return the bcc recipients + * @throws Exception the exception + */ + public EmailAddressCollection getBccRecipients() throws Exception { + return (EmailAddressCollection) this + .getObjectFromPropertyDefinition( + EmailMessageSchema.BccRecipients); + } + + /** + * Gets the subject of this response. + * + * @return the subject + * @throws Exception the exception + */ + public String getSubject() throws Exception { + return (String) this + .getObjectFromPropertyDefinition(EmailMessageSchema.Subject); + } + + /** + * Sets the subject. + * + * @param value the new subject + * @throws Exception the exception + */ + public void setSubject(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + EmailMessageSchema.Subject, value); + } + + /** + * Gets the body prefix of this response. The body prefix will be + * prepended to the original message's body when the response is created. + * + * @return the body prefix + * @throws Exception the exception + */ + public MessageBody getBodyPrefix() throws Exception { + return (MessageBody) this + .getObjectFromPropertyDefinition( + ResponseObjectSchema.BodyPrefix); + } + + /** + * Sets the body prefix. + * + * @param value the new body prefix + * @throws Exception the exception + */ + public void setBodyPrefix(MessageBody value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + ResponseObjectSchema.BodyPrefix, value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java index 7e7781795..60b35b7a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java @@ -15,25 +15,27 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class ResponseMessageSchema extends ServiceObjectSchema { - /** This must be declared after the property definitions. */ - static final ResponseMessageSchema Instance = new ResponseMessageSchema(); + /** + * This must be declared after the property definitions. + */ + static final ResponseMessageSchema Instance = new ResponseMessageSchema(); - /** - * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN - * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); + /** + * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN + * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); - this.registerProperty(ItemSchema.Subject); - this.registerProperty(ItemSchema.Body); - this.registerProperty(EmailMessageSchema.ToRecipients); - this.registerProperty(EmailMessageSchema.CcRecipients); - this.registerProperty(EmailMessageSchema.BccRecipients); - this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); - this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); - this.registerProperty(ResponseObjectSchema.ReferenceItemId); - this.registerProperty(ResponseObjectSchema.BodyPrefix); - } + this.registerProperty(ItemSchema.Subject); + this.registerProperty(ItemSchema.Body); + this.registerProperty(EmailMessageSchema.ToRecipients); + this.registerProperty(EmailMessageSchema.CcRecipients); + this.registerProperty(EmailMessageSchema.BccRecipients); + this.registerProperty(EmailMessageSchema.IsReadReceiptRequested); + this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested); + this.registerProperty(ResponseObjectSchema.ReferenceItemId); + this.registerProperty(ResponseObjectSchema.BodyPrefix); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java index b4fbbe8d0..4d50dcb7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java @@ -15,17 +15,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ResponseMessageType { - // The ResponseMessage is a reply to the sender of a message. - /** The Reply. */ - Reply, + // The ResponseMessage is a reply to the sender of a message. + /** + * The Reply. + */ + Reply, - // The ResponseMessage is a reply to the sender and all the recipients of a - // message. - /** The Reply all. */ - ReplyAll, + // The ResponseMessage is a reply to the sender and all the recipients of a + // message. + /** + * The Reply all. + */ + ReplyAll, - // The ResponseMessage is a forward. - /** The Forward. */ - Forward + // The ResponseMessage is a forward. + /** + * The Forward. + */ + Forward } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java index e1be2f76c..d7032f878 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java @@ -18,187 +18,168 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class ResponseObject. - * - * @param - * the generic type + * + * @param the generic type */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ResponseObject extends - ServiceObject { - - /** The reference item. */ - private Item referenceItem; - - /** - * Initializes a new instance of the class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - protected ResponseObject(Item referenceItem) throws Exception { - super(referenceItem.getService()); - EwsUtilities.EwsAssert(referenceItem != null, "ResponseObject.ctor", - "referenceItem is null"); - referenceItem.throwIfThisIsNew(); - this.referenceItem = referenceItem; - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ResponseObjectSchema.Instance; - } - - /** - * Loads the specified set of properties on the object. - * - * @param propertySet - * the property set - */ - @Override - protected void internalLoad(PropertySet propertySet) { - throw new UnsupportedOperationException(); - } - - /** - * Deletes the object. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) { - throw new UnsupportedOperationException(); - } - - /** - * Create the response object. - * - * @param destinationFolderId - * the destination folder id - * @param messageDisposition - * the message disposition - * @return The list of items returned by EWS. - * @throws Exception - * the exception - */ - protected List internalCreate(FolderId destinationFolderId, - MessageDisposition messageDisposition) throws Exception { - ((ItemId)this.getPropertyBag().getObjectFromPropertyDefinition( - ResponseObjectSchema.ReferenceItemId)) - .assign(this.referenceItem.getId()); - return this.getService().internalCreateResponseObject(this, - destinationFolderId, messageDisposition); - } - - /** - * Saves the response in the specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderId - * the destination folder id - * @return A TMessage that represents the response. - * @throws Exception - * the exception - */ - public TMessage save(FolderId destinationFolderId) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - return (TMessage)this.internalCreate(destinationFolderId, - MessageDisposition.SaveOnly).get(0); - } - - /** - * Saves the response in the specified folder. Calling this method results - * in a call to EWS. - * - * @param destinationFolderName - * the destination folder name - * @return A TMessage that represents the response. - * @throws Exception - * the exception - */ - public TMessage save(WellKnownFolderName destinationFolderName) - throws Exception { - return (TMessage)this.internalCreate( - new FolderId(destinationFolderName), - MessageDisposition.SaveOnly).get(0); - } - - /** - * Saves the response in the Drafts folder. Calling this method results in a - * call to EWS. - * - * @return A TMessage that represents the response. - * @throws Exception - * the exception - */ - public TMessage save() throws Exception { - return (TMessage)this - .internalCreate(null, MessageDisposition.SaveOnly).get(0); - } - - /** - * Sends this response without saving a copy. Calling this method results in - * a call to EWS. - * - * @throws Exception - * the exception - */ - public void send() throws Exception { - this.internalCreate(null, MessageDisposition.SendOnly); - } - - /** - * Sends this response and saves a copy in the specified folder. Calling - * this method results in a call to EWS. - * - * @param destinationFolderId - * the destination folder id - * @throws Exception - * the exception - */ - public void sendAndSaveCopy(FolderId destinationFolderId) throws Exception { - EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); - this.internalCreate(destinationFolderId, - MessageDisposition.SendAndSaveCopy); - } - - /** - * Sends this response and saves a copy in the specified folder. Calling - * this method results in a call to EWS. - * - * @param destinationFolderName - * the destination folder name - * @throws Exception - * the exception - */ - public void sendAndSaveCopy(WellKnownFolderName destinationFolderName) - throws Exception { - this.internalCreate(new FolderId(destinationFolderName), - MessageDisposition.SendAndSaveCopy); - } - - /** - * Sends this response and saves a copy in the Sent Items folder. Calling - * this method results in a call to EWS. - * - * @throws Exception - * the exception - */ - public void sendAndSaveCopy() throws Exception { - this.internalCreate(null, MessageDisposition.SendAndSaveCopy); - } - -} \ No newline at end of file + ServiceObject { + + /** + * The reference item. + */ + private Item referenceItem; + + /** + * Initializes a new instance of the class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + protected ResponseObject(Item referenceItem) throws Exception { + super(referenceItem.getService()); + EwsUtilities.EwsAssert(referenceItem != null, "ResponseObject.ctor", + "referenceItem is null"); + referenceItem.throwIfThisIsNew(); + this.referenceItem = referenceItem; + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ResponseObjectSchema.Instance; + } + + /** + * Loads the specified set of properties on the object. + * + * @param propertySet the property set + */ + @Override + protected void internalLoad(PropertySet propertySet) { + throw new UnsupportedOperationException(); + } + + /** + * Deletes the object. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) { + throw new UnsupportedOperationException(); + } + + /** + * Create the response object. + * + * @param destinationFolderId the destination folder id + * @param messageDisposition the message disposition + * @return The list of items returned by EWS. + * @throws Exception the exception + */ + protected List internalCreate(FolderId destinationFolderId, + MessageDisposition messageDisposition) throws Exception { + ((ItemId) this.getPropertyBag().getObjectFromPropertyDefinition( + ResponseObjectSchema.ReferenceItemId)) + .assign(this.referenceItem.getId()); + return this.getService().internalCreateResponseObject(this, + destinationFolderId, messageDisposition); + } + + /** + * Saves the response in the specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderId the destination folder id + * @return A TMessage that represents the response. + * @throws Exception the exception + */ + public TMessage save(FolderId destinationFolderId) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + return (TMessage) this.internalCreate(destinationFolderId, + MessageDisposition.SaveOnly).get(0); + } + + /** + * Saves the response in the specified folder. Calling this method results + * in a call to EWS. + * + * @param destinationFolderName the destination folder name + * @return A TMessage that represents the response. + * @throws Exception the exception + */ + public TMessage save(WellKnownFolderName destinationFolderName) + throws Exception { + return (TMessage) this.internalCreate( + new FolderId(destinationFolderName), + MessageDisposition.SaveOnly).get(0); + } + + /** + * Saves the response in the Drafts folder. Calling this method results in a + * call to EWS. + * + * @return A TMessage that represents the response. + * @throws Exception the exception + */ + public TMessage save() throws Exception { + return (TMessage) this + .internalCreate(null, MessageDisposition.SaveOnly).get(0); + } + + /** + * Sends this response without saving a copy. Calling this method results in + * a call to EWS. + * + * @throws Exception the exception + */ + public void send() throws Exception { + this.internalCreate(null, MessageDisposition.SendOnly); + } + + /** + * Sends this response and saves a copy in the specified folder. Calling + * this method results in a call to EWS. + * + * @param destinationFolderId the destination folder id + * @throws Exception the exception + */ + public void sendAndSaveCopy(FolderId destinationFolderId) throws Exception { + EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); + this.internalCreate(destinationFolderId, + MessageDisposition.SendAndSaveCopy); + } + + /** + * Sends this response and saves a copy in the specified folder. Calling + * this method results in a call to EWS. + * + * @param destinationFolderName the destination folder name + * @throws Exception the exception + */ + public void sendAndSaveCopy(WellKnownFolderName destinationFolderName) + throws Exception { + this.internalCreate(new FolderId(destinationFolderName), + MessageDisposition.SendAndSaveCopy); + } + + /** + * Sends this response and saves a copy in the Sent Items folder. Calling + * this method results in a call to EWS. + * + * @throws Exception the exception + */ + public void sendAndSaveCopy() throws Exception { + this.internalCreate(null, MessageDisposition.SendAndSaveCopy); + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index 79789d064..f2a00c693 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -17,45 +17,51 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class ResponseObjectSchema extends ServiceObjectSchema { - /** The Reference item id. */ - public static PropertyDefinition ReferenceItemId = - new ComplexPropertyDefinition( - ItemId.class, - XmlElementNames.ReferenceItemId, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public ItemId createComplexProperty() { - return new ItemId(); - } - }); - - /** The Body prefix. */ - public static final PropertyDefinition BodyPrefix = - new ComplexPropertyDefinition( - MessageBody.class, - XmlElementNames.NewBodyContent, EnumSet - .of(PropertyDefinitionFlags.CanSet), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public MessageBody createComplexProperty() { - return new MessageBody(); - } - }); - - /** This must be declared after the property definitions. */ - protected static final ResponseObjectSchema Instance = - new ResponseObjectSchema(); - - /** - * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN - * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) - */ - @Override - protected void registerProperties() { - super.registerProperties(); - this.registerProperty(ResponseObjectSchema.ReferenceItemId); - } - -} \ No newline at end of file + /** + * The Reference item id. + */ + public static PropertyDefinition ReferenceItemId = + new ComplexPropertyDefinition( + ItemId.class, + XmlElementNames.ReferenceItemId, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public ItemId createComplexProperty() { + return new ItemId(); + } + }); + + /** + * The Body prefix. + */ + public static final PropertyDefinition BodyPrefix = + new ComplexPropertyDefinition( + MessageBody.class, + XmlElementNames.NewBodyContent, EnumSet + .of(PropertyDefinitionFlags.CanSet), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public MessageBody createComplexProperty() { + return new MessageBody(); + } + }); + + /** + * This must be declared after the property definitions. + */ + protected static final ResponseObjectSchema Instance = + new ResponseObjectSchema(); + + /** + * Registers properties. IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN + * SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) + */ + @Override + protected void registerProperties() { + super.registerProperties(); + this.registerProperty(ResponseObjectSchema.ReferenceItemId); + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index 0030528b1..86e044162 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -17,128 +17,119 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ResponseObjectsPropertyDefinition extends PropertyDefinition { - /** - * Initializes a new instance of the ResponseObjectsPropertyDefinition - * class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param version - * the version - */ - protected ResponseObjectsPropertyDefinition(String xmlElementName, - String uri, ExchangeVersion version) { - super(xmlElementName, uri, version); - - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected final void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - EnumSet value = EnumSet.noneOf(ResponseActions.class); - value.add(ResponseActions.None); - - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this - .getXmlElement()); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - - if (reader.getLocalName() - .equals(XmlElementNames.AcceptItem)) { - - value.add(ResponseActions.Accept); - } else if (reader.getLocalName().equals( - XmlElementNames.TentativelyAcceptItem)) { - - value.add(ResponseActions.TentativelyAccept); - } else if (reader.getLocalName().equals( - XmlElementNames.DeclineItem)) { - - value.add(ResponseActions.Decline); - } else if (reader.getLocalName().equals( - XmlElementNames.ReplyToItem)) { - - value.add(ResponseActions.Reply); - } else if (reader.getLocalName().equals( - XmlElementNames.ForwardItem)) { - - value.add(ResponseActions.Forward); - } else if (reader.getLocalName().equals( - XmlElementNames.ReplyAllToItem)) { - - value.add(ResponseActions.ReplyAll); - } else if (reader.getLocalName().equals( - XmlElementNames.CancelCalendarItem)) { - - value.add(ResponseActions.Cancel); - } else if (reader.getLocalName().equals( - XmlElementNames.RemoveItem)) { - - value.add(ResponseActions.RemoveFromCalendar); - } else if (reader.getLocalName().equals( - XmlElementNames.SuppressReadReceipt)) { - - value.add(ResponseActions.SuppressReadReceipt); - } else if (reader.getLocalName().equals( - XmlElementNames.PostReplyItem)) { - - value.add(ResponseActions.PostReply); - } - } - - } while (!reader.isEndElement(XmlNamespace.Types, this - .getXmlElement())); - } else { - reader.read(); - } - - propertyBag.setObjectFromPropertyDefinition(this, value); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) { - // ResponseObjects is a read-only property, no need to implement this. - } - - /** - * Gets a value indicating whether this property - * definition is for a nullable type (ref, int?, bool?...). - */ - @Override - protected boolean isNullable() { - return false; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return ResponseActions.class; - } + /** + * Initializes a new instance of the ResponseObjectsPropertyDefinition + * class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param version the version + */ + protected ResponseObjectsPropertyDefinition(String xmlElementName, + String uri, ExchangeVersion version) { + super(xmlElementName, uri, version); + + } + + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected final void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + EnumSet value = EnumSet.noneOf(ResponseActions.class); + value.add(ResponseActions.None); + + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this + .getXmlElement()); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + + if (reader.getLocalName() + .equals(XmlElementNames.AcceptItem)) { + + value.add(ResponseActions.Accept); + } else if (reader.getLocalName().equals( + XmlElementNames.TentativelyAcceptItem)) { + + value.add(ResponseActions.TentativelyAccept); + } else if (reader.getLocalName().equals( + XmlElementNames.DeclineItem)) { + + value.add(ResponseActions.Decline); + } else if (reader.getLocalName().equals( + XmlElementNames.ReplyToItem)) { + + value.add(ResponseActions.Reply); + } else if (reader.getLocalName().equals( + XmlElementNames.ForwardItem)) { + + value.add(ResponseActions.Forward); + } else if (reader.getLocalName().equals( + XmlElementNames.ReplyAllToItem)) { + + value.add(ResponseActions.ReplyAll); + } else if (reader.getLocalName().equals( + XmlElementNames.CancelCalendarItem)) { + + value.add(ResponseActions.Cancel); + } else if (reader.getLocalName().equals( + XmlElementNames.RemoveItem)) { + + value.add(ResponseActions.RemoveFromCalendar); + } else if (reader.getLocalName().equals( + XmlElementNames.SuppressReadReceipt)) { + + value.add(ResponseActions.SuppressReadReceipt); + } else if (reader.getLocalName().equals( + XmlElementNames.PostReplyItem)) { + + value.add(ResponseActions.PostReply); + } + } + + } while (!reader.isEndElement(XmlNamespace.Types, this + .getXmlElement())); + } else { + reader.read(); + } + + propertyBag.setObjectFromPropertyDefinition(this, value); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) { + // ResponseObjects is a read-only property, no need to implement this. + } + + /** + * Gets a value indicating whether this property + * definition is for a nullable type (ref, int?, bool?...). + */ + @Override + protected boolean isNullable() { + return false; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return ResponseActions.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Rule.java b/src/main/java/microsoft/exchange/webservices/data/Rule.java index b8f23f321..7edfbd5d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Rule.java +++ b/src/main/java/microsoft/exchange/webservices/data/Rule.java @@ -12,282 +12,280 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a rule that automatically handles incoming messages. - * A rule consists of a set of conditions + * A rule consists of a set of conditions * and exceptions that determine whether or * not a set of actions should be executed on incoming messages. */ -public final class Rule extends ComplexProperty{ - - /** - * The rule ID. - */ - private String ruleId; - - /** - * The rule display name. - */ - private String displayName; - - /** - * The rule priority. - */ - private int priority; - - /** - * The rule status of enabled or not. - */ - private boolean isEnabled; - - /** - * The rule status of is supported or not. - */ - private boolean isNotSupported; - - /** - * The rule status of in error or not. - */ - private boolean isInError; - - /** - * The rule conditions. - */ - private RulePredicates conditions; - - /** - * The rule actions. - */ - private RuleActions actions; - - /** - * The rule exceptions. - */ - private RulePredicates exceptions; - - /** - * Initializes a new instance of the Rule class. - */ - public Rule() { - super(); - - /** - * New rule has priority as 0 by default - */ - this.priority = 1; - - /** - * New rule is enabled by default - */ - this.isEnabled = true; - this.conditions = new RulePredicates(); - this.actions = new RuleActions(); - this.exceptions = new RulePredicates(); - } - - - /** - * Gets or sets the Id of this rule. - */ - public String getId() { - - return this.ruleId; - } - public void setId(String value) { - if (this.canSetFieldValue(this.ruleId, value)) { - this.ruleId = value; - this.changed(); - } - } - - /** - * Gets or sets the name of this rule as it should be displayed to the user. - */ - public String getDisplayName() { - return this.displayName; - } - public void setDisplayName(String value) { - if (this.canSetFieldValue(this.displayName, value)) { - this.displayName = value; - this.changed(); - } - } - - - /** - * Gets or sets the priority of this rule, - * which determines its execution order. - */ - public int getPriority() { - return this.priority; - } - public void setPriority(int value) { - if (this.canSetFieldValue(this.priority, value)) { - this.priority = value; - this.changed(); - }} - - - /** - * Gets or sets a value indicating whether this rule is enabled. - */ - public boolean getIsEnabled() { - return this.isEnabled; - } - public void setIsEnabled(boolean value){ - if (this.canSetFieldValue(this.isEnabled, value)) { - this.isEnabled = value; - this.changed(); - } - } - - /** - * Gets a value indicating whether this rule can be modified via EWS. - * If IsNotSupported is true, the rule cannot be modified via EWS. - */ - public boolean getIsNotSupported() { - return this.isNotSupported; - - } - - /** - * Gets or sets a value indicating whether - * this rule has errors. A rule that is in error - * cannot be processed unless it is updated and the error is corrected. - */ - public boolean getIsInError() { - return this.isInError; - } - - public void setIsInError(boolean value) { - if (this.canSetFieldValue(this.isInError, value)) { - this.isInError = value; - this.changed(); - } - } - - /** - * Gets the conditions that determine whether or not this rule should be - * executed against incoming messages. - */ - public RulePredicates getConditions() { - return this.conditions; - } - - /** - * Gets the actions that should be executed against incoming messages if the - * conditions evaluate as true. - */ - public RuleActions getActions() { - return this.actions; - - } - - /** - * Gets the exceptions that determine - * if this rule should be skipped even if - * its conditions evaluate to true. - */ - public RulePredicates getExceptions() { - return this.exceptions; - } - - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - * @throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader - reader) throws Exception { - - if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { - this.displayName = reader.readElementValue(); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.RuleId)) { - this.ruleId = reader.readElementValue(); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.Priority)) { - this.priority = reader.readElementValue(Integer.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.IsEnabled)) { - this.isEnabled = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.IsNotSupported)) { - this.isNotSupported = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.IsInError)) { - this.isInError = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.Conditions)) { - this.conditions.loadFromXml(reader, reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.Actions)) { - this.actions.loadFromXml(reader, reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.Exceptions)) { - this.exceptions.loadFromXml(reader, reader.getLocalName()); - return true; - } - else { - return false; - } - } - - /** - * Writes elements to XML. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if(!(getId()==null || getId().isEmpty())) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.RuleId, - this.getId()); - } - - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.DisplayName, - this.getDisplayName()); - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Priority, - this.getPriority()); - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsEnabled, - this.getIsEnabled()); - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsInError, - this.getIsInError()); - this.getConditions().writeToXml(writer, XmlElementNames.Conditions); - this.getExceptions().writeToXml(writer, XmlElementNames.Exceptions); - this.getActions().writeToXml(writer, XmlElementNames.Actions); - } - - - /** - * Validates this instance. - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - EwsUtilities.validateParam(this.displayName, "DisplayName"); - EwsUtilities.validateParam(this.conditions, "Conditions"); - EwsUtilities.validateParam(this.exceptions, "Exceptions"); - EwsUtilities.validateParam(this.actions, "Actions"); - } +public final class Rule extends ComplexProperty { + + /** + * The rule ID. + */ + private String ruleId; + + /** + * The rule display name. + */ + private String displayName; + + /** + * The rule priority. + */ + private int priority; + + /** + * The rule status of enabled or not. + */ + private boolean isEnabled; + + /** + * The rule status of is supported or not. + */ + private boolean isNotSupported; + + /** + * The rule status of in error or not. + */ + private boolean isInError; + + /** + * The rule conditions. + */ + private RulePredicates conditions; + + /** + * The rule actions. + */ + private RuleActions actions; + + /** + * The rule exceptions. + */ + private RulePredicates exceptions; + + /** + * Initializes a new instance of the Rule class. + */ + public Rule() { + super(); + + /** + * New rule has priority as 0 by default + */ + this.priority = 1; + + /** + * New rule is enabled by default + */ + this.isEnabled = true; + this.conditions = new RulePredicates(); + this.actions = new RuleActions(); + this.exceptions = new RulePredicates(); + } + + + /** + * Gets or sets the Id of this rule. + */ + public String getId() { + + return this.ruleId; + } + + public void setId(String value) { + if (this.canSetFieldValue(this.ruleId, value)) { + this.ruleId = value; + this.changed(); + } + } + + /** + * Gets or sets the name of this rule as it should be displayed to the user. + */ + public String getDisplayName() { + return this.displayName; + } + + public void setDisplayName(String value) { + if (this.canSetFieldValue(this.displayName, value)) { + this.displayName = value; + this.changed(); + } + } + + + /** + * Gets or sets the priority of this rule, + * which determines its execution order. + */ + public int getPriority() { + return this.priority; + } + + public void setPriority(int value) { + if (this.canSetFieldValue(this.priority, value)) { + this.priority = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether this rule is enabled. + */ + public boolean getIsEnabled() { + return this.isEnabled; + } + + public void setIsEnabled(boolean value) { + if (this.canSetFieldValue(this.isEnabled, value)) { + this.isEnabled = value; + this.changed(); + } + } + + /** + * Gets a value indicating whether this rule can be modified via EWS. + * If IsNotSupported is true, the rule cannot be modified via EWS. + */ + public boolean getIsNotSupported() { + return this.isNotSupported; + + } + + /** + * Gets or sets a value indicating whether + * this rule has errors. A rule that is in error + * cannot be processed unless it is updated and the error is corrected. + */ + public boolean getIsInError() { + return this.isInError; + } + + public void setIsInError(boolean value) { + if (this.canSetFieldValue(this.isInError, value)) { + this.isInError = value; + this.changed(); + } + } + + /** + * Gets the conditions that determine whether or not this rule should be + * executed against incoming messages. + */ + public RulePredicates getConditions() { + return this.conditions; + } + + /** + * Gets the actions that should be executed against incoming messages if the + * conditions evaluate as true. + */ + public RuleActions getActions() { + return this.actions; + + } + + /** + * Gets the exceptions that determine + * if this rule should be skipped even if + * its conditions evaluate to true. + */ + public RulePredicates getExceptions() { + return this.exceptions; + } + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader + reader) throws Exception { + + if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { + this.displayName = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.RuleId)) { + this.ruleId = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Priority)) { + this.priority = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsEnabled)) { + this.isEnabled = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsNotSupported)) { + this.isNotSupported = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsInError)) { + this.isInError = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Conditions)) { + this.conditions.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Actions)) { + this.actions.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Exceptions)) { + this.exceptions.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (!(getId() == null || getId().isEmpty())) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.RuleId, + this.getId()); + } + + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.DisplayName, + this.getDisplayName()); + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Priority, + this.getPriority()); + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsEnabled, + this.getIsEnabled()); + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsInError, + this.getIsInError()); + this.getConditions().writeToXml(writer, XmlElementNames.Conditions); + this.getExceptions().writeToXml(writer, XmlElementNames.Exceptions); + this.getActions().writeToXml(writer, XmlElementNames.Actions); + } + + + /** + * Validates this instance. + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + EwsUtilities.validateParam(this.displayName, "DisplayName"); + EwsUtilities.validateParam(this.conditions, "Conditions"); + EwsUtilities.validateParam(this.exceptions, "Exceptions"); + EwsUtilities.validateParam(this.actions, "Actions"); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java index 03251f1b0..3431e24f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java @@ -18,496 +18,500 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class RuleActions extends ComplexProperty { - /** - * SMS recipient address type. - */ - private static final String MobileType = "MOBILE"; - - /** - * The AssignCategories action. - */ - private StringList assignCategories; - - /** - * The CopyToFolder action. - */ - private FolderId copyToFolder; - - /** - * The Delete action. - */ - private boolean delete; - - /** - * The ForwardAsAttachmentToRecipients action. - */ - private EmailAddressCollection forwardAsAttachmentToRecipients; - - /** - * The ForwardToRecipients action. - */ - private EmailAddressCollection forwardToRecipients; - - /** - * The MarkImportance action. - */ - private Importance markImportance; - - /** - * The MarkAsRead action. - */ - private boolean markAsRead; - - /** - * The MoveToFolder action. - */ - private FolderId moveToFolder; - - /** - * The PermanentDelete action. - */ - private boolean permanentDelete; - - /** - * The RedirectToRecipients action. - */ - private EmailAddressCollection redirectToRecipients; - - /** - * The SendSMSAlertToRecipients action. - */ - private Collection sendSMSAlertToRecipients; - - /** - * The ServerReplyWithMessage action. - */ - private ItemId serverReplyWithMessage; - - /** - * The StopProcessingRules action. - */ - private boolean stopProcessingRules; - - /** - * Initializes a new instance of the RulePredicates class. - */ - protected RuleActions() { - super(); - this.assignCategories = new StringList(); - this.forwardAsAttachmentToRecipients = - new EmailAddressCollection(XmlElementNames.Address); - this.forwardToRecipients = - new EmailAddressCollection(XmlElementNames.Address); - this.redirectToRecipients = - new EmailAddressCollection(XmlElementNames.Address); - this.sendSMSAlertToRecipients = new ArrayList(); - } - - /** - * Gets the categories that should be stamped on incoming messages. - * To disable stamping incoming messages with categories, set - * AssignCategories to null. - */ - public StringList getAssignCategories() { - - return this.assignCategories; - - } - - /** - * Gets or sets the Id of the folder incoming messages should be copied to. - * To disable copying incoming messages - * to a folder, set CopyToFolder to null. - */ - public FolderId getCopyToFolder() { - return this.copyToFolder; - } - public void setCopyToFolder(FolderId value) { - if (this.canSetFieldValue(this.copyToFolder, value)) { - this.copyToFolder = value; - this.changed(); - }} - - /** - * Gets or sets a value indicating whether incoming messages should be - * automatically moved to the Deleted Items folder. - */ - public boolean getDelete() { - return this.delete; - } - public void setDelete(boolean value) { - if (this.canSetFieldValue(this.delete, value)) { - this.delete = value; - this.changed(); - } - - } - - /** - * Gets the e-mail addresses to which incoming messages should be - * forwarded as attachments. To disable forwarding incoming messages - * as attachments, empty the ForwardAsAttachmentToRecipients list. - */ - public EmailAddressCollection getForwardAsAttachmentToRecipients() { - return this.forwardAsAttachmentToRecipients; - } - - /** - * Gets the e-mail addresses to which - * incoming messages should be forwarded. - * To disable forwarding incoming messages, - * empty the ForwardToRecipients list. - */ - public EmailAddressCollection getForwardToRecipients() { - return this.forwardToRecipients; - - } - - /** - * Gets or sets the importance that should be stamped on incoming - * messages. To disable the stamping of incoming messages with an - * importance, set MarkImportance to null. - */ - public Importance getMarkImportance(){ - return this.markImportance; - } - public void setMarkImportance(Importance value) { - if (this.canSetFieldValue(this.markImportance, value)) { - this.markImportance = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether - * incoming messages should be marked as read. - */ - public boolean getMarkAsRead() { - return this.markAsRead; - } - public void setMarkAsRead(boolean value) { - if (this.canSetFieldValue(this.markAsRead, value)) { - this.markAsRead = value; - this.changed(); - }} - - /** - * Gets or sets the Id of the folder to which incoming messages should be - * moved. To disable the moving of incoming messages to a folder, set - * CopyToFolder to null. - */ - public FolderId getMoveToFolder() { - return this.moveToFolder; - } - public void setMoveToFolder(FolderId value) { - if (this.canSetFieldValue(this.moveToFolder, value)) { - this.moveToFolder = value; - this.changed(); - } - - } - - /** - * Gets or sets a value indicating whether incoming messages should be - * permanently deleted. When a message is permanently deleted, it is never - * saved into the recipient's mailbox. To delete a message after it has - * saved into the recipient's mailbox. To delete a message after it has - */ - public boolean getPermanentDelete() { - return this.permanentDelete; - } - public void setPermanentDelete(boolean value) { - if (this.canSetFieldValue(this.permanentDelete, value)) { - this.permanentDelete = value; - this.changed(); - } - } - - /** - * Gets the e-mail addresses to which incoming messages should be - * redirecteded. To disable redirection of incoming messages, empty - * the RedirectToRecipients list. Unlike forwarded mail, redirected mail - * maintains the original sender and recipients. - */ - public EmailAddressCollection getRedirectToRecipients() { - return this.redirectToRecipients; - - } - - /** - * Gets the phone numbers to which an SMS alert should be sent. To disable - * sending SMS alerts for incoming messages, empty the - * SendSMSAlertToRecipients list. - */ - public Collection getSendSMSAlertToRecipients() { - return this.sendSMSAlertToRecipients; - - } - - /** - * Gets or sets the Id of the template message that should be sent - * as a reply to incoming messages. To disable automatic replies, set - * ServerReplyWithMessage to null. - */ - public ItemId getServerReplyWithMessage() { - return this.serverReplyWithMessage; - } - - public void setServerReplyWithMessage(ItemId value) { - if (this.canSetFieldValue(this.serverReplyWithMessage, value)) { - this.serverReplyWithMessage = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether - * subsequent rules should be evaluated. - */ - public boolean getStopProcessingRules() { - return this.stopProcessingRules; - } - public void setStopProcessingRules(boolean value) { - if (this.canSetFieldValue(this.stopProcessingRules, value)) { - this.stopProcessingRules = value; - this.changed(); - } - - } - - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - * @throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader - reader) throws Exception { - if (reader.getLocalName().equals(XmlElementNames.CopyToFolder)) { - reader.readStartElement(XmlNamespace.NotSpecified, - XmlElementNames.FolderId); - this.copyToFolder = new FolderId(); - this.copyToFolder.loadFromXml(reader, XmlElementNames.FolderId); - reader.readEndElement(XmlNamespace.NotSpecified, - XmlElementNames.CopyToFolder); - return true; - }else if(reader.getLocalName().equals(XmlElementNames.AssignCategories)) { - this.assignCategories.loadFromXml(reader, - reader.getLocalName()); - return true; - }else if (reader.getLocalName().equals(XmlElementNames.Delete)) { - this.delete = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.ForwardAsAttachmentToRecipients)) { - this.forwardAsAttachmentToRecipients.loadFromXml(reader, - reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.ForwardToRecipients)) { - this.forwardToRecipients.loadFromXml(reader, reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.MarkImportance)) { - this.markImportance = reader.readElementValue(Importance.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.MarkAsRead)) { - this.markAsRead = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.MoveToFolder)) { - reader.readStartElement(XmlNamespace.NotSpecified, - XmlElementNames.FolderId); - this.moveToFolder = new FolderId(); - this.moveToFolder.loadFromXml(reader, XmlElementNames.FolderId); - reader.readEndElement(XmlNamespace.NotSpecified, - XmlElementNames.MoveToFolder); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.PermanentDelete)) { - this.permanentDelete = reader.readElementValue(Boolean.class); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.RedirectToRecipients)) { - this.redirectToRecipients.loadFromXml(reader, - reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.SendSMSAlertToRecipients)) { - EmailAddressCollection smsRecipientCollection = - new EmailAddressCollection(XmlElementNames.Address); - smsRecipientCollection.loadFromXml(reader, reader.getLocalName()); - this.sendSMSAlertToRecipients = convertSMSRecipientsFromEmailAddressCollectionToMobilePhoneCollection( - smsRecipientCollection); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.ServerReplyWithMessage)) { - this.serverReplyWithMessage = new ItemId(); - this.serverReplyWithMessage.loadFromXml(reader, - reader.getLocalName()); - return true; - } - else if (reader.getLocalName().equals(XmlElementNames.StopProcessingRules)) { - this.stopProcessingRules = reader.readElementValue(Boolean.class); - return true; - } - else { - return false; - } - - } - - /** - * Writes elements to XML. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.getAssignCategories().getSize() > 0) { - this.getAssignCategories().writeToXml(writer, - XmlElementNames.AssignCategories); - } - - if (this.getCopyToFolder() != null) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.CopyToFolder); - this.getCopyToFolder().writeToXml(writer); - writer.writeEndElement(); - } - - if (this.getDelete() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Delete, - this.getDelete()); - } - - if (this.getForwardAsAttachmentToRecipients().getCount() > 0) { - this.getForwardAsAttachmentToRecipients().writeToXml(writer, - XmlElementNames.ForwardAsAttachmentToRecipients); - } - - if (this.getForwardToRecipients().getCount() > 0) { - this.getForwardToRecipients().writeToXml(writer, - XmlElementNames.ForwardToRecipients); - } - - if (this.getMarkImportance()!=null) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.MarkImportance, - this.getMarkImportance()); - } - - if (this.getMarkAsRead() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.MarkAsRead, - this.getMarkAsRead()); - } - - if (this.getMoveToFolder() != null) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.MoveToFolder); - this.getMoveToFolder().writeToXml(writer); - writer.writeEndElement(); - } - - if (this.getPermanentDelete() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.PermanentDelete, - this.getPermanentDelete()); - } - - if (this.getRedirectToRecipients().getCount() > 0) { - this.getRedirectToRecipients().writeToXml(writer, - XmlElementNames.RedirectToRecipients); - } - - if (this.getSendSMSAlertToRecipients().size() > 0) { - EmailAddressCollection emailCollection = convertSMSRecipientsFromMobilePhoneCollectionToEmailAddressCollection( - this.getSendSMSAlertToRecipients()); - emailCollection.writeToXml(writer, - XmlElementNames.SendSMSAlertToRecipients); - } - - if (this.getServerReplyWithMessage() != null) { - this.getServerReplyWithMessage().writeToXml(writer, - XmlElementNames.ServerReplyWithMessage); - } - - if (this.getStopProcessingRules() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.StopProcessingRules, - this.getStopProcessingRules()); - } - } - - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - EwsUtilities.validateParam(this.forwardAsAttachmentToRecipients, - "ForwardAsAttachmentToRecipients"); - EwsUtilities.validateParam(this.forwardToRecipients, - "ForwardToRecipients"); - EwsUtilities.validateParam(this.redirectToRecipients, - "RedirectToRecipients"); - for(MobilePhone sendSMSAlertToRecipient : this.sendSMSAlertToRecipients) { - EwsUtilities.validateParam(sendSMSAlertToRecipient, - "SendSMSAlertToRecipient"); - } - } - - /** - * Convert the SMS recipient list from - * EmailAddressCollection type to MobilePhone collection type. - * @param Recipient list in EmailAddressCollection type. - * @return A MobilePhone collection object - * containing all SMS recipient in MobilePhone type. - */ - private static Collection convertSMSRecipientsFromEmailAddressCollectionToMobilePhoneCollection( - EmailAddressCollection emailCollection) { - Collection mobilePhoneCollection = - new ArrayList(); - for(EmailAddress emailAddress : emailCollection) { - mobilePhoneCollection.add(new MobilePhone(emailAddress.getName(), - emailAddress.getAddress())); - } - - return mobilePhoneCollection; - } - - /** - * Convert the SMS recipient list from MobilePhone - * collection type to EmailAddressCollection type. - * @param Recipient list in a MobilePhone collection type. - * @return An EmailAddressCollection object - * containing recipients with "MOBILE" address type. - */ - private static EmailAddressCollection convertSMSRecipientsFromMobilePhoneCollectionToEmailAddressCollection( - Collection recipientCollection) { - EmailAddressCollection emailCollection = - new EmailAddressCollection(XmlElementNames.Address); - for(MobilePhone recipient : recipientCollection) { - EmailAddress emailAddress = new EmailAddress( - recipient.getName(), - recipient.getPhoneNumber(), - RuleActions.MobileType); - emailCollection.add(emailAddress); - } - - return emailCollection; - } + /** + * SMS recipient address type. + */ + private static final String MobileType = "MOBILE"; + + /** + * The AssignCategories action. + */ + private StringList assignCategories; + + /** + * The CopyToFolder action. + */ + private FolderId copyToFolder; + + /** + * The Delete action. + */ + private boolean delete; + + /** + * The ForwardAsAttachmentToRecipients action. + */ + private EmailAddressCollection forwardAsAttachmentToRecipients; + + /** + * The ForwardToRecipients action. + */ + private EmailAddressCollection forwardToRecipients; + + /** + * The MarkImportance action. + */ + private Importance markImportance; + + /** + * The MarkAsRead action. + */ + private boolean markAsRead; + + /** + * The MoveToFolder action. + */ + private FolderId moveToFolder; + + /** + * The PermanentDelete action. + */ + private boolean permanentDelete; + + /** + * The RedirectToRecipients action. + */ + private EmailAddressCollection redirectToRecipients; + + /** + * The SendSMSAlertToRecipients action. + */ + private Collection sendSMSAlertToRecipients; + + /** + * The ServerReplyWithMessage action. + */ + private ItemId serverReplyWithMessage; + + /** + * The StopProcessingRules action. + */ + private boolean stopProcessingRules; + + /** + * Initializes a new instance of the RulePredicates class. + */ + protected RuleActions() { + super(); + this.assignCategories = new StringList(); + this.forwardAsAttachmentToRecipients = + new EmailAddressCollection(XmlElementNames.Address); + this.forwardToRecipients = + new EmailAddressCollection(XmlElementNames.Address); + this.redirectToRecipients = + new EmailAddressCollection(XmlElementNames.Address); + this.sendSMSAlertToRecipients = new ArrayList(); + } + + /** + * Gets the categories that should be stamped on incoming messages. + * To disable stamping incoming messages with categories, set + * AssignCategories to null. + */ + public StringList getAssignCategories() { + + return this.assignCategories; + + } + + /** + * Gets or sets the Id of the folder incoming messages should be copied to. + * To disable copying incoming messages + * to a folder, set CopyToFolder to null. + */ + public FolderId getCopyToFolder() { + return this.copyToFolder; + } + + public void setCopyToFolder(FolderId value) { + if (this.canSetFieldValue(this.copyToFolder, value)) { + this.copyToFolder = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages should be + * automatically moved to the Deleted Items folder. + */ + public boolean getDelete() { + return this.delete; + } + + public void setDelete(boolean value) { + if (this.canSetFieldValue(this.delete, value)) { + this.delete = value; + this.changed(); + } + + } + + /** + * Gets the e-mail addresses to which incoming messages should be + * forwarded as attachments. To disable forwarding incoming messages + * as attachments, empty the ForwardAsAttachmentToRecipients list. + */ + public EmailAddressCollection getForwardAsAttachmentToRecipients() { + return this.forwardAsAttachmentToRecipients; + } + + /** + * Gets the e-mail addresses to which + * incoming messages should be forwarded. + * To disable forwarding incoming messages, + * empty the ForwardToRecipients list. + */ + public EmailAddressCollection getForwardToRecipients() { + return this.forwardToRecipients; + + } + + /** + * Gets or sets the importance that should be stamped on incoming + * messages. To disable the stamping of incoming messages with an + * importance, set MarkImportance to null. + */ + public Importance getMarkImportance() { + return this.markImportance; + } + + public void setMarkImportance(Importance value) { + if (this.canSetFieldValue(this.markImportance, value)) { + this.markImportance = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether + * incoming messages should be marked as read. + */ + public boolean getMarkAsRead() { + return this.markAsRead; + } + + public void setMarkAsRead(boolean value) { + if (this.canSetFieldValue(this.markAsRead, value)) { + this.markAsRead = value; + this.changed(); + } + } + + /** + * Gets or sets the Id of the folder to which incoming messages should be + * moved. To disable the moving of incoming messages to a folder, set + * CopyToFolder to null. + */ + public FolderId getMoveToFolder() { + return this.moveToFolder; + } + + public void setMoveToFolder(FolderId value) { + if (this.canSetFieldValue(this.moveToFolder, value)) { + this.moveToFolder = value; + this.changed(); + } + + } + + /** + * Gets or sets a value indicating whether incoming messages should be + * permanently deleted. When a message is permanently deleted, it is never + * saved into the recipient's mailbox. To delete a message after it has + * saved into the recipient's mailbox. To delete a message after it has + */ + public boolean getPermanentDelete() { + return this.permanentDelete; + } + + public void setPermanentDelete(boolean value) { + if (this.canSetFieldValue(this.permanentDelete, value)) { + this.permanentDelete = value; + this.changed(); + } + } + + /** + * Gets the e-mail addresses to which incoming messages should be + * redirecteded. To disable redirection of incoming messages, empty + * the RedirectToRecipients list. Unlike forwarded mail, redirected mail + * maintains the original sender and recipients. + */ + public EmailAddressCollection getRedirectToRecipients() { + return this.redirectToRecipients; + + } + + /** + * Gets the phone numbers to which an SMS alert should be sent. To disable + * sending SMS alerts for incoming messages, empty the + * SendSMSAlertToRecipients list. + */ + public Collection getSendSMSAlertToRecipients() { + return this.sendSMSAlertToRecipients; + + } + + /** + * Gets or sets the Id of the template message that should be sent + * as a reply to incoming messages. To disable automatic replies, set + * ServerReplyWithMessage to null. + */ + public ItemId getServerReplyWithMessage() { + return this.serverReplyWithMessage; + } + + public void setServerReplyWithMessage(ItemId value) { + if (this.canSetFieldValue(this.serverReplyWithMessage, value)) { + this.serverReplyWithMessage = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether + * subsequent rules should be evaluated. + */ + public boolean getStopProcessingRules() { + return this.stopProcessingRules; + } + + public void setStopProcessingRules(boolean value) { + if (this.canSetFieldValue(this.stopProcessingRules, value)) { + this.stopProcessingRules = value; + this.changed(); + } + + } + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader + reader) throws Exception { + if (reader.getLocalName().equals(XmlElementNames.CopyToFolder)) { + reader.readStartElement(XmlNamespace.NotSpecified, + XmlElementNames.FolderId); + this.copyToFolder = new FolderId(); + this.copyToFolder.loadFromXml(reader, XmlElementNames.FolderId); + reader.readEndElement(XmlNamespace.NotSpecified, + XmlElementNames.CopyToFolder); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.AssignCategories)) { + this.assignCategories.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Delete)) { + this.delete = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ForwardAsAttachmentToRecipients)) { + this.forwardAsAttachmentToRecipients.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ForwardToRecipients)) { + this.forwardToRecipients.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.MarkImportance)) { + this.markImportance = reader.readElementValue(Importance.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.MarkAsRead)) { + this.markAsRead = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.MoveToFolder)) { + reader.readStartElement(XmlNamespace.NotSpecified, + XmlElementNames.FolderId); + this.moveToFolder = new FolderId(); + this.moveToFolder.loadFromXml(reader, XmlElementNames.FolderId); + reader.readEndElement(XmlNamespace.NotSpecified, + XmlElementNames.MoveToFolder); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.PermanentDelete)) { + this.permanentDelete = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.RedirectToRecipients)) { + this.redirectToRecipients.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.SendSMSAlertToRecipients)) { + EmailAddressCollection smsRecipientCollection = + new EmailAddressCollection(XmlElementNames.Address); + smsRecipientCollection.loadFromXml(reader, reader.getLocalName()); + this.sendSMSAlertToRecipients = convertSMSRecipientsFromEmailAddressCollectionToMobilePhoneCollection( + smsRecipientCollection); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ServerReplyWithMessage)) { + this.serverReplyWithMessage = new ItemId(); + this.serverReplyWithMessage.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.StopProcessingRules)) { + this.stopProcessingRules = reader.readElementValue(Boolean.class); + return true; + } else { + return false; + } + + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.getAssignCategories().getSize() > 0) { + this.getAssignCategories().writeToXml(writer, + XmlElementNames.AssignCategories); + } + + if (this.getCopyToFolder() != null) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.CopyToFolder); + this.getCopyToFolder().writeToXml(writer); + writer.writeEndElement(); + } + + if (this.getDelete() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Delete, + this.getDelete()); + } + + if (this.getForwardAsAttachmentToRecipients().getCount() > 0) { + this.getForwardAsAttachmentToRecipients().writeToXml(writer, + XmlElementNames.ForwardAsAttachmentToRecipients); + } + + if (this.getForwardToRecipients().getCount() > 0) { + this.getForwardToRecipients().writeToXml(writer, + XmlElementNames.ForwardToRecipients); + } + + if (this.getMarkImportance() != null) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.MarkImportance, + this.getMarkImportance()); + } + + if (this.getMarkAsRead() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.MarkAsRead, + this.getMarkAsRead()); + } + + if (this.getMoveToFolder() != null) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.MoveToFolder); + this.getMoveToFolder().writeToXml(writer); + writer.writeEndElement(); + } + + if (this.getPermanentDelete() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.PermanentDelete, + this.getPermanentDelete()); + } + + if (this.getRedirectToRecipients().getCount() > 0) { + this.getRedirectToRecipients().writeToXml(writer, + XmlElementNames.RedirectToRecipients); + } + + if (this.getSendSMSAlertToRecipients().size() > 0) { + EmailAddressCollection emailCollection = + convertSMSRecipientsFromMobilePhoneCollectionToEmailAddressCollection( + this.getSendSMSAlertToRecipients()); + emailCollection.writeToXml(writer, + XmlElementNames.SendSMSAlertToRecipients); + } + + if (this.getServerReplyWithMessage() != null) { + this.getServerReplyWithMessage().writeToXml(writer, + XmlElementNames.ServerReplyWithMessage); + } + + if (this.getStopProcessingRules() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.StopProcessingRules, + this.getStopProcessingRules()); + } + } + + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + EwsUtilities.validateParam(this.forwardAsAttachmentToRecipients, + "ForwardAsAttachmentToRecipients"); + EwsUtilities.validateParam(this.forwardToRecipients, + "ForwardToRecipients"); + EwsUtilities.validateParam(this.redirectToRecipients, + "RedirectToRecipients"); + for (MobilePhone sendSMSAlertToRecipient : this.sendSMSAlertToRecipients) { + EwsUtilities.validateParam(sendSMSAlertToRecipient, + "SendSMSAlertToRecipient"); + } + } + + /** + * Convert the SMS recipient list from + * EmailAddressCollection type to MobilePhone collection type. + * + * @param Recipient list in EmailAddressCollection type. + * @return A MobilePhone collection object + * containing all SMS recipient in MobilePhone type. + */ + private static Collection convertSMSRecipientsFromEmailAddressCollectionToMobilePhoneCollection( + EmailAddressCollection emailCollection) { + Collection mobilePhoneCollection = + new ArrayList(); + for (EmailAddress emailAddress : emailCollection) { + mobilePhoneCollection.add(new MobilePhone(emailAddress.getName(), + emailAddress.getAddress())); + } + + return mobilePhoneCollection; + } + + /** + * Convert the SMS recipient list from MobilePhone + * collection type to EmailAddressCollection type. + * + * @param Recipient list in a MobilePhone collection type. + * @return An EmailAddressCollection object + * containing recipients with "MOBILE" address type. + */ + private static EmailAddressCollection convertSMSRecipientsFromMobilePhoneCollectionToEmailAddressCollection( + Collection recipientCollection) { + EmailAddressCollection emailCollection = + new EmailAddressCollection(XmlElementNames.Address); + for (MobilePhone recipient : recipientCollection) { + EmailAddress emailAddress = new EmailAddress( + recipient.getName(), + recipient.getPhoneNumber(), + RuleActions.MobileType); + emailCollection.add(emailAddress); + } + + return emailCollection; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java index 4d0a0c67c..238a00bb4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java @@ -12,93 +12,95 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.ArrayList; import java.util.Iterator; + /** * Represents a collection of rules. */ -public final class RuleCollection extends -ComplexProperty implements Iterable{ - - /** - * The OutlookRuleBlobExists flag. - */ - private boolean outlookRuleBlobExists; - - /** - * The rules in the rule collection. - */ - private ArrayList rules; - - /** - * Initializes a new instance of the RuleCollection class. - */ - protected RuleCollection() { - super(); - this.rules = new ArrayList(); - } - - /** - * Gets a value indicating whether an Outlook rule blob exists in the user's - * mailbox. To update rules with EWS when the Outlook rule blob exists, call - * SetInboxRules passing true as the - * value of the removeOutlookBlob parameter. - */ - public boolean getOutlookRuleBlobExists() { - return this.outlookRuleBlobExists; - } - - protected void setOutlookRuleBlobExists(boolean value) { - this.outlookRuleBlobExists = value; - } - - /** - * Gets the number of rules in this collection. - */ - public int getCount() { - return this.rules.size(); - } - - /** - * Gets the rule at the specified index in the collection. - * @param index The index of the rule to get. - * @return The rule at the specified index. - * @throws ArgumentOutOfRangeException - */ - public Rule getRule(int index) throws ArgumentOutOfRangeException { - if (index < 0 || index >= this.rules.size()) { - throw new ArgumentOutOfRangeException("Index"); - } - - return this.rules.get(index); - - } - - - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - * @throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.isStartElement(XmlNamespace.Types, XmlElementNames.Rule)) { - Rule rule = new Rule(); - rule.loadFromXml(reader, XmlElementNames.Rule); - this.rules.add(rule); - return true; - } - else { - return false; - } - } - - /** - * Get an enumerator for the collection - */ - @Override - public Iterator iterator() { - return this.rules.iterator(); - } +public final class RuleCollection extends + ComplexProperty implements Iterable { + + /** + * The OutlookRuleBlobExists flag. + */ + private boolean outlookRuleBlobExists; + + /** + * The rules in the rule collection. + */ + private ArrayList rules; + + /** + * Initializes a new instance of the RuleCollection class. + */ + protected RuleCollection() { + super(); + this.rules = new ArrayList(); + } + + /** + * Gets a value indicating whether an Outlook rule blob exists in the user's + * mailbox. To update rules with EWS when the Outlook rule blob exists, call + * SetInboxRules passing true as the + * value of the removeOutlookBlob parameter. + */ + public boolean getOutlookRuleBlobExists() { + return this.outlookRuleBlobExists; + } + + protected void setOutlookRuleBlobExists(boolean value) { + this.outlookRuleBlobExists = value; + } + + /** + * Gets the number of rules in this collection. + */ + public int getCount() { + return this.rules.size(); + } + + /** + * Gets the rule at the specified index in the collection. + * + * @param index The index of the rule to get. + * @return The rule at the specified index. + * @throws ArgumentOutOfRangeException + */ + public Rule getRule(int index) throws ArgumentOutOfRangeException { + if (index < 0 || index >= this.rules.size()) { + throw new ArgumentOutOfRangeException("Index"); + } + + return this.rules.get(index); + + } + + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.isStartElement(XmlNamespace.Types, XmlElementNames.Rule)) { + Rule rule = new Rule(); + rule.loadFromXml(reader, XmlElementNames.Rule); + this.rules.add(rule); + return true; + } else { + return false; + } + } + + /** + * Get an enumerator for the collection + */ + @Override + public Iterator iterator() { + return this.rules.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleError.java b/src/main/java/microsoft/exchange/webservices/data/RuleError.java index d6266ab01..484c269e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleError.java @@ -10,80 +10,96 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** - * Defines the RuleError class. +/** + * Defines the RuleError class. */ -public final class RuleError extends ComplexProperty{ +public final class RuleError extends ComplexProperty { - /** The Rule property. */ - private RuleProperty ruleProperty; + /** + * The Rule property. + */ + private RuleProperty ruleProperty; - /** The Rule validation error code.*/ - private RuleErrorCode errorCode; + /** + * The Rule validation error code. + */ + private RuleErrorCode errorCode; - /** The Error message.*/ - private String errorMessage; + /** + * The Error message. + */ + private String errorMessage; - /** The Field value.*/ - private String value; + /** + * The Field value. + */ + private String value; - /** The Initializes a new instance of the RuleError class.*/ - protected RuleError() { - super(); - } + /** + * The Initializes a new instance of the RuleError class. + */ + protected RuleError() { + super(); + } - /** Gets the property which failed validation. - * @return ruleProperty - */ - public RuleProperty getRuleProperty() { - return this.ruleProperty; - } + /** + * Gets the property which failed validation. + * + * @return ruleProperty + */ + public RuleProperty getRuleProperty() { + return this.ruleProperty; + } - /** Gets the validation error code. - * @return ruleProperty - */ - public RuleErrorCode getErrorCode() { - return this.errorCode; - } + /** + * Gets the validation error code. + * + * @return ruleProperty + */ + public RuleErrorCode getErrorCode() { + return this.errorCode; + } - /** Gets the error message. - * @return ruleProperty - */ - public String getErrorMessage() { - return this.errorMessage; - } + /** + * Gets the error message. + * + * @return ruleProperty + */ + public String getErrorMessage() { + return this.errorMessage; + } - /** Gets the value that failed validation.*/ - public String getValue() { - return this.value; - } + /** + * Gets the value that failed validation. + */ + public String getValue() { + return this.value; + } - /** Tries to read element from XML. - * @param reader The reader - * @return True if element was read - * @throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if(reader.getLocalName().equals(XmlElementNames.FieldURI)) { - this.ruleProperty = reader.readElementValue(RuleProperty.class); - return true; - } - else if(reader.getLocalName().equals(XmlElementNames.ErrorCode)) { - this.errorCode = reader.readElementValue(RuleErrorCode.class); - return true; - } - else if(reader.getLocalName().equals(XmlElementNames.ErrorMessage)) { - this.errorMessage = reader.readElementValue(); - return true; - } - else if(reader.getLocalName().equals(XmlElementNames.FieldValue)) { - this.value = reader.readElementValue(); - return true; - } - else { - return false; - } - } -} \ No newline at end of file + /** + * Tries to read element from XML. + * + * @param reader The reader + * @return True if element was read + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.FieldURI)) { + this.ruleProperty = reader.readElementValue(RuleProperty.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { + this.errorCode = reader.readElementValue(RuleErrorCode.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ErrorMessage)) { + this.errorMessage = reader.readElementValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.FieldValue)) { + this.value = reader.readElementValue(); + return true; + } else { + return false; + } + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java index a81715888..24c9be741 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java @@ -13,131 +13,130 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Defines the error codes identifying why a rule failed validation. */ - public enum RuleErrorCode - { - - /** - * Active Directory operation failed. - */ - ADOperationFailure, - - /** - * The e-mail account specified in the - * FromConnectedAccounts predicate was not found. - */ - ConnectedAccountNotFound, - - /** - * The Rule object in a CreateInboxRuleOperation has an Id. The Ids of new - * rules are generated server side and - * should not be provided by the client. - */ - CreateWithRuleId, - - /** - * The value is empty. An empty value is not allowed for the property. - */ - EmptyValueFound, - - /** - * There already is a rule with the same priority. - */ - DuplicatedPriority, - - /** - * There are multiple operations against the same rule. - * Only one operation per rule is allowed. - */ - DuplicatedOperationOnTheSameRule, - - /** - * The folder does not exist in the user's mailbox. - */ - FolderDoesNotExist, - - /** - * The e-mail address is invalid. - */ - InvalidAddress, - - /** - * The date range is invalid. - */ - InvalidDateRange, - - /** - * The folder Id is invalid. - */ - InvalidFolderId, - - /** - * The size range is invalid. - */ - InvalidSizeRange, - - /** - * The value is invalid. - */ - InvalidValue, - - /** - * The message classification was not found. - */ - MessageClassificationNotFound, - - /** - * No action was specified. At least one action must be specified. - */ - MissingAction, - - /** - * The required parameter is missing. - */ - MissingParameter, - - /** - * The range value is missing. - */ - MissingRangeValue, - - /** - * The property cannot be modified. - */ - NotSettable, - - /** - * The recipient does not exist. - */ - RecipientDoesNotExist, - - /** - * The rule was not found. - */ - RuleNotFound, - - /** - * The size is less than zero. - */ - SizeLessThanZero, - - /** - * The string value is too big. - */ - StringValueTooBig, - - /** - * The address is unsupported. - */ - UnsupportedAddress, - - /** - * An unexpected error occured. - */ - UnexpectedError, - - /** - * The rule is not supported. - */ - UnsupportedRule - } +public enum RuleErrorCode { + + /** + * Active Directory operation failed. + */ + ADOperationFailure, + + /** + * The e-mail account specified in the + * FromConnectedAccounts predicate was not found. + */ + ConnectedAccountNotFound, + + /** + * The Rule object in a CreateInboxRuleOperation has an Id. The Ids of new + * rules are generated server side and + * should not be provided by the client. + */ + CreateWithRuleId, + + /** + * The value is empty. An empty value is not allowed for the property. + */ + EmptyValueFound, + + /** + * There already is a rule with the same priority. + */ + DuplicatedPriority, + + /** + * There are multiple operations against the same rule. + * Only one operation per rule is allowed. + */ + DuplicatedOperationOnTheSameRule, + + /** + * The folder does not exist in the user's mailbox. + */ + FolderDoesNotExist, + + /** + * The e-mail address is invalid. + */ + InvalidAddress, + + /** + * The date range is invalid. + */ + InvalidDateRange, + + /** + * The folder Id is invalid. + */ + InvalidFolderId, + + /** + * The size range is invalid. + */ + InvalidSizeRange, + + /** + * The value is invalid. + */ + InvalidValue, + + /** + * The message classification was not found. + */ + MessageClassificationNotFound, + + /** + * No action was specified. At least one action must be specified. + */ + MissingAction, + + /** + * The required parameter is missing. + */ + MissingParameter, + + /** + * The range value is missing. + */ + MissingRangeValue, + + /** + * The property cannot be modified. + */ + NotSettable, + + /** + * The recipient does not exist. + */ + RecipientDoesNotExist, + + /** + * The rule was not found. + */ + RuleNotFound, + + /** + * The size is less than zero. + */ + SizeLessThanZero, + + /** + * The string value is too big. + */ + StringValueTooBig, + + /** + * The address is unsupported. + */ + UnsupportedAddress, + + /** + * An unexpected error occured. + */ + UnexpectedError, + + /** + * The rule is not supported. + */ + UnsupportedRule +} diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java index d714de091..0f1488e6f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java @@ -9,50 +9,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of **************************************************************************/ package microsoft.exchange.webservices.data; + /** * Represents a collection of rule validation errors. */ -public final class RuleErrorCollection extends -ComplexPropertyCollection{ +public final class RuleErrorCollection extends + ComplexPropertyCollection { + + /** + * Initializes a new instance of the RuleErrorCollection class. + */ + protected RuleErrorCollection() { + super(); + } + + /** + * Creates an RuleError object from an XML element name. + * + * @param xmlElementName The XML element name from + * which to create the RuleError object. + * @return A RuleError object. + */ + @Override + protected RuleError createComplexProperty(String xmlElementName) { + if (xmlElementName.equals(XmlElementNames.Error)) { + return new RuleError(); + } else { + return null; + } + } - /** - * Initializes a new instance of the RuleErrorCollection class. - */ - protected RuleErrorCollection(){ - super(); - } - - /** - * Creates an RuleError object from an XML element name. - * - * @param xmlElementName - * The XML element name from - * which to create the RuleError object. - * @return A RuleError object. - */ - @Override - protected RuleError createComplexProperty(String xmlElementName){ - if (xmlElementName.equals(XmlElementNames.Error)){ - return new RuleError(); - } - else { - return null; - } - } - - /** - * Retrieves the XML element name corresponding - * to the provided RuleError object. - * - * @param ruleValidationError - * The RuleError object from which - * to determine the XML element name. - * @return The XML element name corresponding - * to the provided RuleError object. - */ - @Override - protected String getCollectionItemXmlElementName(RuleError - ruleValidationError){ - return XmlElementNames.Error; - } + /** + * Retrieves the XML element name corresponding + * to the provided RuleError object. + * + * @param ruleValidationError The RuleError object from which + * to determine the XML element name. + * @return The XML element name corresponding + * to the provided RuleError object. + */ + @Override + protected String getCollectionItemXmlElementName(RuleError + ruleValidationError) { + return XmlElementNames.Error; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java index 9b0477bb3..bd0b0b93e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java @@ -11,23 +11,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * Represents an operation to be performed on a rule. + * Represents an operation to be performed on a rule. */ public abstract class RuleOperation extends ComplexProperty { - protected String xmlElementName; - - /** - * Initializes a new instance of the class. - */ - protected RuleOperation() { - super(); - } - - /** - * - * Gets the XML element name of the rule operation. - */ - protected String getXmlElementName() { - return this.xmlElementName; - } -} \ No newline at end of file + protected String xmlElementName; + + /** + * Initializes a new instance of the class. + */ + protected RuleOperation() { + super(); + } + + /** + * Gets the XML element name of the rule operation. + */ + protected String getXmlElementName() { + return this.xmlElementName; + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java index c6737af35..c0f163e5b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java @@ -13,102 +13,104 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.Iterator; /** - * Defines the RuleOperationError class. + * Defines the RuleOperationError class. */ -public final class RuleOperationError extends -ComplexProperty implements Iterable { - /** - * Index of the operation mapping to the error. - */ - private int operationIndex; +public final class RuleOperationError extends + ComplexProperty implements Iterable { + /** + * Index of the operation mapping to the error. + */ + private int operationIndex; - /** - * RuleOperation object mapping to the error. - */ - private RuleOperation operation; + /** + * RuleOperation object mapping to the error. + */ + private RuleOperation operation; - /** - * RuleError Collection. - */ - private RuleErrorCollection ruleErrors; + /** + * RuleError Collection. + */ + private RuleErrorCollection ruleErrors; - /** - * Initializes a new instance of the RuleOperationError class. - */ - protected RuleOperationError() { - super(); - } + /** + * Initializes a new instance of the RuleOperationError class. + */ + protected RuleOperationError() { + super(); + } - /** - * Gets the operation that resulted in an error. - * @return operation - */ - public RuleOperation getOperation() { - return this.operation; - } + /** + * Gets the operation that resulted in an error. + * + * @return operation + */ + public RuleOperation getOperation() { + return this.operation; + } - /** - * Gets the number of rule errors in the list. - * @return count - */ - public int getCount() { - return this.ruleErrors.getCount(); - } + /** + * Gets the number of rule errors in the list. + * + * @return count + */ + public int getCount() { + return this.ruleErrors.getCount(); + } - /** - * Gets the rule error at the specified index. - * @return Index - * @throws ArgumentOutOfRangeException - */ - public RuleError getRuleError(int index) - throws ArgumentOutOfRangeException { - if (index < 0 || index >= this.getCount()) { - throw new ArgumentOutOfRangeException("index"); - } + /** + * Gets the rule error at the specified index. + * + * @return Index + * @throws ArgumentOutOfRangeException + */ + public RuleError getRuleError(int index) + throws ArgumentOutOfRangeException { + if (index < 0 || index >= this.getCount()) { + throw new ArgumentOutOfRangeException("index"); + } - return this.ruleErrors.getPropertyAtIndex(index); - - } + return this.ruleErrors.getPropertyAtIndex(index); + } - /** - * Tries to read element from XML. - * @return true - * @throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if(reader.getLocalName().equals(XmlElementNames.OperationIndex)) { - this.operationIndex = reader.readElementValue(Integer.class); - return true; - } - else if(reader.getLocalName().equals(XmlElementNames.ValidationErrors)) { - this.ruleErrors = new RuleErrorCollection(); - this.ruleErrors.loadFromXml(reader, reader.getLocalName()); - return true; - } - else { - return false; - } - } - /** - * Set operation property by the index of a given opeation enumerator. - */ - protected void setOperationByIndex(Iterator operations) { - for (int i = 0; i <= this.operationIndex; i++) { - operations.next(); - } - this.operation = operations.next(); - } - - /** - * Gets an iterator that iterates through the elements of the collection. - * - * @return An Iterator for the collection. - */ - public Iterator iterator() { - return this.ruleErrors.iterator(); - } + /** + * Tries to read element from XML. + * + * @return true + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.OperationIndex)) { + this.operationIndex = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.ValidationErrors)) { + this.ruleErrors = new RuleErrorCollection(); + this.ruleErrors.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } + + /** + * Set operation property by the index of a given opeation enumerator. + */ + protected void setOperationByIndex(Iterator operations) { + for (int i = 0; i <= this.operationIndex; i++) { + operations.next(); + } + this.operation = operations.next(); + } + + /** + * Gets an iterator that iterates through the elements of the collection. + * + * @return An Iterator for the collection. + */ + public Iterator iterator() { + return this.ruleErrors.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java index 220ec7096..27e2b4d1b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java @@ -13,50 +13,45 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a collection of rule operation errors. */ -public final class RuleOperationErrorCollection extends -ComplexPropertyCollection{ +public final class RuleOperationErrorCollection extends + ComplexPropertyCollection { - /** - * - * Initializes a new instance of the - * class. - * - */ - protected RuleOperationErrorCollection() { - super(); - } + /** + * Initializes a new instance of the + * class. + */ + protected RuleOperationErrorCollection() { + super(); + } - /** - * Creates an RuleOperationError object from an XML element name. - * - * @param xmlElementName - * The XML element name from which - * to create the RuleOperationError object. - * @return A RuleOperationError object. - */ - @Override - protected RuleOperationError createComplexProperty(String xmlElementName) { - if (xmlElementName.equals(XmlElementNames.RuleOperationError)) { - return new RuleOperationError(); - } - else { - return null; - } - } - - /** - * Retrieves the XML element name corresponding - * to the provided RuleOperationError object. - * - * @param operationError - * The RuleOperationError object - * from which to determine the XML element name. - * @return The XML element name corresponding - * to the provided RuleOperationError object. - */ - @Override - protected String getCollectionItemXmlElementName(RuleOperationError - operationError){ - return XmlElementNames.RuleOperationError; - } + /** + * Creates an RuleOperationError object from an XML element name. + * + * @param xmlElementName The XML element name from which + * to create the RuleOperationError object. + * @return A RuleOperationError object. + */ + @Override + protected RuleOperationError createComplexProperty(String xmlElementName) { + if (xmlElementName.equals(XmlElementNames.RuleOperationError)) { + return new RuleOperationError(); + } else { + return null; + } + } + + /** + * Retrieves the XML element name corresponding + * to the provided RuleOperationError object. + * + * @param operationError The RuleOperationError object + * from which to determine the XML element name. + * @return The XML element name corresponding + * to the provided RuleOperationError object. + */ + @Override + protected String getCollectionItemXmlElementName(RuleOperationError + operationError) { + return XmlElementNames.RuleOperationError; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java index 946050b59..c9f6b4b79 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java @@ -10,111 +10,111 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.Date; - import javax.xml.stream.XMLStreamException; +import java.util.Date; /** * Represents the date and time range within which messages have been received. */ public final class RulePredicateDateRange extends ComplexProperty { - /** - * The end DateTime. - */ - private Date start; + /** + * The end DateTime. + */ + private Date start; + + /** + * The end DateTime. + */ + private Date end; + + /** + * Initializes a new instance of the RulePredicateDateRange class. + */ + protected RulePredicateDateRange() { + super(); + } - /** - * The end DateTime. - */ - private Date end; + /** + * Gets or sets the range start date and time. + * If Start is set to null, no start date applies. + */ + public Date getStart() { + return this.start; + } - /** - * Initializes a new instance of the RulePredicateDateRange class. - */ - protected RulePredicateDateRange() { - super(); - } + public void setStart(Date value) { + if (this.canSetFieldValue(this.start, value)) { + this.start = value; + this.changed(); + } + } - /** - * Gets or sets the range start date and time. - * If Start is set to null, no start date applies. - */ - public Date getStart() { - return this.start; - } - public void setStart(Date value) { - if (this.canSetFieldValue(this.start, value)) { - this.start = value; - this.changed(); - } - } + /** + * Gets or sets the range end date and time. + * If End is set to null, no end date applies. + */ + public Date getEnd() { + return this.end; + } - /** - * Gets or sets the range end date and time. - * If End is set to null, no end date applies. - */ - public Date getEnd() { - return this.end; - } - public void setEnd(Date value) { - if (this.canSetFieldValue(this.end, value)) { - this.end = value; - this.changed(); - } - } + public void setEnd(Date value) { + if (this.canSetFieldValue(this.end, value)) { + this.end = value; + this.changed(); + } + } - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader - reader) throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.StartDateTime)) { - this.start = reader.readElementValueAsDateTime(); - return true; - } - else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.EndDateTime)) - { - this.end = reader.readElementValueAsDateTime(); - return true; - } - else { - return false; - } - } + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader + reader) throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.StartDateTime)) { + this.start = reader.readElementValueAsDateTime(); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.EndDateTime)) { + this.end = reader.readElementValueAsDateTime(); + return true; + } else { + return false; + } + } - /** - * Writes elements to XML. - * @param writer The writer. - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - if (this.getStart()!=null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.StartDateTime, this.getStart()); - } - if (this.getEnd()!=null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.EndDateTime, this.getEnd()); - } - } + /** + * Writes elements to XML. + * + * @param writer The writer. + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + if (this.getStart() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.StartDateTime, this.getStart()); + } + if (this.getEnd() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.EndDateTime, this.getEnd()); + } + } - /** - * Validates this instance. - */ - @Override - protected void internalValidate() - throws ServiceValidationException, Exception { - super.internalValidate(); - if (this.start!=null && - this.end!=null && - this.start.after(this.end)) { - throw new ServiceValidationException( - "Start date time cannot be bigger than end date time."); - } - } + /** + * Validates this instance. + */ + @Override + protected void internalValidate() + throws ServiceValidationException, Exception { + super.internalValidate(); + if (this.start != null && + this.end != null && + this.start.after(this.end)) { + throw new ServiceValidationException( + "Start date time cannot be bigger than end date time."); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java index 41e52377b..14e283211 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java @@ -16,109 +16,110 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the minimum and maximum size of a message. */ public final class RulePredicateSizeRange extends ComplexProperty { - /** - * Minimum Size. - */ - private Integer minimumSize; - - /** - * Mamixmum Size. - */ - private Integer maximumSize; - - /** - * Initializes a new instance of the RulePredicateSizeRange class. - */ - protected RulePredicateSizeRange() { - super(); - } - - /** - * Gets or sets the minimum size, in kilobytes. - * If MinimumSize is set to null, no minimum size applies. - */ - public Integer getMinimumSize() { - - return this.minimumSize; - } - public void setMinimumSize(Integer value) { - if (this.canSetFieldValue(this.minimumSize, value)) { - this.minimumSize = value; - this.changed(); - }} - - /** - * Gets or sets the maximum size, in kilobytes. - * If MaximumSize is set to null, no maximum size applies. - */ - public Integer getMaximumSize() { - return this.maximumSize; - } - public void setMaximumSize(Integer value) { - if (this.canSetFieldValue(this.maximumSize, value)) { - this.maximumSize = value; - this.changed(); - } - - } - - - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - - if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.MinimumSize)) { - this.minimumSize = reader.readElementValue(Integer.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.MaximumSize)) { - this.maximumSize = reader.readElementValue(Integer.class); - return true; - } - - else { - return false; - } - - } - - /** - * Writes elements to XML. - * @param writer The writer. - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - if (this.getMinimumSize() != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MinimumSize, this.getMinimumSize()); - } - if (this.getMaximumSize()!= null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MaximumSize, this.getMaximumSize()); - } - } - - /** - * Validates this instance. - */ - @Override - protected void internalValidate() - throws ServiceValidationException, Exception { - super.internalValidate(); - if (this.minimumSize != null && - this.maximumSize != null && - this.minimumSize > this.maximumSize) { - throw new ServiceValidationException( - "MinimumSize cannot be larger than MaximumSize."); - } - } + /** + * Minimum Size. + */ + private Integer minimumSize; + + /** + * Mamixmum Size. + */ + private Integer maximumSize; + + /** + * Initializes a new instance of the RulePredicateSizeRange class. + */ + protected RulePredicateSizeRange() { + super(); + } + + /** + * Gets or sets the minimum size, in kilobytes. + * If MinimumSize is set to null, no minimum size applies. + */ + public Integer getMinimumSize() { + + return this.minimumSize; + } + + public void setMinimumSize(Integer value) { + if (this.canSetFieldValue(this.minimumSize, value)) { + this.minimumSize = value; + this.changed(); + } + } + + /** + * Gets or sets the maximum size, in kilobytes. + * If MaximumSize is set to null, no maximum size applies. + */ + public Integer getMaximumSize() { + return this.maximumSize; + } + + public void setMaximumSize(Integer value) { + if (this.canSetFieldValue(this.maximumSize, value)) { + this.maximumSize = value; + this.changed(); + } + + } + + + /** + * Tries to read element from XML. + * + * @param reader The reader. + * @return True if element was read. + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.MinimumSize)) { + this.minimumSize = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.MaximumSize)) { + this.maximumSize = reader.readElementValue(Integer.class); + return true; + } else { + return false; + } + + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + if (this.getMinimumSize() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MinimumSize, this.getMinimumSize()); + } + if (this.getMaximumSize() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MaximumSize, this.getMaximumSize()); + } + } + + /** + * Validates this instance. + */ + @Override + protected void internalValidate() + throws ServiceValidationException, Exception { + super.internalValidate(); + if (this.minimumSize != null && + this.maximumSize != null && + this.minimumSize > this.maximumSize) { + throw new ServiceValidationException( + "MinimumSize cannot be larger than MaximumSize."); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 86c8cf847..22b99dc10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -13,1090 +13,1019 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the set of conditions and exceptions available for a rule. */ -public final class RulePredicates extends ComplexProperty{ - - /** - * The HasCategories predicate. - */ - private StringList categories; - - /** - * The ContainsBodyStrings predicate. - */ - private StringList containsBodyStrings; - /** - * The ContainsHeaderStrings predicate. - */ - private StringList containsHeaderStrings; - - /** - * The ContainsRecipientStrings predicate. - */ - private StringList containsRecipientStrings; - - /** - * The ContainsSenderStrings predicate. - */ - private StringList containsSenderStrings; - - /** - * The ContainsSubjectOrBodyStrings predicate. - */ - private StringList containsSubjectOrBodyStrings; - - /** - * The ContainsSubjectStrings predicate. - */ - private StringList containsSubjectStrings; - - /** - * The FlaggedForAction predicate. - */ - private FlaggedForAction flaggedForAction; - - /** - * The FromAddresses predicate. - */ - private EmailAddressCollection fromAddresses; - - /** - * The FromConnectedAccounts predicate. - */ - private StringList fromConnectedAccounts; - - /** - * The HasAttachments predicate. - */ - private boolean hasAttachments; - - /** - * The Importance predicate. - */ - private Importance importance; - - /** - * The IsApprovalRequest predicate. - */ - private boolean isApprovalRequest; - - /** - * The IsAutomaticForward predicate. - */ - private boolean isAutomaticForward; - - /** - * The IsAutomaticReply predicate. - */ - private boolean isAutomaticReply; - - /** - * The IsEncrypted predicate. - */ - private boolean isEncrypted; - - /** - * The IsMeetingRequest predicate. - */ - private boolean isMeetingRequest; - - /** - * The IsMeetingResponse predicate. - */ - private boolean isMeetingResponse; - - /** - * The IsNDR predicate. - */ - private boolean isNonDeliveryReport; - - /** - * The IsPermissionControlled predicate. - */ - private boolean isPermissionControlled; - - /** - * The IsSigned predicate. - */ - private boolean isSigned; - - /** - * The IsVoicemail predicate. - */ - private boolean isVoicemail; - - /** - * The IsReadReceipt predicate. - */ - private boolean isReadReceipt; - - /** - * ItemClasses predicate. - */ - private StringList itemClasses; - - /** - * The MessageClassifications predicate. - */ - private StringList messageClassifications; - - /** - * The NotSentToMe predicate. - */ - private boolean notSentToMe; - - /** - * SentCcMe predicate. - */ - private boolean sentCcMe; - - /** - * The SentOnlyToMe predicate. - */ - private boolean sentOnlyToMe; - - /** - * The SentToAddresses predicate. - */ - private EmailAddressCollection sentToAddresses; - - /** - * The SentToMe predicate. - */ - private boolean sentToMe; - - /** - * The SentToOrCcMe predicate. - */ - private boolean sentToOrCcMe; - - /** - * The Sensitivity predicate. - */ - private Sensitivity sensitivity; - - /** - * The Sensitivity predicate. - */ - private RulePredicateDateRange withinDateRange; - - /** - * The Sensitivity predicate. - */ - private RulePredicateSizeRange withinSizeRange; - - /** - * Initializes a new instance of the RulePredicates class. - */ - protected RulePredicates() { - super(); - this.categories = new StringList(); - this.containsBodyStrings = new StringList(); - this.containsHeaderStrings = new StringList(); - this.containsRecipientStrings = new StringList(); - this.containsSenderStrings = new StringList(); - this.containsSubjectOrBodyStrings = new StringList(); - this.containsSubjectStrings = new StringList(); - this.fromAddresses = - new EmailAddressCollection(XmlElementNames.Address); - this.fromConnectedAccounts = new StringList(); - this.itemClasses = new StringList(); - this.messageClassifications = new StringList(); - this.sentToAddresses = - new EmailAddressCollection(XmlElementNames.Address); - this.withinDateRange = new RulePredicateDateRange(); - this.withinSizeRange = new RulePredicateSizeRange(); - } - - /** - * Gets the categories that an incoming message - * should be stamped with for the condition or exception to apply. - * To disable this predicate, empty the list. - */ - public StringList getCategories() { - return this.categories; - } - - /** - * Gets the strings that should appear in the body of - * incoming messages for the condition or exception to apply. - * To disable this predicate, empty the list. - */ - public StringList getContainsBodyStrings() { - return this.containsBodyStrings; - } - - /** - * Gets the strings that should appear in the - * headers of incoming messages for the condition or - * exception to apply. To disable this predicate, empty the list. - */ - public StringList getContainsHeaderStrings() { - return this.containsHeaderStrings; - } - - /** - * Gets the strings that should appear in either the - * To or Cc fields of incoming messages for the condition - * or exception to apply. To disable this predicate, empty the list. - */ - public StringList getContainsRecipientStrings() { - return this.containsRecipientStrings; - } - - /** - * Gets the strings that should appear - * in the From field of incoming messages - * for the condition or exception to apply. - * To disable this predicate, empty the list. - */ - public StringList getContainsSenderStrings() { - return this.containsSenderStrings; - } - - /** - * Gets the strings that should appear in either - * the body or the subject of incoming messages for the - * condition or exception to apply. - * To disable this predicate, empty the list. - */ - public StringList getContainsSubjectOrBodyStrings() { - return this.containsSubjectOrBodyStrings; - } - - /** - * Gets the strings that should appear in the subject - * of incoming messages for the condition or exception - * to apply. To disable this predicate, empty the list. - */ - public StringList getContainsSubjectStrings() { - return this.containsSubjectStrings; - } - - /** - * Gets or sets the flag for action value that should - * appear on incoming messages for the condition or execption to apply. - * To disable this predicate, set it to null. - */ - public FlaggedForAction getFlaggedForAction() { - - return this.flaggedForAction; - } - public void setFlaggedForAction(FlaggedForAction value) { - if (this.canSetFieldValue(this.flaggedForAction, value)) { - this.flaggedForAction = value; - this.changed(); - } - } - - /** - * Gets the e-mail addresses of the senders of incoming - * messages for the condition or exception to apply. - * To disable this predicate, empty the list. - */ - public EmailAddressCollection getFromAddresses() { - return this.fromAddresses; - } - - /** - * Gets or sets a value indicating whether incoming messages must have - * attachments for the condition or exception to apply. - */ - public boolean getHasAttachments() { - return this.hasAttachments; - } - public void setHasAttachments(boolean value) { - if (this.canSetFieldValue(this.hasAttachments, value)) { - this.hasAttachments = value; - this.changed(); - } - } - - /** - * Gets or sets the importance that should be stamped on incoming messages - * for the condition or exception to apply. - * To disable this predicate, set it to null. - */ - public Importance getImportance(){ - return this.importance; - } - public void setImportance(Importance value) { - if (this.canSetFieldValue(this.importance, value)) { - this.importance = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether incoming messages must be - * approval requests for the condition or exception to apply. - */ - public boolean getIsApprovalRequest() { - return this.isApprovalRequest; - } - public void setIsApprovalRequest(boolean value){ - if (this.canSetFieldValue(this.isApprovalRequest, value)) { - - this.isApprovalRequest = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether incoming messages must be - * automatic forwards for the condition or exception to apply. - */ - public boolean getIsAutomaticForward(){ - return this.isAutomaticForward; - } - - public void setIsAutomaticForward(boolean value){ - if (this.canSetFieldValue(this.isAutomaticForward, value)) { - this.isAutomaticForward = value; - this.changed(); - } - } - /** - * Gets or sets a value indicating whether incoming messages must be - * automatic replies for the condition or exception to apply. - */ - public boolean getIsAutomaticReply() { - return this.isAutomaticReply; - } - public void setIsAutomaticReply(boolean value) { - if (this.canSetFieldValue(this.isAutomaticReply, value)) { - this.isAutomaticReply = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether incoming messages must be - * S/MIME encrypted for the condition or exception to apply. - */ - public boolean getIsEncrypted() { - return this.isEncrypted; - } - public void setIsEncrypted(boolean value) { - if (this.canSetFieldValue(this.isEncrypted, value)) { - this.isEncrypted = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether incoming messages must be - * meeting requests for the condition or exception to apply. - */ - public boolean getIsMeetingRequest() { - return this.isMeetingRequest; - } - public void setIsMeetingRequest(boolean value) { - if (this.canSetFieldValue(this.isEncrypted, value)) { - - this.isEncrypted = value; - this.changed(); - } - - } - - - /** - * Gets or sets a value indicating whether incoming messages must be - * meeting responses for the condition or exception to apply. - */ - public boolean getIsMeetingResponse() { - - return this.isMeetingResponse; - } - public void setIsMeetingResponse(boolean value) { - if (this.canSetFieldValue(this.isMeetingResponse, value)) { - this.isMeetingResponse = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether incoming messages must be - * non-delivery reports (NDR) for the condition or exception to apply. - */ - public boolean getIsNonDeliveryReport() { - return this.isNonDeliveryReport; - } - - public void setIsNonDeliveryReport(boolean value) { - if (this.canSetFieldValue(this.isNonDeliveryReport, value)) { - this.isNonDeliveryReport = value; - this.changed(); - } - } - - /** - * Gets or sets a value indicating whether incoming messages must be - * permission controlled (RMS protected) for the condition or exception - * to apply. - */ - public boolean getIsPermissionControlled() { - return this.isPermissionControlled; - } - - public void setIsPermissionControlled(boolean value) { - if (this.canSetFieldValue(this.isPermissionControlled, value)) { - this.isPermissionControlled = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether incoming messages must be - * S/MIME signed for the condition or exception to apply. - */ - public boolean getIsSigned() { - return this.isSigned; - } - public void setIsSigned(boolean value) { - if (this.canSetFieldValue(this.isSigned, value)) { - this.isSigned = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether incoming messages must be - * voice mails for the condition or exception to apply. - */ - public boolean getIsVoicemail() { - return this.isVoicemail; - } - public void setIsVoicemail(boolean value) { - if (this.canSetFieldValue(this.isVoicemail, value)) { - this.isVoicemail = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether incoming messages must be - * read receipts for the condition or exception to apply. - */ - public boolean getIsReadReceipt() { - return this.isReadReceipt; - } - - public void setIsReadReceipt(boolean value) { - if (this.canSetFieldValue(this.isReadReceipt, value)) { - this.isReadReceipt = value; - this.changed(); - } - } - - /** - * Gets the e-mail account names from which incoming messages must have - * been aggregated for the condition or exception to apply. To disable - * this predicate, empty the list. - */ - public StringList getFromConnectedAccounts() { - return this.fromConnectedAccounts; - } - - /** - * Gets the item classes that must be stamped on incoming messages for - * the condition or exception to apply. To disable this predicate, - * empty the list. - */ - public StringList getItemClasses() { - return this.itemClasses; - } - - /** - * Gets the message classifications that - * must be stamped on incoming messages - * for the condition or exception to apply. To disable this predicate, - * empty the list. - */ - public StringList getMessageClassifications() { - - return this.messageClassifications; - - } - - /** - * Gets or sets a value indicating whether the owner of the mailbox must - * NOT be a To recipient of the incoming messages for the condition or - * exception to apply. - */ - - public boolean getNotSentToMe() { - return this.notSentToMe; - } - public void setNotSentToMe(boolean value) { - if (this.canSetFieldValue(this.notSentToMe, value)) { - this.notSentToMe = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether the owner of the mailbox must be - * a Cc recipient of incoming messages - * for the condition or exception to apply. - */ - public boolean getSentCcMe() { - return this.sentCcMe; - } - public void setSentCcMe(boolean value) { - if (this.canSetFieldValue(this.sentCcMe, value)) { - this.sentCcMe = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether the owner of the mailbox must be - * the only To recipient of incoming - * messages for the condition or exception - * to apply. - */ - public boolean getSentOnlyToMe() { - return this.sentOnlyToMe; - } - public void setSentOnlyToMe(boolean value) { - if (this.canSetFieldValue(this.sentOnlyToMe, value)) { - this.sentOnlyToMe = value; - this.changed(); - } - } - - - /** - * Gets the e-mail addresses incoming messages must have been sent to for - * the condition or exception to apply. To disable this predicate, empty - * the list. - */ - public EmailAddressCollection getSentToAddresses() { - return this.sentToAddresses; - - } - - /** - * Gets or sets a value indicating whether the owner of the mailbox must be - * a To recipient of incoming messages - * for the condition or exception to apply. - */ - public boolean getSentToMe() { - return this.sentToMe; - } - public void setSentToMe(boolean value) { - if (this.canSetFieldValue(this.sentToMe, value)) { - this.sentToMe = value; - this.changed(); - } - } - - - /** - * Gets or sets a value indicating whether the owner of the mailbox must be - * either a To or Cc recipient of incoming messages for the condition or - * exception to apply. - */ - public boolean getSentToOrCcMe() { - return this.sentToOrCcMe; - } - - public void setSentToOrCcMe(boolean value) { - if (this.canSetFieldValue(this.sentToOrCcMe, value)) { - this.sentToOrCcMe = value; - this.changed(); - } - } - - - /** - * Gets or sets the sensitivity that must be stamped on incoming messages - * for the condition or exception to apply. - * To disable this predicate, set it - * to null. - */ - public Sensitivity getSensitivity() { - return this.sensitivity; - } - public void setSensitivity(Sensitivity value) { - if (this.canSetFieldValue(this.sensitivity, value)) { - this.sensitivity = value; - this.changed(); - } - } - - /** - * Gets the date range within which - * incoming messages must have been received - * for the condition or exception to apply. - * To disable this predicate, set both - * its Start and End properties to null. - */ - public RulePredicateDateRange getWithinDateRange() { - return this.withinDateRange; - - } - - /** - * Gets the minimum and maximum sizes incoming messages must have for the - * condition or exception to apply. To disable this predicate, set both its - * MinimumSize and MaximumSize properties to null. - */ - public RulePredicateSizeRange getWithinSizeRange() { - return this.withinSizeRange; - - } - - /** - * Tries to read element from XML. - * @param reader The reader - * @throws Exception - * @return True if element was read. - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader - reader) throws Exception{ - - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Categories)) { - this.categories.loadFromXml(reader, reader.getLocalName()); - return true; - } - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsBodyStrings)) - { - this.containsBodyStrings.loadFromXml(reader, reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsHeaderStrings)) - { - this.containsHeaderStrings.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsRecipientStrings)) - { - this.containsRecipientStrings.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSenderStrings)) - { - this.containsSenderStrings.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSubjectOrBodyStrings)) - { - this.containsSubjectOrBodyStrings.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSubjectStrings)) - { - this.containsSubjectStrings.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.FlaggedForAction)) - { - this.flaggedForAction = reader. - readElementValue(FlaggedForAction.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.FromAddresses)) - { - this.fromAddresses.loadFromXml(reader, reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.FromConnectedAccounts)) - { - this.fromConnectedAccounts.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.HasAttachments)) - { - this.hasAttachments = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.Importance)) { - this.importance = reader.readElementValue(Importance.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsApprovalRequest)) - { - this.isApprovalRequest = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsAutomaticForward)) - { - this.isAutomaticForward = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsAutomaticReply)) - { - this.isAutomaticReply = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsEncrypted)) { - this.isEncrypted = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsMeetingRequest)) - { - this.isMeetingRequest = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsMeetingResponse)) - { - this.isMeetingResponse = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsNDR)) { - this.isNonDeliveryReport = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsPermissionControlled)) - { - this.isPermissionControlled = reader. - readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsSigned)) { - this.isSigned = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsVoicemail)) { - this.isVoicemail = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsReadReceipt)) - { - this.isReadReceipt = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.ItemClasses)) { - this.itemClasses.loadFromXml(reader, reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.MessageClassifications)) - { - this.messageClassifications.loadFromXml(reader, - reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.NotSentToMe)) { - this.notSentToMe = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentCcMe)) { - this.sentCcMe = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentOnlyToMe)) - { - this.sentOnlyToMe = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToAddresses)) - { - this.sentToAddresses.loadFromXml(reader, reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToMe)) { - this.sentToMe = reader.readElementValue(Boolean.class); - return true; - } - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToOrCcMe)) - { - this.sentToOrCcMe = reader.readElementValue(Boolean.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.Sensitivity)) { - this.sensitivity = reader.readElementValue(Sensitivity.class); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.WithinDateRange)) - { - this.withinDateRange.loadFromXml(reader, reader.getLocalName()); - return true; - } - - else if(reader.getLocalName().equalsIgnoreCase(XmlElementNames.WithinSizeRange)) - { - this.withinSizeRange.loadFromXml(reader, reader.getLocalName()); - return true; - } - else { - return false; - } - } - - /** - * Writes elements to XML. - * @param writer The writer. - * @throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.getCategories().getSize() > 0) { - this.getCategories().writeToXml(writer, XmlElementNames.Categories); - } - - if (this.getContainsBodyStrings().getSize() > 0) { - this.getContainsBodyStrings().writeToXml(writer, - XmlElementNames.ContainsBodyStrings); - } - - if (this.getContainsHeaderStrings().getSize() > 0) { - this.getContainsHeaderStrings().writeToXml(writer, - XmlElementNames.ContainsHeaderStrings); - } - - if (this.getContainsRecipientStrings().getSize() > 0) { - this.getContainsRecipientStrings().writeToXml(writer, - XmlElementNames.ContainsRecipientStrings); - } - - if (this.getContainsSenderStrings().getSize() > 0) { - this.getContainsSenderStrings().writeToXml(writer, - XmlElementNames.ContainsSenderStrings); - } - - if (this.getContainsSubjectOrBodyStrings().getSize() > 0) { - this.getContainsSubjectOrBodyStrings().writeToXml(writer, - XmlElementNames.ContainsSubjectOrBodyStrings); - } - - if (this.getContainsSubjectStrings().getSize() > 0) { - this.getContainsSubjectStrings().writeToXml(writer, - XmlElementNames.ContainsSubjectStrings); - } - - if (this.getFlaggedForAction()!=null) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.FlaggedForAction, - this.getFlaggedForAction().values()); - } - - if (this.getFromAddresses().getCount() > 0) { - this.getFromAddresses().writeToXml(writer, - XmlElementNames.FromAddresses); - } - - if (this.getFromConnectedAccounts().getSize() > 0) { - this.getFromConnectedAccounts().writeToXml(writer, - XmlElementNames.FromConnectedAccounts); - } - - if (this.getHasAttachments() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.HasAttachments, - this.getHasAttachments()); - } - - if (this.getImportance()!=null) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Importance, - this.getImportance()); - } - - if (this.getIsApprovalRequest() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsApprovalRequest, - this.getIsApprovalRequest()); - } - - if (this.getIsAutomaticForward() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsAutomaticForward, - this.getIsAutomaticForward()); - } - - if (this.getIsAutomaticReply() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsAutomaticReply, - this.getIsAutomaticReply()); - } - - if (this.getIsEncrypted() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsEncrypted, - this.getIsEncrypted()); - } - - if (this.getIsMeetingRequest() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsMeetingRequest, - this.getIsMeetingRequest()); - } - - if (this.getIsMeetingResponse() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsMeetingResponse, - this.getIsMeetingResponse()); - } - - if (this.getIsNonDeliveryReport() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsNDR, - this.getIsNonDeliveryReport()); - } - - if (this.getIsPermissionControlled() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsPermissionControlled, - this.getIsPermissionControlled()); - } - - if (this.isReadReceipt != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsReadReceipt, - this.getIsReadReceipt()); - } - - if (this.getIsSigned() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsSigned, - this.getIsSigned()); - } - - if (this.getIsVoicemail() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.IsVoicemail, - this.getIsVoicemail()); - } - - if (this.getItemClasses().getSize() > 0) { - this.getItemClasses().writeToXml(writer, - XmlElementNames.ItemClasses); - } - - if (this.getMessageClassifications().getSize() > 0) { - this.getMessageClassifications().writeToXml(writer, - XmlElementNames.MessageClassifications); - } - - if (this.getNotSentToMe() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.NotSentToMe, - this.getNotSentToMe()); - } - - if (this.getSentCcMe() != false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.SentCcMe, - this.getSentCcMe()); - } - - if (this.getSentOnlyToMe()!= false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.SentOnlyToMe, - this.getSentOnlyToMe()); - } - - if (this.getSentToAddresses().getCount() > 0) { - this.getSentToAddresses().writeToXml(writer, - XmlElementNames.SentToAddresses); - } - - if (this.getSentToMe()!= false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.SentToMe, - this.getSentToMe()); - } - - if (this.getSentToOrCcMe()!= false) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.SentToOrCcMe, - this.getSentToOrCcMe()); - } - - if (this.getSensitivity()!=null) { - writer.writeElementValue( - XmlNamespace.Types, - XmlElementNames.Sensitivity, - this.getSensitivity().values()); - } - - if (this.getWithinDateRange().getStart()!=null || this.getWithinDateRange().getEnd()!=null) - { - this.getWithinDateRange().writeToXml(writer, - XmlElementNames.WithinDateRange); - } - - if (this.getWithinSizeRange().getMaximumSize()!=null || this.getWithinSizeRange().getMinimumSize()!=null) - { - this.getWithinSizeRange().writeToXml(writer, - XmlElementNames.WithinSizeRange); - } - } - - /** - * Validates this instance. - */ - @Override - protected void internalValidate() throws Exception { - super.internalValidate(); - EwsUtilities.validateParam(this.fromAddresses, "FromAddresses"); - EwsUtilities.validateParam(this.sentToAddresses, "SentToAddresses"); - EwsUtilities.validateParam(this.withinDateRange, "WithinDateRange"); - EwsUtilities.validateParam(this.withinSizeRange, "WithinSizeRange"); - } -} \ No newline at end of file +public final class RulePredicates extends ComplexProperty { + + /** + * The HasCategories predicate. + */ + private StringList categories; + + /** + * The ContainsBodyStrings predicate. + */ + private StringList containsBodyStrings; + /** + * The ContainsHeaderStrings predicate. + */ + private StringList containsHeaderStrings; + + /** + * The ContainsRecipientStrings predicate. + */ + private StringList containsRecipientStrings; + + /** + * The ContainsSenderStrings predicate. + */ + private StringList containsSenderStrings; + + /** + * The ContainsSubjectOrBodyStrings predicate. + */ + private StringList containsSubjectOrBodyStrings; + + /** + * The ContainsSubjectStrings predicate. + */ + private StringList containsSubjectStrings; + + /** + * The FlaggedForAction predicate. + */ + private FlaggedForAction flaggedForAction; + + /** + * The FromAddresses predicate. + */ + private EmailAddressCollection fromAddresses; + + /** + * The FromConnectedAccounts predicate. + */ + private StringList fromConnectedAccounts; + + /** + * The HasAttachments predicate. + */ + private boolean hasAttachments; + + /** + * The Importance predicate. + */ + private Importance importance; + + /** + * The IsApprovalRequest predicate. + */ + private boolean isApprovalRequest; + + /** + * The IsAutomaticForward predicate. + */ + private boolean isAutomaticForward; + + /** + * The IsAutomaticReply predicate. + */ + private boolean isAutomaticReply; + + /** + * The IsEncrypted predicate. + */ + private boolean isEncrypted; + + /** + * The IsMeetingRequest predicate. + */ + private boolean isMeetingRequest; + + /** + * The IsMeetingResponse predicate. + */ + private boolean isMeetingResponse; + + /** + * The IsNDR predicate. + */ + private boolean isNonDeliveryReport; + + /** + * The IsPermissionControlled predicate. + */ + private boolean isPermissionControlled; + + /** + * The IsSigned predicate. + */ + private boolean isSigned; + + /** + * The IsVoicemail predicate. + */ + private boolean isVoicemail; + + /** + * The IsReadReceipt predicate. + */ + private boolean isReadReceipt; + + /** + * ItemClasses predicate. + */ + private StringList itemClasses; + + /** + * The MessageClassifications predicate. + */ + private StringList messageClassifications; + + /** + * The NotSentToMe predicate. + */ + private boolean notSentToMe; + + /** + * SentCcMe predicate. + */ + private boolean sentCcMe; + + /** + * The SentOnlyToMe predicate. + */ + private boolean sentOnlyToMe; + + /** + * The SentToAddresses predicate. + */ + private EmailAddressCollection sentToAddresses; + + /** + * The SentToMe predicate. + */ + private boolean sentToMe; + + /** + * The SentToOrCcMe predicate. + */ + private boolean sentToOrCcMe; + + /** + * The Sensitivity predicate. + */ + private Sensitivity sensitivity; + + /** + * The Sensitivity predicate. + */ + private RulePredicateDateRange withinDateRange; + + /** + * The Sensitivity predicate. + */ + private RulePredicateSizeRange withinSizeRange; + + /** + * Initializes a new instance of the RulePredicates class. + */ + protected RulePredicates() { + super(); + this.categories = new StringList(); + this.containsBodyStrings = new StringList(); + this.containsHeaderStrings = new StringList(); + this.containsRecipientStrings = new StringList(); + this.containsSenderStrings = new StringList(); + this.containsSubjectOrBodyStrings = new StringList(); + this.containsSubjectStrings = new StringList(); + this.fromAddresses = + new EmailAddressCollection(XmlElementNames.Address); + this.fromConnectedAccounts = new StringList(); + this.itemClasses = new StringList(); + this.messageClassifications = new StringList(); + this.sentToAddresses = + new EmailAddressCollection(XmlElementNames.Address); + this.withinDateRange = new RulePredicateDateRange(); + this.withinSizeRange = new RulePredicateSizeRange(); + } + + /** + * Gets the categories that an incoming message + * should be stamped with for the condition or exception to apply. + * To disable this predicate, empty the list. + */ + public StringList getCategories() { + return this.categories; + } + + /** + * Gets the strings that should appear in the body of + * incoming messages for the condition or exception to apply. + * To disable this predicate, empty the list. + */ + public StringList getContainsBodyStrings() { + return this.containsBodyStrings; + } + + /** + * Gets the strings that should appear in the + * headers of incoming messages for the condition or + * exception to apply. To disable this predicate, empty the list. + */ + public StringList getContainsHeaderStrings() { + return this.containsHeaderStrings; + } + + /** + * Gets the strings that should appear in either the + * To or Cc fields of incoming messages for the condition + * or exception to apply. To disable this predicate, empty the list. + */ + public StringList getContainsRecipientStrings() { + return this.containsRecipientStrings; + } + + /** + * Gets the strings that should appear + * in the From field of incoming messages + * for the condition or exception to apply. + * To disable this predicate, empty the list. + */ + public StringList getContainsSenderStrings() { + return this.containsSenderStrings; + } + + /** + * Gets the strings that should appear in either + * the body or the subject of incoming messages for the + * condition or exception to apply. + * To disable this predicate, empty the list. + */ + public StringList getContainsSubjectOrBodyStrings() { + return this.containsSubjectOrBodyStrings; + } + + /** + * Gets the strings that should appear in the subject + * of incoming messages for the condition or exception + * to apply. To disable this predicate, empty the list. + */ + public StringList getContainsSubjectStrings() { + return this.containsSubjectStrings; + } + + /** + * Gets or sets the flag for action value that should + * appear on incoming messages for the condition or execption to apply. + * To disable this predicate, set it to null. + */ + public FlaggedForAction getFlaggedForAction() { + + return this.flaggedForAction; + } + + public void setFlaggedForAction(FlaggedForAction value) { + if (this.canSetFieldValue(this.flaggedForAction, value)) { + this.flaggedForAction = value; + this.changed(); + } + } + + /** + * Gets the e-mail addresses of the senders of incoming + * messages for the condition or exception to apply. + * To disable this predicate, empty the list. + */ + public EmailAddressCollection getFromAddresses() { + return this.fromAddresses; + } + + /** + * Gets or sets a value indicating whether incoming messages must have + * attachments for the condition or exception to apply. + */ + public boolean getHasAttachments() { + return this.hasAttachments; + } + + public void setHasAttachments(boolean value) { + if (this.canSetFieldValue(this.hasAttachments, value)) { + this.hasAttachments = value; + this.changed(); + } + } + + /** + * Gets or sets the importance that should be stamped on incoming messages + * for the condition or exception to apply. + * To disable this predicate, set it to null. + */ + public Importance getImportance() { + return this.importance; + } + + public void setImportance(Importance value) { + if (this.canSetFieldValue(this.importance, value)) { + this.importance = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * approval requests for the condition or exception to apply. + */ + public boolean getIsApprovalRequest() { + return this.isApprovalRequest; + } + + public void setIsApprovalRequest(boolean value) { + if (this.canSetFieldValue(this.isApprovalRequest, value)) { + + this.isApprovalRequest = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * automatic forwards for the condition or exception to apply. + */ + public boolean getIsAutomaticForward() { + return this.isAutomaticForward; + } + + public void setIsAutomaticForward(boolean value) { + if (this.canSetFieldValue(this.isAutomaticForward, value)) { + this.isAutomaticForward = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * automatic replies for the condition or exception to apply. + */ + public boolean getIsAutomaticReply() { + return this.isAutomaticReply; + } + + public void setIsAutomaticReply(boolean value) { + if (this.canSetFieldValue(this.isAutomaticReply, value)) { + this.isAutomaticReply = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether incoming messages must be + * S/MIME encrypted for the condition or exception to apply. + */ + public boolean getIsEncrypted() { + return this.isEncrypted; + } + + public void setIsEncrypted(boolean value) { + if (this.canSetFieldValue(this.isEncrypted, value)) { + this.isEncrypted = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * meeting requests for the condition or exception to apply. + */ + public boolean getIsMeetingRequest() { + return this.isMeetingRequest; + } + + public void setIsMeetingRequest(boolean value) { + if (this.canSetFieldValue(this.isEncrypted, value)) { + + this.isEncrypted = value; + this.changed(); + } + + } + + + /** + * Gets or sets a value indicating whether incoming messages must be + * meeting responses for the condition or exception to apply. + */ + public boolean getIsMeetingResponse() { + + return this.isMeetingResponse; + } + + public void setIsMeetingResponse(boolean value) { + if (this.canSetFieldValue(this.isMeetingResponse, value)) { + this.isMeetingResponse = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * non-delivery reports (NDR) for the condition or exception to apply. + */ + public boolean getIsNonDeliveryReport() { + return this.isNonDeliveryReport; + } + + public void setIsNonDeliveryReport(boolean value) { + if (this.canSetFieldValue(this.isNonDeliveryReport, value)) { + this.isNonDeliveryReport = value; + this.changed(); + } + } + + /** + * Gets or sets a value indicating whether incoming messages must be + * permission controlled (RMS protected) for the condition or exception + * to apply. + */ + public boolean getIsPermissionControlled() { + return this.isPermissionControlled; + } + + public void setIsPermissionControlled(boolean value) { + if (this.canSetFieldValue(this.isPermissionControlled, value)) { + this.isPermissionControlled = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether incoming messages must be + * S/MIME signed for the condition or exception to apply. + */ + public boolean getIsSigned() { + return this.isSigned; + } + + public void setIsSigned(boolean value) { + if (this.canSetFieldValue(this.isSigned, value)) { + this.isSigned = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether incoming messages must be + * voice mails for the condition or exception to apply. + */ + public boolean getIsVoicemail() { + return this.isVoicemail; + } + + public void setIsVoicemail(boolean value) { + if (this.canSetFieldValue(this.isVoicemail, value)) { + this.isVoicemail = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether incoming messages must be + * read receipts for the condition or exception to apply. + */ + public boolean getIsReadReceipt() { + return this.isReadReceipt; + } + + public void setIsReadReceipt(boolean value) { + if (this.canSetFieldValue(this.isReadReceipt, value)) { + this.isReadReceipt = value; + this.changed(); + } + } + + /** + * Gets the e-mail account names from which incoming messages must have + * been aggregated for the condition or exception to apply. To disable + * this predicate, empty the list. + */ + public StringList getFromConnectedAccounts() { + return this.fromConnectedAccounts; + } + + /** + * Gets the item classes that must be stamped on incoming messages for + * the condition or exception to apply. To disable this predicate, + * empty the list. + */ + public StringList getItemClasses() { + return this.itemClasses; + } + + /** + * Gets the message classifications that + * must be stamped on incoming messages + * for the condition or exception to apply. To disable this predicate, + * empty the list. + */ + public StringList getMessageClassifications() { + + return this.messageClassifications; + + } + + /** + * Gets or sets a value indicating whether the owner of the mailbox must + * NOT be a To recipient of the incoming messages for the condition or + * exception to apply. + */ + + public boolean getNotSentToMe() { + return this.notSentToMe; + } + + public void setNotSentToMe(boolean value) { + if (this.canSetFieldValue(this.notSentToMe, value)) { + this.notSentToMe = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether the owner of the mailbox must be + * a Cc recipient of incoming messages + * for the condition or exception to apply. + */ + public boolean getSentCcMe() { + return this.sentCcMe; + } + + public void setSentCcMe(boolean value) { + if (this.canSetFieldValue(this.sentCcMe, value)) { + this.sentCcMe = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether the owner of the mailbox must be + * the only To recipient of incoming + * messages for the condition or exception + * to apply. + */ + public boolean getSentOnlyToMe() { + return this.sentOnlyToMe; + } + + public void setSentOnlyToMe(boolean value) { + if (this.canSetFieldValue(this.sentOnlyToMe, value)) { + this.sentOnlyToMe = value; + this.changed(); + } + } + + + /** + * Gets the e-mail addresses incoming messages must have been sent to for + * the condition or exception to apply. To disable this predicate, empty + * the list. + */ + public EmailAddressCollection getSentToAddresses() { + return this.sentToAddresses; + + } + + /** + * Gets or sets a value indicating whether the owner of the mailbox must be + * a To recipient of incoming messages + * for the condition or exception to apply. + */ + public boolean getSentToMe() { + return this.sentToMe; + } + + public void setSentToMe(boolean value) { + if (this.canSetFieldValue(this.sentToMe, value)) { + this.sentToMe = value; + this.changed(); + } + } + + + /** + * Gets or sets a value indicating whether the owner of the mailbox must be + * either a To or Cc recipient of incoming messages for the condition or + * exception to apply. + */ + public boolean getSentToOrCcMe() { + return this.sentToOrCcMe; + } + + public void setSentToOrCcMe(boolean value) { + if (this.canSetFieldValue(this.sentToOrCcMe, value)) { + this.sentToOrCcMe = value; + this.changed(); + } + } + + + /** + * Gets or sets the sensitivity that must be stamped on incoming messages + * for the condition or exception to apply. + * To disable this predicate, set it + * to null. + */ + public Sensitivity getSensitivity() { + return this.sensitivity; + } + + public void setSensitivity(Sensitivity value) { + if (this.canSetFieldValue(this.sensitivity, value)) { + this.sensitivity = value; + this.changed(); + } + } + + /** + * Gets the date range within which + * incoming messages must have been received + * for the condition or exception to apply. + * To disable this predicate, set both + * its Start and End properties to null. + */ + public RulePredicateDateRange getWithinDateRange() { + return this.withinDateRange; + + } + + /** + * Gets the minimum and maximum sizes incoming messages must have for the + * condition or exception to apply. To disable this predicate, set both its + * MinimumSize and MaximumSize properties to null. + */ + public RulePredicateSizeRange getWithinSizeRange() { + return this.withinSizeRange; + + } + + /** + * Tries to read element from XML. + * + * @param reader The reader + * @return True if element was read. + * @throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader + reader) throws Exception { + + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Categories)) { + this.categories.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsBodyStrings)) { + this.containsBodyStrings.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsHeaderStrings)) { + this.containsHeaderStrings.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsRecipientStrings)) { + this.containsRecipientStrings.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSenderStrings)) { + this.containsSenderStrings.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSubjectOrBodyStrings)) { + this.containsSubjectOrBodyStrings.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ContainsSubjectStrings)) { + this.containsSubjectStrings.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.FlaggedForAction)) { + this.flaggedForAction = reader. + readElementValue(FlaggedForAction.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.FromAddresses)) { + this.fromAddresses.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.FromConnectedAccounts)) { + this.fromConnectedAccounts.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.HasAttachments)) { + this.hasAttachments = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Importance)) { + this.importance = reader.readElementValue(Importance.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsApprovalRequest)) { + this.isApprovalRequest = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsAutomaticForward)) { + this.isAutomaticForward = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsAutomaticReply)) { + this.isAutomaticReply = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsEncrypted)) { + this.isEncrypted = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsMeetingRequest)) { + this.isMeetingRequest = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsMeetingResponse)) { + this.isMeetingResponse = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsNDR)) { + this.isNonDeliveryReport = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsPermissionControlled)) { + this.isPermissionControlled = reader. + readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsSigned)) { + this.isSigned = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsVoicemail)) { + this.isVoicemail = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.IsReadReceipt)) { + this.isReadReceipt = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.ItemClasses)) { + this.itemClasses.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.MessageClassifications)) { + this.messageClassifications.loadFromXml(reader, + reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.NotSentToMe)) { + this.notSentToMe = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentCcMe)) { + this.sentCcMe = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentOnlyToMe)) { + this.sentOnlyToMe = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToAddresses)) { + this.sentToAddresses.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToMe)) { + this.sentToMe = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.SentToOrCcMe)) { + this.sentToOrCcMe = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Sensitivity)) { + this.sensitivity = reader.readElementValue(Sensitivity.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.WithinDateRange)) { + this.withinDateRange.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.WithinSizeRange)) { + this.withinSizeRange.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer The writer. + * @throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.getCategories().getSize() > 0) { + this.getCategories().writeToXml(writer, XmlElementNames.Categories); + } + + if (this.getContainsBodyStrings().getSize() > 0) { + this.getContainsBodyStrings().writeToXml(writer, + XmlElementNames.ContainsBodyStrings); + } + + if (this.getContainsHeaderStrings().getSize() > 0) { + this.getContainsHeaderStrings().writeToXml(writer, + XmlElementNames.ContainsHeaderStrings); + } + + if (this.getContainsRecipientStrings().getSize() > 0) { + this.getContainsRecipientStrings().writeToXml(writer, + XmlElementNames.ContainsRecipientStrings); + } + + if (this.getContainsSenderStrings().getSize() > 0) { + this.getContainsSenderStrings().writeToXml(writer, + XmlElementNames.ContainsSenderStrings); + } + + if (this.getContainsSubjectOrBodyStrings().getSize() > 0) { + this.getContainsSubjectOrBodyStrings().writeToXml(writer, + XmlElementNames.ContainsSubjectOrBodyStrings); + } + + if (this.getContainsSubjectStrings().getSize() > 0) { + this.getContainsSubjectStrings().writeToXml(writer, + XmlElementNames.ContainsSubjectStrings); + } + + if (this.getFlaggedForAction() != null) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.FlaggedForAction, + this.getFlaggedForAction().values()); + } + + if (this.getFromAddresses().getCount() > 0) { + this.getFromAddresses().writeToXml(writer, + XmlElementNames.FromAddresses); + } + + if (this.getFromConnectedAccounts().getSize() > 0) { + this.getFromConnectedAccounts().writeToXml(writer, + XmlElementNames.FromConnectedAccounts); + } + + if (this.getHasAttachments() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.HasAttachments, + this.getHasAttachments()); + } + + if (this.getImportance() != null) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Importance, + this.getImportance()); + } + + if (this.getIsApprovalRequest() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsApprovalRequest, + this.getIsApprovalRequest()); + } + + if (this.getIsAutomaticForward() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsAutomaticForward, + this.getIsAutomaticForward()); + } + + if (this.getIsAutomaticReply() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsAutomaticReply, + this.getIsAutomaticReply()); + } + + if (this.getIsEncrypted() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsEncrypted, + this.getIsEncrypted()); + } + + if (this.getIsMeetingRequest() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsMeetingRequest, + this.getIsMeetingRequest()); + } + + if (this.getIsMeetingResponse() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsMeetingResponse, + this.getIsMeetingResponse()); + } + + if (this.getIsNonDeliveryReport() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsNDR, + this.getIsNonDeliveryReport()); + } + + if (this.getIsPermissionControlled() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsPermissionControlled, + this.getIsPermissionControlled()); + } + + if (this.isReadReceipt != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsReadReceipt, + this.getIsReadReceipt()); + } + + if (this.getIsSigned() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsSigned, + this.getIsSigned()); + } + + if (this.getIsVoicemail() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.IsVoicemail, + this.getIsVoicemail()); + } + + if (this.getItemClasses().getSize() > 0) { + this.getItemClasses().writeToXml(writer, + XmlElementNames.ItemClasses); + } + + if (this.getMessageClassifications().getSize() > 0) { + this.getMessageClassifications().writeToXml(writer, + XmlElementNames.MessageClassifications); + } + + if (this.getNotSentToMe() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.NotSentToMe, + this.getNotSentToMe()); + } + + if (this.getSentCcMe() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.SentCcMe, + this.getSentCcMe()); + } + + if (this.getSentOnlyToMe() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.SentOnlyToMe, + this.getSentOnlyToMe()); + } + + if (this.getSentToAddresses().getCount() > 0) { + this.getSentToAddresses().writeToXml(writer, + XmlElementNames.SentToAddresses); + } + + if (this.getSentToMe() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.SentToMe, + this.getSentToMe()); + } + + if (this.getSentToOrCcMe() != false) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.SentToOrCcMe, + this.getSentToOrCcMe()); + } + + if (this.getSensitivity() != null) { + writer.writeElementValue( + XmlNamespace.Types, + XmlElementNames.Sensitivity, + this.getSensitivity().values()); + } + + if (this.getWithinDateRange().getStart() != null || this.getWithinDateRange().getEnd() != null) { + this.getWithinDateRange().writeToXml(writer, + XmlElementNames.WithinDateRange); + } + + if (this.getWithinSizeRange().getMaximumSize() != null + || this.getWithinSizeRange().getMinimumSize() != null) { + this.getWithinSizeRange().writeToXml(writer, + XmlElementNames.WithinSizeRange); + } + } + + /** + * Validates this instance. + */ + @Override + protected void internalValidate() throws Exception { + super.internalValidate(); + EwsUtilities.validateParam(this.fromAddresses, "FromAddresses"); + EwsUtilities.validateParam(this.sentToAddresses, "SentToAddresses"); + EwsUtilities.validateParam(this.withinDateRange, "WithinDateRange"); + EwsUtilities.validateParam(this.withinSizeRange, "WithinSizeRange"); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java index 3b0047463..e22f60075 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java @@ -10,554 +10,553 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; - public enum RuleProperty - { - /** - * The RuleId property of a rule. - */ - @EwsEnum(schemaName = "RuleId") - RuleId, - - - /** - * The DisplayName property of a rule. - */ - @EwsEnum(schemaName = "DisplayName") - DisplayName, - - /** - * The Priority property of a rule. - */ - @EwsEnum(schemaName = "Priority") - Priority, - - /** - * The IsNotSupported property of a rule. - */ - @EwsEnum(schemaName = "IsNotSupported") - IsNotSupported, - - /** - * The Actions property of a rule. - */ - @EwsEnum(schemaName = "Actions") - Actions, - - /** - * The Categories property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:Categories") - ConditionCategories, - - /** - * The ContainsBodyStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsBodyStrings") - ConditionContainsBodyStrings, - - /** - * The ContainsHeaderStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsHeaderStrings") - ConditionContainsHeaderStrings, - - /** - * The ContainsRecipientStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsRecipientStrings") - ConditionContainsRecipientStrings, - - /** - * The ContainsSenderStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsSenderStrings") - ConditionContainsSenderStrings, - - /** - * The ContainsSubjectOrBodyStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsSubjectOrBodyStrings") - ConditionContainsSubjectOrBodyStrings, - - /** - * The ContainsSubjectStrings property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ContainsSubjectStrings") - ConditionContainsSubjectStrings, - - /** - * The FlaggedForAction property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:FlaggedForAction") - ConditionFlaggedForAction, - - /** - * The FromAddresses property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:FromAddresses") - ConditionFromAddresses, - - /** - * The FromConnectedAccounts property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:FromConnectedAccounts") - ConditionFromConnectedAccounts, - - /** - * The HasAttachments property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:HasAttachments") - ConditionHasAttachments, - - /** - * The Importance property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:Importance") - ConditionImportance, - - /** - * The IsApprovalRequest property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsApprovalRequest") - ConditionIsApprovalRequest, - - - /** - * The IsAutomaticForward property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsAutomaticForward") - ConditionIsAutomaticForward, - - /** - * The IsAutomaticForward property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsAutomaticReply") - ConditionIsAutomaticReply, - - /** - * The IsEncrypted property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsEncrypted") - ConditionIsEncrypted, - - /** - * The IsMeetingRequest property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsMeetingRequest") - ConditionIsMeetingRequest, - - /** - * The IsMeetingResponse property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsMeetingResponse") - ConditionIsMeetingResponse, - - /** - * The IsNonDeliveryReport property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsNDR") - ConditionIsNonDeliveryReport, - - /** - * The IsPermissionControlled property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsPermissionControlled") - ConditionIsPermissionControlled, - - /** - * The IsRead property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsRead") - ConditionIsRead, - - /** - * The IsSigned property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsSigned") - ConditionIsSigned, - - /** - * The IsVoicemail property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsVoicemail") - ConditionIsVoicemail, - - /** - * The IsReadReceipt property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:IsReadReceipt") - ConditionIsReadReceipt, - - /** - * The ItemClasses property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:ItemClasses") - ConditionItemClasses, - - /** - * The MessageClassifications property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:MessageClassifications") - ConditionMessageClassifications, - - /** - * The NotSentToMe property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:NotSentToMe") - ConditionNotSentToMe, - - /** - * The SentCcMe property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:SentCcMe") - ConditionSentCcMe, - - /** - * The SentOnlyToMe property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:SentOnlyToMe") - ConditionSentOnlyToMe, - - /** - * The SentToAddresses property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:SentToAddresses") - ConditionSentToAddresses, - - /** - * The SentToMe property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:SentToMe") - ConditionSentToMe, - - /** - * The SentToOrCcMe property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:SentToOrCcMe") - ConditionSentToOrCcMe, - - /** - * The Sensitivity property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:Sensitivity") - ConditionSensitivity, - - /** - * The WithinDateRange property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:WithinDateRange") - ConditionWithinDateRange, - - /** - * The WithinSizeRange property of a rule's set of conditions. - */ - @EwsEnum(schemaName = "Condition:WithinSizeRange") - ConditionWithinSizeRange, - - /** - * The Categories property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:Categories") - ExceptionCategories, - - /** - * The ContainsBodyStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsBodyStrings") - ExceptionContainsBodyStrings, - - /** - * The ContainsHeaderStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsHeaderStrings") - ExceptionContainsHeaderStrings, - - /** - * The ContainsRecipientStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsRecipientStrings") - ExceptionContainsRecipientStrings, - - /** - * The ContainsSenderStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsSenderStrings") - ExceptionContainsSenderStrings, - - /** - * The ContainsSubjectOrBodyStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsSubjectOrBodyStrings") - ExceptionContainsSubjectOrBodyStrings, - - /** - * The ContainsSubjectStrings property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ContainsSubjectStrings") - ExceptionContainsSubjectStrings, - - /** - * The FlaggedForAction property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:FlaggedForAction") - ExceptionFlaggedForAction, - - /** - * The FromAddresses property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:FromAddresses") - ExceptionFromAddresses, - - /** - * The FromConnectedAccounts property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:FromConnectedAccounts") - ExceptionFromConnectedAccounts, - - /** - * The HasAttachments property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:HasAttachments") - ExceptionHasAttachments, - - /** - * The Importance property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:Importance") - ExceptionImportance, - - /** - * The IsApprovalRequest property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsApprovalRequest") - ExceptionIsApprovalRequest, - - /** - * The IsAutomaticForward property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsAutomaticForward") - ExceptionIsAutomaticForward, - - /** - * The IsAutomaticReply property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsAutomaticReply") - ExceptionIsAutomaticReply, - - /** - * The IsEncrypted property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsEncrypted") - ExceptionIsEncrypted, - - /** - * The IsMeetingRequest property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsMeetingRequest") - ExceptionIsMeetingRequest, - - /** - * The IsMeetingResponse property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsMeetingResponse") - ExceptionIsMeetingResponse, - - /** - * The IsNonDeliveryReport property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsNDR") - ExceptionIsNonDeliveryReport, - - /** - * The IsPermissionControlled property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsPermissionControlled") - ExceptionIsPermissionControlled, - - /** - * The IsRead property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsRead") - ExceptionIsRead, - - /** - * The IsSigned property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsSigned") - ExceptionIsSigned, - - /** - * The IsVoicemail property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:IsVoicemail") - ExceptionIsVoicemail, - - /** - * The ItemClasses property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:ItemClasses") - ExceptionItemClasses, - - /** - * The MessageClassifications property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:MessageClassifications") - ExceptionMessageClassifications, - - /** - * The NotSentToMe property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:NotSentToMe") - ExceptionNotSentToMe, - - /** - * The SentCcMe property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:SentCcMe") - ExceptionSentCcMe, - - /** - * The SentOnlyToMe property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:SentOnlyToMe") - ExceptionSentOnlyToMe, - - /** - * The SentToAddresses property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:SentToAddresses") - ExceptionSentToAddresses, - - /** - * The SentToMe property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:SentToMe") - ExceptionSentToMe, - - /** - * The SentToOrCcMe property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:SentToOrCcMe") - ExceptionSentToOrCcMe, - - /** - * The Sensitivity property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:Sensitivity") - ExceptionSensitivity, - - /** - * The WithinDateRange property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:WithinDateRange") - ExceptionWithinDateRange, - - /** - * The WithinSizeRange property of a rule's set of exceptions. - */ - @EwsEnum(schemaName = "Exception:WithinSizeRange") - ExceptionWithinSizeRange, - - /** - * The Categories property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:Categories") - ActionCategories, - - /** - * The CopyToFolder property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:CopyToFolder") - ActionCopyToFolder, - - /** - * The Delete property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:Delete") - ActionDelete, - - /** - * The ForwardAsAttachmentToRecipients property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:ForwardAsAttachmentToRecipients") - ActionForwardAsAttachmentToRecipients, - - /** - * The ForwardToRecipients property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:ForwardToRecipients") - ActionForwardToRecipients, - - /** - * The Importance property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:Importance") - ActionImportance, - - /** - * The MarkAsRead property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:MarkAsRead") - ActionMarkAsRead, - - /** - * The MoveToFolder property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:MoveToFolder") - ActionMoveToFolder, - - /** - * The PermanentDelete property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:PermanentDelete") - ActionPermanentDelete, - - /** - * The RedirectToRecipients property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:RedirectToRecipients") - ActionRedirectToRecipients, - - /** - * The SendSMSAlertToRecipients property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:SendSMSAlertToRecipients") - ActionSendSMSAlertToRecipients, - - /** - * The ServerReplyWithMessage property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:ServerReplyWithMessage") - ActionServerReplyWithMessage, - - /** - * The StopProcessingRules property in a rule's set of actions. - */ - @EwsEnum(schemaName = "Action:StopProcessingRules") - ActionStopProcessingRules, - - /** - * The IsEnabled property of a rule, indicating if the rule is enabled. - */ - @EwsEnum(schemaName = "IsEnabled") - IsEnabled, - - /** - * The IsInError property of a rule, indicating if the rule is in error. - */ - @EwsEnum(schemaName = "IsInError") - IsInError, - - /** - * The Conditions property of a rule, contains all conditions of the rule. - */ - @EwsEnum(schemaName = "Conditions") - Conditions, - - /** - * The Exceptions property of a rule, contains all exceptions of the rule. - */ - @EwsEnum(schemaName = "Exceptions") - Exceptions - +public enum RuleProperty { + /** + * The RuleId property of a rule. + */ + @EwsEnum(schemaName = "RuleId") + RuleId, + + + /** + * The DisplayName property of a rule. + */ + @EwsEnum(schemaName = "DisplayName") + DisplayName, + + /** + * The Priority property of a rule. + */ + @EwsEnum(schemaName = "Priority") + Priority, + + /** + * The IsNotSupported property of a rule. + */ + @EwsEnum(schemaName = "IsNotSupported") + IsNotSupported, + + /** + * The Actions property of a rule. + */ + @EwsEnum(schemaName = "Actions") + Actions, + + /** + * The Categories property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:Categories") + ConditionCategories, + + /** + * The ContainsBodyStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsBodyStrings") + ConditionContainsBodyStrings, + + /** + * The ContainsHeaderStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsHeaderStrings") + ConditionContainsHeaderStrings, + + /** + * The ContainsRecipientStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsRecipientStrings") + ConditionContainsRecipientStrings, + + /** + * The ContainsSenderStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsSenderStrings") + ConditionContainsSenderStrings, + + /** + * The ContainsSubjectOrBodyStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsSubjectOrBodyStrings") + ConditionContainsSubjectOrBodyStrings, + + /** + * The ContainsSubjectStrings property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ContainsSubjectStrings") + ConditionContainsSubjectStrings, + + /** + * The FlaggedForAction property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:FlaggedForAction") + ConditionFlaggedForAction, + + /** + * The FromAddresses property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:FromAddresses") + ConditionFromAddresses, + + /** + * The FromConnectedAccounts property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:FromConnectedAccounts") + ConditionFromConnectedAccounts, + + /** + * The HasAttachments property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:HasAttachments") + ConditionHasAttachments, + + /** + * The Importance property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:Importance") + ConditionImportance, + + /** + * The IsApprovalRequest property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsApprovalRequest") + ConditionIsApprovalRequest, + + + /** + * The IsAutomaticForward property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsAutomaticForward") + ConditionIsAutomaticForward, + + /** + * The IsAutomaticForward property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsAutomaticReply") + ConditionIsAutomaticReply, + + /** + * The IsEncrypted property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsEncrypted") + ConditionIsEncrypted, + + /** + * The IsMeetingRequest property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsMeetingRequest") + ConditionIsMeetingRequest, + + /** + * The IsMeetingResponse property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsMeetingResponse") + ConditionIsMeetingResponse, + + /** + * The IsNonDeliveryReport property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsNDR") + ConditionIsNonDeliveryReport, + + /** + * The IsPermissionControlled property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsPermissionControlled") + ConditionIsPermissionControlled, + + /** + * The IsRead property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsRead") + ConditionIsRead, + + /** + * The IsSigned property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsSigned") + ConditionIsSigned, + + /** + * The IsVoicemail property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsVoicemail") + ConditionIsVoicemail, + + /** + * The IsReadReceipt property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:IsReadReceipt") + ConditionIsReadReceipt, + + /** + * The ItemClasses property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:ItemClasses") + ConditionItemClasses, + + /** + * The MessageClassifications property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:MessageClassifications") + ConditionMessageClassifications, + + /** + * The NotSentToMe property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:NotSentToMe") + ConditionNotSentToMe, + + /** + * The SentCcMe property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:SentCcMe") + ConditionSentCcMe, + + /** + * The SentOnlyToMe property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:SentOnlyToMe") + ConditionSentOnlyToMe, + + /** + * The SentToAddresses property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:SentToAddresses") + ConditionSentToAddresses, + + /** + * The SentToMe property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:SentToMe") + ConditionSentToMe, + + /** + * The SentToOrCcMe property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:SentToOrCcMe") + ConditionSentToOrCcMe, + + /** + * The Sensitivity property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:Sensitivity") + ConditionSensitivity, + + /** + * The WithinDateRange property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:WithinDateRange") + ConditionWithinDateRange, + + /** + * The WithinSizeRange property of a rule's set of conditions. + */ + @EwsEnum(schemaName = "Condition:WithinSizeRange") + ConditionWithinSizeRange, + + /** + * The Categories property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:Categories") + ExceptionCategories, + + /** + * The ContainsBodyStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsBodyStrings") + ExceptionContainsBodyStrings, + + /** + * The ContainsHeaderStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsHeaderStrings") + ExceptionContainsHeaderStrings, + + /** + * The ContainsRecipientStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsRecipientStrings") + ExceptionContainsRecipientStrings, + + /** + * The ContainsSenderStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsSenderStrings") + ExceptionContainsSenderStrings, + + /** + * The ContainsSubjectOrBodyStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsSubjectOrBodyStrings") + ExceptionContainsSubjectOrBodyStrings, + + /** + * The ContainsSubjectStrings property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ContainsSubjectStrings") + ExceptionContainsSubjectStrings, + + /** + * The FlaggedForAction property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:FlaggedForAction") + ExceptionFlaggedForAction, + + /** + * The FromAddresses property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:FromAddresses") + ExceptionFromAddresses, + + /** + * The FromConnectedAccounts property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:FromConnectedAccounts") + ExceptionFromConnectedAccounts, + + /** + * The HasAttachments property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:HasAttachments") + ExceptionHasAttachments, + + /** + * The Importance property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:Importance") + ExceptionImportance, + + /** + * The IsApprovalRequest property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsApprovalRequest") + ExceptionIsApprovalRequest, + + /** + * The IsAutomaticForward property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsAutomaticForward") + ExceptionIsAutomaticForward, + + /** + * The IsAutomaticReply property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsAutomaticReply") + ExceptionIsAutomaticReply, + + /** + * The IsEncrypted property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsEncrypted") + ExceptionIsEncrypted, + + /** + * The IsMeetingRequest property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsMeetingRequest") + ExceptionIsMeetingRequest, + + /** + * The IsMeetingResponse property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsMeetingResponse") + ExceptionIsMeetingResponse, + + /** + * The IsNonDeliveryReport property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsNDR") + ExceptionIsNonDeliveryReport, + + /** + * The IsPermissionControlled property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsPermissionControlled") + ExceptionIsPermissionControlled, + + /** + * The IsRead property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsRead") + ExceptionIsRead, + + /** + * The IsSigned property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsSigned") + ExceptionIsSigned, + + /** + * The IsVoicemail property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:IsVoicemail") + ExceptionIsVoicemail, + + /** + * The ItemClasses property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:ItemClasses") + ExceptionItemClasses, + + /** + * The MessageClassifications property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:MessageClassifications") + ExceptionMessageClassifications, + + /** + * The NotSentToMe property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:NotSentToMe") + ExceptionNotSentToMe, + + /** + * The SentCcMe property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:SentCcMe") + ExceptionSentCcMe, + + /** + * The SentOnlyToMe property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:SentOnlyToMe") + ExceptionSentOnlyToMe, + + /** + * The SentToAddresses property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:SentToAddresses") + ExceptionSentToAddresses, + + /** + * The SentToMe property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:SentToMe") + ExceptionSentToMe, + + /** + * The SentToOrCcMe property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:SentToOrCcMe") + ExceptionSentToOrCcMe, + + /** + * The Sensitivity property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:Sensitivity") + ExceptionSensitivity, + + /** + * The WithinDateRange property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:WithinDateRange") + ExceptionWithinDateRange, + + /** + * The WithinSizeRange property of a rule's set of exceptions. + */ + @EwsEnum(schemaName = "Exception:WithinSizeRange") + ExceptionWithinSizeRange, + + /** + * The Categories property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:Categories") + ActionCategories, + + /** + * The CopyToFolder property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:CopyToFolder") + ActionCopyToFolder, + + /** + * The Delete property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:Delete") + ActionDelete, + + /** + * The ForwardAsAttachmentToRecipients property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:ForwardAsAttachmentToRecipients") + ActionForwardAsAttachmentToRecipients, + + /** + * The ForwardToRecipients property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:ForwardToRecipients") + ActionForwardToRecipients, + + /** + * The Importance property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:Importance") + ActionImportance, + + /** + * The MarkAsRead property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:MarkAsRead") + ActionMarkAsRead, + + /** + * The MoveToFolder property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:MoveToFolder") + ActionMoveToFolder, + + /** + * The PermanentDelete property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:PermanentDelete") + ActionPermanentDelete, + + /** + * The RedirectToRecipients property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:RedirectToRecipients") + ActionRedirectToRecipients, + + /** + * The SendSMSAlertToRecipients property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:SendSMSAlertToRecipients") + ActionSendSMSAlertToRecipients, + + /** + * The ServerReplyWithMessage property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:ServerReplyWithMessage") + ActionServerReplyWithMessage, + + /** + * The StopProcessingRules property in a rule's set of actions. + */ + @EwsEnum(schemaName = "Action:StopProcessingRules") + ActionStopProcessingRules, + + /** + * The IsEnabled property of a rule, indicating if the rule is enabled. + */ + @EwsEnum(schemaName = "IsEnabled") + IsEnabled, + + /** + * The IsInError property of a rule, indicating if the rule is in error. + */ + @EwsEnum(schemaName = "IsInError") + IsInError, + + /** + * The Conditions property of a rule, contains all conditions of the rule. + */ + @EwsEnum(schemaName = "Conditions") + Conditions, + + /** + * The Exceptions property of a rule, contains all exceptions of the rule. + */ + @EwsEnum(schemaName = "Exceptions") + Exceptions + } diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java index 79dd35089..ea2f9f58b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java @@ -10,19 +10,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import java.io.StringReader; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.stream.XMLEventReader; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; - import org.w3c.dom.DOMImplementation; import org.w3c.dom.Document; import org.xml.sax.EntityResolver; @@ -30,191 +17,189 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.xml.sax.InputSource; import org.xml.sax.SAXException; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.stream.XMLEventReader; +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamReader; +import java.io.*; + /** * XmlDocument that does not allow DTD parsing. */ public class SafeXmlDocument extends DocumentBuilder { - /** - * Initializes a new instance of the SafeXmlDocument class. - */ - public XMLInputFactory inputFactory; - - public SafeXmlDocument() { - super(); - inputFactory = XMLInputFactory.newInstance(); - } - - /** - * Initializes a new instance of the SafeXmlDocument class with the - * specified XSImplementation. - * - * @param imp - * The XmlImplementation to use. - * @throws NotSupportedException - */ - // Not supported do to no use within exchange dev code. - public SafeXmlDocument(DocumentBuilder imp) throws NotSupportedException { - throw new NotSupportedException("Not supported"); - } - - /** - * Initializes a new instance of the SafeXmlDocument class with the - * specified XmlNameTable. - * - * @param nt - * The XmlNameTable to use. - */ - public SafeXmlDocument(XmlNameTable nt) { - super(); - if (inputFactory == null) { - inputFactory = XMLInputFactory.newInstance(); - } - } - - /** - * Loads the XML document from the specified stream. - * - * @param inStream - * The stream containing the XML document to load. - * @throws javax.xml.stream.XMLStreamException - */ - public void load(InputStream inStream) throws XMLStreamException { - // not in a using block because - // the stream doesn't belong to us - if (inputFactory != null) { - XMLEventReader reader = inputFactory - .createXMLEventReader(inStream); - - this.load((InputStream) reader); - } - } - - /** - * Loads the XML document from the specified URL. - * - * @param filename - * URL for the file containing the XML document to load. The URL - * can be either a local file or an HTTP URL (a Web address). - */ - public void load(String filename) { - if (inputFactory != null) { - FileInputStream inp; - - XMLEventReader reader; - try { - inp = new FileInputStream(filename); - reader = inputFactory.createXMLEventReader(inp); - this.load((InputStream) reader); - } catch (XMLStreamException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - } - - /** - * Loads the XML document from the specified TextReader. - * - * @param txtReader - * The TextReader used to feed the XML data into the document. - */ - public void load(Reader txtReader) { - if (inputFactory != null) { - - XMLEventReader reader; - try { - reader = inputFactory - .createXMLEventReader(txtReader); - - this.load((InputStream) reader); - } catch (XMLStreamException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - } - - /** - * Loads the XML document from the specified XMLReader. - * - * @param reader - * The XMLReader used to feed the XML data into the document. - * @throws java.io.IOException - * @throws org.xml.sax.SAXException - */ - public void load(XMLStreamReader reader) throws SAXException, IOException { - - super.parse((InputStream)reader); - } - - /** - * Loads the XML document from the specified string. - * - * @param xml - * String containing the XML document to load. - */ - public void loadXml(String xml) - { - if(inputFactory!=null) - { - try { - XMLEventReader reader = inputFactory - .createXMLEventReader(new StringReader(xml)); - - this.load((InputStream) reader); - } catch (XMLStreamException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - } - - @Override - public DOMImplementation getDOMImplementation() { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isNamespaceAware() { - // TODO Auto-generated method stub - return false; - } - - @Override - public boolean isValidating() { - // TODO Auto-generated method stub - return false; - } - - @Override - public Document newDocument() { - // TODO Auto-generated method stub - return null; - } - - @Override - public Document parse(InputSource is) throws SAXException, IOException { - // TODO Auto-generated method stub - return null; - } - - @Override - public void setEntityResolver(EntityResolver er) { - // TODO Auto-generated method stub - - } - - @Override - public void setErrorHandler(ErrorHandler eh) { - // TODO Auto-generated method stub - - } + /** + * Initializes a new instance of the SafeXmlDocument class. + */ + public XMLInputFactory inputFactory; + + public SafeXmlDocument() { + super(); + inputFactory = XMLInputFactory.newInstance(); + } + + /** + * Initializes a new instance of the SafeXmlDocument class with the + * specified XSImplementation. + * + * @param imp The XmlImplementation to use. + * @throws NotSupportedException + */ + // Not supported do to no use within exchange dev code. + public SafeXmlDocument(DocumentBuilder imp) throws NotSupportedException { + throw new NotSupportedException("Not supported"); + } + + /** + * Initializes a new instance of the SafeXmlDocument class with the + * specified XmlNameTable. + * + * @param nt The XmlNameTable to use. + */ + public SafeXmlDocument(XmlNameTable nt) { + super(); + if (inputFactory == null) { + inputFactory = XMLInputFactory.newInstance(); + } + } + + /** + * Loads the XML document from the specified stream. + * + * @param inStream The stream containing the XML document to load. + * @throws javax.xml.stream.XMLStreamException + */ + public void load(InputStream inStream) throws XMLStreamException { + // not in a using block because + // the stream doesn't belong to us + if (inputFactory != null) { + XMLEventReader reader = inputFactory + .createXMLEventReader(inStream); + + this.load((InputStream) reader); + } + } + + /** + * Loads the XML document from the specified URL. + * + * @param filename URL for the file containing the XML document to load. The URL + * can be either a local file or an HTTP URL (a Web address). + */ + public void load(String filename) { + if (inputFactory != null) { + FileInputStream inp; + + XMLEventReader reader; + try { + inp = new FileInputStream(filename); + reader = inputFactory.createXMLEventReader(inp); + this.load((InputStream) reader); + } catch (XMLStreamException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (FileNotFoundException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + + /** + * Loads the XML document from the specified TextReader. + * + * @param txtReader The TextReader used to feed the XML data into the document. + */ + public void load(Reader txtReader) { + if (inputFactory != null) { + + XMLEventReader reader; + try { + reader = inputFactory + .createXMLEventReader(txtReader); + + this.load((InputStream) reader); + } catch (XMLStreamException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + + /** + * Loads the XML document from the specified XMLReader. + * + * @param reader The XMLReader used to feed the XML data into the document. + * @throws java.io.IOException + * @throws org.xml.sax.SAXException + */ + public void load(XMLStreamReader reader) throws SAXException, IOException { + + super.parse((InputStream) reader); + } + + /** + * Loads the XML document from the specified string. + * + * @param xml String containing the XML document to load. + */ + public void loadXml(String xml) { + if (inputFactory != null) { + try { + XMLEventReader reader = inputFactory + .createXMLEventReader(new StringReader(xml)); + + this.load((InputStream) reader); + } catch (XMLStreamException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + } + + @Override + public DOMImplementation getDOMImplementation() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean isNamespaceAware() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isValidating() { + // TODO Auto-generated method stub + return false; + } + + @Override + public Document newDocument() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Document parse(InputSource is) throws SAXException, IOException { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setEntityResolver(EntityResolver er) { + // TODO Auto-generated method stub + + } + + @Override + public void setErrorHandler(ErrorHandler eh) { + // TODO Auto-generated method stub + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java index 204faf0a1..bc4283a92 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java @@ -10,45 +10,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLStreamReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.Reader; -import javax.xml.stream.XMLEventReader; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamReader; - public class SafeXmlFactory { - public static XMLInputFactory factory = XMLInputFactory.newInstance(); - - - public static XMLStreamReader createSafeXmlTextReader( InputStream stream) throws Exception{ - XMLStreamReader xsr = factory.createXMLStreamReader(stream); - return xsr; - - } - - - public static XMLStreamReader createSafeXmlTextReader(String url )throws Exception { - FileInputStream fis = new FileInputStream(url); - XMLStreamReader xtr = factory.createXMLStreamReader(url,fis); - return xtr; - } - - public static XMLStreamReader createSafeXmlTextReader(XMLStreamReader reader) throws Exception { - - XMLStreamReader xmlr = - factory.createXMLStreamReader((Reader)reader); - return xmlr; - - - } - - - - - - - + public static XMLInputFactory factory = XMLInputFactory.newInstance(); + + + public static XMLStreamReader createSafeXmlTextReader(InputStream stream) throws Exception { + XMLStreamReader xsr = factory.createXMLStreamReader(stream); + return xsr; + + } + + + public static XMLStreamReader createSafeXmlTextReader(String url) throws Exception { + FileInputStream fis = new FileInputStream(url); + XMLStreamReader xtr = factory.createXMLStreamReader(url, fis); + return xtr; + } + + public static XMLStreamReader createSafeXmlTextReader(XMLStreamReader reader) throws Exception { + + XMLStreamReader xmlr = + factory.createXMLStreamReader((Reader) reader); + return xmlr; + + + } + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java index deee1544e..d6510f3c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java @@ -10,60 +10,62 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.InputStream; - import javax.xml.bind.ValidationEventHandler; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; +import javax.xml.validation.Schema; import javax.xml.validation.Validator; import javax.xml.validation.ValidatorHandler; -import javax.xml.validation.Schema; +import java.io.InputStream; /** * XmlSchema with protection against DTD parsing in read overloads */ -public class SafeXmlSchema extends Schema{ +public class SafeXmlSchema extends Schema { + + @Override + public Validator newValidator() { + // TODO Auto-generated method stub + return null; + } + + @Override + public ValidatorHandler newValidatorHandler() { + // TODO Auto-generated method stub + return null; + } + + /** + * Reads an XML Schema from the supplied stream. + * + * @param stream The supplied data stream. + * @param validationEventHandler The validation event handler that receives information about the XML Schema syntax errors + * @return The XmlSchema object representing the XML Schema. + * @throws javax.xml.stream.XMLStreamException + */ + public static Schema Read(InputStream stream, ValidationEventHandler validationEventHandler) + throws XMLStreamException { + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + + return (Schema) inputFactory.createXMLEventReader(stream); + } + + /** + * Reads an XML Schema from the supplied TextReader. + * + * @param reader The TextReader containing the XML Schema to read + * @param validationEventHandler The validation event handler that receives information about the XML Schema syntax errors. + * @return The XmlSchema object representing the XML Schema. + * @throws javax.xml.stream.XMLStreamException + */ - @Override - public Validator newValidator() { - // TODO Auto-generated method stub - return null; - } + public static Schema Read(XMLStreamReader reader, ValidationEventHandler validationEventHandler) + throws XMLStreamException { - @Override - public ValidatorHandler newValidatorHandler() { - // TODO Auto-generated method stub - return null; - } - /** - * Reads an XML Schema from the supplied stream. - * @param stream The supplied data stream. - * @param validationEventHandler The validation event handler that receives information about the XML Schema syntax errors - * @return The XmlSchema object representing the XML Schema. - * @throws javax.xml.stream.XMLStreamException - */ - public static Schema Read(InputStream stream, ValidationEventHandler validationEventHandler) throws XMLStreamException - { - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); - return (Schema) inputFactory.createXMLEventReader(stream); - } - - /** - * Reads an XML Schema from the supplied TextReader. - * @param reader The TextReader containing the XML Schema to read - * @param validationEventHandler The validation event handler that receives information about the XML Schema syntax errors. - * @return The XmlSchema object representing the XML Schema. - * @throws javax.xml.stream.XMLStreamException - */ - - public static Schema Read(XMLStreamReader reader, ValidationEventHandler validationEventHandler) throws XMLStreamException - { - - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + return (Schema) inputFactory.createXMLEventReader(reader); + } - return (Schema) inputFactory.createXMLEventReader(reader); - } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/Schema.java b/src/main/java/microsoft/exchange/webservices/data/Schema.java index a9a0401c3..f9fb49721 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Schema.java +++ b/src/main/java/microsoft/exchange/webservices/data/Schema.java @@ -19,7 +19,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Interface Schema. */ @Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@interface Schema { +@Retention(RetentionPolicy.RUNTIME) @interface Schema { } diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java index 930d4c5c6..f6eee638f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java @@ -10,1606 +10,1512 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.Iterator; -import javax.xml.stream.XMLStreamException; - /** * Represents the base search filter class. Use descendant search filter classes * such as SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and * SearchFilter.SearchFilterCollection to define search filters. - * */ public abstract class SearchFilter extends ComplexProperty { - /** - * Initializes a new instance of the SearchFilter class. - */ - protected SearchFilter() { - } - - /** - * The search. - * - * @param reader the reader - * @return the search filter - * @throws Exception the exception - */ - //static SearchFilter search; - - /** - * Loads from XML. - * - * @param reader - * the reader - * @return SearchFilter - * @throws Exception - * the exception - */ - protected static SearchFilter loadFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.ensureCurrentNodeIsStartElement(); - - SearchFilter searchFilter = null; - - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Exists)) { - searchFilter = new Exists(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Contains)) { - searchFilter = new ContainsSubstring(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Excludes)) { - searchFilter = new ExcludesBitmask(); - } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Not)) { - searchFilter = new Not(); - } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.And)) { - searchFilter = new SearchFilterCollection( - LogicalOperator.And); - } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Or)) { - searchFilter = new SearchFilterCollection( - LogicalOperator.Or); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsEqualTo)) { - searchFilter = new IsEqualTo(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsNotEqualTo)) { - searchFilter = new IsNotEqualTo(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsGreaterThan)) { - searchFilter = new IsGreaterThan(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsGreaterThanOrEqualTo)) { - searchFilter = new IsGreaterThanOrEqualTo(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsLessThan)) { - searchFilter = new IsLessThan(); - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.IsLessThanOrEqualTo)) { - searchFilter = new IsLessThanOrEqualTo(); - } else { - searchFilter = null; - } - - if (searchFilter != null) { - searchFilter.loadFromXml(reader, reader.getLocalName()); - } - - return searchFilter; - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - protected abstract String getXmlElementName(); - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - super.writeToXml(writer, this.getXmlElementName()); - } - - /** - * Represents a search filter that checks for the presence of a substring - * inside a text property. Applications can use ContainsSubstring to define - * conditions such as "Field CONTAINS Value" or - * "Field IS PREFIXED WITH Value". - * - */ - public static final class ContainsSubstring extends PropertyBasedFilter { - - /** The containment mode. */ - private ContainmentMode containmentMode = ContainmentMode.Substring; - - /** The comparison mode. */ - private ComparisonMode comparisonMode = ComparisonMode.IgnoreCase; - - /** The value. */ - private String value; - - /** - * Initializes a new instance of the class. - */ - public ContainsSubstring() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value to compare with. - */ - public ContainsSubstring(PropertyDefinitionBase propertyDefinition, - String value) { - super(propertyDefinition); - this.value = value; - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value to compare with. - * @param containmentMode - * The containment mode. - * @param comparisonMode - * The comparison mode. - */ - public ContainsSubstring(PropertyDefinitionBase propertyDefinition, - String value, ContainmentMode containmentMode, - ComparisonMode comparisonMode) { - this(propertyDefinition, value); - this.containmentMode = containmentMode; - this.comparisonMode = comparisonMode; - } - - /** - * validates instance. - * - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate() throws ServiceValidationException { - super.internalValidate(); - if ((this.value == null) || this.value.isEmpty()) { - throw new ServiceValidationException( - Strings.ValuePropertyMustBeSet); - } - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Contains; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - if (reader.getLocalName().equals(XmlElementNames.Constant)) { - this.value = reader - .readAttributeValue(XmlAttributeNames.Value); - result = true; - } - } - return result; - } - - /** - * Reads the attribute of Xml. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - - super.readAttributesFromXml(reader); - this.containmentMode = reader.readAttributeValue( - ContainmentMode.class, XmlAttributeNames.ContainmentMode); - try { - this.comparisonMode = reader.readAttributeValue( - ComparisonMode.class, - XmlAttributeNames.ContainmentComparison); - } catch (IllegalArgumentException ile) { - // This will happen if we receive a value that is defined in the - // EWS - // schema but that is not defined - // in the API. We map that - // value to IgnoreCaseAndNonSpacingCharacters. - this.comparisonMode = ComparisonMode. - IgnoreCaseAndNonSpacingCharacters; - } - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - - writer.writeAttributeValue(XmlAttributeNames.ContainmentMode, - this.containmentMode); - writer.writeAttributeValue(XmlAttributeNames.ContainmentComparison, - this.comparisonMode); - } - - /** - * Writes the elements to Xml. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - super.writeElementsToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Constant); - writer.writeAttributeValue(XmlAttributeNames.Value, this.value); - writer.writeEndElement(); // Constant - } - - /** - * Gets the containment mode. - * - * @return ContainmentMode - */ - public ContainmentMode getContainmentMode() { - return containmentMode; - } - - /** - * sets the ContainmentMode. - * - * @param containmentMode - * the new containment mode - */ - public void setContainmentMode(ContainmentMode containmentMode) { - this.containmentMode = containmentMode; - } - - /** - * Gets the comparison mode. - * - * @return ComparisonMode - */ - public ComparisonMode getComparisonMode() { - return comparisonMode; - } - - /** - * sets the comparison mode. - * - * @param comparisonMode - * the new comparison mode - */ - public void setComparisonMode(ComparisonMode comparisonMode) { - this.comparisonMode = comparisonMode; - } - - /** - * gets the value to compare the specified property with. - * - * @return String - */ - public String getValue() { - return value; - } - - /** - * sets the value to compare the specified property with. - * - * @param value - * the new value - */ - public void setValue(String value) { - this.value = value; - } - } - - /** - * Represents a bitmask exclusion search filter. Applications can use - * ExcludesBitExcludesBitmaskFilter to define conditions such as - * "(OrdinalField and 0x0010) != 0x0010" - */ - public static class ExcludesBitmask extends PropertyBasedFilter { - - /** The bitmask. */ - private int bitmask; - - /** - * Initializes a new instance of the class. - */ - public ExcludesBitmask() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * the property definition - * @param bitmask - * the bitmask - */ - public ExcludesBitmask(PropertyDefinitionBase propertyDefinition, - int bitmask) { - super(propertyDefinition); - this.bitmask = bitmask; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Excludes; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true if element was read - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - if (reader.getLocalName().equals(XmlElementNames.Bitmask)) { - // EWS always returns the Bitmask value in hexadecimal - this.bitmask = Integer.parseInt(reader - .readAttributeValue(XmlAttributeNames.Value)); - } - } - - return result; - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * , ServiceXmlSerializationException - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - super.writeElementsToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Bitmask); - writer.writeAttributeValue(XmlAttributeNames.Value, this.bitmask); - writer.writeEndElement(); // Bitmask - } - - /** - * Gets the bitmask to compare the property with. - * - * @return bitmask - */ - public int getBitmask() { - return bitmask; - } - - /** - * Sets the bitmask to compare the property with. - * - * @param bitmask - * the new bitmask - */ - public void setBitmask(int bitmask) { - this.bitmask = bitmask; - } - - } - - /** - * Represents a search filter checking if a field is set. Applications can - * use ExistsFilter to define conditions such as "Field IS SET". - * - */ - public static final class Exists extends PropertyBasedFilter { - - /** - * Initializes a new instance of the class. - */ - public Exists() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * the property definition - */ - public Exists(PropertyDefinitionBase propertyDefinition) { - super(propertyDefinition); - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Exists; - } - } - - /** - * Represents a search filter that checks if a property is equal to a given - * value or other property. - * - * - */ - public static class IsEqualTo extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsEqualTo() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsEqualTo(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsEqualTo(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsEqualTo; - } - - } - - /** - * Represents a search filter that checks if a property is greater than a - * given value or other property. - * - * - */ - public static class IsGreaterThan extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsGreaterThan() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsGreaterThan(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsGreaterThan(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsGreaterThan; - } - } - - /** - * Represents a search filter that checks if a property is greater than or - * equal to a given value or other property. - * - * - */ - public static class IsGreaterThanOrEqualTo extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsGreaterThanOrEqualTo() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsGreaterThanOrEqualTo( - PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsGreaterThanOrEqualTo( - PropertyDefinitionBase propertyDefinition, Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. XML element name. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsGreaterThanOrEqualTo; - } - - } - - /** - * Represents a search filter that checks if a property is less than a given - * value or other property. - * - * - */ - public static class IsLessThan extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsLessThan() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsLessThan(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsLessThan(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. XML element name. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsLessThan; - } - - } - - /** - * Represents a search filter that checks if a property is less than or - * equal to a given value or other property. - * - * - */ - public static class IsLessThanOrEqualTo extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsLessThanOrEqualTo() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsLessThanOrEqualTo(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsLessThanOrEqualTo(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. XML element name. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsLessThanOrEqualTo; - } - - } - - /** - * Represents a search filter that checks if a property is not equal to a - * given value or other property. - * - * - */ - public static class IsNotEqualTo extends RelationalFilter { - - /** - * Initializes a new instance of the class. - */ - public IsNotEqualTo() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with. - */ - public IsNotEqualTo(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition, otherPropertyDefinition); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value of the property to compare with. - */ - public IsNotEqualTo(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition, value); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.IsNotEqualTo; - } - - } - - /** - * Represents a search filter that negates another. Applications can use - * NotFilter to define conditions such as "NOT(other filter)". - * - * - */ - public static class Not extends SearchFilter implements - IComplexPropertyChangedDelegate { - - /** The search filter. */ - private SearchFilter searchFilter; - - /** - * Initializes a new instance of the class. - */ - public Not() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param searchFilter - * the search filter - */ - public Not(SearchFilter searchFilter) { - super(); - this.searchFilter = searchFilter; - } - - /** - * Search filter changed. - * - * @param complexProperty - * the complex property - */ - private void searchFilterChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * validates the instance. - * - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate() throws ServiceValidationException { - if (this.searchFilter == null) { - throw new ServiceValidationException( - Strings.SearchFilterMustBeSet); - } - } - - /** - * Gets the name of the XML element. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Not; - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true if the element was read - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - this.searchFilter = SearchFilter.loadFromXml(reader); - return true; - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.searchFilter.writeToXml(writer); - } - - /** - * Gets the search filter to negate. Available search filter - * classes include SearchFilter.IsEqualTo, - * SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection. - * - * @return SearchFilter - */ - public SearchFilter getSearchFilter() { - return searchFilter; - } - - /** - * Sets the search filter to negate. Available search filter classes - * include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection. - * - * @param searchFilter - * the new search filter - */ - public void setSearchFilter(SearchFilter searchFilter) { - if (this.searchFilter != null) { - this.searchFilter.removeChangeEvent(this); - } - - if (this.canSetFieldValue(this.searchFilter, searchFilter)) { - this.searchFilter = searchFilter; - this.changed(); - - } - - if (this.searchFilter != null) { - this.searchFilter.addOnChangeEvent(this); - } - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices. - * ComplexPropertyChangedDelegateInterface# - * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty - * ) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - searchFilterChanged(complexProperty); - - } - } - - /** - * Represents a search filter where an item or folder property is involved. - */ - @EditorBrowsable(state = EditorBrowsableState.Never) - public static abstract class PropertyBasedFilter extends SearchFilter { - - /** The property definition. */ - private PropertyDefinitionBase propertyDefinition; - - /** - * Initializes a new instance of the class. - */ - PropertyBasedFilter() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * the property definition - */ - PropertyBasedFilter(PropertyDefinitionBase propertyDefinition) { - super(); - this.propertyDefinition = propertyDefinition; - } - - /** - * validate instance. - * - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate() throws ServiceValidationException { - if (this.propertyDefinition == null) { - throw new ServiceValidationException( - Strings.PropertyDefinitionPropertyMustBeSet); - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true if element was read - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - OutParam outParam = - new OutParam(); - outParam.setParam(this.propertyDefinition); - - return PropertyDefinitionBase.tryLoadFromXml(reader, outParam); - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - this.propertyDefinition.writeToXml(writer); - } - - /** - * Gets the definition of the property that is involved in the search - * filter. - * - * @return propertyDefinition - */ - public PropertyDefinitionBase getPropertyDefinition() { - return this.propertyDefinition; - } - - /** - * Sets the definition of the property that is involved in the search - * filter. - * - * @param propertyDefinition - * the new property definition - */ - public void setPropertyDefinition( - PropertyDefinitionBase propertyDefinition) { - this.propertyDefinition = propertyDefinition; - } - } - - /** - * Represents the base class for relational filters (for example, IsEqualTo, - * IsGreaterThan or IsLessThanOrEqualTo). - * - * - */ - @EditorBrowsable(state = EditorBrowsableState.Never) - public abstract static class RelationalFilter extends PropertyBasedFilter { - - /** The other property definition. */ - private PropertyDefinitionBase otherPropertyDefinition; - - /** The value. */ - private Object value; - - /** - * Initializes a new instance of the class. - */ - RelationalFilter() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param otherPropertyDefinition - * The definition of the property to compare with - */ - RelationalFilter(PropertyDefinitionBase propertyDefinition, - PropertyDefinitionBase otherPropertyDefinition) { - super(propertyDefinition); - this.otherPropertyDefinition = otherPropertyDefinition; - } - - /** - * Initializes a new instance of the class. - * - * @param propertyDefinition - * The definition of the property that is being compared. - * @param value - * The value to compare with. - */ - RelationalFilter(PropertyDefinitionBase propertyDefinition, - Object value) { - super(propertyDefinition); - this.value = value; - } - - /** - * validates the instance. - * - * @throws ServiceValidationException - * the service validation exception - */ - @Override - protected void internalValidate() throws ServiceValidationException { - super.internalValidate(); - - if (this.otherPropertyDefinition == null && this.value == null) { - throw new ServiceValidationException( - Strings.EqualityComparisonFilterIsInvalid); - } else if (value != null) { - // All objects implement Object. - // Value types that don't implement Object must implement - // ISearchStringProvider - // in order to be used in a search filter. - if (!((value instanceof Object) || (value instanceof ISearchStringProvider))) { - throw new ServiceValidationException( - String - .format( - Strings.SearchFilterComparisonValueTypeIsNotSupported, - value.getClass().getName())); - } - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true if element was read - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - boolean result = super.tryReadElementFromXml(reader); - - if (!result) { - if (reader.getLocalName().equals( - XmlElementNames.FieldURIOrConstant)) { - try { - reader.read(); - reader.ensureCurrentNodeIsStartElement(); - } catch (ServiceXmlDeserializationException e) { - e.printStackTrace(); - } catch (XMLStreamException e) { - e.printStackTrace(); - } - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.Constant)) { - this.value = reader - .readAttributeValue(XmlAttributeNames.Value); - result = true; - } else { - OutParam outParam = - new OutParam(); - outParam.setParam(this.otherPropertyDefinition); - - result = PropertyDefinitionBase.tryLoadFromXml(reader, - outParam); - } - } - } - - return result; - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * , ServiceXmlSerializationException - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - super.writeElementsToXml(writer); - - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.FieldURIOrConstant); - - if (this.value != null) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Constant); - writer.writeAttributeValue(XmlAttributeNames.Value, - true /* alwaysWriteEmptyString */,this.value); - writer.writeEndElement(); // Constant - } else { - this.otherPropertyDefinition.writeToXml(writer); - } - - writer.writeEndElement(); // FieldURIOrConstant - } - - /** - * Gets the definition of the property to compare with. - * - * @return otherPropertyDefinition - */ - public PropertyDefinitionBase getOtherPropertyDefinition() { - return this.otherPropertyDefinition; - } - - /** - * Sets the definition of the property to compare with. - * - * @param OtherPropertyDefinition - * the new other property definition - */ - public void setOtherPropertyDefinition( - PropertyDefinitionBase OtherPropertyDefinition) { - this.otherPropertyDefinition = OtherPropertyDefinition; - this.value = null; - } - - /** - * Gets the value of the property to compare with. - * - * @return the value - */ - public Object getValue() { - return value; - } - - /** - * Sets the value of the property to compare with. - * - * @param value - * the new value - */ - public void setValue(Object value) { - this.value = value; - this.otherPropertyDefinition = null; - } - - /** - * gets Xml Element name. - * - * @return the xml element name - */ - @Override - protected String getXmlElementName() { - return null; - } - } - - /** - * Represents a collection of search filters linked by a logical operator. - * Applications can use SearchFilterCollection to define complex search - * filters such as "Condition1 AND Condition2". - * - * - */ - public static class SearchFilterCollection extends SearchFilter implements - Iterable, IComplexPropertyChangedDelegate { - - /** The logical operator. */ - private LogicalOperator logicalOperator = LogicalOperator.And; - - /** The search filters. */ - private ArrayList searchFilters = - new ArrayList(); - - /** - * Initializes a new instance of the class. - */ - public SearchFilterCollection() { - super(); - } - - /** - * Initializes a new instance of the class. - * - * @param logicalOperator - * The logical operator used to initialize the collection. - */ - public SearchFilterCollection(LogicalOperator logicalOperator) { - this.logicalOperator = logicalOperator; - } - - /** - * Initializes a new instance of the class. - * - * @param logicalOperator - * The logical operator used to initialize the collection. - * @param searchFilters - * The search filters to add to the collection. - */ - public SearchFilterCollection(LogicalOperator logicalOperator, - SearchFilter... searchFilters) { - this(logicalOperator); - for (SearchFilter search : searchFilters) { - Iterable searchFil = java.util.Arrays - .asList(search); - this.addRange(searchFil); - } - } - - /** - * Initializes a new instance of the class. - * - * @param logicalOperator - * The logical operator used to initialize the collection. - * @param searchFilters - * The search filters to add to the collection. - */ - public SearchFilterCollection(LogicalOperator logicalOperator, - Iterable searchFilters) { - this(logicalOperator); - this.addRange(searchFilters); - } - - /** - * Validate instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - for (int i = 0; i < this.getCount(); i++) { - try { - this.searchFilters.get(i).internalValidate(); - } catch (ServiceValidationException e) { - throw new ServiceValidationException(String.format( - Strings.SearchFilterAtIndexIsInvalid, i), - e); - } - } - } - - /** - * A search filter has changed. - * - * @param complexProperty - * The complex property - */ - private void searchFilterChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * Gets the name of the XML element. - * - * @return xml element name - */ - @Override - protected String getXmlElementName() { - return this.logicalOperator.toString(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - - this.add(SearchFilter.loadFromXml(reader)); - return true; - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - for (SearchFilter searchFilter : this.searchFilters) { - searchFilter.writeToXml(writer); - } - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - // If there is only one filter in the collection, which developers - // tend - // to do, - // we need to not emit the collection and instead only emit the one - // filter within - // the collection. This is to work around the fact that EWS does not - // allow filter - // collections that have less than two elements. - if (this.getCount() == 1) { - this.searchFilters.get(0).writeToXml(writer); - } else { - super.writeToXml(writer); - } - } - - /** - * Adds a search filter of any type to the collection. - * - * @param searchFilter - * >The search filter to add. Available search filter classes - * include SearchFilter.IsEqualTo, - * SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection. - */ - public void add(SearchFilter searchFilter) { - if (searchFilter == null) { - throw new IllegalArgumentException("searchFilter"); - } - searchFilter.addOnChangeEvent(this); - this.searchFilters.add(searchFilter); - this.changed(); - } - - /** - * Adds multiple search filters to the collection. - * - * @param searchFilters - * The search filters to add. Available search filter classes - * include SearchFilter.IsEqualTo, - * SearchFilter.ContainsSubstring and - * SearchFilter.SearchFilterCollection - */ - public void addRange(Iterable searchFilters) { - if (searchFilters == null) { - throw new IllegalArgumentException("searchFilters"); - } - - for (SearchFilter searchFilter : searchFilters) { - searchFilter.addOnChangeEvent(this); - this.searchFilters.add(searchFilter); - } - this.changed(); - } - - /** - * Clears the collection. - */ - public void clear() { - if (this.getCount() > 0) { - for (SearchFilter searchFilter : this.searchFilters) { - searchFilter.removeChangeEvent(this); - } - this.searchFilters.clear(); - this.changed(); - } - } - - /** - * Determines whether a specific search filter is in the collection. - * - * @param searchFilter - * The search filter to locate in the collection. - * @return True is the search filter was found in the collection, false - * otherwise. - */ - public boolean contains(SearchFilter searchFilter) { - return this.searchFilters.contains(searchFilter); - } - - /** - * Removes a search filter from the collection. - * - * @param searchFilter - * The search filter to remove - */ - public void remove(SearchFilter searchFilter) { - if (searchFilter == null) { - throw new IllegalArgumentException("searchFilter"); - } - - if (this.contains(searchFilter)) { - searchFilter.removeChangeEvent(this); - this.searchFilters.remove(searchFilter); - this.changed(); - } - } - - /** - * Removes the search filter at the specified index from the collection. - * - * @param index - * The zero-based index of the search filter to remove. - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException("index", new Throwable( - Strings.IndexIsOutOfRange)); - } - - this.searchFilters.get(index).removeChangeEvent(this); - this.searchFilters.remove(index); - this.changed(); - } - - /** - * Gets the total number of search filters in the collection. - * - * @return the count - */ - public int getCount() { - - return this.searchFilters.size(); - } - - /** - * Gets the search filter at the specified index. - * - * @param index - * the index - * @return The search filter at the specified index. - */ - public SearchFilter getSearchFilter(int index) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException(Strings.IndexIsOutOfRange - + ":" + index); - } - return this.searchFilters.get(index); - } - - /** - * Sets the search filter at the specified index. - * - * @param index - * the index - * @param searchFilter - * the search filter - */ - public void setSearchFilter(int index, SearchFilter searchFilter) { - if (index < 0 || index >= this.getCount()) { - throw new IllegalArgumentException(Strings.IndexIsOutOfRange - + ":" + index); - } - this.searchFilters.add(index, searchFilter); - } - - /** - * Gets the logical operator that links the serach filters in this - * collection. - * - * @return LogicalOperator - */ - public LogicalOperator getLogicalOperator() { - return logicalOperator; - } - - /** - * Sets the logical operator that links the serach filters in this - * collection. - * - * @param logicalOperator - * the new logical operator - */ - public void setLogicalOperator(LogicalOperator logicalOperator) { - this.logicalOperator = logicalOperator; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices. - * ComplexPropertyChangedDelegateInterface# - * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty - * ) - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - searchFilterChanged(complexProperty); - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - return this.searchFilters.iterator(); - } - - } + /** + * Initializes a new instance of the SearchFilter class. + */ + protected SearchFilter() { + } + + /** + * The search. + * + * @param reader the reader + * @return the search filter + * @throws Exception the exception + */ + //static SearchFilter search; + + /** + * Loads from XML. + * + * @param reader the reader + * @return SearchFilter + * @throws Exception the exception + */ + protected static SearchFilter loadFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.ensureCurrentNodeIsStartElement(); + + SearchFilter searchFilter = null; + + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Exists)) { + searchFilter = new Exists(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Contains)) { + searchFilter = new ContainsSubstring(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Excludes)) { + searchFilter = new ExcludesBitmask(); + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Not)) { + searchFilter = new Not(); + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.And)) { + searchFilter = new SearchFilterCollection( + LogicalOperator.And); + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Or)) { + searchFilter = new SearchFilterCollection( + LogicalOperator.Or); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsEqualTo)) { + searchFilter = new IsEqualTo(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsNotEqualTo)) { + searchFilter = new IsNotEqualTo(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsGreaterThan)) { + searchFilter = new IsGreaterThan(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsGreaterThanOrEqualTo)) { + searchFilter = new IsGreaterThanOrEqualTo(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsLessThan)) { + searchFilter = new IsLessThan(); + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.IsLessThanOrEqualTo)) { + searchFilter = new IsLessThanOrEqualTo(); + } else { + searchFilter = null; + } + + if (searchFilter != null) { + searchFilter.loadFromXml(reader, reader.getLocalName()); + } + + return searchFilter; + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + protected abstract String getXmlElementName(); + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + super.writeToXml(writer, this.getXmlElementName()); + } + + /** + * Represents a search filter that checks for the presence of a substring + * inside a text property. Applications can use ContainsSubstring to define + * conditions such as "Field CONTAINS Value" or + * "Field IS PREFIXED WITH Value". + */ + public static final class ContainsSubstring extends PropertyBasedFilter { + + /** + * The containment mode. + */ + private ContainmentMode containmentMode = ContainmentMode.Substring; + + /** + * The comparison mode. + */ + private ComparisonMode comparisonMode = ComparisonMode.IgnoreCase; + + /** + * The value. + */ + private String value; + + /** + * Initializes a new instance of the class. + */ + public ContainsSubstring() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value to compare with. + */ + public ContainsSubstring(PropertyDefinitionBase propertyDefinition, + String value) { + super(propertyDefinition); + this.value = value; + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value to compare with. + * @param containmentMode The containment mode. + * @param comparisonMode The comparison mode. + */ + public ContainsSubstring(PropertyDefinitionBase propertyDefinition, + String value, ContainmentMode containmentMode, + ComparisonMode comparisonMode) { + this(propertyDefinition, value); + this.containmentMode = containmentMode; + this.comparisonMode = comparisonMode; + } + + /** + * validates instance. + * + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate() throws ServiceValidationException { + super.internalValidate(); + if ((this.value == null) || this.value.isEmpty()) { + throw new ServiceValidationException( + Strings.ValuePropertyMustBeSet); + } + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Contains; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + if (reader.getLocalName().equals(XmlElementNames.Constant)) { + this.value = reader + .readAttributeValue(XmlAttributeNames.Value); + result = true; + } + } + return result; + } + + /** + * Reads the attribute of Xml. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + + super.readAttributesFromXml(reader); + this.containmentMode = reader.readAttributeValue( + ContainmentMode.class, XmlAttributeNames.ContainmentMode); + try { + this.comparisonMode = reader.readAttributeValue( + ComparisonMode.class, + XmlAttributeNames.ContainmentComparison); + } catch (IllegalArgumentException ile) { + // This will happen if we receive a value that is defined in the + // EWS + // schema but that is not defined + // in the API. We map that + // value to IgnoreCaseAndNonSpacingCharacters. + this.comparisonMode = ComparisonMode. + IgnoreCaseAndNonSpacingCharacters; + } + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + + writer.writeAttributeValue(XmlAttributeNames.ContainmentMode, + this.containmentMode); + writer.writeAttributeValue(XmlAttributeNames.ContainmentComparison, + this.comparisonMode); + } + + /** + * Writes the elements to Xml. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + super.writeElementsToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Constant); + writer.writeAttributeValue(XmlAttributeNames.Value, this.value); + writer.writeEndElement(); // Constant + } + + /** + * Gets the containment mode. + * + * @return ContainmentMode + */ + public ContainmentMode getContainmentMode() { + return containmentMode; + } + + /** + * sets the ContainmentMode. + * + * @param containmentMode the new containment mode + */ + public void setContainmentMode(ContainmentMode containmentMode) { + this.containmentMode = containmentMode; + } + + /** + * Gets the comparison mode. + * + * @return ComparisonMode + */ + public ComparisonMode getComparisonMode() { + return comparisonMode; + } + + /** + * sets the comparison mode. + * + * @param comparisonMode the new comparison mode + */ + public void setComparisonMode(ComparisonMode comparisonMode) { + this.comparisonMode = comparisonMode; + } + + /** + * gets the value to compare the specified property with. + * + * @return String + */ + public String getValue() { + return value; + } + + /** + * sets the value to compare the specified property with. + * + * @param value the new value + */ + public void setValue(String value) { + this.value = value; + } + } + + + /** + * Represents a bitmask exclusion search filter. Applications can use + * ExcludesBitExcludesBitmaskFilter to define conditions such as + * "(OrdinalField and 0x0010) != 0x0010" + */ + public static class ExcludesBitmask extends PropertyBasedFilter { + + /** + * The bitmask. + */ + private int bitmask; + + /** + * Initializes a new instance of the class. + */ + public ExcludesBitmask() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition the property definition + * @param bitmask the bitmask + */ + public ExcludesBitmask(PropertyDefinitionBase propertyDefinition, + int bitmask) { + super(propertyDefinition); + this.bitmask = bitmask; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Excludes; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true if element was read + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + if (reader.getLocalName().equals(XmlElementNames.Bitmask)) { + // EWS always returns the Bitmask value in hexadecimal + this.bitmask = Integer.parseInt(reader + .readAttributeValue(XmlAttributeNames.Value)); + } + } + + return result; + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException , ServiceXmlSerializationException + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + super.writeElementsToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Bitmask); + writer.writeAttributeValue(XmlAttributeNames.Value, this.bitmask); + writer.writeEndElement(); // Bitmask + } + + /** + * Gets the bitmask to compare the property with. + * + * @return bitmask + */ + public int getBitmask() { + return bitmask; + } + + /** + * Sets the bitmask to compare the property with. + * + * @param bitmask the new bitmask + */ + public void setBitmask(int bitmask) { + this.bitmask = bitmask; + } + + } + + + /** + * Represents a search filter checking if a field is set. Applications can + * use ExistsFilter to define conditions such as "Field IS SET". + */ + public static final class Exists extends PropertyBasedFilter { + + /** + * Initializes a new instance of the class. + */ + public Exists() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition the property definition + */ + public Exists(PropertyDefinitionBase propertyDefinition) { + super(propertyDefinition); + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Exists; + } + } + + + /** + * Represents a search filter that checks if a property is equal to a given + * value or other property. + */ + public static class IsEqualTo extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsEqualTo() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsEqualTo(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsEqualTo(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsEqualTo; + } + + } + + + /** + * Represents a search filter that checks if a property is greater than a + * given value or other property. + */ + public static class IsGreaterThan extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsGreaterThan() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsGreaterThan(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsGreaterThan(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsGreaterThan; + } + } + + + /** + * Represents a search filter that checks if a property is greater than or + * equal to a given value or other property. + */ + public static class IsGreaterThanOrEqualTo extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsGreaterThanOrEqualTo() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsGreaterThanOrEqualTo( + PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsGreaterThanOrEqualTo( + PropertyDefinitionBase propertyDefinition, Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. XML element name. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsGreaterThanOrEqualTo; + } + + } + + + /** + * Represents a search filter that checks if a property is less than a given + * value or other property. + */ + public static class IsLessThan extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsLessThan() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsLessThan(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsLessThan(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. XML element name. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsLessThan; + } + + } + + + /** + * Represents a search filter that checks if a property is less than or + * equal to a given value or other property. + */ + public static class IsLessThanOrEqualTo extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsLessThanOrEqualTo() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsLessThanOrEqualTo(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsLessThanOrEqualTo(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. XML element name. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsLessThanOrEqualTo; + } + + } + + + /** + * Represents a search filter that checks if a property is not equal to a + * given value or other property. + */ + public static class IsNotEqualTo extends RelationalFilter { + + /** + * Initializes a new instance of the class. + */ + public IsNotEqualTo() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with. + */ + public IsNotEqualTo(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition, otherPropertyDefinition); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value of the property to compare with. + */ + public IsNotEqualTo(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition, value); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.IsNotEqualTo; + } + + } + + + /** + * Represents a search filter that negates another. Applications can use + * NotFilter to define conditions such as "NOT(other filter)". + */ + public static class Not extends SearchFilter implements + IComplexPropertyChangedDelegate { + + /** + * The search filter. + */ + private SearchFilter searchFilter; + + /** + * Initializes a new instance of the class. + */ + public Not() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param searchFilter the search filter + */ + public Not(SearchFilter searchFilter) { + super(); + this.searchFilter = searchFilter; + } + + /** + * Search filter changed. + * + * @param complexProperty the complex property + */ + private void searchFilterChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * validates the instance. + * + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate() throws ServiceValidationException { + if (this.searchFilter == null) { + throw new ServiceValidationException( + Strings.SearchFilterMustBeSet); + } + } + + /** + * Gets the name of the XML element. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Not; + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true if the element was read + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + this.searchFilter = SearchFilter.loadFromXml(reader); + return true; + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.searchFilter.writeToXml(writer); + } + + /** + * Gets the search filter to negate. Available search filter + * classes include SearchFilter.IsEqualTo, + * SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection. + * + * @return SearchFilter + */ + public SearchFilter getSearchFilter() { + return searchFilter; + } + + /** + * Sets the search filter to negate. Available search filter classes + * include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection. + * + * @param searchFilter the new search filter + */ + public void setSearchFilter(SearchFilter searchFilter) { + if (this.searchFilter != null) { + this.searchFilter.removeChangeEvent(this); + } + + if (this.canSetFieldValue(this.searchFilter, searchFilter)) { + this.searchFilter = searchFilter; + this.changed(); + + } + + if (this.searchFilter != null) { + this.searchFilter.addOnChangeEvent(this); + } + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices. + * ComplexPropertyChangedDelegateInterface# + * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty + * ) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + searchFilterChanged(complexProperty); + + } + } + + + /** + * Represents a search filter where an item or folder property is involved. + */ + @EditorBrowsable(state = EditorBrowsableState.Never) + public static abstract class PropertyBasedFilter extends SearchFilter { + + /** + * The property definition. + */ + private PropertyDefinitionBase propertyDefinition; + + /** + * Initializes a new instance of the class. + */ + PropertyBasedFilter() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition the property definition + */ + PropertyBasedFilter(PropertyDefinitionBase propertyDefinition) { + super(); + this.propertyDefinition = propertyDefinition; + } + + /** + * validate instance. + * + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate() throws ServiceValidationException { + if (this.propertyDefinition == null) { + throw new ServiceValidationException( + Strings.PropertyDefinitionPropertyMustBeSet); + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true if element was read + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + OutParam outParam = + new OutParam(); + outParam.setParam(this.propertyDefinition); + + return PropertyDefinitionBase.tryLoadFromXml(reader, outParam); + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + this.propertyDefinition.writeToXml(writer); + } + + /** + * Gets the definition of the property that is involved in the search + * filter. + * + * @return propertyDefinition + */ + public PropertyDefinitionBase getPropertyDefinition() { + return this.propertyDefinition; + } + + /** + * Sets the definition of the property that is involved in the search + * filter. + * + * @param propertyDefinition the new property definition + */ + public void setPropertyDefinition( + PropertyDefinitionBase propertyDefinition) { + this.propertyDefinition = propertyDefinition; + } + } + + + /** + * Represents the base class for relational filters (for example, IsEqualTo, + * IsGreaterThan or IsLessThanOrEqualTo). + */ + @EditorBrowsable(state = EditorBrowsableState.Never) + public abstract static class RelationalFilter extends PropertyBasedFilter { + + /** + * The other property definition. + */ + private PropertyDefinitionBase otherPropertyDefinition; + + /** + * The value. + */ + private Object value; + + /** + * Initializes a new instance of the class. + */ + RelationalFilter() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param otherPropertyDefinition The definition of the property to compare with + */ + RelationalFilter(PropertyDefinitionBase propertyDefinition, + PropertyDefinitionBase otherPropertyDefinition) { + super(propertyDefinition); + this.otherPropertyDefinition = otherPropertyDefinition; + } + + /** + * Initializes a new instance of the class. + * + * @param propertyDefinition The definition of the property that is being compared. + * @param value The value to compare with. + */ + RelationalFilter(PropertyDefinitionBase propertyDefinition, + Object value) { + super(propertyDefinition); + this.value = value; + } + + /** + * validates the instance. + * + * @throws ServiceValidationException the service validation exception + */ + @Override + protected void internalValidate() throws ServiceValidationException { + super.internalValidate(); + + if (this.otherPropertyDefinition == null && this.value == null) { + throw new ServiceValidationException( + Strings.EqualityComparisonFilterIsInvalid); + } else if (value != null) { + // All objects implement Object. + // Value types that don't implement Object must implement + // ISearchStringProvider + // in order to be used in a search filter. + if (!((value instanceof Object) || (value instanceof ISearchStringProvider))) { + throw new ServiceValidationException( + String + .format( + Strings.SearchFilterComparisonValueTypeIsNotSupported, + value.getClass().getName())); + } + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true if element was read + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + boolean result = super.tryReadElementFromXml(reader); + + if (!result) { + if (reader.getLocalName().equals( + XmlElementNames.FieldURIOrConstant)) { + try { + reader.read(); + reader.ensureCurrentNodeIsStartElement(); + } catch (ServiceXmlDeserializationException e) { + e.printStackTrace(); + } catch (XMLStreamException e) { + e.printStackTrace(); + } + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.Constant)) { + this.value = reader + .readAttributeValue(XmlAttributeNames.Value); + result = true; + } else { + OutParam outParam = + new OutParam(); + outParam.setParam(this.otherPropertyDefinition); + + result = PropertyDefinitionBase.tryLoadFromXml(reader, + outParam); + } + } + } + + return result; + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException , ServiceXmlSerializationException + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + super.writeElementsToXml(writer); + + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.FieldURIOrConstant); + + if (this.value != null) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Constant); + writer.writeAttributeValue(XmlAttributeNames.Value, + true /* alwaysWriteEmptyString */, this.value); + writer.writeEndElement(); // Constant + } else { + this.otherPropertyDefinition.writeToXml(writer); + } + + writer.writeEndElement(); // FieldURIOrConstant + } + + /** + * Gets the definition of the property to compare with. + * + * @return otherPropertyDefinition + */ + public PropertyDefinitionBase getOtherPropertyDefinition() { + return this.otherPropertyDefinition; + } + + /** + * Sets the definition of the property to compare with. + * + * @param OtherPropertyDefinition the new other property definition + */ + public void setOtherPropertyDefinition( + PropertyDefinitionBase OtherPropertyDefinition) { + this.otherPropertyDefinition = OtherPropertyDefinition; + this.value = null; + } + + /** + * Gets the value of the property to compare with. + * + * @return the value + */ + public Object getValue() { + return value; + } + + /** + * Sets the value of the property to compare with. + * + * @param value the new value + */ + public void setValue(Object value) { + this.value = value; + this.otherPropertyDefinition = null; + } + + /** + * gets Xml Element name. + * + * @return the xml element name + */ + @Override + protected String getXmlElementName() { + return null; + } + } + + + /** + * Represents a collection of search filters linked by a logical operator. + * Applications can use SearchFilterCollection to define complex search + * filters such as "Condition1 AND Condition2". + */ + public static class SearchFilterCollection extends SearchFilter implements + Iterable, IComplexPropertyChangedDelegate { + + /** + * The logical operator. + */ + private LogicalOperator logicalOperator = LogicalOperator.And; + + /** + * The search filters. + */ + private ArrayList searchFilters = + new ArrayList(); + + /** + * Initializes a new instance of the class. + */ + public SearchFilterCollection() { + super(); + } + + /** + * Initializes a new instance of the class. + * + * @param logicalOperator The logical operator used to initialize the collection. + */ + public SearchFilterCollection(LogicalOperator logicalOperator) { + this.logicalOperator = logicalOperator; + } + + /** + * Initializes a new instance of the class. + * + * @param logicalOperator The logical operator used to initialize the collection. + * @param searchFilters The search filters to add to the collection. + */ + public SearchFilterCollection(LogicalOperator logicalOperator, + SearchFilter... searchFilters) { + this(logicalOperator); + for (SearchFilter search : searchFilters) { + Iterable searchFil = java.util.Arrays + .asList(search); + this.addRange(searchFil); + } + } + + /** + * Initializes a new instance of the class. + * + * @param logicalOperator The logical operator used to initialize the collection. + * @param searchFilters The search filters to add to the collection. + */ + public SearchFilterCollection(LogicalOperator logicalOperator, + Iterable searchFilters) { + this(logicalOperator); + this.addRange(searchFilters); + } + + /** + * Validate instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + for (int i = 0; i < this.getCount(); i++) { + try { + this.searchFilters.get(i).internalValidate(); + } catch (ServiceValidationException e) { + throw new ServiceValidationException(String.format( + Strings.SearchFilterAtIndexIsInvalid, i), + e); + } + } + } + + /** + * A search filter has changed. + * + * @param complexProperty The complex property + */ + private void searchFilterChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * Gets the name of the XML element. + * + * @return xml element name + */ + @Override + protected String getXmlElementName() { + return this.logicalOperator.toString(); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + + this.add(SearchFilter.loadFromXml(reader)); + return true; + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + for (SearchFilter searchFilter : this.searchFilters) { + searchFilter.writeToXml(writer); + } + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + // If there is only one filter in the collection, which developers + // tend + // to do, + // we need to not emit the collection and instead only emit the one + // filter within + // the collection. This is to work around the fact that EWS does not + // allow filter + // collections that have less than two elements. + if (this.getCount() == 1) { + this.searchFilters.get(0).writeToXml(writer); + } else { + super.writeToXml(writer); + } + } + + /** + * Adds a search filter of any type to the collection. + * + * @param searchFilter >The search filter to add. Available search filter classes + * include SearchFilter.IsEqualTo, + * SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection. + */ + public void add(SearchFilter searchFilter) { + if (searchFilter == null) { + throw new IllegalArgumentException("searchFilter"); + } + searchFilter.addOnChangeEvent(this); + this.searchFilters.add(searchFilter); + this.changed(); + } + + /** + * Adds multiple search filters to the collection. + * + * @param searchFilters The search filters to add. Available search filter classes + * include SearchFilter.IsEqualTo, + * SearchFilter.ContainsSubstring and + * SearchFilter.SearchFilterCollection + */ + public void addRange(Iterable searchFilters) { + if (searchFilters == null) { + throw new IllegalArgumentException("searchFilters"); + } + + for (SearchFilter searchFilter : searchFilters) { + searchFilter.addOnChangeEvent(this); + this.searchFilters.add(searchFilter); + } + this.changed(); + } + + /** + * Clears the collection. + */ + public void clear() { + if (this.getCount() > 0) { + for (SearchFilter searchFilter : this.searchFilters) { + searchFilter.removeChangeEvent(this); + } + this.searchFilters.clear(); + this.changed(); + } + } + + /** + * Determines whether a specific search filter is in the collection. + * + * @param searchFilter The search filter to locate in the collection. + * @return True is the search filter was found in the collection, false + * otherwise. + */ + public boolean contains(SearchFilter searchFilter) { + return this.searchFilters.contains(searchFilter); + } + + /** + * Removes a search filter from the collection. + * + * @param searchFilter The search filter to remove + */ + public void remove(SearchFilter searchFilter) { + if (searchFilter == null) { + throw new IllegalArgumentException("searchFilter"); + } + + if (this.contains(searchFilter)) { + searchFilter.removeChangeEvent(this); + this.searchFilters.remove(searchFilter); + this.changed(); + } + } + + /** + * Removes the search filter at the specified index from the collection. + * + * @param index The zero-based index of the search filter to remove. + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException("index", new Throwable( + Strings.IndexIsOutOfRange)); + } + + this.searchFilters.get(index).removeChangeEvent(this); + this.searchFilters.remove(index); + this.changed(); + } + + /** + * Gets the total number of search filters in the collection. + * + * @return the count + */ + public int getCount() { + + return this.searchFilters.size(); + } + + /** + * Gets the search filter at the specified index. + * + * @param index the index + * @return The search filter at the specified index. + */ + public SearchFilter getSearchFilter(int index) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException(Strings.IndexIsOutOfRange + + ":" + index); + } + return this.searchFilters.get(index); + } + + /** + * Sets the search filter at the specified index. + * + * @param index the index + * @param searchFilter the search filter + */ + public void setSearchFilter(int index, SearchFilter searchFilter) { + if (index < 0 || index >= this.getCount()) { + throw new IllegalArgumentException(Strings.IndexIsOutOfRange + + ":" + index); + } + this.searchFilters.add(index, searchFilter); + } + + /** + * Gets the logical operator that links the serach filters in this + * collection. + * + * @return LogicalOperator + */ + public LogicalOperator getLogicalOperator() { + return logicalOperator; + } + + /** + * Sets the logical operator that links the serach filters in this + * collection. + * + * @param logicalOperator the new logical operator + */ + public void setLogicalOperator(LogicalOperator logicalOperator) { + this.logicalOperator = logicalOperator; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices. + * ComplexPropertyChangedDelegateInterface# + * complexPropertyChanged(microsoft.exchange.webservices.ComplexProperty + * ) + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + searchFilterChanged(complexProperty); + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + return this.searchFilters.iterator(); + } + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java index 51d731c4b..041554768 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java @@ -16,144 +16,126 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @ServiceObjectDefinition(xmlElementName = XmlElementNames.SearchFolder, returnedByServer = true) public class SearchFolder extends Folder { - /** - * Binds to an existing search folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A SearchFolder instance representing the search folder - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static SearchFolder bind(ExchangeService service, FolderId id, - PropertySet propertySet) throws Exception { - return service.bindToFolder(SearchFolder.class, id, propertySet); - } + /** + * Binds to an existing search folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A SearchFolder instance representing the search folder + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static SearchFolder bind(ExchangeService service, FolderId id, + PropertySet propertySet) throws Exception { + return service.bindToFolder(SearchFolder.class, id, propertySet); + } - /** - * Binds to an existing search folder and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A SearchFolder instance representing the search folder - * corresponding to the specified Id. - * @throws Exception - * the exception - */ - public static SearchFolder bind(ExchangeService service, FolderId id) - throws Exception { - return SearchFolder.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing search folder and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A SearchFolder instance representing the search folder + * corresponding to the specified Id. + * @throws Exception the exception + */ + public static SearchFolder bind(ExchangeService service, FolderId id) + throws Exception { + return SearchFolder.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Binds to an existing search folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @param propertySet - * the property set - * @return A SearchFolder instance representing the search folder with the - * specified name. - * @throws Exception - * the exception - */ - public static SearchFolder bind(ExchangeService service, - WellKnownFolderName name, PropertySet propertySet) - throws Exception { - return SearchFolder.bind(service, new FolderId(name), propertySet); - } + /** + * Binds to an existing search folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @param propertySet the property set + * @return A SearchFolder instance representing the search folder with the + * specified name. + * @throws Exception the exception + */ + public static SearchFolder bind(ExchangeService service, + WellKnownFolderName name, PropertySet propertySet) + throws Exception { + return SearchFolder.bind(service, new FolderId(name), propertySet); + } - /** - * Binds to an existing search folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @return A SearchFolder instance representing the search folder with the - * specified name. - * @throws Exception - * the exception - */ - public static SearchFolder bind(ExchangeService service, - WellKnownFolderName name) throws Exception { - return SearchFolder.bind(service, new FolderId(name), PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing search folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @return A SearchFolder instance representing the search folder with the + * specified name. + * @throws Exception the exception + */ + public static SearchFolder bind(ExchangeService service, + WellKnownFolderName name) throws Exception { + return SearchFolder.bind(service, new FolderId(name), PropertySet + .getFirstClassProperties()); + } - /** - * Initializes an unsaved local instance of the class. To bind to an - * existing search folder, use SearchFolder.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public SearchFolder(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of the class. To bind to an + * existing search folder, use SearchFolder.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + public SearchFolder(ExchangeService service) throws Exception { + super(service); + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return SearchFolderSchema.Instance; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return SearchFolderSchema.Instance; + } - /** - * Validates this instance. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - if (this.getSearchParameters() != null) { - this.getSearchParameters().validate(); - } - } + /** + * Validates this instance. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + if (this.getSearchParameters() != null) { + this.getSearchParameters().validate(); + } + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the search parameters associated with the search folder. - * - * @return the search parameters - * @throws Exception - * the exception - */ - public SearchFolderParameters getSearchParameters() throws Exception { - return (SearchFolderParameters)this.getPropertyBag() - .getObjectFromPropertyDefinition( - SearchFolderSchema.SearchParameters); - } + /** + * Gets the search parameters associated with the search folder. + * + * @return the search parameters + * @throws Exception the exception + */ + public SearchFolderParameters getSearchParameters() throws Exception { + return (SearchFolderParameters) this.getPropertyBag() + .getObjectFromPropertyDefinition( + SearchFolderSchema.SearchParameters); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java index 3adf1d6d6..f591387b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java @@ -14,201 +14,196 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the parameters associated with a search folder. */ public final class SearchFolderParameters extends ComplexProperty implements - IComplexPropertyChangedDelegate { - - /** The traversal. */ - private SearchFolderTraversal traversal; - - /** The root folder ids. */ - private FolderIdCollection rootFolderIds = new FolderIdCollection(); - - /** The search filter. */ - private SearchFilter searchFilter; - - /** - * Initializes a new instance of the SearchFolderParameters class. - */ - protected SearchFolderParameters() { - super(); - this.rootFolderIds.addOnChangeEvent(this); - } - - /** - * Complex property changed. - * - * @param complexProperty - * the complex property - */ - @Override - public void complexPropertyChanged(ComplexProperty complexProperty) { - this.propertyChanged(complexProperty); - } - - /** - * Property changed. - * - * @param complexProperty - * the complex property - */ - private void propertyChanged(ComplexProperty complexProperty) { - this.changed(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.BaseFolderIds)) { - this.rootFolderIds.internalClear(); - this.rootFolderIds.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.Restriction)) { - reader.read(); - this.searchFilter = SearchFilter.loadFromXml(reader); - return true; - } else { - return false; - } - } - - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.traversal = reader.readAttributeValue(SearchFolderTraversal.class, - XmlAttributeNames.Traversal); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Traversal, this.traversal); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.searchFilter != null) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Restriction); - this.searchFilter.writeToXml(writer); - writer.writeEndElement(); // Restriction - } - - this.rootFolderIds.writeToXml(writer, XmlElementNames.BaseFolderIds); - } - - /** - * Validates this instance. - * @throws Exception - */ - public void validate() throws Exception { - // Search folder must have at least one root folder id. - if (this.rootFolderIds.getCount() == 0) { - throw new ServiceValidationException( - Strings.SearchParametersRootFolderIdsEmpty); - } - - // Validate the search filter - if (this.searchFilter != null) { - this.searchFilter.internalValidate(); - } - } - - /** - * Gets the traversal mode for the search folder. - * - * @return the traversal - */ - public SearchFolderTraversal getTraversal() { - return traversal; - } - - /** - * Sets the traversal. - * - * @param traversal - * the new traversal - */ - public void setTraversal(SearchFolderTraversal traversal) { - if (this.canSetFieldValue(this.traversal, traversal)) { - this.traversal = traversal; - this.changed(); - } - } - - /** - * Gets the list of root folders the search folder searches in. - * - * @return the root folder ids - */ - public FolderIdCollection getRootFolderIds() { - return rootFolderIds; - } - - /** - * Gets the search filter associated with the search folder. - * Available search filter classes include SearchFilter.IsEqualTo, - * SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection. - * - * @return the search filter - */ - public SearchFilter getSearchFilter() { - return searchFilter; - } - - /** - * Sets the search filter. - * - * @param searchFilter - * the new search filter - */ - public void setSearchFilter(SearchFilter searchFilter) { - - if (this.searchFilter != null) { - this.searchFilter.removeChangeEvent(this); - } - - if (this.canSetFieldValue(this.searchFilter, searchFilter)) { - this.searchFilter = searchFilter; - this.changed(); - } - if (this.searchFilter != null) { - this.searchFilter.addOnChangeEvent(this); - } - } + IComplexPropertyChangedDelegate { + + /** + * The traversal. + */ + private SearchFolderTraversal traversal; + + /** + * The root folder ids. + */ + private FolderIdCollection rootFolderIds = new FolderIdCollection(); + + /** + * The search filter. + */ + private SearchFilter searchFilter; + + /** + * Initializes a new instance of the SearchFolderParameters class. + */ + protected SearchFolderParameters() { + super(); + this.rootFolderIds.addOnChangeEvent(this); + } + + /** + * Complex property changed. + * + * @param complexProperty the complex property + */ + @Override + public void complexPropertyChanged(ComplexProperty complexProperty) { + this.propertyChanged(complexProperty); + } + + /** + * Property changed. + * + * @param complexProperty the complex property + */ + private void propertyChanged(ComplexProperty complexProperty) { + this.changed(); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.BaseFolderIds)) { + this.rootFolderIds.internalClear(); + this.rootFolderIds.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.Restriction)) { + reader.read(); + this.searchFilter = SearchFilter.loadFromXml(reader); + return true; + } else { + return false; + } + } + + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.traversal = reader.readAttributeValue(SearchFolderTraversal.class, + XmlAttributeNames.Traversal); + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Traversal, this.traversal); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.searchFilter != null) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Restriction); + this.searchFilter.writeToXml(writer); + writer.writeEndElement(); // Restriction + } + + this.rootFolderIds.writeToXml(writer, XmlElementNames.BaseFolderIds); + } + + /** + * Validates this instance. + * + * @throws Exception + */ + public void validate() throws Exception { + // Search folder must have at least one root folder id. + if (this.rootFolderIds.getCount() == 0) { + throw new ServiceValidationException( + Strings.SearchParametersRootFolderIdsEmpty); + } + + // Validate the search filter + if (this.searchFilter != null) { + this.searchFilter.internalValidate(); + } + } + + /** + * Gets the traversal mode for the search folder. + * + * @return the traversal + */ + public SearchFolderTraversal getTraversal() { + return traversal; + } + + /** + * Sets the traversal. + * + * @param traversal the new traversal + */ + public void setTraversal(SearchFolderTraversal traversal) { + if (this.canSetFieldValue(this.traversal, traversal)) { + this.traversal = traversal; + this.changed(); + } + } + + /** + * Gets the list of root folders the search folder searches in. + * + * @return the root folder ids + */ + public FolderIdCollection getRootFolderIds() { + return rootFolderIds; + } + + /** + * Gets the search filter associated with the search folder. + * Available search filter classes include SearchFilter.IsEqualTo, + * SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection. + * + * @return the search filter + */ + public SearchFilter getSearchFilter() { + return searchFilter; + } + + /** + * Sets the search filter. + * + * @param searchFilter the new search filter + */ + public void setSearchFilter(SearchFilter searchFilter) { + + if (this.searchFilter != null) { + this.searchFilter.removeChangeEvent(this); + } + + if (this.canSetFieldValue(this.searchFilter, searchFilter)) { + this.searchFilter = searchFilter; + this.changed(); + } + if (this.searchFilter != null) { + this.searchFilter.addOnChangeEvent(this); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java index 0a428fc4b..ce7ee5f66 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java @@ -18,49 +18,53 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Schema public class SearchFolderSchema extends FolderSchema { - /** - * Field URIs for search folders. - * - */ - private static interface FieldUris { + /** + * Field URIs for search folders. + */ + private static interface FieldUris { - /** The Search parameters. */ - String SearchParameters = "folder:SearchParameters"; - } + /** + * The Search parameters. + */ + String SearchParameters = "folder:SearchParameters"; + } - /** - * Defines the SearchParameters property. - */ - public static final PropertyDefinition SearchParameters = - new ComplexPropertyDefinition( - SearchFolderParameters.class, - XmlElementNames.SearchParameters, - FieldUris.SearchParameters, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.AutoInstantiateOnRead), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - @Override - public SearchFolderParameters createComplexProperty() { - return new SearchFolderParameters(); - } - }); - // This must be declared after the property definitions - /** The Constant Instance. */ - static final SearchFolderSchema Instance = new SearchFolderSchema(); + /** + * Defines the SearchParameters property. + */ + public static final PropertyDefinition SearchParameters = + new ComplexPropertyDefinition( + SearchFolderParameters.class, + XmlElementNames.SearchParameters, + FieldUris.SearchParameters, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.AutoInstantiateOnRead), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + @Override + public SearchFolderParameters createComplexProperty() { + return new SearchFolderParameters(); + } + }); - /** - * Registers properties. - */ - // IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the - // same order as they are defined in types.xsd) - @Override - protected void registerProperties() { - super.registerProperties(); + // This must be declared after the property definitions + /** + * The Constant Instance. + */ + static final SearchFolderSchema Instance = new SearchFolderSchema(); - this.registerProperty(SearchParameters); - } -} \ No newline at end of file + /** + * Registers properties. + */ + // IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the + // same order as they are defined in types.xsd) + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(SearchParameters); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java index 744afacf6..0fa000f61 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java @@ -15,12 +15,16 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SearchFolderTraversal { - // Items belonging to the root folder are retrieved. - /** The Shallow. */ - Shallow, + // Items belonging to the root folder are retrieved. + /** + * The Shallow. + */ + Shallow, - // Items belonging to the root folder and its sub-folders are retrieved. - /** The Deep. */ - Deep + // Items belonging to the root folder and its sub-folders are retrieved. + /** + * The Deep. + */ + Deep } diff --git a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java index e0e21c4e4..5b48993b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java @@ -16,17 +16,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SendCancellationsMode { - // No meeting cancellation is sent. - /** The Send to none. */ - SendToNone, + // No meeting cancellation is sent. + /** + * The Send to none. + */ + SendToNone, - // Meeting cancellations are sent to all attendees. - /** The Send only to all. */ - SendOnlyToAll, + // Meeting cancellations are sent to all attendees. + /** + * The Send only to all. + */ + SendOnlyToAll, - // Meeting cancellations are sent to all attendees and a copy of the meeting - // is saved in the organizer's Sent Items folder. - /** The Send to all and save copy. */ - SendToAllAndSaveCopy, + // Meeting cancellations are sent to all attendees and a copy of the meeting + // is saved in the organizer's Sent Items folder. + /** + * The Send to all and save copy. + */ + SendToAllAndSaveCopy, } diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java index 6242690a0..dcf704cc8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java @@ -15,17 +15,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SendInvitationsMode { - // No meeting invitation is sent. - /** The Send to none. */ - SendToNone, + // No meeting invitation is sent. + /** + * The Send to none. + */ + SendToNone, - // Meeting invitations are sent to all attendees. - /** The Send only to all. */ - SendOnlyToAll, + // Meeting invitations are sent to all attendees. + /** + * The Send only to all. + */ + SendOnlyToAll, - // Meeting invitations are sent to all attendees and a copy of the - // invitation message is saved. - /** The Send to all and save copy. */ - SendToAllAndSaveCopy + // Meeting invitations are sent to all attendees and a copy of the + // invitation message is saved. + /** + * The Send to all and save copy. + */ + SendToAllAndSaveCopy } diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java index 05377f857..19f1ced5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java @@ -16,28 +16,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SendInvitationsOrCancellationsMode { - // No meeting invitation/cancellation is sent. - /** The Send to none. */ - SendToNone, - - // Meeting invitations/cancellations are sent to all attendees. - /** The Send only to all. */ - SendOnlyToAll, - - // Meeting invitations/cancellations are sent only to attendees that have - // been added or modified. - /** The Send only to changed. */ - SendOnlyToChanged, - - // Meeting invitations/cancellations are sent to all attendees and a copy is - // saved in the organizer's Sent Items folder. - /** The Send to all and save copy. */ - SendToAllAndSaveCopy, - - // Meeting invitations/cancellations are sent only to attendees that have - // been added or modified and a copy is saved in the organizer's Sent Items - // folder. - /** The Send to changed and save copy. */ - SendToChangedAndSaveCopy + // No meeting invitation/cancellation is sent. + /** + * The Send to none. + */ + SendToNone, + + // Meeting invitations/cancellations are sent to all attendees. + /** + * The Send only to all. + */ + SendOnlyToAll, + + // Meeting invitations/cancellations are sent only to attendees that have + // been added or modified. + /** + * The Send only to changed. + */ + SendOnlyToChanged, + + // Meeting invitations/cancellations are sent to all attendees and a copy is + // saved in the organizer's Sent Items folder. + /** + * The Send to all and save copy. + */ + SendToAllAndSaveCopy, + + // Meeting invitations/cancellations are sent only to attendees that have + // been added or modified and a copy is saved in the organizer's Sent Items + // folder. + /** + * The Send to changed and save copy. + */ + SendToChangedAndSaveCopy } diff --git a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java index 75a00dd6a..9a35c2056 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java @@ -14,197 +14,189 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a SendItem request. */ final class SendItemRequest extends - MultiResponseServiceRequest { - - /** The items. */ - private Iterable items; - - /** The saved copy destination folder id. */ - private FolderId savedCopyDestinationFolderId; - - /** - * Asserts the valid. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.items, "Items"); - - if (this.savedCopyDestinationFolderId != null) { - this.savedCopyDestinationFolderId.validate(this.getService() - .getRequestedServerVersion()); - } - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return EwsUtilities.getEnumeratedObjectCount(this.items.iterator()); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.SendItem; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.SendItemResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.SendItemResponseMessage; - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - - writer.writeAttributeValue(XmlAttributeNames.SaveItemToFolder, - this.savedCopyDestinationFolderId != null); - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceLocalException, Exception { - writer - .writeStartElement(XmlNamespace.Messages, - XmlElementNames.ItemIds); - - for (Item item : this.getItems()) { - item.getId().writeToXml(writer, XmlElementNames.ItemId); - } - - writer.writeEndElement(); // ItemIds - - if (this.savedCopyDestinationFolderId != null) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SavedItemFolderId); - this.savedCopyDestinationFolderId.writeToXml(writer); - writer.writeEndElement(); - } - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected SendItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * Gets the items. The items. - * - * @return the items - */ - public Iterable getItems() { - return this.items; - } - - /** - * Sets the items. - * - * @param items - * the new items - */ - public void setItems(Iterable items) { - this.items = items; - } - - /** - * Gets the saved copy destination folder id. The saved - * copy destination folder id. - * - * @return the saved copy destination folder id - */ - public FolderId getSavedCopyDestinationFolderId() { - return this.savedCopyDestinationFolderId; - } - - /** - * Sets the saved copy destination folder id. - * - * @param savedCopyDestinationFolderId - * the new saved copy destination folder id - */ - public void setSavedCopyDestinationFolderId( - FolderId savedCopyDestinationFolderId) { - this.savedCopyDestinationFolderId = savedCopyDestinationFolderId; - } + MultiResponseServiceRequest { + + /** + * The items. + */ + private Iterable items; + + /** + * The saved copy destination folder id. + */ + private FolderId savedCopyDestinationFolderId; + + /** + * Asserts the valid. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.items, "Items"); + + if (this.savedCopyDestinationFolderId != null) { + this.savedCopyDestinationFolderId.validate(this.getService() + .getRequestedServerVersion()); + } + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return EwsUtilities.getEnumeratedObjectCount(this.items.iterator()); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.SendItem; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.SendItemResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.SendItemResponseMessage; + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + + writer.writeAttributeValue(XmlAttributeNames.SaveItemToFolder, + this.savedCopyDestinationFolderId != null); + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceLocalException, Exception { + writer + .writeStartElement(XmlNamespace.Messages, + XmlElementNames.ItemIds); + + for (Item item : this.getItems()) { + item.getId().writeToXml(writer, XmlElementNames.ItemId); + } + + writer.writeEndElement(); // ItemIds + + if (this.savedCopyDestinationFolderId != null) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SavedItemFolderId); + this.savedCopyDestinationFolderId.writeToXml(writer); + writer.writeEndElement(); + } + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected SendItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * Gets the items. The items. + * + * @return the items + */ + public Iterable getItems() { + return this.items; + } + + /** + * Sets the items. + * + * @param items the new items + */ + public void setItems(Iterable items) { + this.items = items; + } + + /** + * Gets the saved copy destination folder id. The saved + * copy destination folder id. + * + * @return the saved copy destination folder id + */ + public FolderId getSavedCopyDestinationFolderId() { + return this.savedCopyDestinationFolderId; + } + + /** + * Sets the saved copy destination folder id. + * + * @param savedCopyDestinationFolderId the new saved copy destination folder id + */ + public void setSavedCopyDestinationFolderId( + FolderId savedCopyDestinationFolderId) { + this.savedCopyDestinationFolderId = savedCopyDestinationFolderId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java index 1baff44fa..682084357 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java +++ b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java @@ -15,20 +15,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum Sensitivity { - // The item has a normal sensitivity. - /** The Normal. */ - Normal, + // The item has a normal sensitivity. + /** + * The Normal. + */ + Normal, - // The item is personal. - /** The Personal. */ - Personal, + // The item is personal. + /** + * The Personal. + */ + Personal, - // The item is private. - /** The Private. */ - Private, + // The item is private. + /** + * The Private. + */ + Private, - // The item is confidential. - /** The Confidential. */ - Confidential + // The item is confidential. + /** + * The Confidential. + */ + Confidential } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java index 9f33133eb..5cdd84ef5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java @@ -15,1980 +15,2166 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ServiceError { - // NoError. Indicates that an error has not occurred. - /** The No error. */ - NoError, - - // ErrorAccessDenied - /** The Error access denied. */ - ErrorAccessDenied, - - // ErrorAccessModeSpecified - /** The impersonation authentication header should not be included. */ - ErrorAccessModeSpecified, - - // ErrorAccountDisabled - /** The Error account disabled. */ - ErrorAccountDisabled, - - // ErrorAddDelegatesFailed - /** The Error add delegates failed. */ - ErrorAddDelegatesFailed, - - // ErrorAddressSpaceNotFound - /** ErrorAddressSpaceNotFound */ - ErrorAddressSpaceNotFound, - - // ErrorADOperation - /** The Error ad operation. */ - ErrorADOperation, - - // ErrorADSessionFilter - /** The Error ad session filter. */ - ErrorADSessionFilter, - - // ErrorADUnavailable - /** The Error ad unavailable. */ - ErrorADUnavailable, - - // ErrorAffectedTaskOccurrencesRequired - /** The Error affected task occurrences required. */ - ErrorAffectedTaskOccurrencesRequired, - - /** - * The conversation action alwayscategorize or alwaysmove or alwaysdelete - * has failed. - */ - ErrorApplyConversationActionFailed, - - /** The item has attachment at more than the maximum supported nest level. */ - ErrorAttachmentNestLevelLimitExceeded, - - // ErrorAttachmentSizeLimitExceeded - /** The Error attachment size limit exceeded. */ - ErrorAttachmentSizeLimitExceeded, - - // ErrorAutoDiscoverFailed - /** The Error auto discover failed. */ - ErrorAutoDiscoverFailed, - - // ErrorAvailabilityConfigNotFound - /** The Error availability config not found. */ - ErrorAvailabilityConfigNotFound, - - // ErrorBatchProcessingStopped - /** The Error batch processing stopped. */ - ErrorBatchProcessingStopped, - - // ErrorCalendarCannotMoveOrCopyOccurrence - /** The Error calendar cannot move or copy occurrence. */ - ErrorCalendarCannotMoveOrCopyOccurrence, - - // ErrorCalendarCannotUpdateDeletedItem - /** The Error calendar cannot update deleted item. */ - ErrorCalendarCannotUpdateDeletedItem, - - // ErrorCalendarCannotUseIdForOccurrenceId - /** The Error calendar cannot use id for occurrence id. */ - ErrorCalendarCannotUseIdForOccurrenceId, - - // ErrorCalendarCannotUseIdForRecurringMasterId - /** The Error calendar cannot use id for recurring master id. */ - ErrorCalendarCannotUseIdForRecurringMasterId, - - // ErrorCalendarDurationIsTooLong - /** The Error calendar duration is too long. */ - ErrorCalendarDurationIsTooLong, - - // ErrorCalendarEndDateIsEarlierThanStartDate - /** The Error calendar end date is earlier than start date. */ - ErrorCalendarEndDateIsEarlierThanStartDate, - - // ErrorCalendarFolderIsInvalidForCalendarView - /** The Error calendar folder is invalid for calendar view. */ - ErrorCalendarFolderIsInvalidForCalendarView, - - // ErrorCalendarInvalidAttributeValue - /** The Error calendar invalid attribute value. */ - ErrorCalendarInvalidAttributeValue, - - // ErrorCalendarInvalidDayForTimeChangePattern - /** The Error calendar invalid day for time change pattern. */ - ErrorCalendarInvalidDayForTimeChangePattern, - - // ErrorCalendarInvalidDayForWeeklyRecurrence - /** The Error calendar invalid day for weekly recurrence. */ - ErrorCalendarInvalidDayForWeeklyRecurrence, - - // ErrorCalendarInvalidPropertyState - /** The Error calendar invalid property state. */ - ErrorCalendarInvalidPropertyState, - - // ErrorCalendarInvalidPropertyValue - /** The Error calendar invalid property value. */ - ErrorCalendarInvalidPropertyValue, - - // ErrorCalendarInvalidRecurrence - /** The Error calendar invalid recurrence. */ - ErrorCalendarInvalidRecurrence, - - // ErrorCalendarInvalidTimeZone - /** The Error calendar invalid time zone. */ - ErrorCalendarInvalidTimeZone, - - // ErrorCalendarIsCancelledForAccept - /** The Error calendar is cancelled for accept. */ - ErrorCalendarIsCancelledForAccept, - - // ErrorCalendarIsCancelledForDecline - /** The Error calendar is cancelled for decline. */ - ErrorCalendarIsCancelledForDecline, - - // ErrorCalendarIsCancelledForRemove - /** The Error calendar is cancelled for remove. */ - ErrorCalendarIsCancelledForRemove, - - // ErrorCalendarIsCancelledForTentative - /** The Error calendar is cancelled for tentative. */ - ErrorCalendarIsCancelledForTentative, - - // ErrorCalendarIsDelegatedForAccept - /** The Error calendar is delegated for accept. */ - ErrorCalendarIsDelegatedForAccept, - - // ErrorCalendarIsDelegatedForDecline - /** The Error calendar is delegated for decline. */ - ErrorCalendarIsDelegatedForDecline, - - // ErrorCalendarIsDelegatedForRemove - /** The Error calendar is delegated for remove. */ - ErrorCalendarIsDelegatedForRemove, - - // ErrorCalendarIsDelegatedForTentative - /** The Error calendar is delegated for tentative. */ - ErrorCalendarIsDelegatedForTentative, - - // ErrorCalendarIsNotOrganizer - /** The Error calendar is not organizer. */ - ErrorCalendarIsNotOrganizer, - - // ErrorCalendarIsOrganizerForAccept - /** The Error calendar is organizer for accept. */ - ErrorCalendarIsOrganizerForAccept, - - // ErrorCalendarIsOrganizerForDecline - /** The Error calendar is organizer for decline. */ - ErrorCalendarIsOrganizerForDecline, - - // ErrorCalendarIsOrganizerForRemove - /** The Error calendar is organizer for remove. */ - ErrorCalendarIsOrganizerForRemove, - - // ErrorCalendarIsOrganizerForTentative - /** The Error calendar is organizer for tentative. */ - ErrorCalendarIsOrganizerForTentative, - - // ErrorCalendarMeetingRequestIsOutOfDate - /** The Error calendar meeting request is out of date. */ - ErrorCalendarMeetingRequestIsOutOfDate, - - // ErrorCalendarOccurrenceIndexIsOutOfRecurrenceRange - /** The Error calendar occurrence index is out of recurrence range. */ - ErrorCalendarOccurrenceIndexIsOutOfRecurrenceRange, - - // ErrorCalendarOccurrenceIsDeletedFromRecurrence - /** The Error calendar occurrence is deleted from recurrence. */ - ErrorCalendarOccurrenceIsDeletedFromRecurrence, - - // ErrorCalendarOutOfRange - /** The Error calendar out of range. */ - ErrorCalendarOutOfRange, - - // ErrorCalendarViewRangeTooBig - /** The Error calendar view range too big. */ - ErrorCalendarViewRangeTooBig, - - // ErrorCallerIsInvalidADAccount - /** The Error caller is invalid ad account. */ - ErrorCallerIsInvalidADAccount, - - // ErrorCannotCreateCalendarItemInNonCalendarFolder - /** The Error cannot create calendar item in non calendar folder. */ - ErrorCannotCreateCalendarItemInNonCalendarFolder, - - // ErrorCannotCreateContactInNonContactFolder - /** The Error cannot create contact in non contact folder. */ - ErrorCannotCreateContactInNonContactFolder, - - // ErrorCannotCreatePostItemInNonMailFolder - /** The Error cannot create post item in non mail folder. */ - ErrorCannotCreatePostItemInNonMailFolder, - - // ErrorCannotCreateTaskInNonTaskFolder - /** The Error cannot create task in non task folder. */ - ErrorCannotCreateTaskInNonTaskFolder, - - // ErrorCannotDeleteObject - /** The Error cannot delete object. */ - ErrorCannotDeleteObject, - - // ErrorCannotDeleteTaskOccurrence - /** The Error cannot delete task occurrence. */ - ErrorCannotDeleteTaskOccurrence, - - /** - * Folder cannot be emptied. - */ - ErrorCannotEmptyFolder, - - // ErrorCannotOpenFileAttachment - /** The Error cannot open file attachment. */ - ErrorCannotOpenFileAttachment, - - // ErrorCannotSetCalendarPermissionOnNonCalendarFolder - /** The Error cannot set calendar permission on non calendar folder. */ - ErrorCannotSetCalendarPermissionOnNonCalendarFolder, - - // ErrorCannotSetNonCalendarPermissionOnCalendarFolder - /** The Error cannot set non calendar permission on calendar folder. */ - ErrorCannotSetNonCalendarPermissionOnCalendarFolder, - - // ErrorCannotSetPermissionUnknownEntries - /** The Error cannot set permission unknown entries. */ - ErrorCannotSetPermissionUnknownEntries, - - // ErrorCannotUseFolderIdForItemId - /** The Error cannot use folder id for item id. */ - ErrorCannotUseFolderIdForItemId, - - // ErrorCannotUseItemIdForFolderId - /** The Error cannot use item id for folder id. */ - ErrorCannotUseItemIdForFolderId, - - // ErrorChangeKeyRequired - /** The Error change key required. */ - ErrorChangeKeyRequired, - - // ErrorChangeKeyRequiredForWriteOperations - /** The Error change key required for write operations. */ - ErrorChangeKeyRequiredForWriteOperations, - - /** - * ErrorClientDisconnected - */ - ErrorClientDisconnected, - - // ErrorConnectionFailed - /** The Error connection failed. */ - ErrorConnectionFailed, - - // ErrorContainsFilterWrongType - /** The Error contains filter wrong type. */ - ErrorContainsFilterWrongType, - - // ErrorContentConversionFailed - /** The Error content conversion failed. */ - ErrorContentConversionFailed, - - // ErrorCorruptData - /** The Error corrupt data. */ - ErrorCorruptData, - - // ErrorCreateItemAccessDenied - /** The Error create item access denied. */ - ErrorCreateItemAccessDenied, - - // ErrorCreateManagedFolderPartialCompletion - /** The Error create managed folder partial completion. */ - ErrorCreateManagedFolderPartialCompletion, - - // ErrorCreateSubfolderAccessDenied - /** The Error create subfolder access denied. */ - ErrorCreateSubfolderAccessDenied, - - // ErrorCrossMailboxMoveCopy - /** The Error cross mailbox move copy. */ - ErrorCrossMailboxMoveCopy, - - // ErrorCrossSiteRequest - /** The Error cross site request. */ - ErrorCrossSiteRequest, - - // ErrorDataSizeLimitExceeded - /** The Error data size limit exceeded. */ - ErrorDataSizeLimitExceeded, - - // ErrorDataSourceOperation - /** The Error data source operation. */ - ErrorDataSourceOperation, - - // ErrorDelegateAlreadyExists - /** The Error delegate already exists. */ - ErrorDelegateAlreadyExists, - - // ErrorDelegateCannotAddOwner - /** The Error delegate cannot add owner. */ - ErrorDelegateCannotAddOwner, - - // ErrorDelegateMissingConfiguration - /** The Error delegate missing configuration. */ - ErrorDelegateMissingConfiguration, - - // ErrorDelegateNoUser - /** The Error delegate no user. */ - ErrorDelegateNoUser, - - // ErrorDelegateValidationFailed - /** The Error delegate validation failed. */ - ErrorDelegateValidationFailed, - - // ErrorDeleteDistinguishedFolder - /** The Error delete distinguished folder. */ - ErrorDeleteDistinguishedFolder, - - // ErrorDeleteItemsFailed - /** The Error delete items failed. */ - ErrorDeleteItemsFailed, - - // ErrorDistinguishedUserNotSupported - /** The Error distinguished user not supported. */ - ErrorDistinguishedUserNotSupported, - - // ErrorDistributionListMemberNotExist - /** The Error distribution list member not exist. */ - ErrorDistributionListMemberNotExist, - - // ErrorDuplicateInputFolderNames - /** The Error duplicate input folder names. */ - ErrorDuplicateInputFolderNames, - - // ErrorDuplicateSOAPHeader - /** The Error duplicate soap header. */ - ErrorDuplicateSOAPHeader, - - // ErrorDuplicateUserIdsSpecified - /** The Error duplicate user ids specified. */ - ErrorDuplicateUserIdsSpecified, - - // ErrorEmailAddressMismatch - /** The Error email address mismatch. */ - ErrorEmailAddressMismatch, - - // ErrorEventNotFound - /** The Error event not found. */ - ErrorEventNotFound, - - // ErrorExceededConnectionCount - /** The Error exceeded connection count. */ - ErrorExceededConnectionCount, - - // ErrorExceededFindCountLimmit - /** The Error exceeded find count limit. */ - ErrorExceededFindCountLimit, - - // ErrorExceededSubscritionCount - /** The Error exceeded subscription count. */ - ErrorExceededSubscriptionCount, - - // ErrorExpiredSubscription - /** The Error expired subscription. */ - ErrorExpiredSubscription, - - // ErrorFolderCorrupt - /** The Error folder corrupt. */ - ErrorFolderCorrupt, - - // ErrorFolderExists - /** The Error folder exists. */ - ErrorFolderExists, - - // ErrorFolderNotFound - /** - * The specified folder could not be found in the store. - */ - ErrorFolderNotFound, - - // ErrorFolderPropertRequestFailed - /** - * ErrorFolderPropertRequestFailed - */ - ErrorFolderPropertRequestFailed, - - // ErrorFolderSave - /** - * The folder save operation did not succeed. - */ - ErrorFolderSave, - - // ErrorFolderSaveFailed - /** - * The save operation failed or partially succeeded. - */ - ErrorFolderSaveFailed, - - // ErrorFolderSavePropertyError - /** - * The folder save operation failed due to invalid property values. - */ - ErrorFolderSavePropertyError, - - // ErrorFreeBusyDLLimitReached - /** - * ErrorFreeBusyDLLimitReached - */ - ErrorFreeBusyDLLimitReached, - - // ErrorFreeBusyGenerationFailed - /** - * ErrorFreeBusyGenerationFailed - */ - ErrorFreeBusyGenerationFailed, - - // ErrorGetServerSecurityDescriptorFailed - /** - * ErrorGetServerSecurityDescriptorFailed - */ - ErrorGetServerSecurityDescriptorFailed, - - // ErrorImpersonateUserDenied - /** - * The account does not have permission to impersonate the requested user. - */ - ErrorImpersonateUserDenied, - - // ErrorImpersonationDenied - /** - * ErrorImpersonationDenied - */ - ErrorImpersonationDenied, - - // ErrorImpersonationFailed - /** - * Impersonation failed. - */ - ErrorImpersonationFailed, - - // ErrorInboxRulesValidationError - /** - * ErrorInboxRulesValidationError - */ - ErrorInboxRulesValidationError, - - // ErrorIncorrectSchemaVersion - /** - * The request is valid but does not specify the correct server version in - * the RequestServerVersion SOAP header. Ensure that the - * RequestServerVersion SOAP header is set with the correct - * RequestServerVersionValue. - */ - ErrorIncorrectSchemaVersion, - - // ErrorIncorrectUpdatePropertyCount - /** - * An object within a change description must contain one and only one - * property to modify. - */ - ErrorIncorrectUpdatePropertyCount, - - // ErrorIndividualMailboxLimitReached - /** - * ErrorIndividualMailboxLimitReached - */ - ErrorIndividualMailboxLimitReached, - - // ErrorInsufficientResources - /** - * Resources are unavailable. Try again later. - */ - ErrorInsufficientResources, - - // ErrorInternalServerError - /** - * An internal server error occurred. The operation failed. - */ - ErrorInternalServerError, - - // ErrorInternalServerTransientError - /** - * An internal server error occurred. Try again later. - */ - ErrorInternalServerTransientError, - - // ErrorInvalidAccessLevel - /** - * ErrorInvalidAccessLevel - */ - ErrorInvalidAccessLevel, - - // ErrorInvalidArgument - /** - * ErrorInvalidArgument - */ - ErrorInvalidArgument, - - // ErrorInvalidAttachmentId - /** - * The specified attachment Id is invalid. - */ - ErrorInvalidAttachmentId, - - // ErrorInvalidAttachmentSubfilter - /** - * Attachment subfilters must have a single TextFilter therein. - */ - ErrorInvalidAttachmentSubfilter, - - // ErrorInvalidAttachmentSubfilterTextFilter - /** - * Attachment subfilters must have a single TextFilter on the display name - * only. - */ - ErrorInvalidAttachmentSubfilterTextFilter, - - // ErrorInvalidAuthorizationContext - /** - * ErrorInvalidAuthorizationContext - */ - ErrorInvalidAuthorizationContext, - - // ErrorInvalidChangeKey - /** - * The change key is invalid. - */ - ErrorInvalidChangeKey, - - // ErrorInvalidClientSecurityContext - /** - * ErrorInvalidClientSecurityContext - */ - ErrorInvalidClientSecurityContext, - - // ErrorInvalidCompleteDate - /** - * CompleteDate cannot be set to a date in the future. - */ - ErrorInvalidCompleteDate, - - // ErrorInvalidContactEmailAddress - /** - * The e-mail address that was supplied isn't valid. - */ - ErrorInvalidContactEmailAddress, - - // ErrorInvalidContactEmailIndex - /** - * The e-mail index supplied isn't valid. - */ - ErrorInvalidContactEmailIndex, - - // ErrorInvalidCrossForestCredentials - /** - * ErrorInvalidCrossForestCredentials - */ - ErrorInvalidCrossForestCredentials, - - /** - * Invalid Delegate Folder Permission. - */ - ErrorInvalidDelegatePermission, - - /** - * One or more UserId parameters are invalid. Make sure that the - * PrimarySmtpAddress, Sid and DisplayName properties refer to the same user - * when specified. - */ - ErrorInvalidDelegateUserId, - - /** - * An ExchangeImpersonation SOAP header must contain a user principal name, - * user SID, or primary SMTP address. - */ - ErrorInvalidExchangeImpersonationHeaderData, - - /** - * Second operand in Excludes expression must be uint compatible. - */ - ErrorInvalidExcludesRestriction, - - /** - * FieldURI can only be used in Contains expressions. - */ - ErrorInvalidExpressionTypeForSubFilter, - - /** - * The extended property attribute combination is invalid. - */ - ErrorInvalidExtendedProperty, - - /** - * The extended property value is inconsistent with its type. - */ - ErrorInvalidExtendedPropertyValue, - - /** - * The original sender of the message (initiator field in the sharing - * metadata) is not valid. - */ - ErrorInvalidExternalSharingInitiator, - - /** - * The sharing message is not intended for this caller. - */ - ErrorInvalidExternalSharingSubscriber, - - /** - * The organization is either not federated, or it's configured incorrectly. - */ - ErrorInvalidFederatedOrganizationId, - - /** - * Folder Id is invalid. - */ - ErrorInvalidFolderId, - - /** - * ErrorInvalidFolderTypeForOperation - */ - ErrorInvalidFolderTypeForOperation, - - /** - * Invalid fractional paging offset values. - */ - ErrorInvalidFractionalPagingParameters, - - /** - * ErrorInvalidFreeBusyViewType - */ - ErrorInvalidFreeBusyViewType, - - /** - * Either DataType or SharedFolderId must be specified, but not both. - */ - ErrorInvalidGetSharingFolderRequest, - - // ErrorInvalidId - /** - * The Error invalid id. - */ - ErrorInvalidId, - - /** - * Id must be non-empty. - */ - ErrorInvalidIdEmpty, - - /** - * Id is malformed. - */ - ErrorInvalidIdMalformed, - - /** - * The EWS Id is in EwsLegacyId format which is not supported by the - * Exchange version specified by your request. Please use the ConvertId - * method to convert from EwsLegacyId to EwsId format. - */ - ErrorInvalidIdMalformedEwsLegacyIdFormat, - - /** - * Moniker exceeded allowable length. - */ - ErrorInvalidIdMonikerTooLong, - - /** - * The Id does not represent an item attachment. - */ - ErrorInvalidIdNotAnItemAttachmentId, - - /** - * ResolveNames returned an invalid Id. - */ - ErrorInvalidIdReturnedByResolveNames, - - /** - * Id exceeded allowable length. - */ - ErrorInvalidIdStoreObjectIdTooLong, - - /** - * Too many attachment levels. - */ - ErrorInvalidIdTooManyAttachmentLevels, - - /** - * The Id Xml is invalid. - */ - ErrorInvalidIdXml, - - /** - * The specified indexed paging values are invalid. - */ - ErrorInvalidIndexedPagingParameters, - - /** - * Only one child node is allowed when setting an Internet Message Header. - */ - ErrorInvalidInternetHeaderChildNodes, - - /** - * Item type is invalid for AcceptItem action. - */ - ErrorInvalidItemForOperationAcceptItem, - - /** - * Item type is invalid for CancelCalendarItem action. - */ - ErrorInvalidItemForOperationCancelItem, - - /** - * Item type is invalid for CreateItem operation. - */ - ErrorInvalidItemForOperationCreateItem, - - /** - * Item type is invalid for CreateItemAttachment operation. - */ - ErrorInvalidItemForOperationCreateItemAttachment, - - /** - * Item type is invalid for DeclineItem operation. - */ - ErrorInvalidItemForOperationDeclineItem, - - /** - * ExpandDL operation does not support this item type. - */ - ErrorInvalidItemForOperationExpandDL, - - /** - * Item type is invalid for RemoveItem operation. - */ - ErrorInvalidItemForOperationRemoveItem, - - /** - * Item type is invalid for SendItem operation. - */ - ErrorInvalidItemForOperationSendItem, - - /** - * The item of this type is invalid for TentativelyAcceptItem action. - */ - ErrorInvalidItemForOperationTentative, - - /** - * The logon type isn't valid. - */ - ErrorInvalidLogonType, - - /** - * Mailbox is invalid. Verify the specified Mailbox property. - */ - ErrorInvalidMailbox, - - /** - * The Managed Folder property is corrupt or otherwise invalid. - */ - ErrorInvalidManagedFolderProperty, - - /** - * The managed folder has an invalid quota. - */ - ErrorInvalidManagedFolderQuota, - - /** - * The managed folder has an invalid storage limit value. - */ - ErrorInvalidManagedFolderSize, - - /** - * ErrorInvalidMergedFreeBusyInterval - */ - ErrorInvalidMergedFreeBusyInterval, - - /** - * The specified value is not a valid name for name resolution. - */ - ErrorInvalidNameForNameResolution, - - /** - * ErrorInvalidNetworkServiceContext - */ - ErrorInvalidNetworkServiceContext, - - /** - * ErrorInvalidOofParameter - */ - ErrorInvalidOofParameter, - - /** - * ErrorInvalidOperation - */ - ErrorInvalidOperation, - - /** - * ErrorInvalidOrganizationRelationshipForFreeBusy - */ - ErrorInvalidOrganizationRelationshipForFreeBusy, - - /** - * MaxEntriesReturned must be greater than zero. - */ - ErrorInvalidPagingMaxRows, - - /** - * Cannot create a subfolder within a SearchFolder. - */ - ErrorInvalidParentFolder, - - /** - * PercentComplete must be an integer between 0 and 100. - */ - ErrorInvalidPercentCompleteValue, - - /** - * The permission settings were not valid. - */ - ErrorInvalidPermissionSettings, - - /** - * The phone call ID isn't valid. - */ - ErrorInvalidPhoneCallId, - - /** - * The phone number isn't valid. - */ - ErrorInvalidPhoneNumber, - - /** - * The append action is not supported for this property. - */ - ErrorInvalidPropertyAppend, - - /** - * The delete action is not supported for this property. - */ - ErrorInvalidPropertyDelete, - - /** - * Property cannot be used in Exists expression. Use IsEqualTo instead. - */ - ErrorInvalidPropertyForExists, - - /** - * Property is not valid for this operation. - */ - ErrorInvalidPropertyForOperation, - - /** - * Property is not valid for this object type. - */ - ErrorInvalidPropertyRequest, - - /** - * Set action is invalid for property. - */ - ErrorInvalidPropertySet, - - // /

- // / Update operation is invalid for property of a sent message. - // / - ErrorInvalidPropertyUpdateSentMessage, - - // / - // / The proxy security context is invalid. - // / - ErrorInvalidProxySecurityContext, - - // / - // / SubscriptionId is invalid. Subscription is not a pull subscription. - // / - ErrorInvalidPullSubscriptionId, - - // / - // / URL specified for push subscription is invalid. - // / - ErrorInvalidPushSubscriptionUrl, - - // / - // / One or more recipients are invalid. - // / - ErrorInvalidRecipients, - - // / - // / Recipient subfilters are only supported when - // /there are two expressions within a single - // / AND filter. - // / - ErrorInvalidRecipientSubfilter, - - // / - // / Recipient subfilter must have a comparison filter - // /that tests equality to recipient type - // / or attendee type. - // / - ErrorInvalidRecipientSubfilterComparison, - - // / - // / Recipient subfilters must have a text filter - // /and a comparison filter in that order. - // / - ErrorInvalidRecipientSubfilterOrder, - - // / - // / Recipient subfilter must have a TextFilter on the SMTP address only. - // / - ErrorInvalidRecipientSubfilterTextFilter, - - // / - // / The reference item does not support the requested operation. - // / - ErrorInvalidReferenceItem, - - // / - // / The request is invalid. - // / - ErrorInvalidRequest, - - // / - // / The restriction is invalid. - // / - ErrorInvalidRestriction, - - // / - // / The routing type format is invalid. - // / - ErrorInvalidRoutingType, - - // / - // / ErrorInvalidScheduledOofDuration - // / - ErrorInvalidScheduledOofDuration, - - // / - // / The mailbox that was requested doesn't support - // /the specified RequestServerVersion. - // / - ErrorInvalidSchemaVersionForMailboxVersion, - - // / - // / ErrorInvalidSecurityDescriptor - // / - ErrorInvalidSecurityDescriptor, - - // / - // / Invalid combination of SaveItemToFolder - // /attribute and SavedItemFolderId element. - // / - ErrorInvalidSendItemSaveSettings, - - // / - // / Invalid serialized access token. - // / - ErrorInvalidSerializedAccessToken, - - // / - // / The specified server version is invalid. - // / - ErrorInvalidServerVersion, - - // / - // / The sharing message metadata is not valid. - // / - ErrorInvalidSharingData, - - // / - // / The sharing message is not valid. - // / - ErrorInvalidSharingMessage, - - // / - // / A SID with an invalid format was encountered. - // / - ErrorInvalidSid, - - // / - // / The SIP address isn't valid. - // / - ErrorInvalidSIPUri, - - // / - // / The SMTP address format is invalid. - // / - ErrorInvalidSmtpAddress, - - // / - // / Invalid subFilterType. - // / - ErrorInvalidSubfilterType, - - // / - // / SubFilterType is not attendee type. - // / - ErrorInvalidSubfilterTypeNotAttendeeType, - - // / - // / SubFilterType is not recipient type. - // / - ErrorInvalidSubfilterTypeNotRecipientType, - - // / - // / Subscription is invalid. - // / - ErrorInvalidSubscription, - - // / - // / A subscription can only be established on - // /a single public folder or on folders from a - // / single mailbox. - // / - ErrorInvalidSubscriptionRequest, - - // / - // / Synchronization state data is corrupt or otherwise invalid. - // / - ErrorInvalidSyncStateData, - - // / - // / ErrorInvalidTimeInterval - // / - ErrorInvalidTimeInterval, - - // / - // / A UserId was not valid. - // / - ErrorInvalidUserInfo, - - // / - // / ErrorInvalidUserOofSettings - // / - ErrorInvalidUserOofSettings, - - // / - // / The impersonation principal name is invalid. - // / - ErrorInvalidUserPrincipalName, - - // / - // / The user SID is invalid or does not map - // /to a user in the Active Directory. - // / - ErrorInvalidUserSid, - - // / - // / ErrorInvalidUserSidMissingUPN - // / - ErrorInvalidUserSidMissingUPN, - - // / - // / The specified value is invalid for property. - // / - ErrorInvalidValueForProperty, - - // / - // / The watermark is invalid. - // / - ErrorInvalidWatermark, - - // / - // / A valid IP gateway couldn't be found. - // / - ErrorIPGatewayNotFound, - - // / - // / The send or update operation could not be - // /performed because the change key passed in the - // / request does not match the current change key for the item. - // / - ErrorIrresolvableConflict, - - // / - // / The item is corrupt. - // / - ErrorItemCorrupt, - - // / - // / The specified object was not found in the store. - // / - ErrorItemNotFound, - - // / - // / One or more of the properties requested for - // /this item could not be retrieved. - // / - ErrorItemPropertyRequestFailed, - - // / - // / The item save operation did not succeed. - // / - ErrorItemSave, - - // / - // / Item save operation did not succeed. - // / - ErrorItemSavePropertyError, - - // / - // / ErrorLegacyMailboxFreeBusyViewTypeNotMerged - // / - ErrorLegacyMailboxFreeBusyViewTypeNotMerged, - - // / - // / ErrorLocalServerObjectNotFound - // / - ErrorLocalServerObjectNotFound, - - // / - // / ErrorLogonAsNetworkServiceFailed - // / - ErrorLogonAsNetworkServiceFailed, - - // / - // / Unable to access an account or mailbox. - // / - ErrorMailboxConfiguration, - - // / - // / ErrorMailboxDataArrayEmpty - // / - ErrorMailboxDataArrayEmpty, - - // / - // / ErrorMailboxDataArrayTooBig - // / - ErrorMailboxDataArrayTooBig, - - // / - // / ErrorMailboxFailover - // / - ErrorMailboxFailover, - - // / - // / ErrorMailboxLogonFailed - // / - ErrorMailboxLogonFailed, - - // / - // / Mailbox move in progress. Try again later. - // / - ErrorMailboxMoveInProgress, - - // / - // / The mailbox database is temporarily unavailable. - // / - ErrorMailboxStoreUnavailable, - - // / - // / ErrorMailRecipientNotFound - // / - ErrorMailRecipientNotFound, - - // / - // / MailTips aren't available for your organization. - // / - ErrorMailTipsDisabled, - - // / - // / The specified Managed Folder already exists in the mailbox. - // / - ErrorManagedFolderAlreadyExists, - - // / - // / Unable to find the specified managed folder in the Active Directory. - // / - ErrorManagedFolderNotFound, - - // / - // / Failed to create or bind to the folder: Managed Folders - // / - ErrorManagedFoldersRootFailure, - - // / - // / ErrorMeetingSuggestionGenerationFailed - // / - ErrorMeetingSuggestionGenerationFailed, - - // / - // / MessageDisposition attribute is required. - // / - ErrorMessageDispositionRequired, - - // / - // / The message exceeds the maximum supported size. - // / - ErrorMessageSizeExceeded, - - // / - // / The domain specified in the tracking request doesn't exist. - // / - ErrorMessageTrackingNoSuchDomain, - - // / - // / The log search service can't track this message. - // / - ErrorMessageTrackingPermanentError, - - // / - // / The log search service isn't currently - // /available. Please try again later. - // / - ErrorMessageTrackingTransientError, - - // / - // / MIME content conversion failed. - // / - ErrorMimeContentConversionFailed, - - // / - // / Invalid MIME content. - // / - ErrorMimeContentInvalid, - - // / - // / Invalid base64 string for MIME content. - // / - ErrorMimeContentInvalidBase64String, - - // / - // / The subscription has missed events, - // /but will continue service on this connection. - // / - ErrorMissedNotificationEvents, - - // / - // / ErrorMissingArgument - // / - ErrorMissingArgument, - - // / - // / When making a request as an account that does - // /not have a mailbox, you must specify the - // / mailbox primary SMTP address for any distinguished folder Ids. - // / - ErrorMissingEmailAddress, - - // / - // / When making a request with an account that does not - // /have a mailbox, you must specify the - // / primary SMTP address for an existing mailbox. - // / - ErrorMissingEmailAddressForManagedFolder, - - // / - // / EmailAddress or ItemId must be included in the request. - // / - ErrorMissingInformationEmailAddress, - - // / - // / ReferenceItemId must be included in the request. - // / - ErrorMissingInformationReferenceItemId, - - // / - // / SharingFolderId must be included in the request. - // / - ErrorMissingInformationSharingFolderId, - - // / - // / An item must be specified when creating an item attachment. - // / - ErrorMissingItemForCreateItemAttachment, - - // / - // / The managed folder Id is missing. - // / - ErrorMissingManagedFolderId, - - // / - // / A message needs to have at least one recipient. - // / - ErrorMissingRecipients, - - // / - // / Missing information for delegate user. You must - // /either specify a valid SMTP address or - // / SID. - // / - ErrorMissingUserIdInformation, - - // / - // / Only one access mode header may be specified. - // / - ErrorMoreThanOneAccessModeSpecified, - - // / - // / The move or copy operation failed. - // / - ErrorMoveCopyFailed, - - // / - // / Cannot move distinguished folder. - // / - ErrorMoveDistinguishedFolder, - - // / - // / Multiple results were found. - // / - ErrorNameResolutionMultipleResults, - - // / - // / User must have a mailbox for name resolution operations. - // / - ErrorNameResolutionNoMailbox, - - // / - // / No results were found. - // / - ErrorNameResolutionNoResults, - - // / - // / Another connection was opened against this subscription. - // / - ErrorNewEventStreamConnectionOpened, - - // / - // / Exchange Web Services are not currently available - // /for this request because there are no - // / available Client Access Services Servers in the target AD Site. - // / - ErrorNoApplicableProxyCASServersAvailable, - - // / - // / ErrorNoCalendar - // / - ErrorNoCalendar, - - // / - // / Exchange Web Services aren't available for this - // /request because there is no Client Access - // / server with the necessary configuration in the - // /Active Directory site where the mailbox is - // / stored. If the problem continues, click Help. - // / - ErrorNoDestinationCASDueToKerberosRequirements, - - // / - // / Exchange Web Services aren't currently available - // /for this request because an SSL - // / connection couldn't be established to the Client - // /Access server that should be used for - // / mailbox access. If the problem continues, click Help. - // / - ErrorNoDestinationCASDueToSSLRequirements, - - // / - // / Exchange Web Services aren't currently available - // /for this request because the Client - // / Access server used for proxying has an older - // /version of Exchange installed than the - // / Client Access server in the mailbox Active Directory site. - // / - ErrorNoDestinationCASDueToVersionMismatch, - - // / - // / You cannot specify the FolderClass when creating a non-generic folder. - // / - ErrorNoFolderClassOverride, - - // / - // / ErrorNoFreeBusyAccess - // / - ErrorNoFreeBusyAccess, - - // / - // / Mailbox does not exist. - // / - ErrorNonExistentMailbox, - - // / - // / The primary SMTP address must be specified when referencing a mailbox. - // / - ErrorNonPrimarySmtpAddress, - - // / - // / Custom properties cannot be specified using - // /property tags. The GUID and Id/Name - // / combination must be used instead. - // / - ErrorNoPropertyTagForCustomProperties, - - // / - // / ErrorNoPublicFolderReplicaAvailable - // / - ErrorNoPublicFolderReplicaAvailable, - - // / - // / There are no public folder servers available. - // / - ErrorNoPublicFolderServerAvailable, - - // / - // / Exchange Web Services are not currently available - // /for this request because none of the - // / Client Access Servers in the destination site could process the - // request. - // / - ErrorNoRespondingCASInDestinationSite, - - // / - // / Policy does not allow granting of permissions to external users. - // / - ErrorNotAllowedExternalSharingByPolicy, - - // / - // / The user is not a delegate for the mailbox. - // / - ErrorNotDelegate, - - // / - // / There was not enough memory to complete the request. - // / - ErrorNotEnoughMemory, - - // / - // / The sharing message is not supported. - // / - ErrorNotSupportedSharingMessage, - - // / - // / Operation would change object type, which is not permitted. - // / - ErrorObjectTypeChanged, - - // / - // / Modified occurrence is crossing or overlapping adjacent occurrence. - // / - ErrorOccurrenceCrossingBoundary, - - // / - // / One occurrence of the recurring calendar item - // /overlaps with another occurrence of the - // / same calendar item. - // / - ErrorOccurrenceTimeSpanTooBig, - - // / - // / Operation not allowed with public folder root. - // / - ErrorOperationNotAllowedWithPublicFolderRoot, - - // / - // / Organization is not federated. - // / - ErrorOrganizationNotFederated, - - // / - // / ErrorOutlookRuleBlobExists - // / - ErrorOutlookRuleBlobExists, - - // / - // / You must specify the parent folder Id for this operation. - // / - ErrorParentFolderIdRequired, - - // / - // / The specified parent folder could not be found. - // / - ErrorParentFolderNotFound, - - // / - // / Password change is required. - // / - ErrorPasswordChangeRequired, - - // / - // / Password has expired. Change password. - // / - ErrorPasswordExpired, - - // / - // / Policy does not allow granting permission level to user. - // / - ErrorPermissionNotAllowedByPolicy, - - // / - // / Dialing restrictions are preventing the phone number - // /that was entered from being dialed. - // / - ErrorPhoneNumberNotDialable, - - // / - // / Property update did not succeed. - // / - ErrorPropertyUpdate, - - // / - // / At least one property failed validation. - // / - ErrorPropertyValidationFailure, - - // / - // / Subscription related request failed because EWS - // /could not contact the appropriate CAS - // / server for this request. If this problem persists, - // /recreate the subscription. - // / - ErrorProxiedSubscriptionCallFailure, - - // / - // / Request failed because EWS could not contact - // /the appropriate CAS server for this request. - // / - ErrorProxyCallFailed, - - // / - // / Exchange Web Services (EWS) is not available for - // /this mailbox because the user account - // / associated with the mailbox is a member of - // /too many groups. EWS limits the group - // / membership it can proxy between Client Access Service Servers to 3000. - // / - ErrorProxyGroupSidLimitExceeded, - - // / - // / ErrorProxyRequestNotAllowed - // / - ErrorProxyRequestNotAllowed, - - // / - // / ErrorProxyRequestProcessingFailed - // / - ErrorProxyRequestProcessingFailed, - - // / - // / Exchange Web Services are not currently - // /available for this mailbox because it could not - // / determine the Client Access Services Server to use for the mailbox. - // / - ErrorProxyServiceDiscoveryFailed, - - // / - // / Proxy token has expired. - // / - ErrorProxyTokenExpired, - - // / - // / ErrorPublicFolderRequestProcessingFailed - // / - ErrorPublicFolderRequestProcessingFailed, - - // / - // / ErrorPublicFolderServerNotFound - // / - ErrorPublicFolderServerNotFound, - - // / - // / The search folder has a restriction that is too long to return. - // / - ErrorQueryFilterTooLong, - - // / - // / Mailbox has exceeded maximum mailbox size. - // / - ErrorQuotaExceeded, - - // / - // / Unable to retrieve events for this subscription. - // /The subscription must be recreated. - // / - ErrorReadEventsFailed, - - // / - // / Unable to suppress read receipt. Read receipts are not pending. - // / - ErrorReadReceiptNotPending, - - // / - // / Recurrence end date can not exceed Sep 1, 4500 00:00:00. - // / - ErrorRecurrenceEndDateTooBig, - - // / - // / Recurrence has no occurrences in the specified range. - // / - ErrorRecurrenceHasNoOccurrence, - - // / - // / Failed to remove one or more delegates. - // / - ErrorRemoveDelegatesFailed, - - // / - // / ErrorRequestAborted - // / - ErrorRequestAborted, - - // / - // / ErrorRequestStreamTooBig - // / - ErrorRequestStreamTooBig, - - // / - // / Required property is missing. - // / - ErrorRequiredPropertyMissing, - - // / - // / Cannot perform ResolveNames for non-contact folder. - // / - ErrorResolveNamesInvalidFolderType, - - // / - // / Only one contacts folder can be specified in request. - // / - ErrorResolveNamesOnlyOneContactsFolderAllowed, - - // / - // / The response failed schema validation. - // / - ErrorResponseSchemaValidation, - - // / - // / The restriction or sort order is too complex for this operation. - // / - ErrorRestrictionTooComplex, - - // / - // / Restriction contained too many elements. - // / - ErrorRestrictionTooLong, - - // / - // / ErrorResultSetTooBig - // / - ErrorResultSetTooBig, - - // / - // / ErrorRulesOverQuota - // / - ErrorRulesOverQuota, - - // / - // / The folder in which items were to be saved could not be found. - // / - ErrorSavedItemFolderNotFound, - - // / - // / The request failed schema validation. - // / - ErrorSchemaValidation, - - // / - // / The search folder is not initialized. - // / - ErrorSearchFolderNotInitialized, - - // / - // / The user account which was used to submit this request - // /does not have the right to send - // / mail on behalf of the specified sending account. - // / - ErrorSendAsDenied, - - // / - // / SendMeetingCancellations attribute is required for Calendar items. - // / - ErrorSendMeetingCancellationsRequired, - - // / - // / The SendMeetingInvitationsOrCancellations attribute - // /is required for calendar items. - // / - ErrorSendMeetingInvitationsOrCancellationsRequired, - - // ErrorSendMeetingInvitationsRequired - /** - * The SendMeetingInvitations attribute is required for calendar items. - */ - ErrorSendMeetingInvitationsRequired, - - // ErrorSentMeetingRequestUpdate - /** - * The meeting request has already been sent and might not be updated. - */ - ErrorSentMeetingRequestUpdate, - - // ErrorSentTaskRequestUpdate - /** - * The task request has already been sent and may not be updated. - */ - ErrorSentTaskRequestUpdate, - - // ErrorServerBusy - /** - * The server cannot service this request right now. Try again later. - */ - ErrorServerBusy, - - // ErrorServiceDiscoveryFailed - /** - * ErrorServiceDiscoveryFailed - */ - ErrorServiceDiscoveryFailed, - - // ErrorSharingNoExternalEwsAvailable - /** - * No external Exchange Web Service URL available. - */ - ErrorSharingNoExternalEwsAvailable, - - // ErrorSharingSynchronizationFailed - /** - * Failed to synchronize the sharing folder. - */ - ErrorSharingSynchronizationFailed, - - // ErrorStaleObject - /** - * The current ChangeKey is required for this operation. - */ - ErrorStaleObject, - - // ErrorSubmissionQuotaExceeded - /** - * The message couldn't be sent because the sender's submission quota was - * exceeded. Please try again later. - */ - ErrorSubmissionQuotaExceeded, - - // ErrorSubscriptionAccessDenied - /** - * Access is denied. Only the subscription owner may access the - * subscription. - */ - ErrorSubscriptionAccessDenied, - - // ErrorSubscriptionDelegateAccessNotSupported - /** - * Subscriptions are not supported for delegate user access. - */ - ErrorSubscriptionDelegateAccessNotSupported, - - // ErrorSubscriptionNotFound - /** - * The specified subscription was not found. - */ - ErrorSubscriptionNotFound, - - // ErrorSubscriptionUnsubscribed - /** - * The StreamingSubscription was unsubscribed while the current connection - * was servicing it. - */ - ErrorSubscriptionUnsubscribed, - - // ErrorSyncFolderNotFound - /** - * The folder to be synchronized could not be found. - */ - ErrorSyncFolderNotFound, - - // ErrorTimeIntervalTooBig - /** - * ErrorTimeIntervalTooBig - */ - ErrorTimeIntervalTooBig, - - // ErrorTimeoutExpired - /** - * ErrorTimeoutExpired - */ - ErrorTimeoutExpired, - - // ErrorTimeZone - /** - * The time zone isn't valid. - */ - ErrorTimeZone, - - // ErrorToFolderNotFound - /** - * The specified target folder could not be found. - */ - ErrorToFolderNotFound, - - // ErrorTokenSerializationDenied - /** - * The requesting account does not have permission to serialize tokens. - */ - ErrorTokenSerializationDenied, - - // ErrorUnableToGetUserOofSettings - /** - * ErrorUnableToGetUserOofSettings - */ - ErrorUnableToGetUserOofSettings, - - // ErrorUnifiedMessagingDialPlanNotFound - /** - * A dial plan could not be found. - */ - ErrorUnifiedMessagingDialPlanNotFound, - - // ErrorUnifiedMessagingRequestFailed - /** - * The UnifiedMessaging request failed. - */ - ErrorUnifiedMessagingRequestFailed, - - // ErrorUnifiedMessagingServerNotFound - /** - * A connection couldn't be made to the Unified Messaging server. - */ - ErrorUnifiedMessagingServerNotFound, - - // ErrorUnsupportedCulture - /** - * The specified item culture is not supported on this server. - */ - ErrorUnsupportedCulture, - - // ErrorUnsupportedMapiPropertyType - /** - * The MAPI property type is not supported. - */ - ErrorUnsupportedMapiPropertyType, - - // ErrorUnsupportedMimeConversion - /** - * MIME conversion is not supported for this item type. - */ - ErrorUnsupportedMimeConversion, - - // ErrorUnsupportedPathForQuery - /** - * The property can not be used with this type of restriction. - */ - ErrorUnsupportedPathForQuery, - - // ErrorUnsupportedPathForSortGroup - /** - * The property can not be used for sorting or grouping results. - */ - ErrorUnsupportedPathForSortGroup, - - // ErrorUnsupportedPropertyDefinition - /** - * PropertyDefinition is not supported in searches. - */ - ErrorUnsupportedPropertyDefinition, - - // ErrorUnsupportedQueryFilter - /** - * QueryFilter type is not supported. - */ - ErrorUnsupportedQueryFilter, - - // ErrorUnsupportedRecurrence - /** - * The specified recurrence is not supported. - */ - ErrorUnsupportedRecurrence, - - // ErrorUnsupportedSubFilter - /** - * Unsupported subfilter type. - */ - ErrorUnsupportedSubFilter, - - // ErrorUnsupportedTypeForConversion - /** - * Unsupported type for restriction conversion. - */ - ErrorUnsupportedTypeForConversion, - - // ErrorUpdateDelegatesFailed - /** - * Failed to update one or more delegates. - */ - ErrorUpdateDelegatesFailed, - - // ErrorUpdatePropertyMismatch - /** - * Property for update does not match property in object. - */ - ErrorUpdatePropertyMismatch, - - // ErrorUserNotAllowedByPolicy - /** - * Policy does not allow granting permissions to user. - */ - ErrorUserNotAllowedByPolicy, - - // ErrorUserNotUnifiedMessagingEnabled - /** - * The user isn't enabled for Unified Messaging - */ - ErrorUserNotUnifiedMessagingEnabled, - - // ErrorUserWithoutFederatedProxyAddress - /** - * The user doesn't have an SMTP proxy address from a federated domain. - */ - ErrorUserWithoutFederatedProxyAddress, - - // ErrorValueOutOfRange - /** - * The value is out of range. - */ - ErrorValueOutOfRange, - - // ErrorVirusDetected - /** - * Virus detected in the message. - */ - ErrorVirusDetected, - - // ErrorVirusMessageDeleted - /** - * The item has been deleted as a result of a virus scan. - */ - ErrorVirusMessageDeleted, - - // ErrorVoiceMailNotImplemented - /** - * The Voice Mail distinguished folder is not implemented. - */ - ErrorVoiceMailNotImplemented, - - // ErrorWebRequestInInvalidState - /** - * ErrorWebRequestInInvalidState - */ - ErrorWebRequestInInvalidState, - - // ErrorWin32InteropError - /** - * ErrorWin32InteropError - */ - ErrorWin32InteropError, - - // ErrorWorkingHoursSaveFailed - /** - * ErrorWorkingHoursSaveFailed - */ - ErrorWorkingHoursSaveFailed, - - // ErrorWorkingHoursXmlMalformed - /** - * ErrorWorkingHoursXmlMalformed - */ - ErrorWorkingHoursXmlMalformed, - - // ErrorWrongServerVersion - /** - * The Client Access server version doesn't match the Mailbox server version - * of the resource that was being accessed. To determine the correct URL to - * use to access the resource, use Autodiscover with the address of the - * resource. - */ - ErrorWrongServerVersion, - - // ErrorWrongServerVersionDelegate - /** - * The mailbox of the authenticating user and the mailbox of the resource - * being accessed must have the same Mailbox server version. - */ - ErrorWrongServerVersionDelegate, + // NoError. Indicates that an error has not occurred. + /** + * The No error. + */ + NoError, + + // ErrorAccessDenied + /** + * The Error access denied. + */ + ErrorAccessDenied, + + // ErrorAccessModeSpecified + /** + * The impersonation authentication header should not be included. + */ + ErrorAccessModeSpecified, + + // ErrorAccountDisabled + /** + * The Error account disabled. + */ + ErrorAccountDisabled, + + // ErrorAddDelegatesFailed + /** + * The Error add delegates failed. + */ + ErrorAddDelegatesFailed, + + // ErrorAddressSpaceNotFound + /** + * ErrorAddressSpaceNotFound + */ + ErrorAddressSpaceNotFound, + + // ErrorADOperation + /** + * The Error ad operation. + */ + ErrorADOperation, + + // ErrorADSessionFilter + /** + * The Error ad session filter. + */ + ErrorADSessionFilter, + + // ErrorADUnavailable + /** + * The Error ad unavailable. + */ + ErrorADUnavailable, + + // ErrorAffectedTaskOccurrencesRequired + /** + * The Error affected task occurrences required. + */ + ErrorAffectedTaskOccurrencesRequired, + + /** + * The conversation action alwayscategorize or alwaysmove or alwaysdelete + * has failed. + */ + ErrorApplyConversationActionFailed, + + /** + * The item has attachment at more than the maximum supported nest level. + */ + ErrorAttachmentNestLevelLimitExceeded, + + // ErrorAttachmentSizeLimitExceeded + /** + * The Error attachment size limit exceeded. + */ + ErrorAttachmentSizeLimitExceeded, + + // ErrorAutoDiscoverFailed + /** + * The Error auto discover failed. + */ + ErrorAutoDiscoverFailed, + + // ErrorAvailabilityConfigNotFound + /** + * The Error availability config not found. + */ + ErrorAvailabilityConfigNotFound, + + // ErrorBatchProcessingStopped + /** + * The Error batch processing stopped. + */ + ErrorBatchProcessingStopped, + + // ErrorCalendarCannotMoveOrCopyOccurrence + /** + * The Error calendar cannot move or copy occurrence. + */ + ErrorCalendarCannotMoveOrCopyOccurrence, + + // ErrorCalendarCannotUpdateDeletedItem + /** + * The Error calendar cannot update deleted item. + */ + ErrorCalendarCannotUpdateDeletedItem, + + // ErrorCalendarCannotUseIdForOccurrenceId + /** + * The Error calendar cannot use id for occurrence id. + */ + ErrorCalendarCannotUseIdForOccurrenceId, + + // ErrorCalendarCannotUseIdForRecurringMasterId + /** + * The Error calendar cannot use id for recurring master id. + */ + ErrorCalendarCannotUseIdForRecurringMasterId, + + // ErrorCalendarDurationIsTooLong + /** + * The Error calendar duration is too long. + */ + ErrorCalendarDurationIsTooLong, + + // ErrorCalendarEndDateIsEarlierThanStartDate + /** + * The Error calendar end date is earlier than start date. + */ + ErrorCalendarEndDateIsEarlierThanStartDate, + + // ErrorCalendarFolderIsInvalidForCalendarView + /** + * The Error calendar folder is invalid for calendar view. + */ + ErrorCalendarFolderIsInvalidForCalendarView, + + // ErrorCalendarInvalidAttributeValue + /** + * The Error calendar invalid attribute value. + */ + ErrorCalendarInvalidAttributeValue, + + // ErrorCalendarInvalidDayForTimeChangePattern + /** + * The Error calendar invalid day for time change pattern. + */ + ErrorCalendarInvalidDayForTimeChangePattern, + + // ErrorCalendarInvalidDayForWeeklyRecurrence + /** + * The Error calendar invalid day for weekly recurrence. + */ + ErrorCalendarInvalidDayForWeeklyRecurrence, + + // ErrorCalendarInvalidPropertyState + /** + * The Error calendar invalid property state. + */ + ErrorCalendarInvalidPropertyState, + + // ErrorCalendarInvalidPropertyValue + /** + * The Error calendar invalid property value. + */ + ErrorCalendarInvalidPropertyValue, + + // ErrorCalendarInvalidRecurrence + /** + * The Error calendar invalid recurrence. + */ + ErrorCalendarInvalidRecurrence, + + // ErrorCalendarInvalidTimeZone + /** + * The Error calendar invalid time zone. + */ + ErrorCalendarInvalidTimeZone, + + // ErrorCalendarIsCancelledForAccept + /** + * The Error calendar is cancelled for accept. + */ + ErrorCalendarIsCancelledForAccept, + + // ErrorCalendarIsCancelledForDecline + /** + * The Error calendar is cancelled for decline. + */ + ErrorCalendarIsCancelledForDecline, + + // ErrorCalendarIsCancelledForRemove + /** + * The Error calendar is cancelled for remove. + */ + ErrorCalendarIsCancelledForRemove, + + // ErrorCalendarIsCancelledForTentative + /** + * The Error calendar is cancelled for tentative. + */ + ErrorCalendarIsCancelledForTentative, + + // ErrorCalendarIsDelegatedForAccept + /** + * The Error calendar is delegated for accept. + */ + ErrorCalendarIsDelegatedForAccept, + + // ErrorCalendarIsDelegatedForDecline + /** + * The Error calendar is delegated for decline. + */ + ErrorCalendarIsDelegatedForDecline, + + // ErrorCalendarIsDelegatedForRemove + /** + * The Error calendar is delegated for remove. + */ + ErrorCalendarIsDelegatedForRemove, + + // ErrorCalendarIsDelegatedForTentative + /** + * The Error calendar is delegated for tentative. + */ + ErrorCalendarIsDelegatedForTentative, + + // ErrorCalendarIsNotOrganizer + /** + * The Error calendar is not organizer. + */ + ErrorCalendarIsNotOrganizer, + + // ErrorCalendarIsOrganizerForAccept + /** + * The Error calendar is organizer for accept. + */ + ErrorCalendarIsOrganizerForAccept, + + // ErrorCalendarIsOrganizerForDecline + /** + * The Error calendar is organizer for decline. + */ + ErrorCalendarIsOrganizerForDecline, + + // ErrorCalendarIsOrganizerForRemove + /** + * The Error calendar is organizer for remove. + */ + ErrorCalendarIsOrganizerForRemove, + + // ErrorCalendarIsOrganizerForTentative + /** + * The Error calendar is organizer for tentative. + */ + ErrorCalendarIsOrganizerForTentative, + + // ErrorCalendarMeetingRequestIsOutOfDate + /** + * The Error calendar meeting request is out of date. + */ + ErrorCalendarMeetingRequestIsOutOfDate, + + // ErrorCalendarOccurrenceIndexIsOutOfRecurrenceRange + /** + * The Error calendar occurrence index is out of recurrence range. + */ + ErrorCalendarOccurrenceIndexIsOutOfRecurrenceRange, + + // ErrorCalendarOccurrenceIsDeletedFromRecurrence + /** + * The Error calendar occurrence is deleted from recurrence. + */ + ErrorCalendarOccurrenceIsDeletedFromRecurrence, + + // ErrorCalendarOutOfRange + /** + * The Error calendar out of range. + */ + ErrorCalendarOutOfRange, + + // ErrorCalendarViewRangeTooBig + /** + * The Error calendar view range too big. + */ + ErrorCalendarViewRangeTooBig, + + // ErrorCallerIsInvalidADAccount + /** + * The Error caller is invalid ad account. + */ + ErrorCallerIsInvalidADAccount, + + // ErrorCannotCreateCalendarItemInNonCalendarFolder + /** + * The Error cannot create calendar item in non calendar folder. + */ + ErrorCannotCreateCalendarItemInNonCalendarFolder, + + // ErrorCannotCreateContactInNonContactFolder + /** + * The Error cannot create contact in non contact folder. + */ + ErrorCannotCreateContactInNonContactFolder, + + // ErrorCannotCreatePostItemInNonMailFolder + /** + * The Error cannot create post item in non mail folder. + */ + ErrorCannotCreatePostItemInNonMailFolder, + + // ErrorCannotCreateTaskInNonTaskFolder + /** + * The Error cannot create task in non task folder. + */ + ErrorCannotCreateTaskInNonTaskFolder, + + // ErrorCannotDeleteObject + /** + * The Error cannot delete object. + */ + ErrorCannotDeleteObject, + + // ErrorCannotDeleteTaskOccurrence + /** + * The Error cannot delete task occurrence. + */ + ErrorCannotDeleteTaskOccurrence, + + /** + * Folder cannot be emptied. + */ + ErrorCannotEmptyFolder, + + // ErrorCannotOpenFileAttachment + /** + * The Error cannot open file attachment. + */ + ErrorCannotOpenFileAttachment, + + // ErrorCannotSetCalendarPermissionOnNonCalendarFolder + /** + * The Error cannot set calendar permission on non calendar folder. + */ + ErrorCannotSetCalendarPermissionOnNonCalendarFolder, + + // ErrorCannotSetNonCalendarPermissionOnCalendarFolder + /** + * The Error cannot set non calendar permission on calendar folder. + */ + ErrorCannotSetNonCalendarPermissionOnCalendarFolder, + + // ErrorCannotSetPermissionUnknownEntries + /** + * The Error cannot set permission unknown entries. + */ + ErrorCannotSetPermissionUnknownEntries, + + // ErrorCannotUseFolderIdForItemId + /** + * The Error cannot use folder id for item id. + */ + ErrorCannotUseFolderIdForItemId, + + // ErrorCannotUseItemIdForFolderId + /** + * The Error cannot use item id for folder id. + */ + ErrorCannotUseItemIdForFolderId, + + // ErrorChangeKeyRequired + /** + * The Error change key required. + */ + ErrorChangeKeyRequired, + + // ErrorChangeKeyRequiredForWriteOperations + /** + * The Error change key required for write operations. + */ + ErrorChangeKeyRequiredForWriteOperations, + + /** + * ErrorClientDisconnected + */ + ErrorClientDisconnected, + + // ErrorConnectionFailed + /** + * The Error connection failed. + */ + ErrorConnectionFailed, + + // ErrorContainsFilterWrongType + /** + * The Error contains filter wrong type. + */ + ErrorContainsFilterWrongType, + + // ErrorContentConversionFailed + /** + * The Error content conversion failed. + */ + ErrorContentConversionFailed, + + // ErrorCorruptData + /** + * The Error corrupt data. + */ + ErrorCorruptData, + + // ErrorCreateItemAccessDenied + /** + * The Error create item access denied. + */ + ErrorCreateItemAccessDenied, + + // ErrorCreateManagedFolderPartialCompletion + /** + * The Error create managed folder partial completion. + */ + ErrorCreateManagedFolderPartialCompletion, + + // ErrorCreateSubfolderAccessDenied + /** + * The Error create subfolder access denied. + */ + ErrorCreateSubfolderAccessDenied, + + // ErrorCrossMailboxMoveCopy + /** + * The Error cross mailbox move copy. + */ + ErrorCrossMailboxMoveCopy, + + // ErrorCrossSiteRequest + /** + * The Error cross site request. + */ + ErrorCrossSiteRequest, + + // ErrorDataSizeLimitExceeded + /** + * The Error data size limit exceeded. + */ + ErrorDataSizeLimitExceeded, + + // ErrorDataSourceOperation + /** + * The Error data source operation. + */ + ErrorDataSourceOperation, + + // ErrorDelegateAlreadyExists + /** + * The Error delegate already exists. + */ + ErrorDelegateAlreadyExists, + + // ErrorDelegateCannotAddOwner + /** + * The Error delegate cannot add owner. + */ + ErrorDelegateCannotAddOwner, + + // ErrorDelegateMissingConfiguration + /** + * The Error delegate missing configuration. + */ + ErrorDelegateMissingConfiguration, + + // ErrorDelegateNoUser + /** + * The Error delegate no user. + */ + ErrorDelegateNoUser, + + // ErrorDelegateValidationFailed + /** + * The Error delegate validation failed. + */ + ErrorDelegateValidationFailed, + + // ErrorDeleteDistinguishedFolder + /** + * The Error delete distinguished folder. + */ + ErrorDeleteDistinguishedFolder, + + // ErrorDeleteItemsFailed + /** + * The Error delete items failed. + */ + ErrorDeleteItemsFailed, + + // ErrorDistinguishedUserNotSupported + /** + * The Error distinguished user not supported. + */ + ErrorDistinguishedUserNotSupported, + + // ErrorDistributionListMemberNotExist + /** + * The Error distribution list member not exist. + */ + ErrorDistributionListMemberNotExist, + + // ErrorDuplicateInputFolderNames + /** + * The Error duplicate input folder names. + */ + ErrorDuplicateInputFolderNames, + + // ErrorDuplicateSOAPHeader + /** + * The Error duplicate soap header. + */ + ErrorDuplicateSOAPHeader, + + // ErrorDuplicateUserIdsSpecified + /** + * The Error duplicate user ids specified. + */ + ErrorDuplicateUserIdsSpecified, + + // ErrorEmailAddressMismatch + /** + * The Error email address mismatch. + */ + ErrorEmailAddressMismatch, + + // ErrorEventNotFound + /** + * The Error event not found. + */ + ErrorEventNotFound, + + // ErrorExceededConnectionCount + /** + * The Error exceeded connection count. + */ + ErrorExceededConnectionCount, + + // ErrorExceededFindCountLimmit + /** + * The Error exceeded find count limit. + */ + ErrorExceededFindCountLimit, + + // ErrorExceededSubscritionCount + /** + * The Error exceeded subscription count. + */ + ErrorExceededSubscriptionCount, + + // ErrorExpiredSubscription + /** + * The Error expired subscription. + */ + ErrorExpiredSubscription, + + // ErrorFolderCorrupt + /** + * The Error folder corrupt. + */ + ErrorFolderCorrupt, + + // ErrorFolderExists + /** + * The Error folder exists. + */ + ErrorFolderExists, + + // ErrorFolderNotFound + /** + * The specified folder could not be found in the store. + */ + ErrorFolderNotFound, + + // ErrorFolderPropertRequestFailed + /** + * ErrorFolderPropertRequestFailed + */ + ErrorFolderPropertRequestFailed, + + // ErrorFolderSave + /** + * The folder save operation did not succeed. + */ + ErrorFolderSave, + + // ErrorFolderSaveFailed + /** + * The save operation failed or partially succeeded. + */ + ErrorFolderSaveFailed, + + // ErrorFolderSavePropertyError + /** + * The folder save operation failed due to invalid property values. + */ + ErrorFolderSavePropertyError, + + // ErrorFreeBusyDLLimitReached + /** + * ErrorFreeBusyDLLimitReached + */ + ErrorFreeBusyDLLimitReached, + + // ErrorFreeBusyGenerationFailed + /** + * ErrorFreeBusyGenerationFailed + */ + ErrorFreeBusyGenerationFailed, + + // ErrorGetServerSecurityDescriptorFailed + /** + * ErrorGetServerSecurityDescriptorFailed + */ + ErrorGetServerSecurityDescriptorFailed, + + // ErrorImpersonateUserDenied + /** + * The account does not have permission to impersonate the requested user. + */ + ErrorImpersonateUserDenied, + + // ErrorImpersonationDenied + /** + * ErrorImpersonationDenied + */ + ErrorImpersonationDenied, + + // ErrorImpersonationFailed + /** + * Impersonation failed. + */ + ErrorImpersonationFailed, + + // ErrorInboxRulesValidationError + /** + * ErrorInboxRulesValidationError + */ + ErrorInboxRulesValidationError, + + // ErrorIncorrectSchemaVersion + /** + * The request is valid but does not specify the correct server version in + * the RequestServerVersion SOAP header. Ensure that the + * RequestServerVersion SOAP header is set with the correct + * RequestServerVersionValue. + */ + ErrorIncorrectSchemaVersion, + + // ErrorIncorrectUpdatePropertyCount + /** + * An object within a change description must contain one and only one + * property to modify. + */ + ErrorIncorrectUpdatePropertyCount, + + // ErrorIndividualMailboxLimitReached + /** + * ErrorIndividualMailboxLimitReached + */ + ErrorIndividualMailboxLimitReached, + + // ErrorInsufficientResources + /** + * Resources are unavailable. Try again later. + */ + ErrorInsufficientResources, + + // ErrorInternalServerError + /** + * An internal server error occurred. The operation failed. + */ + ErrorInternalServerError, + + // ErrorInternalServerTransientError + /** + * An internal server error occurred. Try again later. + */ + ErrorInternalServerTransientError, + + // ErrorInvalidAccessLevel + /** + * ErrorInvalidAccessLevel + */ + ErrorInvalidAccessLevel, + + // ErrorInvalidArgument + /** + * ErrorInvalidArgument + */ + ErrorInvalidArgument, + + // ErrorInvalidAttachmentId + /** + * The specified attachment Id is invalid. + */ + ErrorInvalidAttachmentId, + + // ErrorInvalidAttachmentSubfilter + /** + * Attachment subfilters must have a single TextFilter therein. + */ + ErrorInvalidAttachmentSubfilter, + + // ErrorInvalidAttachmentSubfilterTextFilter + /** + * Attachment subfilters must have a single TextFilter on the display name + * only. + */ + ErrorInvalidAttachmentSubfilterTextFilter, + + // ErrorInvalidAuthorizationContext + /** + * ErrorInvalidAuthorizationContext + */ + ErrorInvalidAuthorizationContext, + + // ErrorInvalidChangeKey + /** + * The change key is invalid. + */ + ErrorInvalidChangeKey, + + // ErrorInvalidClientSecurityContext + /** + * ErrorInvalidClientSecurityContext + */ + ErrorInvalidClientSecurityContext, + + // ErrorInvalidCompleteDate + /** + * CompleteDate cannot be set to a date in the future. + */ + ErrorInvalidCompleteDate, + + // ErrorInvalidContactEmailAddress + /** + * The e-mail address that was supplied isn't valid. + */ + ErrorInvalidContactEmailAddress, + + // ErrorInvalidContactEmailIndex + /** + * The e-mail index supplied isn't valid. + */ + ErrorInvalidContactEmailIndex, + + // ErrorInvalidCrossForestCredentials + /** + * ErrorInvalidCrossForestCredentials + */ + ErrorInvalidCrossForestCredentials, + + /** + * Invalid Delegate Folder Permission. + */ + ErrorInvalidDelegatePermission, + + /** + * One or more UserId parameters are invalid. Make sure that the + * PrimarySmtpAddress, Sid and DisplayName properties refer to the same user + * when specified. + */ + ErrorInvalidDelegateUserId, + + /** + * An ExchangeImpersonation SOAP header must contain a user principal name, + * user SID, or primary SMTP address. + */ + ErrorInvalidExchangeImpersonationHeaderData, + + /** + * Second operand in Excludes expression must be uint compatible. + */ + ErrorInvalidExcludesRestriction, + + /** + * FieldURI can only be used in Contains expressions. + */ + ErrorInvalidExpressionTypeForSubFilter, + + /** + * The extended property attribute combination is invalid. + */ + ErrorInvalidExtendedProperty, + + /** + * The extended property value is inconsistent with its type. + */ + ErrorInvalidExtendedPropertyValue, + + /** + * The original sender of the message (initiator field in the sharing + * metadata) is not valid. + */ + ErrorInvalidExternalSharingInitiator, + + /** + * The sharing message is not intended for this caller. + */ + ErrorInvalidExternalSharingSubscriber, + + /** + * The organization is either not federated, or it's configured incorrectly. + */ + ErrorInvalidFederatedOrganizationId, + + /** + * Folder Id is invalid. + */ + ErrorInvalidFolderId, + + /** + * ErrorInvalidFolderTypeForOperation + */ + ErrorInvalidFolderTypeForOperation, + + /** + * Invalid fractional paging offset values. + */ + ErrorInvalidFractionalPagingParameters, + + /** + * ErrorInvalidFreeBusyViewType + */ + ErrorInvalidFreeBusyViewType, + + /** + * Either DataType or SharedFolderId must be specified, but not both. + */ + ErrorInvalidGetSharingFolderRequest, + + // ErrorInvalidId + /** + * The Error invalid id. + */ + ErrorInvalidId, + + /** + * Id must be non-empty. + */ + ErrorInvalidIdEmpty, + + /** + * Id is malformed. + */ + ErrorInvalidIdMalformed, + + /** + * The EWS Id is in EwsLegacyId format which is not supported by the + * Exchange version specified by your request. Please use the ConvertId + * method to convert from EwsLegacyId to EwsId format. + */ + ErrorInvalidIdMalformedEwsLegacyIdFormat, + + /** + * Moniker exceeded allowable length. + */ + ErrorInvalidIdMonikerTooLong, + + /** + * The Id does not represent an item attachment. + */ + ErrorInvalidIdNotAnItemAttachmentId, + + /** + * ResolveNames returned an invalid Id. + */ + ErrorInvalidIdReturnedByResolveNames, + + /** + * Id exceeded allowable length. + */ + ErrorInvalidIdStoreObjectIdTooLong, + + /** + * Too many attachment levels. + */ + ErrorInvalidIdTooManyAttachmentLevels, + + /** + * The Id Xml is invalid. + */ + ErrorInvalidIdXml, + + /** + * The specified indexed paging values are invalid. + */ + ErrorInvalidIndexedPagingParameters, + + /** + * Only one child node is allowed when setting an Internet Message Header. + */ + ErrorInvalidInternetHeaderChildNodes, + + /** + * Item type is invalid for AcceptItem action. + */ + ErrorInvalidItemForOperationAcceptItem, + + /** + * Item type is invalid for CancelCalendarItem action. + */ + ErrorInvalidItemForOperationCancelItem, + + /** + * Item type is invalid for CreateItem operation. + */ + ErrorInvalidItemForOperationCreateItem, + + /** + * Item type is invalid for CreateItemAttachment operation. + */ + ErrorInvalidItemForOperationCreateItemAttachment, + + /** + * Item type is invalid for DeclineItem operation. + */ + ErrorInvalidItemForOperationDeclineItem, + + /** + * ExpandDL operation does not support this item type. + */ + ErrorInvalidItemForOperationExpandDL, + + /** + * Item type is invalid for RemoveItem operation. + */ + ErrorInvalidItemForOperationRemoveItem, + + /** + * Item type is invalid for SendItem operation. + */ + ErrorInvalidItemForOperationSendItem, + + /** + * The item of this type is invalid for TentativelyAcceptItem action. + */ + ErrorInvalidItemForOperationTentative, + + /** + * The logon type isn't valid. + */ + ErrorInvalidLogonType, + + /** + * Mailbox is invalid. Verify the specified Mailbox property. + */ + ErrorInvalidMailbox, + + /** + * The Managed Folder property is corrupt or otherwise invalid. + */ + ErrorInvalidManagedFolderProperty, + + /** + * The managed folder has an invalid quota. + */ + ErrorInvalidManagedFolderQuota, + + /** + * The managed folder has an invalid storage limit value. + */ + ErrorInvalidManagedFolderSize, + + /** + * ErrorInvalidMergedFreeBusyInterval + */ + ErrorInvalidMergedFreeBusyInterval, + + /** + * The specified value is not a valid name for name resolution. + */ + ErrorInvalidNameForNameResolution, + + /** + * ErrorInvalidNetworkServiceContext + */ + ErrorInvalidNetworkServiceContext, + + /** + * ErrorInvalidOofParameter + */ + ErrorInvalidOofParameter, + + /** + * ErrorInvalidOperation + */ + ErrorInvalidOperation, + + /** + * ErrorInvalidOrganizationRelationshipForFreeBusy + */ + ErrorInvalidOrganizationRelationshipForFreeBusy, + + /** + * MaxEntriesReturned must be greater than zero. + */ + ErrorInvalidPagingMaxRows, + + /** + * Cannot create a subfolder within a SearchFolder. + */ + ErrorInvalidParentFolder, + + /** + * PercentComplete must be an integer between 0 and 100. + */ + ErrorInvalidPercentCompleteValue, + + /** + * The permission settings were not valid. + */ + ErrorInvalidPermissionSettings, + + /** + * The phone call ID isn't valid. + */ + ErrorInvalidPhoneCallId, + + /** + * The phone number isn't valid. + */ + ErrorInvalidPhoneNumber, + + /** + * The append action is not supported for this property. + */ + ErrorInvalidPropertyAppend, + + /** + * The delete action is not supported for this property. + */ + ErrorInvalidPropertyDelete, + + /** + * Property cannot be used in Exists expression. Use IsEqualTo instead. + */ + ErrorInvalidPropertyForExists, + + /** + * Property is not valid for this operation. + */ + ErrorInvalidPropertyForOperation, + + /** + * Property is not valid for this object type. + */ + ErrorInvalidPropertyRequest, + + /** + * Set action is invalid for property. + */ + ErrorInvalidPropertySet, + + // / + // / Update operation is invalid for property of a sent message. + // / + ErrorInvalidPropertyUpdateSentMessage, + + // / + // / The proxy security context is invalid. + // / + ErrorInvalidProxySecurityContext, + + // / + // / SubscriptionId is invalid. Subscription is not a pull subscription. + // / + ErrorInvalidPullSubscriptionId, + + // / + // / URL specified for push subscription is invalid. + // / + ErrorInvalidPushSubscriptionUrl, + + // / + // / One or more recipients are invalid. + // / + ErrorInvalidRecipients, + + // / + // / Recipient subfilters are only supported when + // /there are two expressions within a single + // / AND filter. + // / + ErrorInvalidRecipientSubfilter, + + // / + // / Recipient subfilter must have a comparison filter + // /that tests equality to recipient type + // / or attendee type. + // / + ErrorInvalidRecipientSubfilterComparison, + + // / + // / Recipient subfilters must have a text filter + // /and a comparison filter in that order. + // / + ErrorInvalidRecipientSubfilterOrder, + + // / + // / Recipient subfilter must have a TextFilter on the SMTP address only. + // / + ErrorInvalidRecipientSubfilterTextFilter, + + // / + // / The reference item does not support the requested operation. + // / + ErrorInvalidReferenceItem, + + // / + // / The request is invalid. + // / + ErrorInvalidRequest, + + // / + // / The restriction is invalid. + // / + ErrorInvalidRestriction, + + // / + // / The routing type format is invalid. + // / + ErrorInvalidRoutingType, + + // / + // / ErrorInvalidScheduledOofDuration + // / + ErrorInvalidScheduledOofDuration, + + // / + // / The mailbox that was requested doesn't support + // /the specified RequestServerVersion. + // / + ErrorInvalidSchemaVersionForMailboxVersion, + + // / + // / ErrorInvalidSecurityDescriptor + // / + ErrorInvalidSecurityDescriptor, + + // / + // / Invalid combination of SaveItemToFolder + // /attribute and SavedItemFolderId element. + // / + ErrorInvalidSendItemSaveSettings, + + // / + // / Invalid serialized access token. + // / + ErrorInvalidSerializedAccessToken, + + // / + // / The specified server version is invalid. + // / + ErrorInvalidServerVersion, + + // / + // / The sharing message metadata is not valid. + // / + ErrorInvalidSharingData, + + // / + // / The sharing message is not valid. + // / + ErrorInvalidSharingMessage, + + // / + // / A SID with an invalid format was encountered. + // / + ErrorInvalidSid, + + // / + // / The SIP address isn't valid. + // / + ErrorInvalidSIPUri, + + // / + // / The SMTP address format is invalid. + // / + ErrorInvalidSmtpAddress, + + // / + // / Invalid subFilterType. + // / + ErrorInvalidSubfilterType, + + // / + // / SubFilterType is not attendee type. + // / + ErrorInvalidSubfilterTypeNotAttendeeType, + + // / + // / SubFilterType is not recipient type. + // / + ErrorInvalidSubfilterTypeNotRecipientType, + + // / + // / Subscription is invalid. + // / + ErrorInvalidSubscription, + + // / + // / A subscription can only be established on + // /a single public folder or on folders from a + // / single mailbox. + // / + ErrorInvalidSubscriptionRequest, + + // / + // / Synchronization state data is corrupt or otherwise invalid. + // / + ErrorInvalidSyncStateData, + + // / + // / ErrorInvalidTimeInterval + // / + ErrorInvalidTimeInterval, + + // / + // / A UserId was not valid. + // / + ErrorInvalidUserInfo, + + // / + // / ErrorInvalidUserOofSettings + // / + ErrorInvalidUserOofSettings, + + // / + // / The impersonation principal name is invalid. + // / + ErrorInvalidUserPrincipalName, + + // / + // / The user SID is invalid or does not map + // /to a user in the Active Directory. + // / + ErrorInvalidUserSid, + + // / + // / ErrorInvalidUserSidMissingUPN + // / + ErrorInvalidUserSidMissingUPN, + + // / + // / The specified value is invalid for property. + // / + ErrorInvalidValueForProperty, + + // / + // / The watermark is invalid. + // / + ErrorInvalidWatermark, + + // / + // / A valid IP gateway couldn't be found. + // / + ErrorIPGatewayNotFound, + + // / + // / The send or update operation could not be + // /performed because the change key passed in the + // / request does not match the current change key for the item. + // / + ErrorIrresolvableConflict, + + // / + // / The item is corrupt. + // / + ErrorItemCorrupt, + + // / + // / The specified object was not found in the store. + // / + ErrorItemNotFound, + + // / + // / One or more of the properties requested for + // /this item could not be retrieved. + // / + ErrorItemPropertyRequestFailed, + + // / + // / The item save operation did not succeed. + // / + ErrorItemSave, + + // / + // / Item save operation did not succeed. + // / + ErrorItemSavePropertyError, + + // / + // / ErrorLegacyMailboxFreeBusyViewTypeNotMerged + // / + ErrorLegacyMailboxFreeBusyViewTypeNotMerged, + + // / + // / ErrorLocalServerObjectNotFound + // / + ErrorLocalServerObjectNotFound, + + // / + // / ErrorLogonAsNetworkServiceFailed + // / + ErrorLogonAsNetworkServiceFailed, + + // / + // / Unable to access an account or mailbox. + // / + ErrorMailboxConfiguration, + + // / + // / ErrorMailboxDataArrayEmpty + // / + ErrorMailboxDataArrayEmpty, + + // / + // / ErrorMailboxDataArrayTooBig + // / + ErrorMailboxDataArrayTooBig, + + // / + // / ErrorMailboxFailover + // / + ErrorMailboxFailover, + + // / + // / ErrorMailboxLogonFailed + // / + ErrorMailboxLogonFailed, + + // / + // / Mailbox move in progress. Try again later. + // / + ErrorMailboxMoveInProgress, + + // / + // / The mailbox database is temporarily unavailable. + // / + ErrorMailboxStoreUnavailable, + + // / + // / ErrorMailRecipientNotFound + // / + ErrorMailRecipientNotFound, + + // / + // / MailTips aren't available for your organization. + // / + ErrorMailTipsDisabled, + + // / + // / The specified Managed Folder already exists in the mailbox. + // / + ErrorManagedFolderAlreadyExists, + + // / + // / Unable to find the specified managed folder in the Active Directory. + // / + ErrorManagedFolderNotFound, + + // / + // / Failed to create or bind to the folder: Managed Folders + // / + ErrorManagedFoldersRootFailure, + + // / + // / ErrorMeetingSuggestionGenerationFailed + // / + ErrorMeetingSuggestionGenerationFailed, + + // / + // / MessageDisposition attribute is required. + // / + ErrorMessageDispositionRequired, + + // / + // / The message exceeds the maximum supported size. + // / + ErrorMessageSizeExceeded, + + // / + // / The domain specified in the tracking request doesn't exist. + // / + ErrorMessageTrackingNoSuchDomain, + + // / + // / The log search service can't track this message. + // / + ErrorMessageTrackingPermanentError, + + // / + // / The log search service isn't currently + // /available. Please try again later. + // / + ErrorMessageTrackingTransientError, + + // / + // / MIME content conversion failed. + // / + ErrorMimeContentConversionFailed, + + // / + // / Invalid MIME content. + // / + ErrorMimeContentInvalid, + + // / + // / Invalid base64 string for MIME content. + // / + ErrorMimeContentInvalidBase64String, + + // / + // / The subscription has missed events, + // /but will continue service on this connection. + // / + ErrorMissedNotificationEvents, + + // / + // / ErrorMissingArgument + // / + ErrorMissingArgument, + + // / + // / When making a request as an account that does + // /not have a mailbox, you must specify the + // / mailbox primary SMTP address for any distinguished folder Ids. + // / + ErrorMissingEmailAddress, + + // / + // / When making a request with an account that does not + // /have a mailbox, you must specify the + // / primary SMTP address for an existing mailbox. + // / + ErrorMissingEmailAddressForManagedFolder, + + // / + // / EmailAddress or ItemId must be included in the request. + // / + ErrorMissingInformationEmailAddress, + + // / + // / ReferenceItemId must be included in the request. + // / + ErrorMissingInformationReferenceItemId, + + // / + // / SharingFolderId must be included in the request. + // / + ErrorMissingInformationSharingFolderId, + + // / + // / An item must be specified when creating an item attachment. + // / + ErrorMissingItemForCreateItemAttachment, + + // / + // / The managed folder Id is missing. + // / + ErrorMissingManagedFolderId, + + // / + // / A message needs to have at least one recipient. + // / + ErrorMissingRecipients, + + // / + // / Missing information for delegate user. You must + // /either specify a valid SMTP address or + // / SID. + // / + ErrorMissingUserIdInformation, + + // / + // / Only one access mode header may be specified. + // / + ErrorMoreThanOneAccessModeSpecified, + + // / + // / The move or copy operation failed. + // / + ErrorMoveCopyFailed, + + // / + // / Cannot move distinguished folder. + // / + ErrorMoveDistinguishedFolder, + + // / + // / Multiple results were found. + // / + ErrorNameResolutionMultipleResults, + + // / + // / User must have a mailbox for name resolution operations. + // / + ErrorNameResolutionNoMailbox, + + // / + // / No results were found. + // / + ErrorNameResolutionNoResults, + + // / + // / Another connection was opened against this subscription. + // / + ErrorNewEventStreamConnectionOpened, + + // / + // / Exchange Web Services are not currently available + // /for this request because there are no + // / available Client Access Services Servers in the target AD Site. + // / + ErrorNoApplicableProxyCASServersAvailable, + + // / + // / ErrorNoCalendar + // / + ErrorNoCalendar, + + // / + // / Exchange Web Services aren't available for this + // /request because there is no Client Access + // / server with the necessary configuration in the + // /Active Directory site where the mailbox is + // / stored. If the problem continues, click Help. + // / + ErrorNoDestinationCASDueToKerberosRequirements, + + // / + // / Exchange Web Services aren't currently available + // /for this request because an SSL + // / connection couldn't be established to the Client + // /Access server that should be used for + // / mailbox access. If the problem continues, click Help. + // / + ErrorNoDestinationCASDueToSSLRequirements, + + // / + // / Exchange Web Services aren't currently available + // /for this request because the Client + // / Access server used for proxying has an older + // /version of Exchange installed than the + // / Client Access server in the mailbox Active Directory site. + // / + ErrorNoDestinationCASDueToVersionMismatch, + + // / + // / You cannot specify the FolderClass when creating a non-generic folder. + // / + ErrorNoFolderClassOverride, + + // / + // / ErrorNoFreeBusyAccess + // / + ErrorNoFreeBusyAccess, + + // / + // / Mailbox does not exist. + // / + ErrorNonExistentMailbox, + + // / + // / The primary SMTP address must be specified when referencing a mailbox. + // / + ErrorNonPrimarySmtpAddress, + + // / + // / Custom properties cannot be specified using + // /property tags. The GUID and Id/Name + // / combination must be used instead. + // / + ErrorNoPropertyTagForCustomProperties, + + // / + // / ErrorNoPublicFolderReplicaAvailable + // / + ErrorNoPublicFolderReplicaAvailable, + + // / + // / There are no public folder servers available. + // / + ErrorNoPublicFolderServerAvailable, + + // / + // / Exchange Web Services are not currently available + // /for this request because none of the + // / Client Access Servers in the destination site could process the + // request. + // / + ErrorNoRespondingCASInDestinationSite, + + // / + // / Policy does not allow granting of permissions to external users. + // / + ErrorNotAllowedExternalSharingByPolicy, + + // / + // / The user is not a delegate for the mailbox. + // / + ErrorNotDelegate, + + // / + // / There was not enough memory to complete the request. + // / + ErrorNotEnoughMemory, + + // / + // / The sharing message is not supported. + // / + ErrorNotSupportedSharingMessage, + + // / + // / Operation would change object type, which is not permitted. + // / + ErrorObjectTypeChanged, + + // / + // / Modified occurrence is crossing or overlapping adjacent occurrence. + // / + ErrorOccurrenceCrossingBoundary, + + // / + // / One occurrence of the recurring calendar item + // /overlaps with another occurrence of the + // / same calendar item. + // / + ErrorOccurrenceTimeSpanTooBig, + + // / + // / Operation not allowed with public folder root. + // / + ErrorOperationNotAllowedWithPublicFolderRoot, + + // / + // / Organization is not federated. + // / + ErrorOrganizationNotFederated, + + // / + // / ErrorOutlookRuleBlobExists + // / + ErrorOutlookRuleBlobExists, + + // / + // / You must specify the parent folder Id for this operation. + // / + ErrorParentFolderIdRequired, + + // / + // / The specified parent folder could not be found. + // / + ErrorParentFolderNotFound, + + // / + // / Password change is required. + // / + ErrorPasswordChangeRequired, + + // / + // / Password has expired. Change password. + // / + ErrorPasswordExpired, + + // / + // / Policy does not allow granting permission level to user. + // / + ErrorPermissionNotAllowedByPolicy, + + // / + // / Dialing restrictions are preventing the phone number + // /that was entered from being dialed. + // / + ErrorPhoneNumberNotDialable, + + // / + // / Property update did not succeed. + // / + ErrorPropertyUpdate, + + // / + // / At least one property failed validation. + // / + ErrorPropertyValidationFailure, + + // / + // / Subscription related request failed because EWS + // /could not contact the appropriate CAS + // / server for this request. If this problem persists, + // /recreate the subscription. + // / + ErrorProxiedSubscriptionCallFailure, + + // / + // / Request failed because EWS could not contact + // /the appropriate CAS server for this request. + // / + ErrorProxyCallFailed, + + // / + // / Exchange Web Services (EWS) is not available for + // /this mailbox because the user account + // / associated with the mailbox is a member of + // /too many groups. EWS limits the group + // / membership it can proxy between Client Access Service Servers to 3000. + // / + ErrorProxyGroupSidLimitExceeded, + + // / + // / ErrorProxyRequestNotAllowed + // / + ErrorProxyRequestNotAllowed, + + // / + // / ErrorProxyRequestProcessingFailed + // / + ErrorProxyRequestProcessingFailed, + + // / + // / Exchange Web Services are not currently + // /available for this mailbox because it could not + // / determine the Client Access Services Server to use for the mailbox. + // / + ErrorProxyServiceDiscoveryFailed, + + // / + // / Proxy token has expired. + // / + ErrorProxyTokenExpired, + + // / + // / ErrorPublicFolderRequestProcessingFailed + // / + ErrorPublicFolderRequestProcessingFailed, + + // / + // / ErrorPublicFolderServerNotFound + // / + ErrorPublicFolderServerNotFound, + + // / + // / The search folder has a restriction that is too long to return. + // / + ErrorQueryFilterTooLong, + + // / + // / Mailbox has exceeded maximum mailbox size. + // / + ErrorQuotaExceeded, + + // / + // / Unable to retrieve events for this subscription. + // /The subscription must be recreated. + // / + ErrorReadEventsFailed, + + // / + // / Unable to suppress read receipt. Read receipts are not pending. + // / + ErrorReadReceiptNotPending, + + // / + // / Recurrence end date can not exceed Sep 1, 4500 00:00:00. + // / + ErrorRecurrenceEndDateTooBig, + + // / + // / Recurrence has no occurrences in the specified range. + // / + ErrorRecurrenceHasNoOccurrence, + + // / + // / Failed to remove one or more delegates. + // / + ErrorRemoveDelegatesFailed, + + // / + // / ErrorRequestAborted + // / + ErrorRequestAborted, + + // / + // / ErrorRequestStreamTooBig + // / + ErrorRequestStreamTooBig, + + // / + // / Required property is missing. + // / + ErrorRequiredPropertyMissing, + + // / + // / Cannot perform ResolveNames for non-contact folder. + // / + ErrorResolveNamesInvalidFolderType, + + // / + // / Only one contacts folder can be specified in request. + // / + ErrorResolveNamesOnlyOneContactsFolderAllowed, + + // / + // / The response failed schema validation. + // / + ErrorResponseSchemaValidation, + + // / + // / The restriction or sort order is too complex for this operation. + // / + ErrorRestrictionTooComplex, + + // / + // / Restriction contained too many elements. + // / + ErrorRestrictionTooLong, + + // / + // / ErrorResultSetTooBig + // / + ErrorResultSetTooBig, + + // / + // / ErrorRulesOverQuota + // / + ErrorRulesOverQuota, + + // / + // / The folder in which items were to be saved could not be found. + // / + ErrorSavedItemFolderNotFound, + + // / + // / The request failed schema validation. + // / + ErrorSchemaValidation, + + // / + // / The search folder is not initialized. + // / + ErrorSearchFolderNotInitialized, + + // / + // / The user account which was used to submit this request + // /does not have the right to send + // / mail on behalf of the specified sending account. + // / + ErrorSendAsDenied, + + // / + // / SendMeetingCancellations attribute is required for Calendar items. + // / + ErrorSendMeetingCancellationsRequired, + + // / + // / The SendMeetingInvitationsOrCancellations attribute + // /is required for calendar items. + // / + ErrorSendMeetingInvitationsOrCancellationsRequired, + + // ErrorSendMeetingInvitationsRequired + /** + * The SendMeetingInvitations attribute is required for calendar items. + */ + ErrorSendMeetingInvitationsRequired, + + // ErrorSentMeetingRequestUpdate + /** + * The meeting request has already been sent and might not be updated. + */ + ErrorSentMeetingRequestUpdate, + + // ErrorSentTaskRequestUpdate + /** + * The task request has already been sent and may not be updated. + */ + ErrorSentTaskRequestUpdate, + + // ErrorServerBusy + /** + * The server cannot service this request right now. Try again later. + */ + ErrorServerBusy, + + // ErrorServiceDiscoveryFailed + /** + * ErrorServiceDiscoveryFailed + */ + ErrorServiceDiscoveryFailed, + + // ErrorSharingNoExternalEwsAvailable + /** + * No external Exchange Web Service URL available. + */ + ErrorSharingNoExternalEwsAvailable, + + // ErrorSharingSynchronizationFailed + /** + * Failed to synchronize the sharing folder. + */ + ErrorSharingSynchronizationFailed, + + // ErrorStaleObject + /** + * The current ChangeKey is required for this operation. + */ + ErrorStaleObject, + + // ErrorSubmissionQuotaExceeded + /** + * The message couldn't be sent because the sender's submission quota was + * exceeded. Please try again later. + */ + ErrorSubmissionQuotaExceeded, + + // ErrorSubscriptionAccessDenied + /** + * Access is denied. Only the subscription owner may access the + * subscription. + */ + ErrorSubscriptionAccessDenied, + + // ErrorSubscriptionDelegateAccessNotSupported + /** + * Subscriptions are not supported for delegate user access. + */ + ErrorSubscriptionDelegateAccessNotSupported, + + // ErrorSubscriptionNotFound + /** + * The specified subscription was not found. + */ + ErrorSubscriptionNotFound, + + // ErrorSubscriptionUnsubscribed + /** + * The StreamingSubscription was unsubscribed while the current connection + * was servicing it. + */ + ErrorSubscriptionUnsubscribed, + + // ErrorSyncFolderNotFound + /** + * The folder to be synchronized could not be found. + */ + ErrorSyncFolderNotFound, + + // ErrorTimeIntervalTooBig + /** + * ErrorTimeIntervalTooBig + */ + ErrorTimeIntervalTooBig, + + // ErrorTimeoutExpired + /** + * ErrorTimeoutExpired + */ + ErrorTimeoutExpired, + + // ErrorTimeZone + /** + * The time zone isn't valid. + */ + ErrorTimeZone, + + // ErrorToFolderNotFound + /** + * The specified target folder could not be found. + */ + ErrorToFolderNotFound, + + // ErrorTokenSerializationDenied + /** + * The requesting account does not have permission to serialize tokens. + */ + ErrorTokenSerializationDenied, + + // ErrorUnableToGetUserOofSettings + /** + * ErrorUnableToGetUserOofSettings + */ + ErrorUnableToGetUserOofSettings, + + // ErrorUnifiedMessagingDialPlanNotFound + /** + * A dial plan could not be found. + */ + ErrorUnifiedMessagingDialPlanNotFound, + + // ErrorUnifiedMessagingRequestFailed + /** + * The UnifiedMessaging request failed. + */ + ErrorUnifiedMessagingRequestFailed, + + // ErrorUnifiedMessagingServerNotFound + /** + * A connection couldn't be made to the Unified Messaging server. + */ + ErrorUnifiedMessagingServerNotFound, + + // ErrorUnsupportedCulture + /** + * The specified item culture is not supported on this server. + */ + ErrorUnsupportedCulture, + + // ErrorUnsupportedMapiPropertyType + /** + * The MAPI property type is not supported. + */ + ErrorUnsupportedMapiPropertyType, + + // ErrorUnsupportedMimeConversion + /** + * MIME conversion is not supported for this item type. + */ + ErrorUnsupportedMimeConversion, + + // ErrorUnsupportedPathForQuery + /** + * The property can not be used with this type of restriction. + */ + ErrorUnsupportedPathForQuery, + + // ErrorUnsupportedPathForSortGroup + /** + * The property can not be used for sorting or grouping results. + */ + ErrorUnsupportedPathForSortGroup, + + // ErrorUnsupportedPropertyDefinition + /** + * PropertyDefinition is not supported in searches. + */ + ErrorUnsupportedPropertyDefinition, + + // ErrorUnsupportedQueryFilter + /** + * QueryFilter type is not supported. + */ + ErrorUnsupportedQueryFilter, + + // ErrorUnsupportedRecurrence + /** + * The specified recurrence is not supported. + */ + ErrorUnsupportedRecurrence, + + // ErrorUnsupportedSubFilter + /** + * Unsupported subfilter type. + */ + ErrorUnsupportedSubFilter, + + // ErrorUnsupportedTypeForConversion + /** + * Unsupported type for restriction conversion. + */ + ErrorUnsupportedTypeForConversion, + + // ErrorUpdateDelegatesFailed + /** + * Failed to update one or more delegates. + */ + ErrorUpdateDelegatesFailed, + + // ErrorUpdatePropertyMismatch + /** + * Property for update does not match property in object. + */ + ErrorUpdatePropertyMismatch, + + // ErrorUserNotAllowedByPolicy + /** + * Policy does not allow granting permissions to user. + */ + ErrorUserNotAllowedByPolicy, + + // ErrorUserNotUnifiedMessagingEnabled + /** + * The user isn't enabled for Unified Messaging + */ + ErrorUserNotUnifiedMessagingEnabled, + + // ErrorUserWithoutFederatedProxyAddress + /** + * The user doesn't have an SMTP proxy address from a federated domain. + */ + ErrorUserWithoutFederatedProxyAddress, + + // ErrorValueOutOfRange + /** + * The value is out of range. + */ + ErrorValueOutOfRange, + + // ErrorVirusDetected + /** + * Virus detected in the message. + */ + ErrorVirusDetected, + + // ErrorVirusMessageDeleted + /** + * The item has been deleted as a result of a virus scan. + */ + ErrorVirusMessageDeleted, + + // ErrorVoiceMailNotImplemented + /** + * The Voice Mail distinguished folder is not implemented. + */ + ErrorVoiceMailNotImplemented, + + // ErrorWebRequestInInvalidState + /** + * ErrorWebRequestInInvalidState + */ + ErrorWebRequestInInvalidState, + + // ErrorWin32InteropError + /** + * ErrorWin32InteropError + */ + ErrorWin32InteropError, + + // ErrorWorkingHoursSaveFailed + /** + * ErrorWorkingHoursSaveFailed + */ + ErrorWorkingHoursSaveFailed, + + // ErrorWorkingHoursXmlMalformed + /** + * ErrorWorkingHoursXmlMalformed + */ + ErrorWorkingHoursXmlMalformed, + + // ErrorWrongServerVersion + /** + * The Client Access server version doesn't match the Mailbox server version + * of the resource that was being accessed. To determine the correct URL to + * use to access the resource, use Autodiscover with the address of the + * resource. + */ + ErrorWrongServerVersion, + + // ErrorWrongServerVersionDelegate + /** + * The mailbox of the authenticating user and the mailbox of the resource + * being accessed must have the same Mailbox server version. + */ + ErrorWrongServerVersionDelegate, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java index 268ebf994..c965dd9aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java @@ -15,11 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ enum ServiceErrorHandling { - // Service method should return the error(s). - /** The Return errors. */ - ReturnErrors, + // Service method should return the error(s). + /** + * The Return errors. + */ + ReturnErrors, - // Service method should throw exception when error occurs. - /** The Throw on error. */ - ThrowOnError + // Service method should throw exception when error occurs. + /** + * The Throw on error. + */ + ThrowOnError } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java index 9b287f825..54e1773d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java @@ -12,212 +12,202 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the Id of an Exchange object. - * */ public abstract class ServiceId extends ComplexProperty { - /** The change key. */ - private String changeKey; - - /** The unique id. */ - private String uniqueId; - - /** - * Initializes a new instance. - */ - protected ServiceId() { - super(); - } - - /** - * Initializes a new instance. - * - * @param uniqueId - * The unique id. - * @throws Exception - * the exception - */ - protected ServiceId(String uniqueId) throws Exception { - this(); - EwsUtilities.validateParam(uniqueId, "uniqueId"); - this.uniqueId = uniqueId; - } - - /** - * Read attributes from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.uniqueId = reader.readAttributeValue(XmlAttributeNames.Id); - this.changeKey = reader.readAttributeValue(XmlAttributeNames.ChangeKey); - - } - - /** - * Writes attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Id, this.getUniqueId()); - writer.writeAttributeValue(XmlAttributeNames.ChangeKey, this - .getChangeKey()); - } - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - protected abstract String getXmlElementName(); - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, this.getXmlElementName()); - } - - /** - * Assigns from existing id. - * - * @param source - * The source. - */ - protected void assign(ServiceId source) { - this.uniqueId = source.getUniqueId(); - this.changeKey = source.getChangeKey(); - } - - /** - * True if this instance is valid, false otherthise. - * - * @return true if this instance is valid; otherwise,false - */ - protected boolean isValid() { - return (null != this.uniqueId && !this.uniqueId.isEmpty()); - } - - /** - * Gets the unique Id of the Exchange object. - * - * @return unique Id of the Exchange object. - */ - public String getUniqueId() { - return uniqueId; - } - - /** - * Sets the unique Id of the Exchange object. - * - * @param uniqueId - * unique Id of the Exchange object. - */ - protected void setUniqueId(String uniqueId) { - this.uniqueId = uniqueId; - } - - /** - * Gets the change key associated with the Exchange object. The change key - * represents the version of the associated item or folder. - * - * @return change key associated with the Exchange object. - */ - public String getChangeKey() { - return changeKey; - } - - /** - * Sets the change key associated with the Exchange object. The change key - * represents the version of the associated item or folder. - * - * @param changeKey - * change key associated with the Exchange object. - */ - protected void setChangeKey(String changeKey) { - this.changeKey = changeKey; - } - - /** - * Determines whether two ServiceId instances are equal (including - * ChangeKeys). - * - * @param other - * The ServiceId to compare with the current ServiceId. - * @return true if equal otherwise false. - */ - public boolean sameIdAndChangeKey(ServiceId other) { - if (this.equals(other)) { - return ((this.getChangeKey() == null) && - (other.getChangeKey() == null)) || - this.getChangeKey().equals(other.getChangeKey()); - } else { - return false; - } - } - - /** - * Determines whether the specified instance is equal to the current - * instance. We do not consider the ChangeKey for ServiceId.Equals. - * - * @param obj - * The object to compare with the current instance - * @return true if the specified object is equal to the current instance, - * otherwise, false. - */ - @Override - public boolean equals(Object obj) { - if (super.equals(obj)) { - return true; - } else { - if (!(obj instanceof ServiceId)) { - return false; - } else { - ServiceId other = (ServiceId) obj; - if (!(this.isValid() && other.isValid())) { - return false; - } else { - return this.getUniqueId().equals(other.getUniqueId()); - } - } - } - } - - /** - * Serves as a hash function for a particular type. We do not consider the - * change key in the hash code computation. - * - * @return A hash code for the current - */ - @Override - public int hashCode() { - return this.isValid() ? this.getUniqueId().hashCode() : super - .hashCode(); - } - - /** - * Returns a string that represents the current instance. - * - * @return A string that represents the current instance. - */ - @Override - public String toString() { - return (this.uniqueId == null) ? "" : this.uniqueId; - } + /** + * The change key. + */ + private String changeKey; + + /** + * The unique id. + */ + private String uniqueId; + + /** + * Initializes a new instance. + */ + protected ServiceId() { + super(); + } + + /** + * Initializes a new instance. + * + * @param uniqueId The unique id. + * @throws Exception the exception + */ + protected ServiceId(String uniqueId) throws Exception { + this(); + EwsUtilities.validateParam(uniqueId, "uniqueId"); + this.uniqueId = uniqueId; + } + + /** + * Read attributes from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.uniqueId = reader.readAttributeValue(XmlAttributeNames.Id); + this.changeKey = reader.readAttributeValue(XmlAttributeNames.ChangeKey); + + } + + /** + * Writes attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Id, this.getUniqueId()); + writer.writeAttributeValue(XmlAttributeNames.ChangeKey, this + .getChangeKey()); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + protected abstract String getXmlElementName(); + + /** + * Writes to XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, this.getXmlElementName()); + } + + /** + * Assigns from existing id. + * + * @param source The source. + */ + protected void assign(ServiceId source) { + this.uniqueId = source.getUniqueId(); + this.changeKey = source.getChangeKey(); + } + + /** + * True if this instance is valid, false otherthise. + * + * @return true if this instance is valid; otherwise,false + */ + protected boolean isValid() { + return (null != this.uniqueId && !this.uniqueId.isEmpty()); + } + + /** + * Gets the unique Id of the Exchange object. + * + * @return unique Id of the Exchange object. + */ + public String getUniqueId() { + return uniqueId; + } + + /** + * Sets the unique Id of the Exchange object. + * + * @param uniqueId unique Id of the Exchange object. + */ + protected void setUniqueId(String uniqueId) { + this.uniqueId = uniqueId; + } + + /** + * Gets the change key associated with the Exchange object. The change key + * represents the version of the associated item or folder. + * + * @return change key associated with the Exchange object. + */ + public String getChangeKey() { + return changeKey; + } + + /** + * Sets the change key associated with the Exchange object. The change key + * represents the version of the associated item or folder. + * + * @param changeKey change key associated with the Exchange object. + */ + protected void setChangeKey(String changeKey) { + this.changeKey = changeKey; + } + + /** + * Determines whether two ServiceId instances are equal (including + * ChangeKeys). + * + * @param other The ServiceId to compare with the current ServiceId. + * @return true if equal otherwise false. + */ + public boolean sameIdAndChangeKey(ServiceId other) { + if (this.equals(other)) { + return ((this.getChangeKey() == null) && + (other.getChangeKey() == null)) || + this.getChangeKey().equals(other.getChangeKey()); + } else { + return false; + } + } + + /** + * Determines whether the specified instance is equal to the current + * instance. We do not consider the ChangeKey for ServiceId.Equals. + * + * @param obj The object to compare with the current instance + * @return true if the specified object is equal to the current instance, + * otherwise, false. + */ + @Override + public boolean equals(Object obj) { + if (super.equals(obj)) { + return true; + } else { + if (!(obj instanceof ServiceId)) { + return false; + } else { + ServiceId other = (ServiceId) obj; + if (!(this.isValid() && other.isValid())) { + return false; + } else { + return this.getUniqueId().equals(other.getUniqueId()); + } + } + } + } + + /** + * Serves as a hash function for a particular type. We do not consider the + * change key in the hash code computation. + * + * @return A hash code for the current + */ + @Override + public int hashCode() { + return this.isValid() ? this.getUniqueId().hashCode() : super + .hashCode(); + } + + /** + * Returns a string that represents the current instance. + * + * @return A string that represents the current instance. + */ + @Override + public String toString() { + return (this.uniqueId == null) ? "" : this.uniqueId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index 326562288..1decc50a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -16,33 +16,30 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceLocalException extends Exception { - /** - *ServiceLocalException Constructor. - */ - public ServiceLocalException() { - super(); - } + /** + * ServiceLocalException Constructor. + */ + public ServiceLocalException() { + super(); + } - /** - * ServiceLocalException Constructor. - * - * @param message - * the message - */ - public ServiceLocalException(String message) { - super(message); - } + /** + * ServiceLocalException Constructor. + * + * @param message the message + */ + public ServiceLocalException(String message) { + super(message); + } - /** - * ServiceLocalException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceLocalException(String message, Exception innerException) { - super(message, innerException); - } + /** + * ServiceLocalException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceLocalException(String message, Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java index c2f56c471..f5efe6c3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java @@ -16,641 +16,604 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base abstract class for all item and folder types. - * */ public abstract class ServiceObject { - /** The lock object. */ - private Object lockObject = new Object(); - - /** The service. */ - private ExchangeService service; - - /** The property bag. */ - private PropertyBag propertyBag; - - /** The xml element name. */ - private String xmlElementName; - - /** - * Triggers dispatch of the change event. - */ - protected void changed() { - - for (IServiceObjectChangedDelegate change : this.onChange) { - change.serviceObjectChanged(this); - } - } - - /** - * Throws exception if this is a new service object. - * - * @throws InvalidOperationException - * the invalid operation exception - * @throws ServiceLocalException - * the service local exception - */ - protected void throwIfThisIsNew() throws InvalidOperationException, - ServiceLocalException { - if (this.isNew()) { - throw new InvalidOperationException(Strings. - ServiceObjectDoesNotHaveId); - } - } - - /** - * Throws exception if this is not a new service object. - * - * @throws InvalidOperationException - * the invalid operation exception - * @throws ServiceLocalException - * the service local exception - */ - protected void throwIfThisIsNotNew() throws InvalidOperationException, - ServiceLocalException { - if (!this.isNew()) { - throw new InvalidOperationException(Strings. - ServiceObjectAlreadyHasId); - } - } - - // / This methods lets subclasses of ServiceObject override the default - // mechanism - // / by which the XML element name associated with their type is retrieved. - - /** - * This methods lets subclasses of ServiceObject override the default - * mechanism by which the XML element name associated with their type is - * retrieved. - * - * @return String - */ - protected String getXmlElementNameOverride() { - return null; - } - - /** - * GetXmlElementName retrieves the XmlElementName of this type based on the - * EwsObjectDefinition attribute that decorates it, if present. - * - * @return The XML element name associated with this type. - */ - protected String getXmlElementName() { - if (this.isNullOrEmpty(this.xmlElementName)) { - this.xmlElementName = this.getXmlElementNameOverride(); - if (this.isNullOrEmpty(this.xmlElementName)) { - synchronized (this.lockObject) { - - ServiceObjectDefinition annotation = this.getClass() - .getAnnotation(ServiceObjectDefinition.class); - if (null != annotation) { - this.xmlElementName = annotation.xmlElementName(); - } - } - } - } - EwsUtilities - .EwsAssert( - !isNullOrEmpty(this.xmlElementName), - "EwsObject.GetXmlElementName", - String - .format( - "The class %s does not have an " + - "associated XML element name.", - this.getClass().getName())); - - return this.xmlElementName; - } - - /** - * Gets the name of the change XML element. - * - * @return the change xml element name - */ - protected String getChangeXmlElementName() { - return XmlElementNames.ItemChange; - } - - /** - * Gets the name of the set field XML element. - * - * @return String - */ - protected String getSetFieldXmlElementName() { - return XmlElementNames.SetItemField; - } - - /** - * Gets the name of the delete field XML element. - * - * @return String - */ - protected String getDeleteFieldXmlElementName() { - return XmlElementNames.DeleteItemField; - } - - /** - * Gets a value indicating whether a time zone SOAP header should be emitted - * in a CreateItem or UpdateItem request so this item can be property saved - * or updated. - * - * @param isUpdateOperation - * the is update operation - * @return boolean - * @throws ServiceLocalException - * @throws Exception - */ - protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) throws ServiceLocalException, Exception { - return false; - } - - /** - * Determines whether properties defined with - * ScopedDateTimePropertyDefinition require custom time zone scoping. - * - * @return boolean - */ - protected boolean getIsCustomDateTimeScopingRequired() { - return false; - } - - /** - * The property bag holding property values for this object. - * - * @return the property bag - */ - protected PropertyBag getPropertyBag() { - return this.propertyBag; - } - - /** - * Internal constructor. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected ServiceObject(ExchangeService service) throws Exception { - EwsUtilities.validateParam(service, "service"); - EwsUtilities.validateServiceObjectVersion(this, service - .getRequestedServerVersion()); - this.service = service; - this.propertyBag = new PropertyBag(this); - } - - /** - * Gets the schema associated with this type of object. - * - * @return ServiceObjectSchema - */ - public ServiceObjectSchema schema() { - return this.getSchema(); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return the schema - */ - protected abstract ServiceObjectSchema getSchema(); - - /** - * Gets the minimum required server version. - * - * @return the minimum required server version - */ - protected abstract ExchangeVersion getMinimumRequiredServerVersion(); - - /** - * Loads service object from XML. - * - * @param reader - * the reader - * @param clearPropertyBag - * the clear property bag - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - boolean clearPropertyBag) throws Exception { - - this.getPropertyBag().loadFromXml(reader, clearPropertyBag, - null, // propertySet - false); // summaryPropertiesOnly - - } - - // / Validates this instance. - /** - * Validate. - * - * @throws Exception - * the exception - */ - protected void validate() throws Exception { - this.getPropertyBag().validate(); - } - - // / Loads service object from XML. - /** - * Load from xml. - * - * @param reader - * the reader - * @param clearPropertyBag - * the clear property bag - * @param requestedPropertySet - * the requested property set - * @param summaryPropertiesOnly - * the summary properties only - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - boolean clearPropertyBag, PropertySet requestedPropertySet, - boolean summaryPropertiesOnly) throws Exception { - - this.getPropertyBag().loadFromXml(reader, clearPropertyBag, - requestedPropertySet, summaryPropertiesOnly); - - } - - // Clears the object's change log. - /** - * Clear change log. - */ - protected void clearChangeLog() { - - this.getPropertyBag().clearChangeLog(); - } - - // / Writes service object as XML. - /** - * Write to xml. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - - this.getPropertyBag().writeToXml(writer); - } - - // Writes service object for update as XML. - /** - * Write to xml for update. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXmlForUpdate(EwsServiceXmlWriter writer) - throws Exception { - - this.getPropertyBag().writeToXmlForUpdate(writer); - } - - // / Loads the specified set of properties on the object. - /** - * Internal load. - * - * @param propertySet - * the property set - * @throws Exception - * the exception - */ - protected abstract void internalLoad(PropertySet propertySet) - throws Exception; - - // / Deletes the object. - /** - * Internal delete. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - * @throws Exception - * the exception - */ - protected abstract void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) throws Exception; - - // / Loads the specified set of properties. Calling this method results in a - // call to EWS. - /** - * Load. - * - * @param propertySet - * the property set - * @throws Exception - * the exception - */ - public void load(PropertySet propertySet) throws Exception { - this.internalLoad(propertySet); - } - - // Loads the first class properties. Calling this method results in a call - // to EWS. - /** - * Load. - * - * @throws Exception - * the exception - */ - public void load() throws Exception { - this.internalLoad(PropertySet.getFirstClassProperties()); - } - - /** - * Gets the value of specified property in this instance. - * - * @param propertyDefinition - * Definition of the property to get. - * @return The value of specified property in this instance. - * @throws Exception - * the exception - */ - public Object getObjectFromPropertyDefinition( - PropertyDefinitionBase propertyDefinition) throws Exception { - OutParam propertyValue = new OutParam(); - PropertyDefinition propDef = (PropertyDefinition)propertyDefinition; - - if (propDef != null) - { - return this.getPropertyBag().getObjectFromPropertyDefinition(propDef); + /** + * The lock object. + */ + private Object lockObject = new Object(); + + /** + * The service. + */ + private ExchangeService service; + + /** + * The property bag. + */ + private PropertyBag propertyBag; + + /** + * The xml element name. + */ + private String xmlElementName; + + /** + * Triggers dispatch of the change event. + */ + protected void changed() { + + for (IServiceObjectChangedDelegate change : this.onChange) { + change.serviceObjectChanged(this); + } + } + + /** + * Throws exception if this is a new service object. + * + * @throws InvalidOperationException the invalid operation exception + * @throws ServiceLocalException the service local exception + */ + protected void throwIfThisIsNew() throws InvalidOperationException, + ServiceLocalException { + if (this.isNew()) { + throw new InvalidOperationException(Strings. + ServiceObjectDoesNotHaveId); + } + } + + /** + * Throws exception if this is not a new service object. + * + * @throws InvalidOperationException the invalid operation exception + * @throws ServiceLocalException the service local exception + */ + protected void throwIfThisIsNotNew() throws InvalidOperationException, + ServiceLocalException { + if (!this.isNew()) { + throw new InvalidOperationException(Strings. + ServiceObjectAlreadyHasId); + } + } + + // / This methods lets subclasses of ServiceObject override the default + // mechanism + // / by which the XML element name associated with their type is retrieved. + + /** + * This methods lets subclasses of ServiceObject override the default + * mechanism by which the XML element name associated with their type is + * retrieved. + * + * @return String + */ + protected String getXmlElementNameOverride() { + return null; + } + + /** + * GetXmlElementName retrieves the XmlElementName of this type based on the + * EwsObjectDefinition attribute that decorates it, if present. + * + * @return The XML element name associated with this type. + */ + protected String getXmlElementName() { + if (this.isNullOrEmpty(this.xmlElementName)) { + this.xmlElementName = this.getXmlElementNameOverride(); + if (this.isNullOrEmpty(this.xmlElementName)) { + synchronized (this.lockObject) { + + ServiceObjectDefinition annotation = this.getClass() + .getAnnotation(ServiceObjectDefinition.class); + if (null != annotation) { + this.xmlElementName = annotation.xmlElementName(); + } } - else - { - ExtendedPropertyDefinition extendedPropDef = (ExtendedPropertyDefinition)propertyDefinition; - if (extendedPropDef != null) - { - if (this.tryGetExtendedProperty(Object.class, extendedPropDef, propertyValue)) - { - return propertyValue; - } - else - { - throw new ServiceObjectPropertyException(Strings.MustLoadOrAssignPropertyBeforeAccess, propertyDefinition); - } - } - else - { - // E14:226103 -- Other subclasses of PropertyDefinitionBase are not supported. - throw new NotSupportedException(String.format( - Strings.OperationNotSupportedForPropertyDefinitionType, - propertyDefinition.getType().getName())); - } + } + } + EwsUtilities + .EwsAssert( + !isNullOrEmpty(this.xmlElementName), + "EwsObject.GetXmlElementName", + String + .format( + "The class %s does not have an " + + "associated XML element name.", + this.getClass().getName())); + + return this.xmlElementName; + } + + /** + * Gets the name of the change XML element. + * + * @return the change xml element name + */ + protected String getChangeXmlElementName() { + return XmlElementNames.ItemChange; + } + + /** + * Gets the name of the set field XML element. + * + * @return String + */ + protected String getSetFieldXmlElementName() { + return XmlElementNames.SetItemField; + } + + /** + * Gets the name of the delete field XML element. + * + * @return String + */ + protected String getDeleteFieldXmlElementName() { + return XmlElementNames.DeleteItemField; + } + + /** + * Gets a value indicating whether a time zone SOAP header should be emitted + * in a CreateItem or UpdateItem request so this item can be property saved + * or updated. + * + * @param isUpdateOperation the is update operation + * @return boolean + * @throws ServiceLocalException + * @throws Exception + */ + protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) + throws ServiceLocalException, Exception { + return false; + } + + /** + * Determines whether properties defined with + * ScopedDateTimePropertyDefinition require custom time zone scoping. + * + * @return boolean + */ + protected boolean getIsCustomDateTimeScopingRequired() { + return false; + } + + /** + * The property bag holding property values for this object. + * + * @return the property bag + */ + protected PropertyBag getPropertyBag() { + return this.propertyBag; + } + + /** + * Internal constructor. + * + * @param service the service + * @throws Exception the exception + */ + protected ServiceObject(ExchangeService service) throws Exception { + EwsUtilities.validateParam(service, "service"); + EwsUtilities.validateServiceObjectVersion(this, service + .getRequestedServerVersion()); + this.service = service; + this.propertyBag = new PropertyBag(this); + } + + /** + * Gets the schema associated with this type of object. + * + * @return ServiceObjectSchema + */ + public ServiceObjectSchema schema() { + return this.getSchema(); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return the schema + */ + protected abstract ServiceObjectSchema getSchema(); + + /** + * Gets the minimum required server version. + * + * @return the minimum required server version + */ + protected abstract ExchangeVersion getMinimumRequiredServerVersion(); + + /** + * Loads service object from XML. + * + * @param reader the reader + * @param clearPropertyBag the clear property bag + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + boolean clearPropertyBag) throws Exception { + + this.getPropertyBag().loadFromXml(reader, clearPropertyBag, + null, // propertySet + false); // summaryPropertiesOnly + + } + + // / Validates this instance. + + /** + * Validate. + * + * @throws Exception the exception + */ + protected void validate() throws Exception { + this.getPropertyBag().validate(); + } + + // / Loads service object from XML. + + /** + * Load from xml. + * + * @param reader the reader + * @param clearPropertyBag the clear property bag + * @param requestedPropertySet the requested property set + * @param summaryPropertiesOnly the summary properties only + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + boolean clearPropertyBag, PropertySet requestedPropertySet, + boolean summaryPropertiesOnly) throws Exception { + + this.getPropertyBag().loadFromXml(reader, clearPropertyBag, + requestedPropertySet, summaryPropertiesOnly); + + } + + // Clears the object's change log. + + /** + * Clear change log. + */ + protected void clearChangeLog() { + + this.getPropertyBag().clearChangeLog(); + } + + // / Writes service object as XML. + + /** + * Write to xml. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + + this.getPropertyBag().writeToXml(writer); + } + + // Writes service object for update as XML. + + /** + * Write to xml for update. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXmlForUpdate(EwsServiceXmlWriter writer) + throws Exception { + + this.getPropertyBag().writeToXmlForUpdate(writer); + } + + // / Loads the specified set of properties on the object. + + /** + * Internal load. + * + * @param propertySet the property set + * @throws Exception the exception + */ + protected abstract void internalLoad(PropertySet propertySet) + throws Exception; + + // / Deletes the object. + + /** + * Internal delete. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + * @throws Exception the exception + */ + protected abstract void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) throws Exception; + + // / Loads the specified set of properties. Calling this method results in a + // call to EWS. + + /** + * Load. + * + * @param propertySet the property set + * @throws Exception the exception + */ + public void load(PropertySet propertySet) throws Exception { + this.internalLoad(propertySet); + } + + // Loads the first class properties. Calling this method results in a call + // to EWS. + + /** + * Load. + * + * @throws Exception the exception + */ + public void load() throws Exception { + this.internalLoad(PropertySet.getFirstClassProperties()); + } + + /** + * Gets the value of specified property in this instance. + * + * @param propertyDefinition Definition of the property to get. + * @return The value of specified property in this instance. + * @throws Exception the exception + */ + public Object getObjectFromPropertyDefinition( + PropertyDefinitionBase propertyDefinition) throws Exception { + OutParam propertyValue = new OutParam(); + PropertyDefinition propDef = (PropertyDefinition) propertyDefinition; + + if (propDef != null) { + return this.getPropertyBag().getObjectFromPropertyDefinition(propDef); + } else { + ExtendedPropertyDefinition extendedPropDef = (ExtendedPropertyDefinition) propertyDefinition; + if (extendedPropDef != null) { + if (this.tryGetExtendedProperty(Object.class, extendedPropDef, propertyValue)) { + return propertyValue; + } else { + throw new ServiceObjectPropertyException(Strings.MustLoadOrAssignPropertyBeforeAccess, + propertyDefinition); } - } - - /** - * Try to get the value of a specified extended property in this instance. - * - * @param propertyDefinition - * the property definition - * @param propertyValue - * the property value - * @return true, if successful - * @throws Exception - * the exception - */ - protected boolean tryGetExtendedProperty(Class cls, - ExtendedPropertyDefinition propertyDefinition, - OutParam propertyValue) throws Exception { - ExtendedPropertyCollection propertyCollection = this - .getExtendedProperties(); - - if ((propertyCollection != null)&& - propertyCollection.tryGetValue(cls, propertyDefinition,propertyValue)) { - return true; - } else { - propertyValue.setParam(null); - return false; - } - } - - /** - * Try to get the value of a specified property in this instance. - * - * @param propertyDefinition - * The property definition. - * @param propertyValue - * The property value - * @return True if property retrieved, false otherwise. - * @throws Exception - */ - public boolean tryGetProperty(PropertyDefinitionBase propertyDefinition, OutParam propertyValue) throws Exception - { - return this.tryGetProperty(Object.class, propertyDefinition, propertyValue); + } else { + // E14:226103 -- Other subclasses of PropertyDefinitionBase are not supported. + throw new NotSupportedException(String.format( + Strings.OperationNotSupportedForPropertyDefinitionType, + propertyDefinition.getType().getName())); + } + } + } + + /** + * Try to get the value of a specified extended property in this instance. + * + * @param propertyDefinition the property definition + * @param propertyValue the property value + * @return true, if successful + * @throws Exception the exception + */ + protected boolean tryGetExtendedProperty(Class cls, + ExtendedPropertyDefinition propertyDefinition, + OutParam propertyValue) throws Exception { + ExtendedPropertyCollection propertyCollection = this + .getExtendedProperties(); + + if ((propertyCollection != null) && + propertyCollection.tryGetValue(cls, propertyDefinition, propertyValue)) { + return true; + } else { + propertyValue.setParam(null); + return false; + } + } + + /** + * Try to get the value of a specified property in this instance. + * + * @param propertyDefinition The property definition. + * @param propertyValue The property value + * @return True if property retrieved, false otherwise. + * @throws Exception + */ + public boolean tryGetProperty(PropertyDefinitionBase propertyDefinition, OutParam propertyValue) + throws Exception { + return this.tryGetProperty(Object.class, propertyDefinition, propertyValue); + } + + /** + * Try to get the value of a specified property in this instance. + * + * @param propertyDefinition the property definition + * @param propertyValue the property value + * @return true, if successful + * @throws Exception the exception + */ + public boolean tryGetProperty(Class cls, PropertyDefinitionBase propertyDefinition, + OutParam propertyValue) throws Exception { + + PropertyDefinition propDef = (PropertyDefinition) propertyDefinition; + if (propDef != null) { + return this.getPropertyBag().tryGetPropertyType(cls, propDef, propertyValue); + } else { + ExtendedPropertyDefinition extPropDef = (ExtendedPropertyDefinition) propertyDefinition; + if (extPropDef != null) { + return this.tryGetExtendedProperty(cls, extPropDef, propertyValue); + } else { + // E14:226103 -- Other subclasses of PropertyDefinitionBase are not supported. + throw new NotSupportedException(String.format( + Strings.OperationNotSupportedForPropertyDefinitionType, + propertyDefinition.getType().getName())); + } + } + } + + /** + * Gets the collection of loaded property definitions. + * + * @return the loaded property definitions + * @throws Exception the exception + */ + public Collection getLoadedPropertyDefinitions() + throws Exception { + + Collection propDefs = + new ArrayList(); + for (PropertyDefinition propDef : this.getPropertyBag().getProperties() + .keySet()) { + propDefs.add(propDef); } - /** - * Try to get the value of a specified property in this instance. - * - * @param propertyDefinition - * the property definition - * @param propertyValue - * the property value - * @return true, if successful - * @throws Exception - * the exception - */ - public boolean tryGetProperty(Class cls, PropertyDefinitionBase propertyDefinition, - OutParam propertyValue) throws Exception { - - PropertyDefinition propDef = (PropertyDefinition)propertyDefinition; - if (propDef != null) - { - return this.getPropertyBag().tryGetPropertyType(cls, propDef, propertyValue); - } - else - { - ExtendedPropertyDefinition extPropDef = (ExtendedPropertyDefinition)propertyDefinition; - if (extPropDef != null) - { - return this.tryGetExtendedProperty(cls, extPropDef, propertyValue); - } - else - { - // E14:226103 -- Other subclasses of PropertyDefinitionBase are not supported. - throw new NotSupportedException(String.format( - Strings.OperationNotSupportedForPropertyDefinitionType, - propertyDefinition.getType().getName())); - } - } - } - - /** - * Gets the collection of loaded property definitions. - * - * @return the loaded property definitions - * @throws Exception - * the exception - */ - public Collection getLoadedPropertyDefinitions() - throws Exception { - - Collection propDefs = - new ArrayList(); - for (PropertyDefinition propDef : this.getPropertyBag().getProperties() - .keySet()) { - propDefs.add(propDef); - } - - if (this.getExtendedProperties() != null) { - for (ExtendedProperty extProp : getExtendedProperties()) { - propDefs.add(extProp.getPropertyDefinition()); - } - } - - return propDefs; - } - - /** - * Gets the service. - * - * @return the service - */ - public ExchangeService getService() { - return service; - } - - /** - * Sets the service. - * - * @param service - * the new service - */ - protected void setService(ExchangeService service) { - this.service = service; - } - - // / The property definition for the Id of this object. - /** - * Gets the id property definition. - * - * @return the id property definition - */ - protected PropertyDefinition getIdPropertyDefinition() { - return null; - } - - // / The unique Id of this object. - /** - * Gets the id. - * - * @return the id - * @throws ServiceLocalException - * the service local exception - */ - protected ServiceId getId() throws ServiceLocalException { - PropertyDefinition idPropertyDefinition = this - .getIdPropertyDefinition(); - - OutParam serviceId = new OutParam(); - - if (idPropertyDefinition != null) { - this.getPropertyBag().tryGetValue(idPropertyDefinition, serviceId); - } - - return (ServiceId) serviceId.getParam(); - } - - // / Indicates whether this object is a real store item, or if it's a local - // object - // / that has yet to be saved. - /** - * Checks if is new. - * - * @return true, if is new - * @throws ServiceLocalException - * the service local exception - */ - public boolean isNew() throws ServiceLocalException { - - ServiceId id = this.getId(); - - return id == null ? true : !id.isValid(); - - } - - // / Gets a value indicating whether the object has been modified and should - // be saved. - /** - * Checks if is dirty. - * - * @return true, if is dirty - */ - public boolean isDirty() { - - return this.getPropertyBag().getIsDirty(); - - } - - // Gets the extended properties collection. - /** - * Gets the extended properties. - * - * @return the extended properties - * @throws Exception - * the exception - */ - protected ExtendedPropertyCollection getExtendedProperties() - throws Exception { - return null; - } - - /** - * Checks is the string is null or empty. - * - * @param namespacePrefix - * the namespace prefix - * @return true, if is null or empty - */ - private boolean isNullOrEmpty(String namespacePrefix) { - return (namespacePrefix == null || namespacePrefix.isEmpty()); - - } - - /** The on change. */ - private List onChange = - new ArrayList(); - - /** - * Adds the service object changed event. - * - * @param change - * the change - */ - public void addServiceObjectChangedEvent( - IServiceObjectChangedDelegate change) { - this.onChange.add(change); - } - - /** - * Removes the service object changed event. - * - * @param change - * the change - */ - public void removeServiceObjectChangedEvent( - IServiceObjectChangedDelegate change) { - this.onChange.remove(change); - } - - /** - * Clear service object changed event. - */ - public void clearServiceObjectChangedEvent() { - this.onChange.clear(); - } + if (this.getExtendedProperties() != null) { + for (ExtendedProperty extProp : getExtendedProperties()) { + propDefs.add(extProp.getPropertyDefinition()); + } + } + + return propDefs; + } + + /** + * Gets the service. + * + * @return the service + */ + public ExchangeService getService() { + return service; + } + + /** + * Sets the service. + * + * @param service the new service + */ + protected void setService(ExchangeService service) { + this.service = service; + } + + // / The property definition for the Id of this object. + + /** + * Gets the id property definition. + * + * @return the id property definition + */ + protected PropertyDefinition getIdPropertyDefinition() { + return null; + } + + // / The unique Id of this object. + + /** + * Gets the id. + * + * @return the id + * @throws ServiceLocalException the service local exception + */ + protected ServiceId getId() throws ServiceLocalException { + PropertyDefinition idPropertyDefinition = this + .getIdPropertyDefinition(); + + OutParam serviceId = new OutParam(); + + if (idPropertyDefinition != null) { + this.getPropertyBag().tryGetValue(idPropertyDefinition, serviceId); + } + + return (ServiceId) serviceId.getParam(); + } + + // / Indicates whether this object is a real store item, or if it's a local + // object + // / that has yet to be saved. + + /** + * Checks if is new. + * + * @return true, if is new + * @throws ServiceLocalException the service local exception + */ + public boolean isNew() throws ServiceLocalException { + + ServiceId id = this.getId(); + + return id == null ? true : !id.isValid(); + + } + + // / Gets a value indicating whether the object has been modified and should + // be saved. + + /** + * Checks if is dirty. + * + * @return true, if is dirty + */ + public boolean isDirty() { + + return this.getPropertyBag().getIsDirty(); + + } + + // Gets the extended properties collection. + + /** + * Gets the extended properties. + * + * @return the extended properties + * @throws Exception the exception + */ + protected ExtendedPropertyCollection getExtendedProperties() + throws Exception { + return null; + } + + /** + * Checks is the string is null or empty. + * + * @param namespacePrefix the namespace prefix + * @return true, if is null or empty + */ + private boolean isNullOrEmpty(String namespacePrefix) { + return (namespacePrefix == null || namespacePrefix.isEmpty()); + + } + + /** + * The on change. + */ + private List onChange = + new ArrayList(); + + /** + * Adds the service object changed event. + * + * @param change the change + */ + public void addServiceObjectChangedEvent( + IServiceObjectChangedDelegate change) { + this.onChange.add(change); + } + + /** + * Removes the service object changed event. + * + * @param change the change + */ + public void removeServiceObjectChangedEvent( + IServiceObjectChangedDelegate change) { + this.onChange.remove(change); + } + + /** + * Clear service object changed event. + */ + public void clearServiceObjectChangedEvent() { + this.onChange.clear(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java index 6362e8b4c..16b4abc5b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java @@ -19,21 +19,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Interface ServiceObjectDefinition. */ @Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -@interface ServiceObjectDefinition { +@Retention(RetentionPolicy.RUNTIME) @interface ServiceObjectDefinition { - /** - * The name of the XML element. - * - * @return the string - */ - String xmlElementName(); + /** + * The name of the XML element. + * + * @return the string + */ + String xmlElementName(); - /** - * True if this ServiceObject can be returned by the server as an object, - * false otherwise. - * - * @return true, if successful - */ - boolean returnedByServer() default true; + /** + * True if this ServiceObject can be returned by the server as an object, + * false otherwise. + * + * @return true, if successful + */ + boolean returnedByServer() default true; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java index 7f204ce3f..65dac5fd1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java @@ -22,373 +22,375 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class ServiceObjectInfo { - /** The service object constructors with attachment param. */ - private Map, ICreateServiceObjectWithAttachmentParam> - serviceObjectConstructorsWithAttachmentParam; - - /** The service object constructors with service param. */ - private Map, ICreateServiceObjectWithServiceParam> - serviceObjectConstructorsWithServiceParam; - - /** The xml element name to service object class map. */ - private Map> xmlElementNameToServiceObjectClassMap; - - /** - * Default constructor. - */ - protected ServiceObjectInfo() { - this.xmlElementNameToServiceObjectClassMap = - new HashMap>(); - this.serviceObjectConstructorsWithServiceParam = - new HashMap, ICreateServiceObjectWithServiceParam>(); - this.serviceObjectConstructorsWithAttachmentParam = - new HashMap, ICreateServiceObjectWithAttachmentParam>(); - - this.initializeServiceObjectClassMap(); - } - - /** - * Initializes the service object class map. If you add a new ServiceObject - * subclass that can be returned by the Server, add the type to the class - * map as well as associated delegate(s) to call the constructor(s). - */ - private void initializeServiceObjectClassMap() { - // Appointment - this.addServiceObjectType(XmlElementNames.CalendarItem, - Appointment.class, new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Appointment(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new Appointment(itemAttachment, isNew); - } - }); - - // CalendarFolder - this.addServiceObjectType(XmlElementNames.CalendarFolder, - CalendarFolder.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new CalendarFolder(srv); - } - }, null); - - // Contact - this.addServiceObjectType(XmlElementNames.Contact, Contact.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Contact(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new Contact(itemAttachment); - } - }); - - // ContactsFolder - this.addServiceObjectType(XmlElementNames.ContactsFolder, - ContactsFolder.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new ContactsFolder(srv); - } - }, null); - - // ContactGroup - this.addServiceObjectType(XmlElementNames.DistributionList, - ContactGroup.class, new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new ContactGroup(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new ContactGroup(itemAttachment); - } - }); - - // Conversation - this.addServiceObjectType(XmlElementNames.Conversation, - Conversation.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Conversation(srv); - } - }, null); - - // EmailMessage - this.addServiceObjectType(XmlElementNames.Message, EmailMessage.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new EmailMessage(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new EmailMessage(itemAttachment); - } - }); - - // Folder - this.addServiceObjectType(XmlElementNames.Folder, Folder.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Folder(srv); - } - }, null); - - // Item - this.addServiceObjectType(XmlElementNames.Item, Item.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Item(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new Item(itemAttachment); - } - }); - - // MeetingCancellation - this.addServiceObjectType(XmlElementNames.MeetingCancellation, - MeetingCancellation.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new MeetingCancellation(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new MeetingCancellation(itemAttachment); - } - }); - - // MeetingMessage - this.addServiceObjectType(XmlElementNames.MeetingMessage, - MeetingMessage.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new MeetingMessage(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new MeetingMessage(itemAttachment); - } - }); - - // MeetingRequest - this.addServiceObjectType(XmlElementNames.MeetingRequest, - MeetingRequest.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new MeetingRequest(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new MeetingRequest(itemAttachment); - } - }); - - // MeetingResponse - this.addServiceObjectType(XmlElementNames.MeetingResponse, - MeetingResponse.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new MeetingResponse(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new MeetingResponse(itemAttachment); - } - }); - - // PostItem - this.addServiceObjectType(XmlElementNames.PostItem, PostItem.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new PostItem(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new PostItem(itemAttachment); - } - }); - - // SearchFolder - this.addServiceObjectType(XmlElementNames.SearchFolder, - SearchFolder.class, new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new SearchFolder(srv); - } - }, null); - - // Task - this.addServiceObjectType(XmlElementNames.Task, Task.class, - new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new Task(srv); - } - }, new ICreateServiceObjectWithAttachmentParam() { - public Object createServiceObjectWithAttachmentParam( - ItemAttachment itemAttachment, boolean isNew) - throws Exception { - return new Task(itemAttachment); - } - }); - - // TasksFolder - this.addServiceObjectType(XmlElementNames.TasksFolder, - TasksFolder.class, new ICreateServiceObjectWithServiceParam() { - public Object createServiceObjectWithServiceParam( - ExchangeService srv) throws Exception { - return new TasksFolder(srv); - } - }, null); - } - - /** - * Adds specified type of service object to map. - * - * @param xmlElementName - * the xml element name - * @param cls - * the cls - * @param createServiceObjectWithServiceParam - * the create service object with service param - * @param createServiceObjectWithAttachmentParam - * the create service object with attachment param - */ - private void addServiceObjectType( - String xmlElementName, - Class cls, - ICreateServiceObjectWithServiceParam createServiceObjectWithServiceParam, - ICreateServiceObjectWithAttachmentParam createServiceObjectWithAttachmentParam) { - this.xmlElementNameToServiceObjectClassMap.put(xmlElementName, cls); - this.serviceObjectConstructorsWithServiceParam.put(cls, - createServiceObjectWithServiceParam); - if (createServiceObjectWithAttachmentParam != null) { - this.serviceObjectConstructorsWithAttachmentParam.put(cls, - createServiceObjectWithAttachmentParam); - } - } - - /** - * Return Dictionary that maps from element name to ServiceObject Type. - * - * @return the xml element name to service object class map - */ - protected Map> getXmlElementNameToServiceObjectClassMap() { - return this.xmlElementNameToServiceObjectClassMap; - } - - /** - * Return Dictionary that maps from ServiceObject Type to - * CreateServiceObjectWithServiceParam delegate with ExchangeService - * parameter. - * - * @return the service object constructors with service param - */ - protected Map, ICreateServiceObjectWithServiceParam> - getServiceObjectConstructorsWithServiceParam() { - return this.serviceObjectConstructorsWithServiceParam; - } - - /** - * Return Dictionary that maps from ServiceObject Type to - * CreateServiceObjectWithAttachmentParam delegate with ItemAttachment - * parameter. - * - * @return the service object constructors with attachment param - */ - protected Map, ICreateServiceObjectWithAttachmentParam> - getServiceObjectConstructorsWithAttachmentParam() { - return this.serviceObjectConstructorsWithAttachmentParam; - } - - /** - * Set event to happen when property changed. - * - * @param change - * change event - */ - protected void addOnChangeEvent( - ICreateServiceObjectWithAttachmentParam change) { - onChangeList.add(change); - } - - /** - * Remove the event from happening when property changed. - * - * @param change - * change event - */ - protected void removeChangeEvent( - ICreateServiceObjectWithAttachmentParam change) { - onChangeList.remove(change); - } - - /** The on change list. */ - private List onChangeList = - new ArrayList(); - - /** The on change list1. */ - private List onChangeList1 = - new ArrayList(); - - /** - * Set event to happen when property changed. - * - * @param change - * change event - */ - protected void addOnChangeEvent( - ICreateServiceObjectWithServiceParam change) { - onChangeList1.add(change); - } - - /** - * Remove the event from happening when property changed. - * - * @param change - * change event - */ - protected void removeChangeEvent( - ICreateServiceObjectWithServiceParam change) { - onChangeList1.remove(change); - } + /** + * The service object constructors with attachment param. + */ + private Map, ICreateServiceObjectWithAttachmentParam> + serviceObjectConstructorsWithAttachmentParam; + + /** + * The service object constructors with service param. + */ + private Map, ICreateServiceObjectWithServiceParam> + serviceObjectConstructorsWithServiceParam; + + /** + * The xml element name to service object class map. + */ + private Map> xmlElementNameToServiceObjectClassMap; + + /** + * Default constructor. + */ + protected ServiceObjectInfo() { + this.xmlElementNameToServiceObjectClassMap = + new HashMap>(); + this.serviceObjectConstructorsWithServiceParam = + new HashMap, ICreateServiceObjectWithServiceParam>(); + this.serviceObjectConstructorsWithAttachmentParam = + new HashMap, ICreateServiceObjectWithAttachmentParam>(); + + this.initializeServiceObjectClassMap(); + } + + /** + * Initializes the service object class map. If you add a new ServiceObject + * subclass that can be returned by the Server, add the type to the class + * map as well as associated delegate(s) to call the constructor(s). + */ + private void initializeServiceObjectClassMap() { + // Appointment + this.addServiceObjectType(XmlElementNames.CalendarItem, + Appointment.class, new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Appointment(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new Appointment(itemAttachment, isNew); + } + }); + + // CalendarFolder + this.addServiceObjectType(XmlElementNames.CalendarFolder, + CalendarFolder.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new CalendarFolder(srv); + } + }, null); + + // Contact + this.addServiceObjectType(XmlElementNames.Contact, Contact.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Contact(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new Contact(itemAttachment); + } + }); + + // ContactsFolder + this.addServiceObjectType(XmlElementNames.ContactsFolder, + ContactsFolder.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new ContactsFolder(srv); + } + }, null); + + // ContactGroup + this.addServiceObjectType(XmlElementNames.DistributionList, + ContactGroup.class, new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new ContactGroup(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new ContactGroup(itemAttachment); + } + }); + + // Conversation + this.addServiceObjectType(XmlElementNames.Conversation, + Conversation.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Conversation(srv); + } + }, null); + + // EmailMessage + this.addServiceObjectType(XmlElementNames.Message, EmailMessage.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new EmailMessage(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new EmailMessage(itemAttachment); + } + }); + + // Folder + this.addServiceObjectType(XmlElementNames.Folder, Folder.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Folder(srv); + } + }, null); + + // Item + this.addServiceObjectType(XmlElementNames.Item, Item.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Item(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new Item(itemAttachment); + } + }); + + // MeetingCancellation + this.addServiceObjectType(XmlElementNames.MeetingCancellation, + MeetingCancellation.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new MeetingCancellation(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new MeetingCancellation(itemAttachment); + } + }); + + // MeetingMessage + this.addServiceObjectType(XmlElementNames.MeetingMessage, + MeetingMessage.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new MeetingMessage(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new MeetingMessage(itemAttachment); + } + }); + + // MeetingRequest + this.addServiceObjectType(XmlElementNames.MeetingRequest, + MeetingRequest.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new MeetingRequest(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new MeetingRequest(itemAttachment); + } + }); + + // MeetingResponse + this.addServiceObjectType(XmlElementNames.MeetingResponse, + MeetingResponse.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new MeetingResponse(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new MeetingResponse(itemAttachment); + } + }); + + // PostItem + this.addServiceObjectType(XmlElementNames.PostItem, PostItem.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new PostItem(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new PostItem(itemAttachment); + } + }); + + // SearchFolder + this.addServiceObjectType(XmlElementNames.SearchFolder, + SearchFolder.class, new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new SearchFolder(srv); + } + }, null); + + // Task + this.addServiceObjectType(XmlElementNames.Task, Task.class, + new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new Task(srv); + } + }, new ICreateServiceObjectWithAttachmentParam() { + public Object createServiceObjectWithAttachmentParam( + ItemAttachment itemAttachment, boolean isNew) + throws Exception { + return new Task(itemAttachment); + } + }); + + // TasksFolder + this.addServiceObjectType(XmlElementNames.TasksFolder, + TasksFolder.class, new ICreateServiceObjectWithServiceParam() { + public Object createServiceObjectWithServiceParam( + ExchangeService srv) throws Exception { + return new TasksFolder(srv); + } + }, null); + } + + /** + * Adds specified type of service object to map. + * + * @param xmlElementName the xml element name + * @param cls the cls + * @param createServiceObjectWithServiceParam the create service object with service param + * @param createServiceObjectWithAttachmentParam the create service object with attachment param + */ + private void addServiceObjectType( + String xmlElementName, + Class cls, + ICreateServiceObjectWithServiceParam createServiceObjectWithServiceParam, + ICreateServiceObjectWithAttachmentParam createServiceObjectWithAttachmentParam) { + this.xmlElementNameToServiceObjectClassMap.put(xmlElementName, cls); + this.serviceObjectConstructorsWithServiceParam.put(cls, + createServiceObjectWithServiceParam); + if (createServiceObjectWithAttachmentParam != null) { + this.serviceObjectConstructorsWithAttachmentParam.put(cls, + createServiceObjectWithAttachmentParam); + } + } + + /** + * Return Dictionary that maps from element name to ServiceObject Type. + * + * @return the xml element name to service object class map + */ + protected Map> getXmlElementNameToServiceObjectClassMap() { + return this.xmlElementNameToServiceObjectClassMap; + } + + /** + * Return Dictionary that maps from ServiceObject Type to + * CreateServiceObjectWithServiceParam delegate with ExchangeService + * parameter. + * + * @return the service object constructors with service param + */ + protected Map, ICreateServiceObjectWithServiceParam> + getServiceObjectConstructorsWithServiceParam() { + return this.serviceObjectConstructorsWithServiceParam; + } + + /** + * Return Dictionary that maps from ServiceObject Type to + * CreateServiceObjectWithAttachmentParam delegate with ItemAttachment + * parameter. + * + * @return the service object constructors with attachment param + */ + protected Map, ICreateServiceObjectWithAttachmentParam> + getServiceObjectConstructorsWithAttachmentParam() { + return this.serviceObjectConstructorsWithAttachmentParam; + } + + /** + * Set event to happen when property changed. + * + * @param change change event + */ + protected void addOnChangeEvent( + ICreateServiceObjectWithAttachmentParam change) { + onChangeList.add(change); + } + + /** + * Remove the event from happening when property changed. + * + * @param change change event + */ + protected void removeChangeEvent( + ICreateServiceObjectWithAttachmentParam change) { + onChangeList.remove(change); + } + + /** + * The on change list. + */ + private List onChangeList = + new ArrayList(); + + /** + * The on change list1. + */ + private List onChangeList1 = + new ArrayList(); + + /** + * Set event to happen when property changed. + * + * @param change change event + */ + protected void addOnChangeEvent( + ICreateServiceObjectWithServiceParam change) { + onChangeList1.add(change); + } + + /** + * Remove the event from happening when property changed. + * + * @param change change event + */ + protected void removeChangeEvent( + ICreateServiceObjectWithServiceParam change) { + onChangeList1.remove(change); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java index dcd52cdad..900666379 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java @@ -14,71 +14,70 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a property definition for a service object. */ public abstract class ServiceObjectPropertyDefinition extends - PropertyDefinitionBase { + PropertyDefinitionBase { - /** The uri. */ - private String uri; + /** + * The uri. + */ + private String uri; - /** - * Gets the name of the XML element. - * - * @return the name of the XML element. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.FieldURI; - } + /** + * Gets the name of the XML element. + * + * @return the name of the XML element. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.FieldURI; + } - /** - * Gets the minimum Exchange version that supports this property. - * - * @return The minimum Exchange version that supports this property. - */ - @Override - public ExchangeVersion getVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum Exchange version that supports this property. + * + * @return The minimum Exchange version that supports this property. + */ + @Override + public ExchangeVersion getVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.FieldURI, this.getUri()); - } + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.FieldURI, this.getUri()); + } - /** - * Initializes a new instance. - */ - protected ServiceObjectPropertyDefinition() { + /** + * Initializes a new instance. + */ + protected ServiceObjectPropertyDefinition() { - } + } - /** - * Initializes a new instance. - * - * @param uri - * The URI. - */ - protected ServiceObjectPropertyDefinition(String uri) { - super(); - EwsUtilities.EwsAssert(!(uri == null || uri.isEmpty()), - "ServiceObjectPropertyDefinition.ctor", "uri is null or empty"); - this.uri = uri; - } + /** + * Initializes a new instance. + * + * @param uri The URI. + */ + protected ServiceObjectPropertyDefinition(String uri) { + super(); + EwsUtilities.EwsAssert(!(uri == null || uri.isEmpty()), + "ServiceObjectPropertyDefinition.ctor", "uri is null or empty"); + this.uri = uri; + } - /** - * Gets the URI of the property definition. - * - * @return The URI of the property definition. - */ - protected String getUri() { - return uri; - } + /** + * Gets the URI of the property definition. + * + * @return The URI of the property definition. + */ + protected String getUri() { + return uri; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index c0a5fe167..70ccac564 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -12,67 +12,61 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an error that occurs when an operation on a property fails. - * - * */ public class ServiceObjectPropertyException extends PropertyException { - /** The property definition. */ - private PropertyDefinitionBase propertyDefinition; + /** + * The property definition. + */ + private PropertyDefinitionBase propertyDefinition; - /** - * ServiceObjectPropertyException constructor. - * - * @param propertyDefinition - * The definition of the property that is at the origin of the - * exception. - */ - public ServiceObjectPropertyException( - PropertyDefinitionBase propertyDefinition) { - super(propertyDefinition.getPrintableName()); - this.propertyDefinition = propertyDefinition; - } + /** + * ServiceObjectPropertyException constructor. + * + * @param propertyDefinition The definition of the property that is at the origin of the + * exception. + */ + public ServiceObjectPropertyException( + PropertyDefinitionBase propertyDefinition) { + super(propertyDefinition.getPrintableName()); + this.propertyDefinition = propertyDefinition; + } - /** - * ServiceObjectPropertyException constructor. - * - * @param message - * Error message text. - * @param propertyDefinition - * The definition of the property that is at the origin of the - * exception. - */ - public ServiceObjectPropertyException(String message, - PropertyDefinitionBase propertyDefinition) { - super(message, propertyDefinition.getPrintableName()); - this.propertyDefinition = propertyDefinition; - } + /** + * ServiceObjectPropertyException constructor. + * + * @param message Error message text. + * @param propertyDefinition The definition of the property that is at the origin of the + * exception. + */ + public ServiceObjectPropertyException(String message, + PropertyDefinitionBase propertyDefinition) { + super(message, propertyDefinition.getPrintableName()); + this.propertyDefinition = propertyDefinition; + } - /** - * ServiceObjectPropertyException constructor. - * - * @param message - * Error message text. - * @param propertyDefinition - * The definition of the property that is at the origin of the - * exception. - * @param innerException - * the inner exception - */ - public ServiceObjectPropertyException(String message, - PropertyDefinitionBase propertyDefinition, - Exception innerException) { - super(message, propertyDefinition.getPrintableName(), innerException); - this.propertyDefinition = propertyDefinition; - } + /** + * ServiceObjectPropertyException constructor. + * + * @param message Error message text. + * @param propertyDefinition The definition of the property that is at the origin of the + * exception. + * @param innerException the inner exception + */ + public ServiceObjectPropertyException(String message, + PropertyDefinitionBase propertyDefinition, + Exception innerException) { + super(message, propertyDefinition.getPrintableName(), innerException); + this.propertyDefinition = propertyDefinition; + } - /** - * The definition of the property that is at the origin of the exception. - * - * @return The definition of the property. - */ - public PropertyDefinitionBase getPropertyDefinition() { - return propertyDefinition; - } + /** + * The definition of the property that is at the origin of the exception. + * + * @return The definition of the property. + */ + public PropertyDefinitionBase getPropertyDefinition() { + return propertyDefinition; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index 317248ffe..93b3a4cad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -12,34 +12,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.lang.reflect.Field; import java.lang.reflect.Modifier; -import java.util.ArrayList; -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; /** * Represents the base class for all item and folder schemas. */ @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ServiceObjectSchema implements - Iterable { - - /** The lock object. */ - private static Object lockObject = new Object(); - - /** - * List of all schema types. If you add a new ServiceObject subclass that - * has an associated schema, add the schema type to the list below. - */ - private static LazyMember>> allSchemaTypes = new - LazyMember>>(new - ILazyMember>>() { - public List> createInstance() { - List> typeList = new ArrayList>(); - // typeList.add() - /* + Iterable { + + /** + * The lock object. + */ + private static Object lockObject = new Object(); + + /** + * List of all schema types. If you add a new ServiceObject subclass that + * has an associated schema, add the schema type to the list below. + */ + private static LazyMember>> allSchemaTypes = new + LazyMember>>(new + ILazyMember>>() { + public List> createInstance() { + List> typeList = new ArrayList>(); + // typeList.add() + /* * typeList.add(AppointmentSchema.class); * typeList.add(CalendarResponseObjectSchema.class); * typeList.add(CancelMeetingMessageSchema.class); @@ -58,8 +55,8 @@ public List> createInstance() { * typeList.add(SearchFolderSchema.class); * typeList.add(TaskSchema.class); */ - // Verify that all Schema types in the Managed API assembly - // have been included. + // Verify that all Schema types in the Managed API assembly + // have been included. /* * var missingTypes = from type in * Assembly.GetExecutingAssembly().GetTypes() where @@ -71,348 +68,344 @@ public List> createInstance() { * defined schema types." * ); } */ - return typeList; - } - }); - - /** - * Dictionary of all property definitions. - */ - private static LazyMember> - allSchemaProperties = new - LazyMember>( - new ILazyMember>() { - public Map createInstance() { - Map propDefDictionary = - new HashMap(); - for (Class c : ServiceObjectSchema.allSchemaTypes - .getMember()) { - ServiceObjectSchema.addSchemaPropertiesToDictionary(c, - propDefDictionary); - } - return propDefDictionary; - } - }); - - /** - * Adds schema properties to dictionary. - * - * @param type - * Schema type. - * @param propDefDictionary - * The property definition dictionary. - */ - protected static void addSchemaPropertiesToDictionary(Class type, - Map propDefDictionary) { - Field[] fields = type.getDeclaredFields(); - for (Field field : fields) { - int modifier = field.getModifiers(); - if (Modifier.isPublic(modifier) && Modifier.isStatic(modifier)) { - Object o; - try { - o = field.get(null); - if (o instanceof PropertyDefinition) { - PropertyDefinition propertyDefinition = - (PropertyDefinition)o; - // Some property definitions descend from - // ServiceObjectPropertyDefinition but don't have - // a Uri, like ExtendedProperties. Ignore them. - if (null != propertyDefinition.getUri() && - !propertyDefinition.getUri().isEmpty()) { - PropertyDefinitionBase existingPropertyDefinition; - if (propDefDictionary - .containsKey(propertyDefinition.getUri())) { - existingPropertyDefinition = propDefDictionary - .get(propertyDefinition.getUri()); - EwsUtilities - .EwsAssert( - existingPropertyDefinition == - propertyDefinition, - "Schema.allSchemaProperties." + - "delegate", - String - .format( - "There are at least " + - "two distinct property " + - "definitions with the" + - " following URI: %s", - propertyDefinition - .getUri())); - } else { - propDefDictionary.put(propertyDefinition - .getUri(), propertyDefinition); - // The following is a "generic hack" to register - // properties that are not public and - // thus not returned by the above GetFields - // call. It is currently solely used to register - // the MeetingTimeZone property. - List associatedInternalProperties = - propertyDefinition.getAssociatedInternalProperties(); - for (PropertyDefinition associatedInternalProperty : associatedInternalProperties) { - propDefDictionary - .put(associatedInternalProperty - .getUri(), - associatedInternalProperty); - } - - } - } - } - } catch (IllegalArgumentException e) { - e.printStackTrace(); - - // Skip the field - } catch (IllegalAccessException e) { - e.printStackTrace(); - - // Skip the field - } - - } - } - } - - /** - * Adds the schema property names to dictionary. - * - * @param type - * The type. - * @param propertyNameDictionary - * The property name dictionary. - */ - protected static void addSchemaPropertyNamesToDictionary(Class type, - Map propertyNameDictionary) { - - Field[] fields = type.getDeclaredFields(); - for (Field field : fields) { - int modifier = field.getModifiers(); - if (Modifier.isPublic(modifier) && Modifier.isStatic(modifier)) { - Object o; - try { - o = field.get(null); - if (o instanceof PropertyDefinition) { - PropertyDefinition propertyDefinition = - (PropertyDefinition)o; - propertyNameDictionary.put(propertyDefinition, field - .getName()); - } - } catch (IllegalArgumentException e) { - e.printStackTrace(); - - // Skip the field - } catch (IllegalAccessException e) { - e.printStackTrace(); - - // Skip the field - } - } - } - } - - /** - * Initializes a new instance. - */ - protected ServiceObjectSchema() { - this.registerProperties(); - } - - /** - * Finds the property definition. - * - * @param uri - * The URI. - * @return Property definition. - */ - protected static PropertyDefinitionBase findPropertyDefinition(String uri) { - return ServiceObjectSchema.allSchemaProperties.getMember().get(uri); - } - - /** - * Initialize schema property names. - */ - protected static void initializeSchemaPropertyNames() { - synchronized (lockObject) { - for (Class type : ServiceObjectSchema.allSchemaTypes.getMember()) { - Field[] fields = type.getDeclaredFields(); - for (Field field : fields) { - int modifier = field.getModifiers(); - if (Modifier.isPublic(modifier) && - Modifier.isStatic(modifier)) { - Object o; - try { - o = field.get(null); - if (o instanceof PropertyDefinition) { - PropertyDefinition propertyDefinition = - (PropertyDefinition)o; - propertyDefinition.setName(field.getName()); - } - } catch (IllegalArgumentException e) { - e.printStackTrace(); - - // Skip the field - } catch (IllegalAccessException e) { - e.printStackTrace(); - - // Skip the field - } - } - } - } - } - } - - /** - * Defines the ExtendedProperties property. - */ - public static final PropertyDefinition extendedProperties = - new ComplexPropertyDefinition( - ExtendedPropertyCollection.class, - XmlElementNames.ExtendedProperty, - EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.ReuseInstance, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate - () { - public ExtendedPropertyCollection createComplexProperty() { - return new ExtendedPropertyCollection(); - } - }); - - /** The properties. */ - private Map properties = - new HashMap(); - - /** The visible properties. */ - private List visibleProperties = - new ArrayList(); - - /** The first class properties. */ - private List firstClassProperties = - new ArrayList(); - - /** The first class summary properties. */ - private List firstClassSummaryProperties = - new ArrayList(); - - private List indexedProperties = - new ArrayList(); - - /** - * Registers a schema property. - * - * @param property - * The property to register. - * @param isInternal - * Indicates whether the property is internal or should be - * visible to developers. - */ - private void registerProperty(PropertyDefinition property, - boolean isInternal) { - this.properties.put(property.getXmlElement(), property); - - if (!isInternal) { - this.visibleProperties.add(property); - } - - // If this property does not have to be requested explicitly, add - // it to the list of firstClassProperties. - if (!property.hasFlag(PropertyDefinitionFlags.MustBeExplicitlyLoaded)) { - this.firstClassProperties.add(property); - } - - // If this property can be found, add it to the list of - // firstClassSummaryProperties - if (property.hasFlag(PropertyDefinitionFlags.CanFind)) { - this.firstClassSummaryProperties.add(property); - } - } - - /** - * Registers a schema property that will be visible to developers. - * - * @param property - * The property to register. - */ - protected void registerProperty(PropertyDefinition property) { - this.registerProperty(property, false); - } - - /** - * Registers an internal schema property. - * - * @param property - * The property to register. - */ - protected void registerInternalProperty(PropertyDefinition property) { - this.registerProperty(property, true); - } - - /** - * Registers an indexed property. - * - * @param indexedProperty - * The indexed property to register. - */ - protected void registerIndexedProperty(IndexedPropertyDefinition - indexedProperty){ - this.indexedProperties.add(indexedProperty); + return typeList; + } + }); + + /** + * Dictionary of all property definitions. + */ + private static LazyMember> + allSchemaProperties = new + LazyMember>( + new ILazyMember>() { + public Map createInstance() { + Map propDefDictionary = + new HashMap(); + for (Class c : ServiceObjectSchema.allSchemaTypes + .getMember()) { + ServiceObjectSchema.addSchemaPropertiesToDictionary(c, + propDefDictionary); + } + return propDefDictionary; + } + }); + + /** + * Adds schema properties to dictionary. + * + * @param type Schema type. + * @param propDefDictionary The property definition dictionary. + */ + protected static void addSchemaPropertiesToDictionary(Class type, + Map propDefDictionary) { + Field[] fields = type.getDeclaredFields(); + for (Field field : fields) { + int modifier = field.getModifiers(); + if (Modifier.isPublic(modifier) && Modifier.isStatic(modifier)) { + Object o; + try { + o = field.get(null); + if (o instanceof PropertyDefinition) { + PropertyDefinition propertyDefinition = + (PropertyDefinition) o; + // Some property definitions descend from + // ServiceObjectPropertyDefinition but don't have + // a Uri, like ExtendedProperties. Ignore them. + if (null != propertyDefinition.getUri() && + !propertyDefinition.getUri().isEmpty()) { + PropertyDefinitionBase existingPropertyDefinition; + if (propDefDictionary + .containsKey(propertyDefinition.getUri())) { + existingPropertyDefinition = propDefDictionary + .get(propertyDefinition.getUri()); + EwsUtilities + .EwsAssert( + existingPropertyDefinition == + propertyDefinition, + "Schema.allSchemaProperties." + + "delegate", + String + .format( + "There are at least " + + "two distinct property " + + "definitions with the" + + " following URI: %s", + propertyDefinition + .getUri())); + } else { + propDefDictionary.put(propertyDefinition + .getUri(), propertyDefinition); + // The following is a "generic hack" to register + // properties that are not public and + // thus not returned by the above GetFields + // call. It is currently solely used to register + // the MeetingTimeZone property. + List associatedInternalProperties = + propertyDefinition.getAssociatedInternalProperties(); + for (PropertyDefinition associatedInternalProperty : associatedInternalProperties) { + propDefDictionary + .put(associatedInternalProperty + .getUri(), + associatedInternalProperty); + } + + } + } + } + } catch (IllegalArgumentException e) { + e.printStackTrace(); + + // Skip the field + } catch (IllegalAccessException e) { + e.printStackTrace(); + + // Skip the field + } + + } + } + } + + /** + * Adds the schema property names to dictionary. + * + * @param type The type. + * @param propertyNameDictionary The property name dictionary. + */ + protected static void addSchemaPropertyNamesToDictionary(Class type, + Map propertyNameDictionary) { + + Field[] fields = type.getDeclaredFields(); + for (Field field : fields) { + int modifier = field.getModifiers(); + if (Modifier.isPublic(modifier) && Modifier.isStatic(modifier)) { + Object o; + try { + o = field.get(null); + if (o instanceof PropertyDefinition) { + PropertyDefinition propertyDefinition = + (PropertyDefinition) o; + propertyNameDictionary.put(propertyDefinition, field + .getName()); + } + } catch (IllegalArgumentException e) { + e.printStackTrace(); + + // Skip the field + } catch (IllegalAccessException e) { + e.printStackTrace(); + + // Skip the field + } + } + } + } + + /** + * Initializes a new instance. + */ + protected ServiceObjectSchema() { + this.registerProperties(); + } + + /** + * Finds the property definition. + * + * @param uri The URI. + * @return Property definition. + */ + protected static PropertyDefinitionBase findPropertyDefinition(String uri) { + return ServiceObjectSchema.allSchemaProperties.getMember().get(uri); + } + + /** + * Initialize schema property names. + */ + protected static void initializeSchemaPropertyNames() { + synchronized (lockObject) { + for (Class type : ServiceObjectSchema.allSchemaTypes.getMember()) { + Field[] fields = type.getDeclaredFields(); + for (Field field : fields) { + int modifier = field.getModifiers(); + if (Modifier.isPublic(modifier) && + Modifier.isStatic(modifier)) { + Object o; + try { + o = field.get(null); + if (o instanceof PropertyDefinition) { + PropertyDefinition propertyDefinition = + (PropertyDefinition) o; + propertyDefinition.setName(field.getName()); + } + } catch (IllegalArgumentException e) { + e.printStackTrace(); + + // Skip the field + } catch (IllegalAccessException e) { + e.printStackTrace(); + + // Skip the field + } + } + } + } + } + } + + /** + * Defines the ExtendedProperties property. + */ + public static final PropertyDefinition extendedProperties = + new ComplexPropertyDefinition( + ExtendedPropertyCollection.class, + XmlElementNames.ExtendedProperty, + EnumSet.of(PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.ReuseInstance, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate + () { + public ExtendedPropertyCollection createComplexProperty() { + return new ExtendedPropertyCollection(); + } + }); + + /** + * The properties. + */ + private Map properties = + new HashMap(); + + /** + * The visible properties. + */ + private List visibleProperties = + new ArrayList(); + + /** + * The first class properties. + */ + private List firstClassProperties = + new ArrayList(); + + /** + * The first class summary properties. + */ + private List firstClassSummaryProperties = + new ArrayList(); + + private List indexedProperties = + new ArrayList(); + + /** + * Registers a schema property. + * + * @param property The property to register. + * @param isInternal Indicates whether the property is internal or should be + * visible to developers. + */ + private void registerProperty(PropertyDefinition property, + boolean isInternal) { + this.properties.put(property.getXmlElement(), property); + + if (!isInternal) { + this.visibleProperties.add(property); } - - /** - * Registers properties. - */ - protected void registerProperties() { - } - - /** - * Gets the list of first class properties for this service object type. - * - * @return the first class properties - */ - protected List getFirstClassProperties() { - return this.firstClassProperties; - } - - /** - * Gets the list of first class summary properties for this service object - * type. - * - * @return the first class summary properties - */ - protected List getFirstClassSummaryProperties() { - return this.firstClassSummaryProperties; - } - - /** - * Tries to get property definition. - * - * @param xmlElementName - * Name of the XML element. - * @param propertyDefinitionOutParam - * The property definition. - * @return True if property definition exists. - */ - protected boolean tryGetPropertyDefinition(String xmlElementName, - OutParam propertyDefinitionOutParam) { - if (this.properties.containsKey(xmlElementName)) { - propertyDefinitionOutParam.setParam(this.properties - .get(xmlElementName)); - return true; - } else { - return false; - } - } - - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - return this.visibleProperties.iterator(); - } + // If this property does not have to be requested explicitly, add + // it to the list of firstClassProperties. + if (!property.hasFlag(PropertyDefinitionFlags.MustBeExplicitlyLoaded)) { + this.firstClassProperties.add(property); + } + + // If this property can be found, add it to the list of + // firstClassSummaryProperties + if (property.hasFlag(PropertyDefinitionFlags.CanFind)) { + this.firstClassSummaryProperties.add(property); + } + } + + /** + * Registers a schema property that will be visible to developers. + * + * @param property The property to register. + */ + protected void registerProperty(PropertyDefinition property) { + this.registerProperty(property, false); + } + + /** + * Registers an internal schema property. + * + * @param property The property to register. + */ + protected void registerInternalProperty(PropertyDefinition property) { + this.registerProperty(property, true); + } + + /** + * Registers an indexed property. + * + * @param indexedProperty The indexed property to register. + */ + protected void registerIndexedProperty(IndexedPropertyDefinition + indexedProperty) { + this.indexedProperties.add(indexedProperty); + } + + + /** + * Registers properties. + */ + protected void registerProperties() { + } + + /** + * Gets the list of first class properties for this service object type. + * + * @return the first class properties + */ + protected List getFirstClassProperties() { + return this.firstClassProperties; + } + + /** + * Gets the list of first class summary properties for this service object + * type. + * + * @return the first class summary properties + */ + protected List getFirstClassSummaryProperties() { + return this.firstClassSummaryProperties; + } + + /** + * Tries to get property definition. + * + * @param xmlElementName Name of the XML element. + * @param propertyDefinitionOutParam The property definition. + * @return True if property definition exists. + */ + protected boolean tryGetPropertyDefinition(String xmlElementName, + OutParam propertyDefinitionOutParam) { + if (this.properties.containsKey(xmlElementName)) { + propertyDefinitionOutParam.setParam(this.properties + .get(xmlElementName)); + return true; + } else { + return false; + } + } + + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + return this.visibleProperties.iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java index 261759bff..559701c64 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java @@ -15,15 +15,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum ServiceObjectType { - // The object is a folder. - /** The Folder. */ - Folder, + // The object is a folder. + /** + * The Folder. + */ + Folder, - // The object is an item. - /** The Item. */ - Item, - - /// Data represents a conversation - /** The Conversation. */ - Conversation + // The object is an item. + /** + * The Item. + */ + Item, + + /// Data represents a conversation + /** + * The Conversation. + */ + Conversation } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index 26c6401dc..15231c8e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -15,32 +15,29 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceRemoteException extends Exception { - /** - * ServiceRemoteException Constructor. - */ - public ServiceRemoteException() { - super(); - } + /** + * ServiceRemoteException Constructor. + */ + public ServiceRemoteException() { + super(); + } - /** - * ServiceRemoteException Constructor. - * - * @param message - * the message - */ - public ServiceRemoteException(String message) { - super(message); - } + /** + * ServiceRemoteException Constructor. + * + * @param message the message + */ + public ServiceRemoteException(String message) { + super(message); + } - /** - * ServiceRemoteException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceRemoteException(String message, Exception innerException) { - super(message, innerException); - } + /** + * ServiceRemoteException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceRemoteException(String message, Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 4952c4dec..31f5c8865 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -11,9 +11,10 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; -import java.io.*; -import java.util.concurrent.Callable; -import java.util.concurrent.Future; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; @@ -22,224 +23,198 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ abstract class ServiceRequestBase { - // Private Constants - // private final String XMLSchemaNamespace = - // "http://www.w3.org/2001/XMLSchema"; - // private final String XMLSchemaInstanceNamespace = - // "http://www.w3.org/2001/XMLSchema-instance"; - - /** The service. */ - private ExchangeService service; - - // Methods for subclasses to override - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - protected abstract String getXmlElementName(); - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - protected abstract String getResponseXmlElementName(); - - /** - * Gets the minimum server version required to process this request. - * - * @return Exchange server version. - */ - protected abstract ExchangeVersion getMinimumRequiredServerVersion(); - - /** - * Writes XML elements. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws ServiceLocalException - * the service local exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceValidationException - * the service validation exception - * @throws Exception - * the exception - */ - protected abstract void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceLocalException, InstantiationException, - IllegalAccessException, ServiceValidationException, Exception; - - /** - * Parses the response. - * - * @param reader - * The reader. - * @return Response object. - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceLocalException - * the service local exception - * @throws ServiceResponseException - * the service response exception - * @throws IndexOutOfBoundsException - * the index out of bounds exception - * @throws Exception - * the exception - */ - protected abstract Object parseResponse(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, ServiceResponseException, - IndexOutOfBoundsException, Exception; - - /** - * Validate request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected void validate() throws ServiceLocalException, Exception { - this.service.validate(); - } - - /** - * Writes XML body. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - protected void writeBodyToXml(EwsServiceXmlWriter writer) throws Exception { - writer.writeStartElement(XmlNamespace.Messages, this - .getXmlElementName()); - - this.writeAttributesToXml(writer); - this.writeElementsToXml(writer); - - writer.writeEndElement(); // m:this.GetXmlElementName() - } - - /** - * Writes XML attributes. Subclass will override if it has XML attributes. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - } - - /** - * Initializes a new instance. - * - * @param service - * The service. - * @throws ServiceVersionException - * the service version exception - */ - protected ServiceRequestBase(ExchangeService service) - throws ServiceVersionException { - this.service = service; - this.throwIfNotSupportedByRequestedServerVersion(); - } - - /** - * Gets the service. - * - * @return The service. - */ - protected ExchangeService getService() { - return service; - } - - /** - * Throw exception if request is not supported in requested server - * version. - * - * @throws ServiceVersionException - * the service version exception - */ - protected void throwIfNotSupportedByRequestedServerVersion() - throws ServiceVersionException { - if (this.service.getRequestedServerVersion().ordinal() < this - .getMinimumRequiredServerVersion().ordinal()) { - throw new ServiceVersionException(String.format( - Strings.RequestIncompatibleWithRequestVersion, this - .getXmlElementName(), this - .getMinimumRequiredServerVersion())); - } - } - - // HttpWebRequest-based implementation - - /** - * Writes XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - writer.writeStartDocument(); - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - writer.writeAttributeValue("xmlns", EwsUtilities - .getNamespacePrefix(XmlNamespace.Soap), EwsUtilities - .getNamespaceUri(XmlNamespace.Soap)); - writer.writeAttributeValue("xmlns", - EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, - EwsUtilities.EwsXmlSchemaInstanceNamespace); - writer.writeAttributeValue("xmlns", - EwsUtilities.EwsMessagesNamespacePrefix, - EwsUtilities.EwsMessagesNamespace); - writer.writeAttributeValue("xmlns", - EwsUtilities.EwsTypesNamespacePrefix, - EwsUtilities.EwsTypesNamespace); - if (writer.isRequireWSSecurityUtilityNamespace()) { - writer.writeAttributeValue("xmlns", - EwsUtilities.WSSecurityUtilityNamespacePrefix, - EwsUtilities.WSSecurityUtilityNamespace); - } - - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName); - - if (this.service.getCredentials() != null) { - this.service.getCredentials().emitExtraSoapHeaderNamespaceAliases( - writer.getInternalWriter()); - } - - // Emit the RequestServerVersion header - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.RequestServerVersion); - writer.writeAttributeValue(XmlAttributeNames.Version, this - .getRequestedServiceVersionString()); - writer.writeEndElement(); // RequestServerVersion + // Private Constants + // private final String XMLSchemaNamespace = + // "http://www.w3.org/2001/XMLSchema"; + // private final String XMLSchemaInstanceNamespace = + // "http://www.w3.org/2001/XMLSchema-instance"; + + /** + * The service. + */ + private ExchangeService service; + + // Methods for subclasses to override + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + protected abstract String getXmlElementName(); + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + protected abstract String getResponseXmlElementName(); + + /** + * Gets the minimum server version required to process this request. + * + * @return Exchange server version. + */ + protected abstract ExchangeVersion getMinimumRequiredServerVersion(); + + /** + * Writes XML elements. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws ServiceLocalException the service local exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceValidationException the service validation exception + * @throws Exception the exception + */ + protected abstract void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceLocalException, InstantiationException, + IllegalAccessException, ServiceValidationException, Exception; + + /** + * Parses the response. + * + * @param reader The reader. + * @return Response object. + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceLocalException the service local exception + * @throws ServiceResponseException the service response exception + * @throws IndexOutOfBoundsException the index out of bounds exception + * @throws Exception the exception + */ + protected abstract Object parseResponse(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceLocalException, ServiceResponseException, + IndexOutOfBoundsException, Exception; + + /** + * Validate request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected void validate() throws ServiceLocalException, Exception { + this.service.validate(); + } + + /** + * Writes XML body. + * + * @param writer The writer. + * @throws Exception the exception + */ + protected void writeBodyToXml(EwsServiceXmlWriter writer) throws Exception { + writer.writeStartElement(XmlNamespace.Messages, this + .getXmlElementName()); + + this.writeAttributesToXml(writer); + this.writeElementsToXml(writer); + + writer.writeEndElement(); // m:this.GetXmlElementName() + } + + /** + * Writes XML attributes. Subclass will override if it has XML attributes. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + } + + /** + * Initializes a new instance. + * + * @param service The service. + * @throws ServiceVersionException the service version exception + */ + protected ServiceRequestBase(ExchangeService service) + throws ServiceVersionException { + this.service = service; + this.throwIfNotSupportedByRequestedServerVersion(); + } + + /** + * Gets the service. + * + * @return The service. + */ + protected ExchangeService getService() { + return service; + } + + /** + * Throw exception if request is not supported in requested server + * version. + * + * @throws ServiceVersionException the service version exception + */ + protected void throwIfNotSupportedByRequestedServerVersion() + throws ServiceVersionException { + if (this.service.getRequestedServerVersion().ordinal() < this + .getMinimumRequiredServerVersion().ordinal()) { + throw new ServiceVersionException(String.format( + Strings.RequestIncompatibleWithRequestVersion, this + .getXmlElementName(), this + .getMinimumRequiredServerVersion())); + } + } + + // HttpWebRequest-based implementation + + /** + * Writes XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + writer.writeStartDocument(); + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + writer.writeAttributeValue("xmlns", EwsUtilities + .getNamespacePrefix(XmlNamespace.Soap), EwsUtilities + .getNamespaceUri(XmlNamespace.Soap)); + writer.writeAttributeValue("xmlns", + EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, + EwsUtilities.EwsXmlSchemaInstanceNamespace); + writer.writeAttributeValue("xmlns", + EwsUtilities.EwsMessagesNamespacePrefix, + EwsUtilities.EwsMessagesNamespace); + writer.writeAttributeValue("xmlns", + EwsUtilities.EwsTypesNamespacePrefix, + EwsUtilities.EwsTypesNamespace); + if (writer.isRequireWSSecurityUtilityNamespace()) { + writer.writeAttributeValue("xmlns", + EwsUtilities.WSSecurityUtilityNamespacePrefix, + EwsUtilities.WSSecurityUtilityNamespace); + } + + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName); + + if (this.service.getCredentials() != null) { + this.service.getCredentials().emitExtraSoapHeaderNamespaceAliases( + writer.getInternalWriter()); + } + + // Emit the RequestServerVersion header + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.RequestServerVersion); + writer.writeAttributeValue(XmlAttributeNames.Version, this + .getRequestedServiceVersionString()); + writer.writeEndElement(); // RequestServerVersion /* - * if ((this.getService().getRequestedServerVersion().ordinal() == + * if ((this.getService().getRequestedServerVersion().ordinal() == * ExchangeVersion.Exchange2007_SP1.ordinal() || * this.EmitTimeZoneHeader()) && * (!this.getService().getExchange2007CompatibilityMode())) { @@ -253,516 +228,495 @@ protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { * writer.IsTimeZoneHeaderEmitted = true; } */ - if (this.service.getPreferredCulture() != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.MailboxCulture, this.service - .getPreferredCulture().getDisplayName()); - } - - /** Emit the DateTimePrecision header */ - - if (this.getService().getDateTimePrecision().ordinal() != DateTimePrecision.Default - .ordinal()) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DateTimePrecision, this.getService() - .getDateTimePrecision().toString()); - } - if (this.service.getImpersonatedUserId() != null) { - this.service.getImpersonatedUserId().writeToXml(writer); - } - - if (this.service.getCredentials() != null) { - this.service.getCredentials().serializeExtraSoapHeaders( - writer.getInternalWriter(), this.getXmlElementName()); - } - this.service.doOnSerializeCustomSoapHeaders(writer.getInternalWriter()); - - writer.writeEndElement(); // soap:Header - - writer.writeStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - - this.writeBodyToXml(writer); - - writer.writeEndElement(); // soap:Body - writer.writeEndElement(); // soap:Envelope - writer.flush(); - } - - /** - * Gets st ring representation of requested server version. In order to - * support E12 RTM servers, ExchangeService has another flag indicating that - * we should use "Exchange2007" as the server version string rather than - * Exchange2007_SP1. - * - * @return String representation of requested server version. - */ - private String getRequestedServiceVersionString() { - if (this.service.getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { - return "Exchange2007"; - } else { - return this.service.getRequestedServerVersion().toString(); - } - } - - /** - * Gets the response stream (may be wrapped with GZip/Deflate stream to - * decompress content). - * - * @param request - * HttpWebRequest object from which response stream can be read. - * @return ResponseStream - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - protected static InputStream getResponseStream(HttpWebRequest request) - throws IOException, EWSHttpException { - String contentEncoding = ""; - - if (null != request.getContentEncoding()) { - contentEncoding = request.getContentEncoding().toLowerCase(); - } - - InputStream responseStream; - - if (contentEncoding.contains("gzip")) { - responseStream = new GZIPInputStream(request.getInputStream()); - } else if (contentEncoding.contains("deflate")) { - responseStream = new InflaterInputStream(request.getInputStream()); - } else { - responseStream = request.getInputStream(); - } - return responseStream; - } - - /** - * Traces the response. - * - * @param request - * The response. - * @param memoryStream - * The response content in a MemoryStream. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - */ - protected void traceResponse(HttpWebRequest request, - ByteArrayOutputStream memoryStream) throws XMLStreamException, - IOException, EWSHttpException { - - this.service.processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, request); - String contentType = request.getResponseContentType(); - - if (!isNullOrEmpty(contentType) - && (contentType.startsWith("text/") || contentType - .startsWith("application/soap"))) { - this.service.traceXml(TraceFlags.EwsResponse, memoryStream); - } else { - this.service.traceMessage(TraceFlags.EwsResponse, - "Non-textual response"); - } - - } - - /** - * Gets the response error stream. - * - * @param request - * the request - * @return the response error stream - * @throws microsoft.exchange.webservices.data.EWSHttpException - * the eWS http exception - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - */ - private static InputStream getResponseErrorStream(HttpWebRequest request) - throws EWSHttpException, IOException { - String contentEncoding = ""; - - if (null != request.getContentEncoding()) { - contentEncoding = request.getContentEncoding().toLowerCase(); - } - - InputStream responseStream; - - if (contentEncoding.contains("gzip")) { - responseStream = new GZIPInputStream(request.getErrorStream()); - } else if (contentEncoding.contains("deflate")) { - responseStream = new InflaterInputStream(request.getErrorStream()); - } else { - responseStream = request.getErrorStream(); - } - return responseStream; - } - - /** - * Reads the response. - * - * @param ewsXmlReader - * The XML reader. - * @return Service response. - * @throws Exception - * the exception - */ - protected Object readResponse(EwsServiceXmlReader ewsXmlReader) - throws Exception { - Object serviceResponse; - this.readPreamble(ewsXmlReader); - ewsXmlReader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - this.readSoapHeader(ewsXmlReader); - ewsXmlReader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - - ewsXmlReader.readStartElement(XmlNamespace.Messages, this - .getResponseXmlElementName()); - - serviceResponse = this.parseResponse(ewsXmlReader); - - ewsXmlReader.readEndElementIfNecessary(XmlNamespace.Messages, this - .getResponseXmlElementName()); - - ewsXmlReader.readEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPBodyElementName); - ewsXmlReader.readEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPEnvelopeElementName); - return serviceResponse; - } - - /** - * Reads any preamble data not part of the core response. - * - * @param ewsXmlReader - * The EwsServiceXmlReader. - * @throws Exception - */ - protected void readPreamble(EwsServiceXmlReader ewsXmlReader) - throws Exception { - this.readXmlDeclaration(ewsXmlReader); - } - - /** - * Read SOAP header and extract server version. - * - * @param reader - * EwsServiceXmlReader - * @throws Exception - * the exception - */ - private void readSoapHeader(EwsServiceXmlReader reader) throws Exception { - reader.readStartElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName); - do { - reader.read(); - - // Is this the ServerVersionInfo? - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.ServerVersionInfo)) { - this.service.setServerInfo(ExchangeServerInfo.parse(reader)); - } - - // Ignore anything else inside the SOAP header - } while (!reader.isEndElement(XmlNamespace.Soap, - XmlElementNames.SOAPHeaderElementName)); - } - - /** - * Processes the web exception. - * - * @param webException - * The web exception. - * @param req - * http Request object used to send the http request. - * @throws Exception - */ - protected void processWebException(Exception webException, HttpWebRequest req) - throws Exception { - SoapFaultDetails soapFaultDetails = null; - if (null != req) { - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, req); - if (500 == req.getResponseCode()) { - if (this.service.isTraceEnabledFor(TraceFlags.EwsResponse)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - InputStream serviceResponseStream = ServiceRequestBase - .getResponseErrorStream(req); - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - memoryStream.flush(); - serviceResponseStream.close(); - this.traceResponse(req, memoryStream); - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsServiceXmlReader reader = new EwsServiceXmlReader( - memoryStreamIn, this.service); - soapFaultDetails = this.readSoapFault(reader); - memoryStream.close(); - } else { - InputStream serviceResponseStream = ServiceRequestBase - .getResponseStream(req); - EwsServiceXmlReader reader = new EwsServiceXmlReader( - serviceResponseStream, this.service); - soapFaultDetails = this.readSoapFault(reader); - serviceResponseStream.close(); - - } - - if (soapFaultDetails != null) { - switch (soapFaultDetails.getResponseCode()) { - case ErrorInvalidServerVersion: - throw new ServiceVersionException( - Strings.ServerVersionNotSupported); - - case ErrorSchemaValidation: - // If we're talking to an E12 server - // (8.00.xxxx.xxx), a schema - // validation error is the same as - // a version mismatch error. - // (Which only will happen if we - // send a request that's not valid - // for E12). - if ((this.service.getServerInfo() != null) - && (this.service.getServerInfo() - .getMajorVersion() == 8) - && (this.service.getServerInfo() - .getMinorVersion() == 0)) { - throw new ServiceVersionException( - Strings.ServerVersionNotSupported); - } - - break; - - case ErrorIncorrectSchemaVersion: - // This shouldn't happen. It - // indicates that a request wasn't - // valid for the version that was specified. - EwsUtilities - .EwsAssert( - false, - "ServiceRequestBase.ProcessWebException", - "Exchange server supports " - + "requested version " - + "but request was invalid for that version"); - break; - - default: - // Other error codes will - // be reported as remote error - break; - } - - // General fall-through case: - // throw a ServiceResponseException - throw new ServiceResponseException(new ServiceResponse( - soapFaultDetails)); - } - } else { - this.service.processHttpErrorResponse(req, webException); - } - } - - } - - /** - * Reads the SOAP fault. - * - * @param reader - * The reader. - * @return SOAP fault details. - */ - protected SoapFaultDetails readSoapFault(EwsServiceXmlReader reader) { - SoapFaultDetails soapFaultDetails = null; - - try { - this.readXmlDeclaration(reader); - - reader.read(); - if (!reader.isStartElement() - || (!reader.getLocalName().equals( - XmlElementNames.SOAPEnvelopeElementName))) { - return soapFaultDetails; - } - - // EWS can sometimes return SOAP faults using the SOAP 1.2 - // namespace. Get the - // namespace URI from the envelope element and use it for the rest - // of the parsing. - // If it's not 1.1 or 1.2, we can't continue. - XmlNamespace soapNamespace = EwsUtilities - .getNamespaceFromUri(reader.getNamespaceUri()); - if (soapNamespace == XmlNamespace.NotSpecified) { - return soapFaultDetails; - } - - reader.read(); - - // EWS doesn't always return a SOAP header. If this response - // contains a header element, - // read the server version information contained in the header. - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPHeaderElementName)) { - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.ServerVersionInfo)) { - this.service.setServerInfo(ExchangeServerInfo - .parse(reader)); - } - } while (!reader.isEndElement(soapNamespace, - XmlElementNames.SOAPHeaderElementName)); - - // Queue up the next read - reader.read(); - } - - // Parse the fault element contained within the SOAP body. - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPBodyElementName)) { - do { - reader.read(); - - // Parse Fault element - if (reader.isStartElement(soapNamespace, - XmlElementNames.SOAPFaultElementName)) { - soapFaultDetails = SoapFaultDetails.parse(reader, - soapNamespace); - } - } while (!reader.isEndElement(soapNamespace, - XmlElementNames.SOAPBodyElementName)); - } - - reader.readEndElement(soapNamespace, - XmlElementNames.SOAPEnvelopeElementName); - } catch (Exception e) { - // If response doesn't contain a valid SOAP fault, just ignore - // exception and - // return null for SOAP fault details. - e.printStackTrace(); - } - - return soapFaultDetails; - } - - /** - * Validates request parameters, and emits the request to the server. - * - * @return The response returned by the server. - */ - protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, Exception { - this.validate(); - - HttpWebRequest request = this.buildEwsHttpWebRequest(); - try { - return this.getEwsHttpWebResponse(request); - } catch (HttpErrorException e) { - processWebException(e, request); - - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); - } - } - - /** - * Builds the HttpWebRequest object for current service request - * with exception handling. - * - * @return An HttpWebRequest instance - */ - protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { - try { - HttpWebRequest request = service.prepareHttpWebRequest(); - - service.traceHttpRequestHeaders(TraceFlags.EwsRequestHttpHeaders, request); - - ByteArrayOutputStream requestStream = (ByteArrayOutputStream) request.getOutputStream(); - - EwsServiceXmlWriter writer = new EwsServiceXmlWriter(service, requestStream); - - boolean needSignature = service.getCredentials() != null && service.getCredentials().isNeedSignature(); - writer.setRequireWSSecurityUtilityNamespace(needSignature); - - writeToXml(writer); - - if (needSignature) { - service.getCredentials().sign(requestStream); - } - - service.traceXml(TraceFlags.EwsRequest, requestStream); - - return request; - } catch (IOException e) { - // Wrap exception. - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); - } - } - - /** - * Gets the IEwsHttpWebRequest object from the specifiedHttpWebRequest - * object with exception handling - * - * @param request The specified HttpWebRequest - * @return An HttpWebResponse instance - */ - protected HttpWebRequest getEwsHttpWebResponse(HttpWebRequest request) throws Exception { - try { - request.executeRequest(); - - if (request.getResponseCode() >= 400) { - throw new HttpErrorException( - "The remote server returned an error: (" + request.getResponseCode() + ")" + - request.getResponseText(), request.getResponseCode()); - } - } catch (IOException e) { - // Wrap exception. - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); - } - - return request; - } - - /** - * Checks whether input string is null or empty. - * - * @param str - * The input string. - * @return true if input string is null or empty, otherwise false - */ - private boolean isNullOrEmpty(String str) { - return null == str || str.isEmpty(); - } - - /** - * Try to read the XML declaration. If it's not there, the server didn't - * return XML. - * - * @param reader - * The reader. - * @throws Exception - */ - private void readXmlDeclaration(EwsServiceXmlReader reader) - throws Exception { - try { - reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - } catch (XmlException ex) { - throw new ServiceRequestException( - Strings.ServiceResponseDoesNotContainXml, ex); - } catch (ServiceXmlDeserializationException ex) { - throw new ServiceRequestException( - Strings.ServiceResponseDoesNotContainXml, ex); - } - } + if (this.service.getPreferredCulture() != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.MailboxCulture, this.service + .getPreferredCulture().getDisplayName()); + } + + /** Emit the DateTimePrecision header */ + + if (this.getService().getDateTimePrecision().ordinal() != DateTimePrecision.Default + .ordinal()) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DateTimePrecision, this.getService() + .getDateTimePrecision().toString()); + } + if (this.service.getImpersonatedUserId() != null) { + this.service.getImpersonatedUserId().writeToXml(writer); + } + + if (this.service.getCredentials() != null) { + this.service.getCredentials().serializeExtraSoapHeaders( + writer.getInternalWriter(), this.getXmlElementName()); + } + this.service.doOnSerializeCustomSoapHeaders(writer.getInternalWriter()); + + writer.writeEndElement(); // soap:Header + + writer.writeStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + + this.writeBodyToXml(writer); + + writer.writeEndElement(); // soap:Body + writer.writeEndElement(); // soap:Envelope + writer.flush(); + } + + /** + * Gets st ring representation of requested server version. In order to + * support E12 RTM servers, ExchangeService has another flag indicating that + * we should use "Exchange2007" as the server version string rather than + * Exchange2007_SP1. + * + * @return String representation of requested server version. + */ + private String getRequestedServiceVersionString() { + if (this.service.getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { + return "Exchange2007"; + } else { + return this.service.getRequestedServerVersion().toString(); + } + } + + /** + * Gets the response stream (may be wrapped with GZip/Deflate stream to + * decompress content). + * + * @param request HttpWebRequest object from which response stream can be read. + * @return ResponseStream + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + protected static InputStream getResponseStream(HttpWebRequest request) + throws IOException, EWSHttpException { + String contentEncoding = ""; + + if (null != request.getContentEncoding()) { + contentEncoding = request.getContentEncoding().toLowerCase(); + } + + InputStream responseStream; + + if (contentEncoding.contains("gzip")) { + responseStream = new GZIPInputStream(request.getInputStream()); + } else if (contentEncoding.contains("deflate")) { + responseStream = new InflaterInputStream(request.getInputStream()); + } else { + responseStream = request.getInputStream(); + } + return responseStream; + } + + /** + * Traces the response. + * + * @param request The response. + * @param memoryStream The response content in a MemoryStream. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + */ + protected void traceResponse(HttpWebRequest request, + ByteArrayOutputStream memoryStream) throws XMLStreamException, + IOException, EWSHttpException { + + this.service.processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, request); + String contentType = request.getResponseContentType(); + + if (!isNullOrEmpty(contentType) + && (contentType.startsWith("text/") || contentType + .startsWith("application/soap"))) { + this.service.traceXml(TraceFlags.EwsResponse, memoryStream); + } else { + this.service.traceMessage(TraceFlags.EwsResponse, + "Non-textual response"); + } + + } + + /** + * Gets the response error stream. + * + * @param request the request + * @return the response error stream + * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * @throws java.io.IOException Signals that an I/O exception has occurred. + */ + private static InputStream getResponseErrorStream(HttpWebRequest request) + throws EWSHttpException, IOException { + String contentEncoding = ""; + + if (null != request.getContentEncoding()) { + contentEncoding = request.getContentEncoding().toLowerCase(); + } + + InputStream responseStream; + + if (contentEncoding.contains("gzip")) { + responseStream = new GZIPInputStream(request.getErrorStream()); + } else if (contentEncoding.contains("deflate")) { + responseStream = new InflaterInputStream(request.getErrorStream()); + } else { + responseStream = request.getErrorStream(); + } + return responseStream; + } + + /** + * Reads the response. + * + * @param ewsXmlReader The XML reader. + * @return Service response. + * @throws Exception the exception + */ + protected Object readResponse(EwsServiceXmlReader ewsXmlReader) + throws Exception { + Object serviceResponse; + this.readPreamble(ewsXmlReader); + ewsXmlReader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + this.readSoapHeader(ewsXmlReader); + ewsXmlReader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + + ewsXmlReader.readStartElement(XmlNamespace.Messages, this + .getResponseXmlElementName()); + + serviceResponse = this.parseResponse(ewsXmlReader); + + ewsXmlReader.readEndElementIfNecessary(XmlNamespace.Messages, this + .getResponseXmlElementName()); + + ewsXmlReader.readEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPBodyElementName); + ewsXmlReader.readEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPEnvelopeElementName); + return serviceResponse; + } + + /** + * Reads any preamble data not part of the core response. + * + * @param ewsXmlReader The EwsServiceXmlReader. + * @throws Exception + */ + protected void readPreamble(EwsServiceXmlReader ewsXmlReader) + throws Exception { + this.readXmlDeclaration(ewsXmlReader); + } + + /** + * Read SOAP header and extract server version. + * + * @param reader EwsServiceXmlReader + * @throws Exception the exception + */ + private void readSoapHeader(EwsServiceXmlReader reader) throws Exception { + reader.readStartElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName); + do { + reader.read(); + + // Is this the ServerVersionInfo? + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.ServerVersionInfo)) { + this.service.setServerInfo(ExchangeServerInfo.parse(reader)); + } + + // Ignore anything else inside the SOAP header + } while (!reader.isEndElement(XmlNamespace.Soap, + XmlElementNames.SOAPHeaderElementName)); + } + + /** + * Processes the web exception. + * + * @param webException The web exception. + * @param req http Request object used to send the http request. + * @throws Exception + */ + protected void processWebException(Exception webException, HttpWebRequest req) + throws Exception { + SoapFaultDetails soapFaultDetails = null; + if (null != req) { + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, req); + if (500 == req.getResponseCode()) { + if (this.service.isTraceEnabledFor(TraceFlags.EwsResponse)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + InputStream serviceResponseStream = ServiceRequestBase + .getResponseErrorStream(req); + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + memoryStream.flush(); + serviceResponseStream.close(); + this.traceResponse(req, memoryStream); + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsServiceXmlReader reader = new EwsServiceXmlReader( + memoryStreamIn, this.service); + soapFaultDetails = this.readSoapFault(reader); + memoryStream.close(); + } else { + InputStream serviceResponseStream = ServiceRequestBase + .getResponseStream(req); + EwsServiceXmlReader reader = new EwsServiceXmlReader( + serviceResponseStream, this.service); + soapFaultDetails = this.readSoapFault(reader); + serviceResponseStream.close(); + + } + + if (soapFaultDetails != null) { + switch (soapFaultDetails.getResponseCode()) { + case ErrorInvalidServerVersion: + throw new ServiceVersionException( + Strings.ServerVersionNotSupported); + + case ErrorSchemaValidation: + // If we're talking to an E12 server + // (8.00.xxxx.xxx), a schema + // validation error is the same as + // a version mismatch error. + // (Which only will happen if we + // send a request that's not valid + // for E12). + if ((this.service.getServerInfo() != null) + && (this.service.getServerInfo() + .getMajorVersion() == 8) + && (this.service.getServerInfo() + .getMinorVersion() == 0)) { + throw new ServiceVersionException( + Strings.ServerVersionNotSupported); + } + + break; + + case ErrorIncorrectSchemaVersion: + // This shouldn't happen. It + // indicates that a request wasn't + // valid for the version that was specified. + EwsUtilities + .EwsAssert( + false, + "ServiceRequestBase.ProcessWebException", + "Exchange server supports " + + "requested version " + + "but request was invalid for that version"); + break; + + default: + // Other error codes will + // be reported as remote error + break; + } + + // General fall-through case: + // throw a ServiceResponseException + throw new ServiceResponseException(new ServiceResponse( + soapFaultDetails)); + } + } else { + this.service.processHttpErrorResponse(req, webException); + } + } + + } + + /** + * Reads the SOAP fault. + * + * @param reader The reader. + * @return SOAP fault details. + */ + protected SoapFaultDetails readSoapFault(EwsServiceXmlReader reader) { + SoapFaultDetails soapFaultDetails = null; + + try { + this.readXmlDeclaration(reader); + + reader.read(); + if (!reader.isStartElement() + || (!reader.getLocalName().equals( + XmlElementNames.SOAPEnvelopeElementName))) { + return soapFaultDetails; + } + + // EWS can sometimes return SOAP faults using the SOAP 1.2 + // namespace. Get the + // namespace URI from the envelope element and use it for the rest + // of the parsing. + // If it's not 1.1 or 1.2, we can't continue. + XmlNamespace soapNamespace = EwsUtilities + .getNamespaceFromUri(reader.getNamespaceUri()); + if (soapNamespace == XmlNamespace.NotSpecified) { + return soapFaultDetails; + } + + reader.read(); + + // EWS doesn't always return a SOAP header. If this response + // contains a header element, + // read the server version information contained in the header. + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPHeaderElementName)) { + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.ServerVersionInfo)) { + this.service.setServerInfo(ExchangeServerInfo + .parse(reader)); + } + } while (!reader.isEndElement(soapNamespace, + XmlElementNames.SOAPHeaderElementName)); + + // Queue up the next read + reader.read(); + } + + // Parse the fault element contained within the SOAP body. + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPBodyElementName)) { + do { + reader.read(); + + // Parse Fault element + if (reader.isStartElement(soapNamespace, + XmlElementNames.SOAPFaultElementName)) { + soapFaultDetails = SoapFaultDetails.parse(reader, + soapNamespace); + } + } while (!reader.isEndElement(soapNamespace, + XmlElementNames.SOAPBodyElementName)); + } + + reader.readEndElement(soapNamespace, + XmlElementNames.SOAPEnvelopeElementName); + } catch (Exception e) { + // If response doesn't contain a valid SOAP fault, just ignore + // exception and + // return null for SOAP fault details. + e.printStackTrace(); + } + + return soapFaultDetails; + } + + /** + * Validates request parameters, and emits the request to the server. + * + * @return The response returned by the server. + */ + protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, Exception { + this.validate(); + + HttpWebRequest request = this.buildEwsHttpWebRequest(); + try { + return this.getEwsHttpWebResponse(request); + } catch (HttpErrorException e) { + processWebException(e, request); + + // Wrap exception if the above code block didn't throw + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } + } + + /** + * Builds the HttpWebRequest object for current service request + * with exception handling. + * + * @return An HttpWebRequest instance + */ + protected HttpWebRequest buildEwsHttpWebRequest() throws Exception { + try { + HttpWebRequest request = service.prepareHttpWebRequest(); + + service.traceHttpRequestHeaders(TraceFlags.EwsRequestHttpHeaders, request); + + ByteArrayOutputStream requestStream = (ByteArrayOutputStream) request.getOutputStream(); + + EwsServiceXmlWriter writer = new EwsServiceXmlWriter(service, requestStream); + + boolean needSignature = service.getCredentials() != null && service.getCredentials().isNeedSignature(); + writer.setRequireWSSecurityUtilityNamespace(needSignature); + + writeToXml(writer); + + if (needSignature) { + service.getCredentials().sign(requestStream); + } + + service.traceXml(TraceFlags.EwsRequest, requestStream); + + return request; + } catch (IOException e) { + // Wrap exception. + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } + } + + /** + * Gets the IEwsHttpWebRequest object from the specifiedHttpWebRequest + * object with exception handling + * + * @param request The specified HttpWebRequest + * @return An HttpWebResponse instance + */ + protected HttpWebRequest getEwsHttpWebResponse(HttpWebRequest request) throws Exception { + try { + request.executeRequest(); + + if (request.getResponseCode() >= 400) { + throw new HttpErrorException( + "The remote server returned an error: (" + request.getResponseCode() + ")" + + request.getResponseText(), request.getResponseCode()); + } + } catch (IOException e) { + // Wrap exception. + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } + + return request; + } + + /** + * Checks whether input string is null or empty. + * + * @param str The input string. + * @return true if input string is null or empty, otherwise false + */ + private boolean isNullOrEmpty(String str) { + return null == str || str.isEmpty(); + } + + /** + * Try to read the XML declaration. If it's not there, the server didn't + * return XML. + * + * @param reader The reader. + * @throws Exception + */ + private void readXmlDeclaration(EwsServiceXmlReader reader) + throws Exception { + try { + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + } catch (XmlException ex) { + throw new ServiceRequestException( + Strings.ServiceResponseDoesNotContainXml, ex); + } catch (ServiceXmlDeserializationException ex) { + throw new ServiceRequestException( + Strings.ServiceResponseDoesNotContainXml, ex); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index 7767ea559..7940f367a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -15,32 +15,29 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceRequestException extends ServiceRemoteException { - /** - * ServiceRequestException Constructor. - */ - public ServiceRequestException() { - super(); - } + /** + * ServiceRequestException Constructor. + */ + public ServiceRequestException() { + super(); + } - /** - * ServiceRequestException Constructor. - * - * @param message - * the message - */ - public ServiceRequestException(String message) { - super(message); - } + /** + * ServiceRequestException Constructor. + * + * @param message the message + */ + public ServiceRequestException(String message) { + super(message); + } - /** - * ServiceRequestException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceRequestException(String message, Exception innerException) { - super(message, innerException); - } + /** + * ServiceRequestException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceRequestException(String message, Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java index 48f5b4d18..424b248c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java @@ -10,340 +10,333 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; -import javax.xml.stream.XMLStreamException; - -/*** +/** * Represents the standard response to an Exchange Web Services operation. */ public class ServiceResponse { - /** The result. */ - private ServiceResult result; - - /** The error code. */ - private ServiceError errorCode; - - /** The error message. */ - private String errorMessage; - - /** The error details. */ - private Map errorDetails = new HashMap(); - - /** The error properties. */ - private Collection errorProperties = - new ArrayList(); - - /** - * Initializes a new instance. - */ - protected ServiceResponse() { - } - - /** - * Initializes a new instance. - * - * @param soapFaultDetails - * The SOAP fault details. - */ - protected ServiceResponse(SoapFaultDetails soapFaultDetails) { - this.result = ServiceResult.Error; - this.errorCode = soapFaultDetails.getResponseCode(); - this.errorMessage = soapFaultDetails.getFaultString(); - this.errorDetails = soapFaultDetails.getErrorDetails(); - } - - /** - * Loads response from XML. - * - * @param reader - * the reader - * @param xmlElementName - * the xml element name - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader, - String xmlElementName) - throws Exception { - if (!reader.isStartElement(XmlNamespace.Messages, xmlElementName)) { - reader.readStartElement(XmlNamespace.Messages, xmlElementName); - } - - this.result = reader.readAttributeValue(ServiceResult.class, - XmlAttributeNames.ResponseClass); - - if (this.result == ServiceResult.Success || - this.result == ServiceResult.Warning) { - if (this.result == ServiceResult.Warning) { - this.errorMessage = reader.readElementValue( - XmlNamespace.Messages, XmlElementNames.MessageText); - } - - this.errorCode = reader.readElementValue(ServiceError.class, - XmlNamespace.Messages, XmlElementNames.ResponseCode); - - if (this.result == ServiceResult.Warning) { - reader.readElementValue(int.class, XmlNamespace.Messages, - XmlElementNames.DescriptiveLinkKey); - } - - // Bug E14:212308 -- If batch processing stopped, EWS returns an - // empty element. Skip over it. - if (this.getBatchProcessingStopped()) { - do { - reader.read(); - } while (!reader.isEndElement(XmlNamespace.Messages, - xmlElementName)); - } else { - - this.readElementsFromXml(reader); - //read end tag if it is an empty element. - if (reader.isEmptyElement()) {reader.read();} - reader.readEndElementIfNecessary(XmlNamespace. - Messages, xmlElementName); - } - } else { - this.errorMessage = reader.readElementValue(XmlNamespace.Messages, - XmlElementNames.MessageText); - this.errorCode = reader.readElementValue(ServiceError.class, - XmlNamespace.Messages, XmlElementNames.ResponseCode); - reader.readElementValue(int.class, XmlNamespace.Messages, - XmlElementNames.DescriptiveLinkKey); - - while (!reader.isEndElement(XmlNamespace. - Messages, xmlElementName)) { - reader.read(); - - if (reader.isStartElement()) { - if (!this.loadExtraErrorDetailsFromXml(reader, reader.getLocalName())) { - reader.skipCurrentElement(); - } - - } - } - } - - this.mapErrorCodeToErrorMessage(); - - this.loaded(); - } - - /** - * Parses the message XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void parseMessageXml(EwsServiceXmlReader reader) - throws Exception { - do { - reader.read(); - if (reader.isStartElement()) { - if (reader.getLocalName().equals(XmlElementNames.Value)) { - this.errorDetails.put(reader - .readAttributeValue(XmlAttributeNames.Name), reader - .readElementValue()); - } else if (reader.getLocalName().equals( - XmlElementNames.FieldURI)) { - this.errorProperties - .add(ServiceObjectSchema - .findPropertyDefinition(reader - .readAttributeValue(XmlAttributeNames. - FieldURI))); - } else if (reader.getLocalName().equals( - XmlElementNames.IndexedFieldURI)) { - this.errorProperties - .add(new IndexedPropertyDefinition( - reader - .readAttributeValue(XmlAttributeNames. - FieldURI), - reader - .readAttributeValue(XmlAttributeNames. - FieldIndex))); - } else if (reader.getLocalName().equals( - XmlElementNames.ExtendedFieldURI)) { - ExtendedPropertyDefinition extendedPropDef = - new ExtendedPropertyDefinition(); - extendedPropDef.loadFromXml(reader); - this.errorProperties.add(extendedPropDef); - } - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.MessageXml)); - } - - - - /** - * Called when the response has been loaded from XML. - */ - protected void loaded() { - } - - /** - * Called after the response has been loaded from XML in order to map error - * codes to "better" error messages. - */ - protected void mapErrorCodeToErrorMessage() { - // Bug E14:69560 -- Use a better error message when an item cannot be - // updated because its changeKey is old. - if (this.getErrorCode() == ServiceError.ErrorIrresolvableConflict) { - this.setErrorMessage(Strings.ItemIsOutOfDate); - } - } - - /** - * Reads response elements from XML. - * - * @param reader - * The reader. - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, Exception { - } - - /** - * Loads extra error details from XML - * @param reader The reader. - * @param xmlElementName The current element name of the extra error details. - * @return True if the expected extra details is loaded; - * False if the element name does not match the expected element. - */ - protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, - String xmlElementName) throws Exception - { - if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.MessageXml) && - !reader.isEmptyElement()) - { - this.parseMessageXml(reader); - - return true; - } - else - { - return false; - } - } - /** - * Throws a ServiceResponseException if this response has its Result - * property set to Error. - * - * @throws ServiceResponseException - * the service response exception - */ - protected void throwIfNecessary() throws ServiceResponseException { - this.internalThrowIfNecessary(); - } - - /** - * Internal method that throws a ServiceResponseException if this response - * has its Result property set to Error. - * - * @throws ServiceResponseException - * the service response exception - */ - protected void internalThrowIfNecessary() throws ServiceResponseException { - if (this.result == ServiceResult.Error) { - throw new ServiceResponseException(this); - } - } - - /** - * Gets a value indicating whether a batch request stopped processing before - * the end. - * - * @return A value indicating whether a batch request stopped processing - * before the end. - */ - protected boolean getBatchProcessingStopped() { - return (this.result == ServiceResult.Warning) - && (this.errorCode == ServiceError.ErrorBatchProcessingStopped); - } - - /** - * Gets the result associated with this response. - * - * @return The result associated with this response. - */ - public ServiceResult getResult() { - return result; - } - - /** - * Gets the error code associated with this response. - * - * @return The error code associated with this response. - */ - public ServiceError getErrorCode() { - return errorCode; - } - - /** - * Gets a detailed error message associated with the response. If Result - * is set to Success, ErrorMessage returns null. ErrorMessage is localized - * according to the PreferredCulture property of the ExchangeService object - * that was used to call the method that generated the response. - * - * @return the error message - */ - public String getErrorMessage() { - return errorMessage; - } - - /** - * Sets a detailed error message associated with the response. - * - * @param errorMessage - * The error message associated with the response. - */ - protected void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - /** - * Gets error details associated with the response. If Result is set to - * Success, ErrorDetailsDictionary returns null. Error details will only - * available for some error codes. For example, when error code is - * ErrorRecurrenceHasNoOccurrence, the ErrorDetailsDictionary will contain - * keys for EffectiveStartDate and EffectiveEndDate. - * - * @return The error details dictionary. - */ - public Map getErrorDetails() { - return errorDetails; - } - - /** - * Gets information about property errors associated with the response. If - * Result is set to Success, ErrorProperties returns null. ErrorProperties - * is only available for some error codes. For example, when the error code - * is ErrorInvalidPropertyForOperation, ErrorProperties will contain the - * definition of the property that was invalid for the request. - * - * @return the error properties - */ - public Collection getErrorProperties() { - return this.errorProperties; - } + /** + * The result. + */ + private ServiceResult result; + + /** + * The error code. + */ + private ServiceError errorCode; + + /** + * The error message. + */ + private String errorMessage; + + /** + * The error details. + */ + private Map errorDetails = new HashMap(); + + /** + * The error properties. + */ + private Collection errorProperties = + new ArrayList(); + + /** + * Initializes a new instance. + */ + protected ServiceResponse() { + } + + /** + * Initializes a new instance. + * + * @param soapFaultDetails The SOAP fault details. + */ + protected ServiceResponse(SoapFaultDetails soapFaultDetails) { + this.result = ServiceResult.Error; + this.errorCode = soapFaultDetails.getResponseCode(); + this.errorMessage = soapFaultDetails.getFaultString(); + this.errorDetails = soapFaultDetails.getErrorDetails(); + } + + /** + * Loads response from XML. + * + * @param reader the reader + * @param xmlElementName the xml element name + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader, + String xmlElementName) + throws Exception { + if (!reader.isStartElement(XmlNamespace.Messages, xmlElementName)) { + reader.readStartElement(XmlNamespace.Messages, xmlElementName); + } + + this.result = reader.readAttributeValue(ServiceResult.class, + XmlAttributeNames.ResponseClass); + + if (this.result == ServiceResult.Success || + this.result == ServiceResult.Warning) { + if (this.result == ServiceResult.Warning) { + this.errorMessage = reader.readElementValue( + XmlNamespace.Messages, XmlElementNames.MessageText); + } + + this.errorCode = reader.readElementValue(ServiceError.class, + XmlNamespace.Messages, XmlElementNames.ResponseCode); + + if (this.result == ServiceResult.Warning) { + reader.readElementValue(int.class, XmlNamespace.Messages, + XmlElementNames.DescriptiveLinkKey); + } + + // Bug E14:212308 -- If batch processing stopped, EWS returns an + // empty element. Skip over it. + if (this.getBatchProcessingStopped()) { + do { + reader.read(); + } while (!reader.isEndElement(XmlNamespace.Messages, + xmlElementName)); + } else { + + this.readElementsFromXml(reader); + //read end tag if it is an empty element. + if (reader.isEmptyElement()) { + reader.read(); + } + reader.readEndElementIfNecessary(XmlNamespace. + Messages, xmlElementName); + } + } else { + this.errorMessage = reader.readElementValue(XmlNamespace.Messages, + XmlElementNames.MessageText); + this.errorCode = reader.readElementValue(ServiceError.class, + XmlNamespace.Messages, XmlElementNames.ResponseCode); + reader.readElementValue(int.class, XmlNamespace.Messages, + XmlElementNames.DescriptiveLinkKey); + + while (!reader.isEndElement(XmlNamespace. + Messages, xmlElementName)) { + reader.read(); + + if (reader.isStartElement()) { + if (!this.loadExtraErrorDetailsFromXml(reader, reader.getLocalName())) { + reader.skipCurrentElement(); + } + + } + } + } + + this.mapErrorCodeToErrorMessage(); + + this.loaded(); + } + + /** + * Parses the message XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void parseMessageXml(EwsServiceXmlReader reader) + throws Exception { + do { + reader.read(); + if (reader.isStartElement()) { + if (reader.getLocalName().equals(XmlElementNames.Value)) { + this.errorDetails.put(reader + .readAttributeValue(XmlAttributeNames.Name), reader + .readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.FieldURI)) { + this.errorProperties + .add(ServiceObjectSchema + .findPropertyDefinition(reader + .readAttributeValue(XmlAttributeNames. + FieldURI))); + } else if (reader.getLocalName().equals( + XmlElementNames.IndexedFieldURI)) { + this.errorProperties + .add(new IndexedPropertyDefinition( + reader + .readAttributeValue(XmlAttributeNames. + FieldURI), + reader + .readAttributeValue(XmlAttributeNames. + FieldIndex))); + } else if (reader.getLocalName().equals( + XmlElementNames.ExtendedFieldURI)) { + ExtendedPropertyDefinition extendedPropDef = + new ExtendedPropertyDefinition(); + extendedPropDef.loadFromXml(reader); + this.errorProperties.add(extendedPropDef); + } + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.MessageXml)); + } + + + + /** + * Called when the response has been loaded from XML. + */ + protected void loaded() { + } + + /** + * Called after the response has been loaded from XML in order to map error + * codes to "better" error messages. + */ + protected void mapErrorCodeToErrorMessage() { + // Bug E14:69560 -- Use a better error message when an item cannot be + // updated because its changeKey is old. + if (this.getErrorCode() == ServiceError.ErrorIrresolvableConflict) { + this.setErrorMessage(Strings.ItemIsOutOfDate); + } + } + + /** + * Reads response elements from XML. + * + * @param reader The reader. + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceLocalException, Exception { + } + + /** + * Loads extra error details from XML + * + * @param reader The reader. + * @param xmlElementName The current element name of the extra error details. + * @return True if the expected extra details is loaded; + * False if the element name does not match the expected element. + */ + protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, + String xmlElementName) throws Exception { + if (reader.isStartElement(XmlNamespace.Messages, XmlElementNames.MessageXml) && + !reader.isEmptyElement()) { + this.parseMessageXml(reader); + + return true; + } else { + return false; + } + } + + /** + * Throws a ServiceResponseException if this response has its Result + * property set to Error. + * + * @throws ServiceResponseException the service response exception + */ + protected void throwIfNecessary() throws ServiceResponseException { + this.internalThrowIfNecessary(); + } + + /** + * Internal method that throws a ServiceResponseException if this response + * has its Result property set to Error. + * + * @throws ServiceResponseException the service response exception + */ + protected void internalThrowIfNecessary() throws ServiceResponseException { + if (this.result == ServiceResult.Error) { + throw new ServiceResponseException(this); + } + } + + /** + * Gets a value indicating whether a batch request stopped processing before + * the end. + * + * @return A value indicating whether a batch request stopped processing + * before the end. + */ + protected boolean getBatchProcessingStopped() { + return (this.result == ServiceResult.Warning) + && (this.errorCode == ServiceError.ErrorBatchProcessingStopped); + } + + /** + * Gets the result associated with this response. + * + * @return The result associated with this response. + */ + public ServiceResult getResult() { + return result; + } + + /** + * Gets the error code associated with this response. + * + * @return The error code associated with this response. + */ + public ServiceError getErrorCode() { + return errorCode; + } + + /** + * Gets a detailed error message associated with the response. If Result + * is set to Success, ErrorMessage returns null. ErrorMessage is localized + * according to the PreferredCulture property of the ExchangeService object + * that was used to call the method that generated the response. + * + * @return the error message + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Sets a detailed error message associated with the response. + * + * @param errorMessage The error message associated with the response. + */ + protected void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + /** + * Gets error details associated with the response. If Result is set to + * Success, ErrorDetailsDictionary returns null. Error details will only + * available for some error codes. For example, when error code is + * ErrorRecurrenceHasNoOccurrence, the ErrorDetailsDictionary will contain + * keys for EffectiveStartDate and EffectiveEndDate. + * + * @return The error details dictionary. + */ + public Map getErrorDetails() { + return errorDetails; + } + + /** + * Gets information about property errors associated with the response. If + * Result is set to Success, ErrorProperties returns null. ErrorProperties + * is only available for some error codes. For example, when the error code + * is ErrorInvalidPropertyForOperation, ErrorProperties will contain the + * definition of the property that was invalid for the request. + * + * @return the error properties + */ + public Collection getErrorProperties() { + return this.errorProperties; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java index f4b40ab7c..df78557c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java @@ -16,99 +16,99 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a strongly typed list of service responses. - * - * @param - * The type of response stored in the list. + * + * @param The type of response stored in the list. */ public final class ServiceResponseCollection - implements Iterable { + implements Iterable { - /** The responses. */ - private Vector responses = new Vector(); + /** + * The responses. + */ + private Vector responses = new Vector(); - /** The overall result. */ - private ServiceResult overallResult = ServiceResult.Success; + /** + * The overall result. + */ + private ServiceResult overallResult = ServiceResult.Success; - /** - * Initializes a new instance. - */ - protected ServiceResponseCollection() { + /** + * Initializes a new instance. + */ + protected ServiceResponseCollection() { - } + } - /** - * Adds specified response. - * - * @param response - * The response. - */ - protected void add(TResponse response) { + /** + * Adds specified response. + * + * @param response The response. + */ + protected void add(TResponse response) { - EwsUtilities.EwsAssert(response != null, "EwsResponseList.Add", - "response is null"); - if (response.getResult().ordinal() > this.overallResult.ordinal()) { - this.overallResult = response.getResult(); - } - this.responses.add(response); - } + EwsUtilities.EwsAssert(response != null, "EwsResponseList.Add", + "response is null"); + if (response.getResult().ordinal() > this.overallResult.ordinal()) { + this.overallResult = response.getResult(); + } + this.responses.add(response); + } - /** - * Gets the total number of responses in the list. - * - * @return total number of responses in the list. - */ - public int getCount() { - return this.responses.size(); - } + /** + * Gets the total number of responses in the list. + * + * @return total number of responses in the list. + */ + public int getCount() { + return this.responses.size(); + } - /** - * Gets the response at the specified index. - * - * @param index - * The zero-based index of the response to get. - * @return The response at the specified index. - * @throws IndexOutOfBoundsException - * the index out of bounds exception - */ - public TResponse getResponseAtIndex(int index) - throws IndexOutOfBoundsException { - if (index < 0 || index >= this.getCount()) { - throw new IndexOutOfBoundsException("Index out of Range"); - } - return this.responses.get(index); - } + /** + * Gets the response at the specified index. + * + * @param index The zero-based index of the response to get. + * @return The response at the specified index. + * @throws IndexOutOfBoundsException the index out of bounds exception + */ + public TResponse getResponseAtIndex(int index) + throws IndexOutOfBoundsException { + if (index < 0 || index >= this.getCount()) { + throw new IndexOutOfBoundsException("Index out of Range"); + } + return this.responses.get(index); + } - /** - * Gets a value indicating the overall result of the request that - * generated this response collection. If all of the responses have their - * Result property set to Success, OverallResult returns Success. If at - * least one response has its Result property set to Warning and all other - * responses have their Result property set to Success, OverallResult - * returns Warning. If at least one response has a its Result set to Error, - * OverallResult returns Error. - * - * @return the overall result - */ - public ServiceResult getOverallResult() { - return this.overallResult; - } + /** + * Gets a value indicating the overall result of the request that + * generated this response collection. If all of the responses have their + * Result property set to Success, OverallResult returns Success. If at + * least one response has its Result property set to Warning and all other + * responses have their Result property set to Success, OverallResult + * returns Warning. If at least one response has a its Result set to Error, + * OverallResult returns Error. + * + * @return the overall result + */ + public ServiceResult getOverallResult() { + return this.overallResult; + } - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - return responses.iterator(); - } + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + return responses.iterator(); + } - /** - * Gets the enumerator. - * - * @return the enumerator - */ - public Enumeration getEnumerator() { - return this.responses.elements(); - } + /** + * Gets the enumerator. + * + * @return the enumerator + */ + public Enumeration getEnumerator() { + return this.responses.elements(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index a15527d96..14302f4b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -15,83 +15,88 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceResponseException extends ServiceRemoteException { - /** Error details Value keys. */ - private static final String ExceptionClassKey = "ExceptionClass"; + /** + * Error details Value keys. + */ + private static final String ExceptionClassKey = "ExceptionClass"; - /** The Exception message key. */ - private static final String ExceptionMessageKey = "ExceptionMessage"; + /** + * The Exception message key. + */ + private static final String ExceptionMessageKey = "ExceptionMessage"; - /** The Stack trace key. */ - private static final String StackTraceKey = "StackTrace"; + /** + * The Stack trace key. + */ + private static final String StackTraceKey = "StackTrace"; - /** - * ServiceResponse when service operation failed remotely. - */ - private ServiceResponse response; + /** + * ServiceResponse when service operation failed remotely. + */ + private ServiceResponse response; - /** - * Initializes a new instance. - * - * @param response - * the response - */ - protected ServiceResponseException(ServiceResponse response) { - this.response = response; - } + /** + * Initializes a new instance. + * + * @param response the response + */ + protected ServiceResponseException(ServiceResponse response) { + this.response = response; + } - /** - * Gets the ServiceResponse for the exception. - * - * @return the response - */ - public ServiceResponse getResponse() { - return response; - } + /** + * Gets the ServiceResponse for the exception. + * + * @return the response + */ + public ServiceResponse getResponse() { + return response; + } - /** - * Gets the service error code. - * - * @return the error code - */ - public ServiceError getErrorCode() { - return this.response.getErrorCode(); - } + /** + * Gets the service error code. + * + * @return the error code + */ + public ServiceError getErrorCode() { + return this.response.getErrorCode(); + } - /** - * Gets a message that describes the current exception. - * - * @return The error message that explains the reason for the exception. - */ + /** + * Gets a message that describes the current exception. + * + * @return The error message that explains the reason for the exception. + */ - public String getMessage() { + public String getMessage() { - // Bug E14:134792 -- Special case for Internal Server Error. If the - // server returned - // stack trace information, include it in the exception message. - if (this.response.getErrorCode() == ServiceError.ErrorInternalServerError) { - String exceptionClass; - String exceptionMessage; - String stackTrace; + // Bug E14:134792 -- Special case for Internal Server Error. If the + // server returned + // stack trace information, include it in the exception message. + if (this.response.getErrorCode() == ServiceError.ErrorInternalServerError) { + String exceptionClass; + String exceptionMessage; + String stackTrace; - if (this.response.getErrorDetails().containsKey(ExceptionClassKey) && - this.response.getErrorDetails().containsKey( - ExceptionMessageKey) && - this.response.getErrorDetails().containsKey( - StackTraceKey)) { - exceptionClass = this.response.getErrorDetails().get( - ExceptionClassKey); - exceptionMessage = this.response.getErrorDetails().get( - ExceptionMessageKey); - stackTrace = this.response.getErrorDetails().get(StackTraceKey); + if (this.response.getErrorDetails().containsKey(ExceptionClassKey) && + this.response.getErrorDetails().containsKey( + ExceptionMessageKey) && + this.response.getErrorDetails().containsKey( + StackTraceKey)) { + exceptionClass = this.response.getErrorDetails().get( + ExceptionClassKey); + exceptionMessage = this.response.getErrorDetails().get( + ExceptionMessageKey); + stackTrace = this.response.getErrorDetails().get(StackTraceKey); - // return - return String.format( - Strings.ServerErrorAndStackTraceDetails, this.response - .getErrorMessage(), exceptionClass, - exceptionMessage, stackTrace); - } - } + // return + return String.format( + Strings.ServerErrorAndStackTraceDetails, this.response + .getErrorMessage(), exceptionClass, + exceptionMessage, stackTrace); + } + } - return this.response.getErrorMessage(); - } + return this.response.getErrorMessage(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java index 427eabf11..829924564 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java @@ -15,15 +15,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * have to be ordered from lowest to highest severity. */ public enum ServiceResult { - // The call was successful - /** The Success. */ - Success, + // The call was successful + /** + * The Success. + */ + Success, - // The call triggered at least one warning - /** The Warning. */ - Warning, + // The call triggered at least one warning + /** + * The Warning. + */ + Warning, - // The call triggered at least one error - /** The Error. */ - Error + // The call triggered at least one error + /** + * The Error. + */ + Error } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index 78524afe5..5d5f89b44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -15,35 +15,32 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ServiceValidationException extends ServiceLocalException { - /** - * ServiceValidationException Constructor. - */ - public ServiceValidationException() { - super(); - } + /** + * ServiceValidationException Constructor. + */ + public ServiceValidationException() { + super(); + } - /** - * ServiceValidationException Constructor. - * - * @param message - * the message - */ - public ServiceValidationException(String message) { - super(message); - } + /** + * ServiceValidationException Constructor. + * + * @param message the message + */ + public ServiceValidationException(String message) { + super(message); + } - /** - * Instantiates a new service validation exception. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceValidationException(String message, - Exception innerException) { - super(message, innerException); + /** + * Instantiates a new service validation exception. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceValidationException(String message, + Exception innerException) { + super(message, innerException); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index 17f0e905f..6d9d256a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -16,33 +16,30 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ServiceVersionException extends ServiceLocalException { - /** - * Initializes a new instance of the class. - */ - public ServiceVersionException() { - super(); - } + /** + * Initializes a new instance of the class. + */ + public ServiceVersionException() { + super(); + } - /** - * Initializes a new instance of the class. - * - * @param message - * the message - */ - public ServiceVersionException(String message) { - super(message); - } + /** + * Initializes a new instance of the class. + * + * @param message the message + */ + public ServiceVersionException(String message) { + super(message); + } - /** - * Instantiates a new service version exception. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceVersionException(String message, Exception innerException) { - super(message, innerException); - } + /** + * Instantiates a new service version exception. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceVersionException(String message, Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index 6b2ea43fa..fef3fd884 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -15,36 +15,33 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * deserialized. */ public final class ServiceXmlDeserializationException extends - ServiceLocalException { + ServiceLocalException { - /** - * ServiceXmlDeserializationException Constructor. - */ - public ServiceXmlDeserializationException() { - super(); - } + /** + * ServiceXmlDeserializationException Constructor. + */ + public ServiceXmlDeserializationException() { + super(); + } - /** - * ServiceXmlDeserializationException Constructor. - * - * @param message - * the message - */ - public ServiceXmlDeserializationException(String message) { - super(message); - } + /** + * ServiceXmlDeserializationException Constructor. + * + * @param message the message + */ + public ServiceXmlDeserializationException(String message) { + super(message); + } - /** - * ServiceXmlDeserializationException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceXmlDeserializationException(String message, - Exception innerException) { - super(message, innerException); - } + /** + * ServiceXmlDeserializationException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceXmlDeserializationException(String message, + Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index 28835c44b..6b0958a3a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -16,35 +16,32 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceXmlSerializationException extends ServiceLocalException { - /** - * ServiceXmlSerializationException Constructor. - */ - public ServiceXmlSerializationException() { - super(); - } + /** + * ServiceXmlSerializationException Constructor. + */ + public ServiceXmlSerializationException() { + super(); + } - /** - * Instantiates a new service xml serialization exception. - * - * @param message - * the message - */ - public ServiceXmlSerializationException(String message) { - super(message); + /** + * Instantiates a new service xml serialization exception. + * + * @param message the message + */ + public ServiceXmlSerializationException(String message) { + super(message); - } + } - /** - * Instantiates a new service xml serialization exception. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public ServiceXmlSerializationException(String message, - Exception innerException) { - super(message, innerException); - } + /** + * Instantiates a new service xml serialization exception. + * + * @param message the message + * @param innerException the inner exception + */ + public ServiceXmlSerializationException(String message, + Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java index 36b76d8cb..4c75cded0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java @@ -14,87 +14,90 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an operation to update an existing rule. */ public class SetRuleOperation extends RuleOperation { - /** - * Inbox rule to be updated. - */ - private Rule rule; + /** + * Inbox rule to be updated. + */ + private Rule rule; - /** - * Initializes a new instance of the SetRuleOperation class. - */ - public SetRuleOperation() { - super(); - } + /** + * Initializes a new instance of the SetRuleOperation class. + */ + public SetRuleOperation() { + super(); + } - /** - * Initializes a new instance of the SetRuleOperation class. - * @param rule The rule - * The inbox rule to update. - */ - public SetRuleOperation(Rule rule) { - super(); - this.rule = rule; - } + /** + * Initializes a new instance of the SetRuleOperation class. + * + * @param rule The rule + * The inbox rule to update. + */ + public SetRuleOperation(Rule rule) { + super(); + this.rule = rule; + } - /** - * Gets the rule to be updated. - */ - public Rule getRule() { - return this.rule; - } + /** + * Gets the rule to be updated. + */ + public Rule getRule() { + return this.rule; + } - /** - * Sets the rule to be updated. - */ - public void setRule(Rule value) { - if (this.canSetFieldValue(this.rule, value)) { - this.rule = value; - this.changed(); - } - } + /** + * Sets the rule to be updated. + */ + public void setRule(Rule value) { + if (this.canSetFieldValue(this.rule, value)) { + this.rule = value; + this.changed(); + } + } - /** - * Tries to read element from XML. - * @param reader The reader - * @return True if element was read. - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if(reader.getLocalName().equals(XmlElementNames.Rule)) { - this.rule = new Rule(); - this.rule.loadFromXml(reader, reader.getLocalName()); - return true; - } - else { - return false; - } - } + /** + * Tries to read element from XML. + * + * @param reader The reader + * @return True if element was read. + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.Rule)) { + this.rule = new Rule(); + this.rule.loadFromXml(reader, reader.getLocalName()); + return true; + } else { + return false; + } + } - /** - * Writes elements to XML. - * @param writer The writer. - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.rule.writeToXml(writer, XmlElementNames.Rule); - } + /** + * Writes elements to XML. + * + * @param writer The writer. + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.rule.writeToXml(writer, XmlElementNames.Rule); + } - /** - * Validates this instance. - * @throws Exception - */ - @Override - protected void internalValidate() throws Exception { - EwsUtilities.validateParam(this.rule, "Rule"); - } + /** + * Validates this instance. + * + * @throws Exception + */ + @Override + protected void internalValidate() throws Exception { + EwsUtilities.validateParam(this.rule, "Rule"); + } - /** - * Gets the Xml element name of the SetRuleOperation object. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.SetRuleOperation; - } -} \ No newline at end of file + /** + * Gets the Xml element name of the SetRuleOperation object. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.SetRuleOperation; + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index 64402ecf4..f7379bc7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -15,155 +15,150 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class SetUserOofSettingsRequest extends SimpleServiceRequestBase { - /** The smtp address. */ - private String smtpAddress; - - /** The oof settings. */ - private OofSettings oofSettings; - - /** - * Gets the name of the XML element. - * - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.SetUserOofSettingsRequest; - } - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - - EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); - EwsUtilities.validateParam(this.getOofSettings(), "OofSettings"); - } - - /** - * Writes the elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, - this.getSmtpAddress()); - writer.writeEndElement(); // Mailbox - - this.getOofSettings().writeToXml(writer, - XmlElementNames.UserOofSettings); - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.SetUserOofSettingsResponse; - } - - /** - * Parses the response. - * - * @param reader - * the reader - * @return Service response - * @throws Exception - * the exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - ServiceResponse serviceResponse = new ServiceResponse(); - serviceResponse.loadFromXml(reader, XmlElementNames.ResponseMessage); - return serviceResponse; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected SetUserOofSettingsRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Executes this request. - * - * @return Service response - * @throws Exception - * the exception - */ - protected ServiceResponse execute() throws Exception { - ServiceResponse serviceResponse = (ServiceResponse)this - .internalExecute(); - serviceResponse.throwIfNecessary(); - return serviceResponse; - } - - /** - * Gets the SMTP address. - * - * @return the smtp address - */ - public String getSmtpAddress() { - return this.smtpAddress; - } - - /** - * Sets the smtp address. - * - * @param smtpAddress - * the new smtp address - */ - public void setSmtpAddress(String smtpAddress) { - this.smtpAddress = smtpAddress; - } - - /** - * Gets the oof settings. - * - * @return the oof settings - */ - public OofSettings getOofSettings() { - return this.oofSettings; - } - - /** - * Sets the oof settings. - * - * @param oofSettings - * the new oof settings - */ - public void setOofSettings(OofSettings oofSettings) { - this.oofSettings = oofSettings; - } + /** + * The smtp address. + */ + private String smtpAddress; + + /** + * The oof settings. + */ + private OofSettings oofSettings; + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.SetUserOofSettingsRequest; + } + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + + EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); + EwsUtilities.validateParam(this.getOofSettings(), "OofSettings"); + } + + /** + * Writes the elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, + this.getSmtpAddress()); + writer.writeEndElement(); // Mailbox + + this.getOofSettings().writeToXml(writer, + XmlElementNames.UserOofSettings); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.SetUserOofSettingsResponse; + } + + /** + * Parses the response. + * + * @param reader the reader + * @return Service response + * @throws Exception the exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + ServiceResponse serviceResponse = new ServiceResponse(); + serviceResponse.loadFromXml(reader, XmlElementNames.ResponseMessage); + return serviceResponse; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected SetUserOofSettingsRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Executes this request. + * + * @return Service response + * @throws Exception the exception + */ + protected ServiceResponse execute() throws Exception { + ServiceResponse serviceResponse = (ServiceResponse) this + .internalExecute(); + serviceResponse.throwIfNecessary(); + return serviceResponse; + } + + /** + * Gets the SMTP address. + * + * @return the smtp address + */ + public String getSmtpAddress() { + return this.smtpAddress; + } + + /** + * Sets the smtp address. + * + * @param smtpAddress the new smtp address + */ + public void setSmtpAddress(String smtpAddress) { + this.smtpAddress = smtpAddress; + } + + /** + * Gets the oof settings. + * + * @return the oof settings + */ + public OofSettings getOofSettings() { + return this.oofSettings; + } + + /** + * Sets the oof settings. + * + * @param oofSettings the new oof settings + */ + public void setOofSettings(OofSettings oofSettings) { + this.oofSettings = oofSettings; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index ce72ce77a..f40d354ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -10,228 +10,220 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; /** * Represents a simple property bag. - * - * @param - * The type of key + * + * @param The type of key */ class SimplePropertyBag implements Iterable> { - /** The items. */ - private Map items = new HashMap(); - - /** The removed items. */ - private List removedItems = new ArrayList(); - - /** The added items. */ - private List addedItems = new ArrayList(); - - /** The modified items. */ - private List modifiedItems = new ArrayList(); - - /** - * Add item to change list. - * - * @param key - * the key - * @param changeList - * the change list - */ - private void internalAddItemToChangeList(TKey key, List changeList) { - if (!changeList.contains(key)) { - changeList.add(key); - } - } - - /** - * Triggers dispatch of the change event. - */ - private void changed() { - if (!onChange.isEmpty()) { - for (IPropertyBagChangedDelegate change : onChange) { - change.propertyBagChanged(this); - } - } - } - - /** - * Remove item. - * - * @param key - * the key - */ - private void internalRemoveItem(TKey key) { - OutParam value = new OutParam(); - if (this.tryGetValue(key, value)) { - this.items.remove(key); - this.removedItems.add(key); - this.changed(); - } - } - - - /** - * Gets the added items. The added items. - * - * @return the added items - */ - protected Iterable getAddedItems() { - return this.addedItems; - } - - /** - * Gets the removed items. The removed items. - * - * @return the removed items - */ - protected Iterable getRemovedItems() { - return this.removedItems; - } - - /** - * Gets the modified items. The modified items. - * - * @return the modified items - */ - protected Iterable getModifiedItems() { - return this.modifiedItems; - } - - /** - * Initializes a new instance of the class. - */ - public SimplePropertyBag() { - } - - /** - * Clears the change log. - */ - public void clearChangeLog() { - this.removedItems.clear(); - this.addedItems.clear(); - this.modifiedItems.clear(); - } - - /** - * Determines whether the specified key is in the property bag. - * - * @param key - * the key - * @return true, if successful if the specified key exists; otherwise, . - */ - public boolean containsKey(TKey key) { - return this.items.containsKey(key); - } - - /** - * Tries to get value. - * - * @param key - * the key - * @param value - * the value - * @return True if value exists in property bag. - */ - public boolean tryGetValue(TKey key, OutParam value) { - if (this.items.containsKey(key)) { - value.setParam(this.items.get(key)); - return true; - } else { - value.setParam(null); - return false; - } - } - - /** - * Gets the simple property bag. - * - * @param key - * the key - * @return the simple property bag - */ - public Object getSimplePropertyBag(TKey key) { - OutParam value = new OutParam(); - if (this.tryGetValue(key, value)) { - return value.getParam(); - } else { - return null; - } - } - - /** - * Sets the simple property bag. - * - * @param key - * the key - * @param value - * the value - */ - public void setSimplePropertyBag(TKey key, Object value) { - if (value == null) { - this.internalRemoveItem(key); - } else { - // If the item was to be deleted, the deletion becomes an update. - if (this.removedItems.remove(key)) { - internalAddItemToChangeList(key, this.modifiedItems); - } else { - // If the property value was not set, we have a newly set - // property. - if (!this.containsKey(key)) { - internalAddItemToChangeList(key, this.addedItems); - } else { - // The last case is that we have a modified property. - if (!this.modifiedItems.contains(key)) { - internalAddItemToChangeList(key, this.modifiedItems); - } - } - } - - this.items.put(key, value); - this.changed(); - } - } - - /** - * Occurs when Changed. - */ - private List onChange = - new ArrayList(); - - /** - * Set event to happen when property changed. - * - * @param change - * change event - */ - public void addOnChangeEvent(IPropertyBagChangedDelegate change) { - onChange.add(change); - } - - /** - * Remove the event from happening when property changed. - * - * @param change - * change event - */ - public void removeChangeEvent(IPropertyBagChangedDelegate change) { - onChange.remove(change); - } - - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator> iterator() { - return (Iterator>)this.items.keySet().iterator(); - } + /** + * The items. + */ + private Map items = new HashMap(); + + /** + * The removed items. + */ + private List removedItems = new ArrayList(); + + /** + * The added items. + */ + private List addedItems = new ArrayList(); + + /** + * The modified items. + */ + private List modifiedItems = new ArrayList(); + + /** + * Add item to change list. + * + * @param key the key + * @param changeList the change list + */ + private void internalAddItemToChangeList(TKey key, List changeList) { + if (!changeList.contains(key)) { + changeList.add(key); + } + } + + /** + * Triggers dispatch of the change event. + */ + private void changed() { + if (!onChange.isEmpty()) { + for (IPropertyBagChangedDelegate change : onChange) { + change.propertyBagChanged(this); + } + } + } + + /** + * Remove item. + * + * @param key the key + */ + private void internalRemoveItem(TKey key) { + OutParam value = new OutParam(); + if (this.tryGetValue(key, value)) { + this.items.remove(key); + this.removedItems.add(key); + this.changed(); + } + } + + + /** + * Gets the added items. The added items. + * + * @return the added items + */ + protected Iterable getAddedItems() { + return this.addedItems; + } + + /** + * Gets the removed items. The removed items. + * + * @return the removed items + */ + protected Iterable getRemovedItems() { + return this.removedItems; + } + + /** + * Gets the modified items. The modified items. + * + * @return the modified items + */ + protected Iterable getModifiedItems() { + return this.modifiedItems; + } + + /** + * Initializes a new instance of the class. + */ + public SimplePropertyBag() { + } + + /** + * Clears the change log. + */ + public void clearChangeLog() { + this.removedItems.clear(); + this.addedItems.clear(); + this.modifiedItems.clear(); + } + + /** + * Determines whether the specified key is in the property bag. + * + * @param key the key + * @return true, if successful if the specified key exists; otherwise, . + */ + public boolean containsKey(TKey key) { + return this.items.containsKey(key); + } + + /** + * Tries to get value. + * + * @param key the key + * @param value the value + * @return True if value exists in property bag. + */ + public boolean tryGetValue(TKey key, OutParam value) { + if (this.items.containsKey(key)) { + value.setParam(this.items.get(key)); + return true; + } else { + value.setParam(null); + return false; + } + } + + /** + * Gets the simple property bag. + * + * @param key the key + * @return the simple property bag + */ + public Object getSimplePropertyBag(TKey key) { + OutParam value = new OutParam(); + if (this.tryGetValue(key, value)) { + return value.getParam(); + } else { + return null; + } + } + + /** + * Sets the simple property bag. + * + * @param key the key + * @param value the value + */ + public void setSimplePropertyBag(TKey key, Object value) { + if (value == null) { + this.internalRemoveItem(key); + } else { + // If the item was to be deleted, the deletion becomes an update. + if (this.removedItems.remove(key)) { + internalAddItemToChangeList(key, this.modifiedItems); + } else { + // If the property value was not set, we have a newly set + // property. + if (!this.containsKey(key)) { + internalAddItemToChangeList(key, this.addedItems); + } else { + // The last case is that we have a modified property. + if (!this.modifiedItems.contains(key)) { + internalAddItemToChangeList(key, this.modifiedItems); + } + } + } + + this.items.put(key, value); + this.changed(); + } + } + + /** + * Occurs when Changed. + */ + private List onChange = + new ArrayList(); + + /** + * Set event to happen when property changed. + * + * @param change change event + */ + public void addOnChangeEvent(IPropertyBagChangedDelegate change) { + onChange.add(change); + } + + /** + * Remove the event from happening when property changed. + * + * @param change change event + */ + public void removeChangeEvent(IPropertyBagChangedDelegate change) { + onChange.remove(change); + } + + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator> iterator() { + return (Iterator>) this.items.keySet().iterator(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 47251182c..c62e7d7f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -10,182 +10,179 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.util.concurrent.Callable; -import java.util.concurrent.Future; - -import javax.xml.ws.http.HTTPException; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import javax.xml.ws.http.HTTPException; +import java.io.*; +import java.util.concurrent.Callable; +import java.util.concurrent.Future; + /** - * Defines the SimpleServiceRequestBase class. + * Defines the SimpleServiceRequestBase class. */ abstract class SimpleServiceRequestBase extends ServiceRequestBase { - private static final Log log = LogFactory.getLog(SimpleServiceRequestBase.class); - - /** - * Initializes a new instance of the SimpleServiceRequestBase class. - */ - protected SimpleServiceRequestBase(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Executes this request. - * @throws Exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - */ - protected Object internalExecute() throws ServiceLocalException, Exception { - HttpWebRequest response = null; - - try { - response = this.validateAndEmitRequest(); - return this.readResponse(response); - } catch (IOException ex) { - // Wrap exception. - throw new ServiceRequestException(String. - format(Strings.ServiceRequestFailed, ex.getMessage(), ex)); - } catch (Exception e) { - if (response != null) { - this.getService().processHttpResponseHeaders(TraceFlags. - EwsResponseHttpHeaders, response); - } - - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); - } finally { - try { - if (response != null) { - response.close(); - } - } catch (Exception e2) { - response = null; - } - } - } - - /** - * Ends executing this async request. - * - * @param asyncResult The async result - * @return Service response object. - */ - protected Object endInternalExecute(IAsyncResult asyncResult) throws Exception { - HttpWebRequest response = (HttpWebRequest) asyncResult.get(); - return this.readResponse(response); - } - - /** - * Begins executing this async request. - * - * @param callback The AsyncCallback delegate. - * @param state An object that contains state information for this request. - * @return An IAsyncResult that references the asynchronous request. - */ - protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) throws Exception { - this.validate(); - - HttpWebRequest request = this.buildEwsHttpWebRequest(); - - WebAsyncCallStateAnchor wrappedState = new WebAsyncCallStateAnchor( - this, request, callback /* user callback */, state /*user state*/); - - AsyncExecutor es = new AsyncExecutor(); - Callable cl = new CallableMethod(request); - Future task = es.submit(cl, callback); - es.shutdown(); - AsyncRequestResult ft = new AsyncRequestResult(this, request, task, null); - - // ct.setAsyncRequest(); - // webAsyncResult = - // request.beginGetResponse(SimpleServiceRequestBase.webRequestAsyncCallback(webAsyncResult), - // wrappedState); - return ft; - // return new AsyncRequestResult(this, request, webAsyncResult, state /* - // user state */); - } - - /** - * Reads the response. - * @return serviceResponse - * @throws Exception - */ - private Object readResponse(HttpWebRequest response) throws Exception { - Object serviceResponse; - - if (!response.getResponseContentType().startsWith("text/xml")) { - String line = new BufferedReader(new InputStreamReader(ServiceRequestBase.getResponseStream(response))).readLine(); - log.error("Response content type not XML; first line: '" + line + "'"); - throw new ServiceRequestException(Strings.ServiceResponseDoesNotContainXml); - } - - /** - * If tracing is enabled, we read the entire response into a - * MemoryStream so that we can pass it along to the ITraceListener. Then - * we parse the response from the MemoryStream. - */ - - try { - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, response); - - if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponse)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - InputStream serviceResponseStream = ServiceRequestBase - .getResponseStream(response); - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - - this.traceResponse(response, memoryStream); - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( - memoryStreamIn, this.getService()); - serviceResponse = this.readResponse(ewsXmlReader); - serviceResponseStream.close(); - memoryStream.flush(); - } else { - InputStream responseStream = ServiceRequestBase - .getResponseStream(response); - EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( - responseStream, this.getService()); - serviceResponse = this.readResponse(ewsXmlReader); - - } - } catch (HTTPException e) { - if (e.getMessage() != null) { - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, response); - } - - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); - } catch (IOException e) { - // Wrap exception. - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); - } finally { - if (response != null) { - response.close(); - } - } - - return serviceResponse; - - } - + private static final Log log = LogFactory.getLog(SimpleServiceRequestBase.class); + + /** + * Initializes a new instance of the SimpleServiceRequestBase class. + */ + protected SimpleServiceRequestBase(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Executes this request. + * + * @throws Exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException + */ + protected Object internalExecute() throws ServiceLocalException, Exception { + HttpWebRequest response = null; + + try { + response = this.validateAndEmitRequest(); + return this.readResponse(response); + } catch (IOException ex) { + // Wrap exception. + throw new ServiceRequestException(String. + format(Strings.ServiceRequestFailed, ex.getMessage(), ex)); + } catch (Exception e) { + if (response != null) { + this.getService().processHttpResponseHeaders(TraceFlags. + EwsResponseHttpHeaders, response); + } + + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } finally { + try { + if (response != null) { + response.close(); + } + } catch (Exception e2) { + response = null; + } + } + } + + /** + * Ends executing this async request. + * + * @param asyncResult The async result + * @return Service response object. + */ + protected Object endInternalExecute(IAsyncResult asyncResult) throws Exception { + HttpWebRequest response = (HttpWebRequest) asyncResult.get(); + return this.readResponse(response); + } + + /** + * Begins executing this async request. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @return An IAsyncResult that references the asynchronous request. + */ + protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) throws Exception { + this.validate(); + + HttpWebRequest request = this.buildEwsHttpWebRequest(); + + WebAsyncCallStateAnchor wrappedState = new WebAsyncCallStateAnchor( + this, request, callback /* user callback */, state /*user state*/); + + AsyncExecutor es = new AsyncExecutor(); + Callable cl = new CallableMethod(request); + Future task = es.submit(cl, callback); + es.shutdown(); + AsyncRequestResult ft = new AsyncRequestResult(this, request, task, null); + + // ct.setAsyncRequest(); + // webAsyncResult = + // request.beginGetResponse(SimpleServiceRequestBase.webRequestAsyncCallback(webAsyncResult), + // wrappedState); + return ft; + // return new AsyncRequestResult(this, request, webAsyncResult, state /* + // user state */); + } + + /** + * Reads the response. + * + * @return serviceResponse + * @throws Exception + */ + private Object readResponse(HttpWebRequest response) throws Exception { + Object serviceResponse; + + if (!response.getResponseContentType().startsWith("text/xml")) { + String line = new BufferedReader(new InputStreamReader(ServiceRequestBase.getResponseStream(response))) + .readLine(); + log.error("Response content type not XML; first line: '" + line + "'"); + throw new ServiceRequestException(Strings.ServiceResponseDoesNotContainXml); + } + + /** + * If tracing is enabled, we read the entire response into a + * MemoryStream so that we can pass it along to the ITraceListener. Then + * we parse the response from the MemoryStream. + */ + + try { + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, response); + + if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponse)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + InputStream serviceResponseStream = ServiceRequestBase + .getResponseStream(response); + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + + this.traceResponse(response, memoryStream); + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( + memoryStreamIn, this.getService()); + serviceResponse = this.readResponse(ewsXmlReader); + serviceResponseStream.close(); + memoryStream.flush(); + } else { + InputStream responseStream = ServiceRequestBase + .getResponseStream(response); + EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( + responseStream, this.getService()); + serviceResponse = this.readResponse(ewsXmlReader); + + } + } catch (HTTPException e) { + if (e.getMessage() != null) { + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, response); + } + + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, e.getMessage()), e); + } catch (IOException e) { + // Wrap exception. + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, e.getMessage()), e); + } finally { + if (response != null) { + response.close(); + } + } + + return serviceResponse; + + } + } diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index 0f39cdbe8..b178ac548 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -10,406 +10,388 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.HashMap; import java.util.Map; -import javax.xml.stream.XMLStreamException; - /** * Represents SoapFault details. - * */ class SoapFaultDetails { - /** The fault code. */ - private String faultCode; - - /** The fault string. */ - private String faultString; - - /** The fault actor. */ - private String faultActor; - - /** The response code. */ - private ServiceError responseCode = ServiceError.ErrorInternalServerError; - - /** The message. */ - private String message; - - /** The error code. */ - private ServiceError errorCode = ServiceError.NoError; - - /** The exception type. */ - private String exceptionType; - - /** The line number. */ - private int lineNumber; - - /** The position within line. */ - private int positionWithinLine; - - /** - * Dictionary of key/value pairs from the MessageXml node in the fault. - * Usually empty but there are a few cases where SOAP faults may include - * MessageXml details (e.g. CASOverBudgetException includes BackoffTime - * value). - */ - private Map errorDetails = new HashMap(); - - /** - * Parses the. - * - * @param reader - * the reader - * @param soapNamespace - * the soap namespace - * @return the soap fault details - * @throws Exception - * the exception - */ - protected static SoapFaultDetails parse(EwsXmlReader reader, - XmlNamespace soapNamespace) throws Exception { - SoapFaultDetails soapFaultDetails = new SoapFaultDetails(); - - do { - reader.read(); - if (reader.getNodeType().equals( - new XmlNodeType(XmlNodeType.START_ELEMENT))) { - String localName = reader.getLocalName(); - if (localName.equals(XmlElementNames.SOAPFaultCodeElementName)) { - soapFaultDetails.setFaultCode(reader.readElementValue()); - } else if (localName - .equals(XmlElementNames.SOAPFaultStringElementName)) { - soapFaultDetails.setFaultString(reader.readElementValue()); - } - - else if (localName - .equals(XmlElementNames.SOAPFaultActorElementName)) { - soapFaultDetails.setFaultActor(reader.readElementValue()); - } else if (localName - .equals(XmlElementNames.SOAPDetailElementName)) { - soapFaultDetails.parseDetailNode(reader); - } - } - } while (!reader.isEndElement(soapNamespace, - XmlElementNames.SOAPFaultElementName)); - - return soapFaultDetails; - } - - /** - * Parses the detail node. - * - * @param reader - * the reader - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws Exception - * the exception - */ - private void parseDetailNode(EwsXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - Exception, Exception { - do { - reader.read(); - if (reader.getNodeType().equals( - new XmlNodeType(XmlNodeType.START_ELEMENT))) { - String localName = reader.getLocalName(); - if (localName - .equals(XmlElementNames.EwsResponseCodeElementName)) { - try { - this.setResponseCode(reader - .readElementValue(ServiceError.class)); - } catch (Exception e) { - e.printStackTrace(); - - // ServiceError couldn't be mapped to enum value, treat - // as an ISE - this - .setResponseCode(ServiceError. - ErrorInternalServerError); - } - - } - - else if (localName - .equals(XmlElementNames.EwsMessageElementName)) { - this.setMessage(reader.readElementValue()); - } - - else if (localName.equals(XmlElementNames.EwsLineElementName)) { - this.setLineNumber(reader.readElementValue(Integer.class)); - } - - else if (localName - .equals(XmlElementNames.EwsPositionElementName)) { - this.setPositionWithinLine(reader - .readElementValue(Integer.class)); - } - - else if (localName - .equals(XmlElementNames.EwsErrorCodeElementName)) { - try { - this.setErrorCode(reader - .readElementValue(ServiceError.class)); - } catch (Exception e) { - e.printStackTrace(); - - // ServiceError couldn't be mapped to enum value, treat - // as an ISE - this - .setErrorCode(ServiceError. - ErrorInternalServerError); - } - - } - - else if (localName - .equals(XmlElementNames.EwsExceptionTypeElementName)) { - try { - this.setExceptionType(reader.readElementValue()); - } catch (Exception e) { - e.printStackTrace(); - this.setExceptionType(null); - } - } - - else if (localName.equals(XmlElementNames.MessageXml)) { - this.parseMessageXml(reader); - } - } - } while (!reader.isEndElement(XmlNamespace.NotSpecified, - XmlElementNames.SOAPDetailElementName)); - } - - /** - * Parses the message xml. - * - * @param reader - * the reader - * @throws Exception - * the exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - private void parseMessageXml(EwsXmlReader reader) throws Exception, - ServiceXmlDeserializationException, Exception { - // E14:172881: E12 and E14 return the MessageXml element in different - // namespaces (types namespace for E12, errors namespace in E14). To - // avoid this problem, the parser will match the namespace from the - // start and end elements. - XmlNamespace elementNS = EwsUtilities.getNamespaceFromUri(reader - .getNamespaceUri()); - - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement() && !reader.isEmptyElement()) { - String localName = reader.getLocalName(); - if (localName.equals(XmlElementNames.Value)) { - this.errorDetails.put(reader - .readAttributeValue(XmlAttributeNames.Name), - reader.readElementValue()); - } - } - } while (!reader - .isEndElement(elementNS, XmlElementNames.MessageXml)); - } else { - reader.read(); - } - - } - - /** - * Gets the fault code. - * - * @return the fault code - */ - protected String getFaultCode() { - return faultCode; - } - - /** - * Sets the fault code. - * - * @param faultCode - * the new fault code - */ - protected void setFaultCode(String faultCode) { - this.faultCode = faultCode; - } - - /** - * Gets the fault string. - * - * @return the fault string - */ - protected String getFaultString() { - return faultString; - } - - /** - * Sets the fault string. - * - * @param faultString - * the new fault string - */ - protected void setFaultString(String faultString) { - this.faultString = faultString; - } - - /** - * Gets the fault actor. - * - * @return the fault actor - */ - protected String getFaultActor() { - return faultActor; - } - - /** - * Sets the fault actor. - * - * @param faultActor - * the new fault actor - */ - protected void setFaultActor(String faultActor) { - this.faultActor = faultActor; - } - - /** - * Gets the response code. - * - * @return the response code - */ - protected ServiceError getResponseCode() { - return responseCode; - } - - /** - * Sets the response code. - * - * @param responseCode - * the new response code - */ - protected void setResponseCode(ServiceError responseCode) { - this.responseCode = responseCode; - } - - /** - * Gets the message. - * - * @return the message - */ - protected String getMessage() { - return message; - } - - /** - * Sets the message. - * - * @param message - * the new message - */ - protected void setMessage(String message) { - this.message = message; - } - - /** - * Gets the error code. - * - * @return the error code - */ - protected ServiceError getErrorCode() { - return errorCode; - } - - /** - * Sets the error code. - * - * @param errorCode - * the new error code - */ - protected void setErrorCode(ServiceError errorCode) { - this.errorCode = errorCode; - } - - /** - * Gets the exception type. - * - * @return the exception type - */ - protected String getExceptionType() { - return exceptionType; - } - - /** - * Sets the exception type. - * - * @param exceptionType - * the new exception type - */ - protected void setExceptionType(String exceptionType) { - this.exceptionType = exceptionType; - } - - /** - * Gets the line number. - * - * @return the line number - */ - protected int getLineNumber() { - return lineNumber; - } - - /** - * Sets the line number. - * - * @param lineNumber - * the new line number - */ - protected void setLineNumber(int lineNumber) { - this.lineNumber = lineNumber; - } - - /** - * Gets the position within line. - * - * @return the position within line - */ - protected int getPositionWithinLine() { - return positionWithinLine; - } - - /** - * Sets the position within line. - * - * @param positionWithinLine - * the new position within line - */ - protected void setPositionWithinLine(int positionWithinLine) { - this.positionWithinLine = positionWithinLine; - } - - /** - * Gets the error details. - * - * @return the error details - */ - protected Map getErrorDetails() { - return errorDetails; - } - - /** - * Sets the error details. - * - * @param errorDetails - * the error details - */ - protected void setErrorDetails(Map errorDetails) { - this.errorDetails = errorDetails; - } + /** + * The fault code. + */ + private String faultCode; + + /** + * The fault string. + */ + private String faultString; + + /** + * The fault actor. + */ + private String faultActor; + + /** + * The response code. + */ + private ServiceError responseCode = ServiceError.ErrorInternalServerError; + + /** + * The message. + */ + private String message; + + /** + * The error code. + */ + private ServiceError errorCode = ServiceError.NoError; + + /** + * The exception type. + */ + private String exceptionType; + + /** + * The line number. + */ + private int lineNumber; + + /** + * The position within line. + */ + private int positionWithinLine; + + /** + * Dictionary of key/value pairs from the MessageXml node in the fault. + * Usually empty but there are a few cases where SOAP faults may include + * MessageXml details (e.g. CASOverBudgetException includes BackoffTime + * value). + */ + private Map errorDetails = new HashMap(); + + /** + * Parses the. + * + * @param reader the reader + * @param soapNamespace the soap namespace + * @return the soap fault details + * @throws Exception the exception + */ + protected static SoapFaultDetails parse(EwsXmlReader reader, + XmlNamespace soapNamespace) throws Exception { + SoapFaultDetails soapFaultDetails = new SoapFaultDetails(); + + do { + reader.read(); + if (reader.getNodeType().equals( + new XmlNodeType(XmlNodeType.START_ELEMENT))) { + String localName = reader.getLocalName(); + if (localName.equals(XmlElementNames.SOAPFaultCodeElementName)) { + soapFaultDetails.setFaultCode(reader.readElementValue()); + } else if (localName + .equals(XmlElementNames.SOAPFaultStringElementName)) { + soapFaultDetails.setFaultString(reader.readElementValue()); + } else if (localName + .equals(XmlElementNames.SOAPFaultActorElementName)) { + soapFaultDetails.setFaultActor(reader.readElementValue()); + } else if (localName + .equals(XmlElementNames.SOAPDetailElementName)) { + soapFaultDetails.parseDetailNode(reader); + } + } + } while (!reader.isEndElement(soapNamespace, + XmlElementNames.SOAPFaultElementName)); + + return soapFaultDetails; + } + + /** + * Parses the detail node. + * + * @param reader the reader + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws Exception the exception + */ + private void parseDetailNode(EwsXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + Exception, Exception { + do { + reader.read(); + if (reader.getNodeType().equals( + new XmlNodeType(XmlNodeType.START_ELEMENT))) { + String localName = reader.getLocalName(); + if (localName + .equals(XmlElementNames.EwsResponseCodeElementName)) { + try { + this.setResponseCode(reader + .readElementValue(ServiceError.class)); + } catch (Exception e) { + e.printStackTrace(); + + // ServiceError couldn't be mapped to enum value, treat + // as an ISE + this + .setResponseCode(ServiceError. + ErrorInternalServerError); + } + + } else if (localName + .equals(XmlElementNames.EwsMessageElementName)) { + this.setMessage(reader.readElementValue()); + } else if (localName.equals(XmlElementNames.EwsLineElementName)) { + this.setLineNumber(reader.readElementValue(Integer.class)); + } else if (localName + .equals(XmlElementNames.EwsPositionElementName)) { + this.setPositionWithinLine(reader + .readElementValue(Integer.class)); + } else if (localName + .equals(XmlElementNames.EwsErrorCodeElementName)) { + try { + this.setErrorCode(reader + .readElementValue(ServiceError.class)); + } catch (Exception e) { + e.printStackTrace(); + + // ServiceError couldn't be mapped to enum value, treat + // as an ISE + this + .setErrorCode(ServiceError. + ErrorInternalServerError); + } + + } else if (localName + .equals(XmlElementNames.EwsExceptionTypeElementName)) { + try { + this.setExceptionType(reader.readElementValue()); + } catch (Exception e) { + e.printStackTrace(); + this.setExceptionType(null); + } + } else if (localName.equals(XmlElementNames.MessageXml)) { + this.parseMessageXml(reader); + } + } + } while (!reader.isEndElement(XmlNamespace.NotSpecified, + XmlElementNames.SOAPDetailElementName)); + } + + /** + * Parses the message xml. + * + * @param reader the reader + * @throws Exception the exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + private void parseMessageXml(EwsXmlReader reader) throws Exception, + ServiceXmlDeserializationException, Exception { + // E14:172881: E12 and E14 return the MessageXml element in different + // namespaces (types namespace for E12, errors namespace in E14). To + // avoid this problem, the parser will match the namespace from the + // start and end elements. + XmlNamespace elementNS = EwsUtilities.getNamespaceFromUri(reader + .getNamespaceUri()); + + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement() && !reader.isEmptyElement()) { + String localName = reader.getLocalName(); + if (localName.equals(XmlElementNames.Value)) { + this.errorDetails.put(reader + .readAttributeValue(XmlAttributeNames.Name), + reader.readElementValue()); + } + } + } while (!reader + .isEndElement(elementNS, XmlElementNames.MessageXml)); + } else { + reader.read(); + } + + } + + /** + * Gets the fault code. + * + * @return the fault code + */ + protected String getFaultCode() { + return faultCode; + } + + /** + * Sets the fault code. + * + * @param faultCode the new fault code + */ + protected void setFaultCode(String faultCode) { + this.faultCode = faultCode; + } + + /** + * Gets the fault string. + * + * @return the fault string + */ + protected String getFaultString() { + return faultString; + } + + /** + * Sets the fault string. + * + * @param faultString the new fault string + */ + protected void setFaultString(String faultString) { + this.faultString = faultString; + } + + /** + * Gets the fault actor. + * + * @return the fault actor + */ + protected String getFaultActor() { + return faultActor; + } + + /** + * Sets the fault actor. + * + * @param faultActor the new fault actor + */ + protected void setFaultActor(String faultActor) { + this.faultActor = faultActor; + } + + /** + * Gets the response code. + * + * @return the response code + */ + protected ServiceError getResponseCode() { + return responseCode; + } + + /** + * Sets the response code. + * + * @param responseCode the new response code + */ + protected void setResponseCode(ServiceError responseCode) { + this.responseCode = responseCode; + } + + /** + * Gets the message. + * + * @return the message + */ + protected String getMessage() { + return message; + } + + /** + * Sets the message. + * + * @param message the new message + */ + protected void setMessage(String message) { + this.message = message; + } + + /** + * Gets the error code. + * + * @return the error code + */ + protected ServiceError getErrorCode() { + return errorCode; + } + + /** + * Sets the error code. + * + * @param errorCode the new error code + */ + protected void setErrorCode(ServiceError errorCode) { + this.errorCode = errorCode; + } + + /** + * Gets the exception type. + * + * @return the exception type + */ + protected String getExceptionType() { + return exceptionType; + } + + /** + * Sets the exception type. + * + * @param exceptionType the new exception type + */ + protected void setExceptionType(String exceptionType) { + this.exceptionType = exceptionType; + } + + /** + * Gets the line number. + * + * @return the line number + */ + protected int getLineNumber() { + return lineNumber; + } + + /** + * Sets the line number. + * + * @param lineNumber the new line number + */ + protected void setLineNumber(int lineNumber) { + this.lineNumber = lineNumber; + } + + /** + * Gets the position within line. + * + * @return the position within line + */ + protected int getPositionWithinLine() { + return positionWithinLine; + } + + /** + * Sets the position within line. + * + * @param positionWithinLine the new position within line + */ + protected void setPositionWithinLine(int positionWithinLine) { + this.positionWithinLine = positionWithinLine; + } + + /** + * Gets the error details. + * + * @return the error details + */ + protected Map getErrorDetails() { + return errorDetails; + } + + /** + * Sets the error details. + * + * @param errorDetails the error details + */ + protected void setErrorDetails(Map errorDetails) { + this.errorDetails = errorDetails; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java index 2664243ec..277c12baf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java +++ b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java @@ -15,11 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SortDirection { - // The sort is performed in ascending order. - /** The Ascending. */ - Ascending, + // The sort is performed in ascending order. + /** + * The Ascending. + */ + Ascending, - // The sort is performed in descending order. - /** The Descending. */ - Descending + // The sort is performed in descending order. + /** + * The Descending. + */ + Descending } diff --git a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java index c66a771db..d83f533ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java @@ -15,13 +15,17 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum StandardUser { - // The Default delegate user, used to define default delegation permissions. - /** The Default. */ - Default, + // The Default delegate user, used to define default delegation permissions. + /** + * The Default. + */ + Default, - // The Anonymous delegate user, used to define delegate permissions for - // unauthenticated users. - /** The Anonymous. */ - Anonymous + // The Anonymous delegate user, used to define delegate permissions for + // unauthenticated users. + /** + * The Anonymous. + */ + Anonymous } diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index f985f3280..2282aa7fb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -10,120 +10,103 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.EnumSet; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a property definition for properties of type TimeZoneInfo. */ class StartTimeZonePropertyDefinition extends TimeZonePropertyDefinition { - /** - * Initializes a new instance of the StartTimeZonePropertyDefinition - * class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected StartTimeZonePropertyDefinition(String xmlElementName, - String uri, EnumSet flags, - ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the StartTimeZonePropertyDefinition + * class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected StartTimeZonePropertyDefinition(String xmlElementName, + String uri, EnumSet flags, + ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } - /** - * Registers associated internal properties. - * - * @param properties - * the properties - */ - protected void registerAssociatedInternalProperties( - List properties) { - super.registerAssociatedInternalProperties(properties); + /** + * Registers associated internal properties. + * + * @param properties the properties + */ + protected void registerAssociatedInternalProperties( + List properties) { + super.registerAssociatedInternalProperties(properties); - properties.add(AppointmentSchema.MeetingTimeZone); - } + properties.add(AppointmentSchema.MeetingTimeZone); + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - * @throws Exception - * the exception - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws Exception { - Object value = propertyBag.getObjectFromPropertyDefinition(this); + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + * @throws Exception the exception + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws Exception { + Object value = propertyBag.getObjectFromPropertyDefinition(this); - if (value != null) { - if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { - ExchangeService service = (ExchangeService)writer.getService(); - if (service != null && !service.getExchange2007CompatibilityMode()) - { - MeetingTimeZone meetingTimeZone = new MeetingTimeZone( - (TimeZoneDefinition)value); - meetingTimeZone.writeToXml(writer, - XmlElementNames.MeetingTimeZone); - } - }else { - super.writePropertyValueToXml(writer, propertyBag, - isUpdateOperation); - } - } - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { - AppointmentSchema.MeetingTimeZone.writeToXml(writer); - } else { - super.writeToXml(writer); - } - } - - /** - * Determines whether the specified flag is set. - * - * @param flag The flag. - * @param version Requested version. - * @return true if the specified - * flag is set; otherwise, false. - */ - @Override - protected boolean hasFlag(PropertyDefinitionFlags flag, - ExchangeVersion version) { - if (version!=null && (version == ExchangeVersion.Exchange2007_SP1)) - { - return AppointmentSchema.MeetingTimeZone.hasFlag(flag, version); - } - else - { - return super.hasFlag(flag, version); + if (value != null) { + if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { + ExchangeService service = (ExchangeService) writer.getService(); + if (service != null && !service.getExchange2007CompatibilityMode()) { + MeetingTimeZone meetingTimeZone = new MeetingTimeZone( + (TimeZoneDefinition) value); + meetingTimeZone.writeToXml(writer, + XmlElementNames.MeetingTimeZone); } + } else { + super.writePropertyValueToXml(writer, propertyBag, + isUpdateOperation); + } + } + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + if (writer.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { + AppointmentSchema.MeetingTimeZone.writeToXml(writer); + } else { + super.writeToXml(writer); + } + } + + /** + * Determines whether the specified flag is set. + * + * @param flag The flag. + * @param version Requested version. + * @return true if the specified + * flag is set; otherwise, false. + */ + @Override + protected boolean hasFlag(PropertyDefinitionFlags flag, + ExchangeVersion version) { + if (version != null && (version == ExchangeVersion.Exchange2007_SP1)) { + return AppointmentSchema.MeetingTimeZone.hasFlag(flag, version); + } else { + return super.hasFlag(flag, version); } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index 921dbd0bd..e600f33d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -13,55 +13,55 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a streaming subscription. */ -public final class StreamingSubscription extends SubscriptionBase{ +public final class StreamingSubscription extends SubscriptionBase { - private ExchangeService service; + private ExchangeService service; - protected StreamingSubscription(ExchangeService service) throws Exception { - super(service); - } + protected StreamingSubscription(ExchangeService service) throws Exception { + super(service); + } - /** - * Unsubscribes from the streaming subscription. - */ - public void unsubscribe() throws Exception { - this.getService().unsubscribe(this.getId()); - } + /** + * Unsubscribes from the streaming subscription. + */ + public void unsubscribe() throws Exception { + this.getService().unsubscribe(this.getId()); + } - /** - * Begins an asynchronous request to unsubscribe from the streaming subscription. - * @param callback The AsyncCallback delegate. - * @param state An object that contains state information for this request. - * @return An IAsyncResult that references the asynchronous request. - * @throws Exception - */ - public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception - { - return this.getService().beginUnsubscribe(callback, state, this.getId()); - } + /** + * Begins an asynchronous request to unsubscribe from the streaming subscription. + * + * @param callback The AsyncCallback delegate. + * @param state An object that contains state information for this request. + * @return An IAsyncResult that references the asynchronous request. + * @throws Exception + */ + public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception { + return this.getService().beginUnsubscribe(callback, state, this.getId()); + } - /** - * Ends an asynchronous request to unsubscribe from the streaming subscription. - * @param asyncResult An IAsyncResult that references the asynchronous request. - */ - public void endUnsubscribe(IAsyncResult asyncResult) throws Exception - { - this.getService().endUnsubscribe(asyncResult); - } + /** + * Ends an asynchronous request to unsubscribe from the streaming subscription. + * + * @param asyncResult An IAsyncResult that references the asynchronous request. + */ + public void endUnsubscribe(IAsyncResult asyncResult) throws Exception { + this.getService().endUnsubscribe(asyncResult); + } - /** - * Gets the service used to create this subscription. - */ - public ExchangeService getService() { - return super.getService(); - } + /** + * Gets the service used to create this subscription. + */ + public ExchangeService getService() { + return super.getService(); + } - /** - * Gets a value indicating whether this subscription uses watermarks. - */ - @Override - protected boolean getUsesWatermark() { - return false; - } + /** + * Gets a value indicating whether this subscription uses watermarks. + */ + @Override + protected boolean getUsesWatermark() { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index f7559df56..63bf77f9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -20,572 +20,548 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a connection to an ongoing stream of events. */ public final class StreamingSubscriptionConnection implements Closeable, - HangingServiceRequestBase.IHandleResponseObject, - HangingServiceRequestBase.IHangingRequestDisconnectHandler { - - /** - * Mapping of streaming id to subscriptions currently on the connection. - */ - private Map subscriptions; - - /** - * connection lifetime, in minutes - */ - private int connectionTimeout; - - /** - * ExchangeService instance used to make the EWS call. - */ - private ExchangeService session; - - /** - * Value indicating whether the class is disposed. - */ - private boolean isDisposed; - - /** - * Currently used instance of a GetStreamingEventsRequest connected to EWS. - */ - private GetStreamingEventsRequest currentHangingRequest; - - public interface INotificationEventDelegate { - /** - * Represents a delegate that is invoked when notifications are received - * from the server - * - * @param sender - * The StreamingSubscriptionConnection instance that received - * the events. - * @param args - * The event data. - */ - void notificationEventDelegate(Object sender, NotificationEventArgs args); - } - - /** - * Notification events Occurs when notifications are received from the - * server. - */ - private List onNotificationEvent = new ArrayList(); - - /** - * Set event to happen when property Notify. - * - * @param notificationEvent - * notification event - */ - public void addOnNotificationEvent( - INotificationEventDelegate notificationEvent) { - onNotificationEvent.add(notificationEvent); - } - - /** - * Remove the event from happening when property Notify. - * - * @param notificationEvent - * notification event - */ - public void removeNotificationEvent( - INotificationEventDelegate notificationEvent) { - onNotificationEvent.remove(notificationEvent); - } - - /** - * Clears notification events list. - */ - public void clearNotificationEvent() { - onNotificationEvent.clear(); - } - - public interface ISubscriptionErrorDelegate { - - /** - * Represents a delegate that is invoked when an error occurs within a - * streaming subscription connection. - * - * @param sender - * The StreamingSubscriptionConnection instance within which - * the error occurred. - * @param args - * The event data. - */ - void subscriptionErrorDelegate(Object sender, - SubscriptionErrorEventArgs args); - } - - /** - * Subscription events Occur when a subscription encounters an error. - */ - private List onSubscriptionError = new ArrayList(); - - /** - * Set event to happen when property subscriptionError. - * - * @param subscriptionError - * subscription event - */ - public void addOnSubscriptionError( - ISubscriptionErrorDelegate subscriptionError) { - onSubscriptionError.add(subscriptionError); - } - - /** - * Remove the event from happening when property subscription. - * - * @param subscriptionError - * subscription event - */ - public void removeSubscriptionError( - ISubscriptionErrorDelegate subscriptionError) { - onSubscriptionError.remove(subscriptionError); - } - - /** - * Clears subscription events list. - */ - public void clearSubscriptionError() { - onSubscriptionError.clear(); - } - - /** - * Disconnect events Occurs when a streaming subscription connection is - * disconnected from the server. - */ - private List onDisconnect = new ArrayList(); - - /** - * Set event to happen when property disconnect. - * - * @param disconnect - * disconnect event - */ - public void addOnDisconnect(ISubscriptionErrorDelegate disconnect) { - onDisconnect.add(disconnect); - } - - /** - * Remove the event from happening when property disconnect. - * - * @param disconnect - * disconnect event - */ - public void removeDisconnect(ISubscriptionErrorDelegate disconnect) { - onDisconnect.remove(disconnect); - } - - /** - * Clears disconnect events list. - */ - public void clearDisconnect() { - onDisconnect.clear(); - } - - /** - * Initializes a new instance of the StreamingSubscriptionConnection class. - * - * @param service - * The ExchangeService instance this connection uses to connect - * to the server. - * @param lifetime - * The maximum time, in minutes, the connection will remain open. - * Lifetime must be between 1 and 30. - * @throws Exception - */ - public StreamingSubscriptionConnection(ExchangeService service, int lifetime) - throws Exception { - EwsUtilities.validateParam(service, "service"); - - EwsUtilities.validateClassVersion(service, - ExchangeVersion.Exchange2010_SP1, this.getClass().getName()); - - if (lifetime < 1 || lifetime > 30) { - throw new ArgumentOutOfRangeException("lifetime"); - } - - this.session = service; - this.subscriptions = new HashMap(); - this.connectionTimeout = lifetime; - } - - /** - * Initializes a new instance of the StreamingSubscriptionConnection class. - * - * @param service - * The ExchangeService instance this connection uses to connect - * to the server. - * @param subscriptions - * Iterable subcriptions - * @param lifetime - * The maximum time, in minutes, the connection will remain open. - * Lifetime must be between 1 and 30. - * @throws Exception - */ - public StreamingSubscriptionConnection(ExchangeService service, - Iterable subscriptions, int lifetime) - throws Exception { - this(service, lifetime); - EwsUtilities.validateParamCollection(subscriptions.iterator(), - "subscriptions"); - for (StreamingSubscription subscription : subscriptions) { - this.subscriptions.put(subscription.getId(), subscription); - } - } - - /** - * Adds a subscription to this connection. - * - * @param subscription - * The subscription to add. - * @throws Exception Thrown when AddSubscription is called while connected. - */ - public void addSubscription(StreamingSubscription subscription) - throws Exception { - this.throwIfDisposed(); - EwsUtilities.validateParam(subscription, "subscription"); - this.validateConnectionState(false, - Strings.CannotAddSubscriptionToLiveConnection); - - synchronized (this) { - if (this.subscriptions.containsKey(subscription.getId())) { - return; - } - this.subscriptions.put(subscription.getId(), subscription); - } - } - - /** - * Removes the specified streaming subscription from the connection. - * - * @param subscription - * The subscription to remove. - * @throws Exception Thrown when RemoveSubscription is called while connected. - */ - public void removeSubscription(StreamingSubscription subscription) - throws Exception { - this.throwIfDisposed(); - - EwsUtilities.validateParam(subscription, "subscription"); - - this.validateConnectionState(false, - Strings.CannotRemoveSubscriptionFromLiveConnection); - - synchronized (this) { - this.subscriptions.remove(subscription.getId()); - } - } - - /** - * Opens this connection so it starts receiving events from the server.This - * results in a long-standing call to EWS. - * - * @throws Exception - * @throws ServiceLocalException Thrown when Open is called while connected. - */ - public void open() throws ServiceLocalException, Exception { - synchronized (this) { - this.throwIfDisposed(); - - this.validateConnectionState(false, - Strings.CannotCallConnectDuringLiveConnection); - - if (this.subscriptions.size() == 0) { - throw new ServiceLocalException( - Strings.NoSubscriptionsOnConnection); - } - - this.currentHangingRequest = new GetStreamingEventsRequest( - this.session, this, this.subscriptions.keySet(), - this.connectionTimeout); - - this.currentHangingRequest.addOnDisconnectEvent(this); - - this.currentHangingRequest.internalExecute(); - } - } - - /** - * Called when the request is disconnected. - * - * @param sender - * The sender. - * @param args - * The Microsoft.Exchange.WebServices.Data. - * HangingRequestDisconnectEventArgs instance containing the - * event data. - */ - private void onRequestDisconnect(Object sender, - HangingRequestDisconnectEventArgs args) { - this.internalOnDisconnect(args.getException()); - } - - /** - * Closes this connection so it stops receiving events from the server.This - * terminates a long-standing call to EWS. - */ - public void close() { - synchronized (this) { - try { - this.throwIfDisposed(); - - this.validateConnectionState(true, - Strings.CannotCallDisconnectWithNoLiveConnection); - - // Further down in the stack, this will result in a - // call to our OnRequestDisconnect event handler, - // doing the necessary cleanup. - this.currentHangingRequest.disconnect(); - } catch (Exception e) { - e.printStackTrace(); - } - } - } - - /** - * Internal helper method called when the request disconnects. - * - * @param ex - * The exception that caused the disconnection. May be null. - */ - private void internalOnDisconnect(Exception ex) { - if (!onDisconnect.isEmpty()) { - for (ISubscriptionErrorDelegate disconnect : onDisconnect) { - disconnect.subscriptionErrorDelegate(this, - new SubscriptionErrorEventArgs(null, ex)); - } - } - this.currentHangingRequest = null; - } - - /** - * Gets a value indicating whether this connection is opened - * - * @throws Exception - */ - public boolean getIsOpen() throws Exception { - - this.throwIfDisposed(); - if (this.currentHangingRequest == null) { - return false; - } else { - return this.currentHangingRequest.isConnected(); - } - - } - - /** - * Validates the state of the connection. - * - * @param isConnectedExpected - * Value indicating whether we expect to be currently connected. - * @param errorMessage - * The error message. - * @throws Exception - */ - private void validateConnectionState(boolean isConnectedExpected, - String errorMessage) throws Exception { - if ((isConnectedExpected && !this.getIsOpen()) - || (!isConnectedExpected && this.getIsOpen())) { - throw new ServiceLocalException(errorMessage); - } - } - - /** - * Handles the service response object. - * - * @param response - * The response. - * @throws microsoft.exchange.webservices.data.ArgumentException - */ - private void handleServiceResponseObject(Object response) - throws ArgumentException { - GetStreamingEventsResponse gseResponse = (GetStreamingEventsResponse) response; - - if (gseResponse == null) { - throw new ArgumentException(); - } else { - if (gseResponse.getResult() == ServiceResult.Success - || gseResponse.getResult() == ServiceResult.Warning) { - if (gseResponse.getResults().getNotifications().size() > 0) { - // We got notifications; dole them out. - this.issueNotificationEvents(gseResponse); - } else { - // // This was just a heartbeat, nothing to do here. - } - } else if (gseResponse.getResult() == ServiceResult.Error) { - if (gseResponse.getErrorSubscriptionIds() == null - || gseResponse.getErrorSubscriptionIds().size() == 0) { - // General error - this.issueGeneralFailure(gseResponse); - } else { - // subscription-specific errors - this.issueSubscriptionFailures(gseResponse); - } - } - } - } - - /** - * Issues the subscription failures. - * - * @param gseResponse - * The GetStreamingEvents response. - */ - private void issueSubscriptionFailures( - GetStreamingEventsResponse gseResponse) { - ServiceResponseException exception = new ServiceResponseException( - gseResponse); - - for (String id : gseResponse.getErrorSubscriptionIds()) { - StreamingSubscription subscription = null; - - synchronized (this) { - // Client can do any good or bad things in the below event - // handler - if (this.subscriptions != null - && this.subscriptions.containsKey(id)) { - subscription = this.subscriptions.get(id); - } - - } - if (subscription != null) { - SubscriptionErrorEventArgs eventArgs = new SubscriptionErrorEventArgs( - subscription, exception); - - if (!onSubscriptionError.isEmpty()) { - for (ISubscriptionErrorDelegate subError : onSubscriptionError) { - subError.subscriptionErrorDelegate(this, eventArgs); - } - } - } - if (gseResponse.getErrorCode() != ServiceError.ErrorMissedNotificationEvents) { - // Client can do any good or bad things in the above event - // handler - synchronized (this) { - if (this.subscriptions != null - && this.subscriptions.containsKey(id)) { - // We are no longer servicing the subscription. - this.subscriptions.remove(id); - } - } - } - } - } - - /** - * Issues the general failure. - * - * @param gseResponse - * The GetStreamingEvents response. - */ - private void issueGeneralFailure(GetStreamingEventsResponse gseResponse) { - SubscriptionErrorEventArgs eventArgs = new SubscriptionErrorEventArgs( - null, new ServiceResponseException(gseResponse)); - - if (!onSubscriptionError.isEmpty()) { - for (ISubscriptionErrorDelegate subError : onSubscriptionError) { - subError.subscriptionErrorDelegate(this, eventArgs); - } - } - } - - /** - * Issues the notification events. - * - * @param gseResponse - * The GetStreamingEvents response. - */ - private void issueNotificationEvents(GetStreamingEventsResponse gseResponse) { - - for (GetStreamingEventsResults.NotificationGroup events : gseResponse - .getResults().getNotifications()) { - StreamingSubscription subscription = null; - - synchronized (this) { - // Client can do any good or bad things in the below event - // handler - if (this.subscriptions != null - && this.subscriptions - .containsKey(events.subscriptionId)) { - subscription = this.subscriptions - .get(events.subscriptionId); - } - } - if (subscription != null) { - NotificationEventArgs eventArgs = new NotificationEventArgs( - subscription, events.events); - - if (!onNotificationEvent.isEmpty()) { - for (INotificationEventDelegate notifyEvent : onNotificationEvent) { - notifyEvent.notificationEventDelegate(this, eventArgs); - } - } - } - } - } - - /** - * Finalizes an instance of the StreamingSubscriptionConnection class. - */ - @Override - protected void finalize() throws Throwable { - this.dispose(false); - } - - /** - * Frees resources associated with this StreamingSubscriptionConnection. - */ - public void dispose() { - this.dispose(true); - } - - /** - * Performs application-defined tasks associated with freeing, releasing, or - * resetting unmanaged resources. - * - * @param suppressFinalizer - * Value indicating whether to suppress the garbage collector's - * finalizer. - */ - @SuppressWarnings("deprecation") - private void dispose(boolean suppressFinalizer) { - if (suppressFinalizer) { - System.runFinalizersOnExit(false); - } - - synchronized (this) { - if (!this.isDisposed) { - if (this.currentHangingRequest != null) { - this.currentHangingRequest = null; - } - - this.subscriptions = null; - this.session = null; - - this.isDisposed = true; - } - } - } - - /** - * Throws if disposed. - * - * @throws Exception - */ - private void throwIfDisposed() throws Exception { - if (this.isDisposed) { - throw new Exception(this.getClass().getName()); - } - } - - @Override - public void handleResponseObject(Object response) throws ArgumentException { - this.handleServiceResponseObject(response); - } - - @Override - public void hangingRequestDisconnectHandler(Object sender, - HangingRequestDisconnectEventArgs args) { - this.onRequestDisconnect(sender, args); - } + HangingServiceRequestBase.IHandleResponseObject, + HangingServiceRequestBase.IHangingRequestDisconnectHandler { + + /** + * Mapping of streaming id to subscriptions currently on the connection. + */ + private Map subscriptions; + + /** + * connection lifetime, in minutes + */ + private int connectionTimeout; + + /** + * ExchangeService instance used to make the EWS call. + */ + private ExchangeService session; + + /** + * Value indicating whether the class is disposed. + */ + private boolean isDisposed; + + /** + * Currently used instance of a GetStreamingEventsRequest connected to EWS. + */ + private GetStreamingEventsRequest currentHangingRequest; + + + public interface INotificationEventDelegate { + /** + * Represents a delegate that is invoked when notifications are received + * from the server + * + * @param sender The StreamingSubscriptionConnection instance that received + * the events. + * @param args The event data. + */ + void notificationEventDelegate(Object sender, NotificationEventArgs args); + } + + + /** + * Notification events Occurs when notifications are received from the + * server. + */ + private List onNotificationEvent = new ArrayList(); + + /** + * Set event to happen when property Notify. + * + * @param notificationEvent notification event + */ + public void addOnNotificationEvent( + INotificationEventDelegate notificationEvent) { + onNotificationEvent.add(notificationEvent); + } + + /** + * Remove the event from happening when property Notify. + * + * @param notificationEvent notification event + */ + public void removeNotificationEvent( + INotificationEventDelegate notificationEvent) { + onNotificationEvent.remove(notificationEvent); + } + + /** + * Clears notification events list. + */ + public void clearNotificationEvent() { + onNotificationEvent.clear(); + } + + public interface ISubscriptionErrorDelegate { + + /** + * Represents a delegate that is invoked when an error occurs within a + * streaming subscription connection. + * + * @param sender The StreamingSubscriptionConnection instance within which + * the error occurred. + * @param args The event data. + */ + void subscriptionErrorDelegate(Object sender, + SubscriptionErrorEventArgs args); + } + + + /** + * Subscription events Occur when a subscription encounters an error. + */ + private List onSubscriptionError = new ArrayList(); + + /** + * Set event to happen when property subscriptionError. + * + * @param subscriptionError subscription event + */ + public void addOnSubscriptionError( + ISubscriptionErrorDelegate subscriptionError) { + onSubscriptionError.add(subscriptionError); + } + + /** + * Remove the event from happening when property subscription. + * + * @param subscriptionError subscription event + */ + public void removeSubscriptionError( + ISubscriptionErrorDelegate subscriptionError) { + onSubscriptionError.remove(subscriptionError); + } + + /** + * Clears subscription events list. + */ + public void clearSubscriptionError() { + onSubscriptionError.clear(); + } + + /** + * Disconnect events Occurs when a streaming subscription connection is + * disconnected from the server. + */ + private List onDisconnect = new ArrayList(); + + /** + * Set event to happen when property disconnect. + * + * @param disconnect disconnect event + */ + public void addOnDisconnect(ISubscriptionErrorDelegate disconnect) { + onDisconnect.add(disconnect); + } + + /** + * Remove the event from happening when property disconnect. + * + * @param disconnect disconnect event + */ + public void removeDisconnect(ISubscriptionErrorDelegate disconnect) { + onDisconnect.remove(disconnect); + } + + /** + * Clears disconnect events list. + */ + public void clearDisconnect() { + onDisconnect.clear(); + } + + /** + * Initializes a new instance of the StreamingSubscriptionConnection class. + * + * @param service The ExchangeService instance this connection uses to connect + * to the server. + * @param lifetime The maximum time, in minutes, the connection will remain open. + * Lifetime must be between 1 and 30. + * @throws Exception + */ + public StreamingSubscriptionConnection(ExchangeService service, int lifetime) + throws Exception { + EwsUtilities.validateParam(service, "service"); + + EwsUtilities.validateClassVersion(service, + ExchangeVersion.Exchange2010_SP1, this.getClass().getName()); + + if (lifetime < 1 || lifetime > 30) { + throw new ArgumentOutOfRangeException("lifetime"); + } + + this.session = service; + this.subscriptions = new HashMap(); + this.connectionTimeout = lifetime; + } + + /** + * Initializes a new instance of the StreamingSubscriptionConnection class. + * + * @param service The ExchangeService instance this connection uses to connect + * to the server. + * @param subscriptions Iterable subcriptions + * @param lifetime The maximum time, in minutes, the connection will remain open. + * Lifetime must be between 1 and 30. + * @throws Exception + */ + public StreamingSubscriptionConnection(ExchangeService service, + Iterable subscriptions, int lifetime) + throws Exception { + this(service, lifetime); + EwsUtilities.validateParamCollection(subscriptions.iterator(), + "subscriptions"); + for (StreamingSubscription subscription : subscriptions) { + this.subscriptions.put(subscription.getId(), subscription); + } + } + + /** + * Adds a subscription to this connection. + * + * @param subscription The subscription to add. + * @throws Exception Thrown when AddSubscription is called while connected. + */ + public void addSubscription(StreamingSubscription subscription) + throws Exception { + this.throwIfDisposed(); + EwsUtilities.validateParam(subscription, "subscription"); + this.validateConnectionState(false, + Strings.CannotAddSubscriptionToLiveConnection); + + synchronized (this) { + if (this.subscriptions.containsKey(subscription.getId())) { + return; + } + this.subscriptions.put(subscription.getId(), subscription); + } + } + + /** + * Removes the specified streaming subscription from the connection. + * + * @param subscription The subscription to remove. + * @throws Exception Thrown when RemoveSubscription is called while connected. + */ + public void removeSubscription(StreamingSubscription subscription) + throws Exception { + this.throwIfDisposed(); + + EwsUtilities.validateParam(subscription, "subscription"); + + this.validateConnectionState(false, + Strings.CannotRemoveSubscriptionFromLiveConnection); + + synchronized (this) { + this.subscriptions.remove(subscription.getId()); + } + } + + /** + * Opens this connection so it starts receiving events from the server.This + * results in a long-standing call to EWS. + * + * @throws Exception + * @throws ServiceLocalException Thrown when Open is called while connected. + */ + public void open() throws ServiceLocalException, Exception { + synchronized (this) { + this.throwIfDisposed(); + + this.validateConnectionState(false, + Strings.CannotCallConnectDuringLiveConnection); + + if (this.subscriptions.size() == 0) { + throw new ServiceLocalException( + Strings.NoSubscriptionsOnConnection); + } + + this.currentHangingRequest = new GetStreamingEventsRequest( + this.session, this, this.subscriptions.keySet(), + this.connectionTimeout); + + this.currentHangingRequest.addOnDisconnectEvent(this); + + this.currentHangingRequest.internalExecute(); + } + } + + /** + * Called when the request is disconnected. + * + * @param sender The sender. + * @param args The Microsoft.Exchange.WebServices.Data. + * HangingRequestDisconnectEventArgs instance containing the + * event data. + */ + private void onRequestDisconnect(Object sender, + HangingRequestDisconnectEventArgs args) { + this.internalOnDisconnect(args.getException()); + } + + /** + * Closes this connection so it stops receiving events from the server.This + * terminates a long-standing call to EWS. + */ + public void close() { + synchronized (this) { + try { + this.throwIfDisposed(); + + this.validateConnectionState(true, + Strings.CannotCallDisconnectWithNoLiveConnection); + + // Further down in the stack, this will result in a + // call to our OnRequestDisconnect event handler, + // doing the necessary cleanup. + this.currentHangingRequest.disconnect(); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + /** + * Internal helper method called when the request disconnects. + * + * @param ex The exception that caused the disconnection. May be null. + */ + private void internalOnDisconnect(Exception ex) { + if (!onDisconnect.isEmpty()) { + for (ISubscriptionErrorDelegate disconnect : onDisconnect) { + disconnect.subscriptionErrorDelegate(this, + new SubscriptionErrorEventArgs(null, ex)); + } + } + this.currentHangingRequest = null; + } + + /** + * Gets a value indicating whether this connection is opened + * + * @throws Exception + */ + public boolean getIsOpen() throws Exception { + + this.throwIfDisposed(); + if (this.currentHangingRequest == null) { + return false; + } else { + return this.currentHangingRequest.isConnected(); + } + + } + + /** + * Validates the state of the connection. + * + * @param isConnectedExpected Value indicating whether we expect to be currently connected. + * @param errorMessage The error message. + * @throws Exception + */ + private void validateConnectionState(boolean isConnectedExpected, + String errorMessage) throws Exception { + if ((isConnectedExpected && !this.getIsOpen()) + || (!isConnectedExpected && this.getIsOpen())) { + throw new ServiceLocalException(errorMessage); + } + } + + /** + * Handles the service response object. + * + * @param response The response. + * @throws microsoft.exchange.webservices.data.ArgumentException + */ + private void handleServiceResponseObject(Object response) + throws ArgumentException { + GetStreamingEventsResponse gseResponse = (GetStreamingEventsResponse) response; + + if (gseResponse == null) { + throw new ArgumentException(); + } else { + if (gseResponse.getResult() == ServiceResult.Success + || gseResponse.getResult() == ServiceResult.Warning) { + if (gseResponse.getResults().getNotifications().size() > 0) { + // We got notifications; dole them out. + this.issueNotificationEvents(gseResponse); + } else { + // // This was just a heartbeat, nothing to do here. + } + } else if (gseResponse.getResult() == ServiceResult.Error) { + if (gseResponse.getErrorSubscriptionIds() == null + || gseResponse.getErrorSubscriptionIds().size() == 0) { + // General error + this.issueGeneralFailure(gseResponse); + } else { + // subscription-specific errors + this.issueSubscriptionFailures(gseResponse); + } + } + } + } + + /** + * Issues the subscription failures. + * + * @param gseResponse The GetStreamingEvents response. + */ + private void issueSubscriptionFailures( + GetStreamingEventsResponse gseResponse) { + ServiceResponseException exception = new ServiceResponseException( + gseResponse); + + for (String id : gseResponse.getErrorSubscriptionIds()) { + StreamingSubscription subscription = null; + + synchronized (this) { + // Client can do any good or bad things in the below event + // handler + if (this.subscriptions != null + && this.subscriptions.containsKey(id)) { + subscription = this.subscriptions.get(id); + } + + } + if (subscription != null) { + SubscriptionErrorEventArgs eventArgs = new SubscriptionErrorEventArgs( + subscription, exception); + + if (!onSubscriptionError.isEmpty()) { + for (ISubscriptionErrorDelegate subError : onSubscriptionError) { + subError.subscriptionErrorDelegate(this, eventArgs); + } + } + } + if (gseResponse.getErrorCode() != ServiceError.ErrorMissedNotificationEvents) { + // Client can do any good or bad things in the above event + // handler + synchronized (this) { + if (this.subscriptions != null + && this.subscriptions.containsKey(id)) { + // We are no longer servicing the subscription. + this.subscriptions.remove(id); + } + } + } + } + } + + /** + * Issues the general failure. + * + * @param gseResponse The GetStreamingEvents response. + */ + private void issueGeneralFailure(GetStreamingEventsResponse gseResponse) { + SubscriptionErrorEventArgs eventArgs = new SubscriptionErrorEventArgs( + null, new ServiceResponseException(gseResponse)); + + if (!onSubscriptionError.isEmpty()) { + for (ISubscriptionErrorDelegate subError : onSubscriptionError) { + subError.subscriptionErrorDelegate(this, eventArgs); + } + } + } + + /** + * Issues the notification events. + * + * @param gseResponse The GetStreamingEvents response. + */ + private void issueNotificationEvents(GetStreamingEventsResponse gseResponse) { + + for (GetStreamingEventsResults.NotificationGroup events : gseResponse + .getResults().getNotifications()) { + StreamingSubscription subscription = null; + + synchronized (this) { + // Client can do any good or bad things in the below event + // handler + if (this.subscriptions != null + && this.subscriptions + .containsKey(events.subscriptionId)) { + subscription = this.subscriptions + .get(events.subscriptionId); + } + } + if (subscription != null) { + NotificationEventArgs eventArgs = new NotificationEventArgs( + subscription, events.events); + + if (!onNotificationEvent.isEmpty()) { + for (INotificationEventDelegate notifyEvent : onNotificationEvent) { + notifyEvent.notificationEventDelegate(this, eventArgs); + } + } + } + } + } + + /** + * Finalizes an instance of the StreamingSubscriptionConnection class. + */ + @Override + protected void finalize() throws Throwable { + this.dispose(false); + } + + /** + * Frees resources associated with this StreamingSubscriptionConnection. + */ + public void dispose() { + this.dispose(true); + } + + /** + * Performs application-defined tasks associated with freeing, releasing, or + * resetting unmanaged resources. + * + * @param suppressFinalizer Value indicating whether to suppress the garbage collector's + * finalizer. + */ + @SuppressWarnings("deprecation") + private void dispose(boolean suppressFinalizer) { + if (suppressFinalizer) { + System.runFinalizersOnExit(false); + } + + synchronized (this) { + if (!this.isDisposed) { + if (this.currentHangingRequest != null) { + this.currentHangingRequest = null; + } + + this.subscriptions = null; + this.session = null; + + this.isDisposed = true; + } + } + } + + /** + * Throws if disposed. + * + * @throws Exception + */ + private void throwIfDisposed() throws Exception { + if (this.isDisposed) { + throw new Exception(this.getClass().getName()); + } + } + + @Override + public void handleResponseObject(Object response) throws ArgumentException { + this.handleServiceResponseObject(response); + } + + @Override + public void hangingRequestDisconnectHandler(Object sender, + HangingRequestDisconnectEventArgs args) { + this.onRequestDisconnect(sender, args); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/StringList.java b/src/main/java/microsoft/exchange/webservices/data/StringList.java index fbfc0b9de..72de167c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringList.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringList.java @@ -10,331 +10,317 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * Represents a list of strings. */ public class StringList extends ComplexProperty implements Iterable { - /** The items. */ - private List items = new ArrayList(); + /** + * The items. + */ + private List items = new ArrayList(); + + /** + * The item xml element name. + */ + private String itemXmlElementName = XmlElementNames.String; - /** The item xml element name. */ - private String itemXmlElementName = XmlElementNames.String; - - /** - * Initializes a new instance of the "StringList" class. - */ - public StringList() { - } + /** + * Initializes a new instance of the "StringList" class. + */ + public StringList() { + } - /** - * Initializes a new instance of the class. - * - * @param strings - * The strings. - */ - public StringList(Iterable strings) { - this.addRange(strings); - } + /** + * Initializes a new instance of the class. + * + * @param strings The strings. + */ + public StringList(Iterable strings) { + this.addRange(strings); + } - /** - * Initializes a new instance of the "StringList" class. - * - * @param itemXmlElementName - * Name of the item XML element. - */ - protected StringList(String itemXmlElementName) { - this.itemXmlElementName = itemXmlElementName; - } + /** + * Initializes a new instance of the "StringList" class. + * + * @param itemXmlElementName Name of the item XML element. + */ + protected StringList(String itemXmlElementName) { + this.itemXmlElementName = itemXmlElementName; + } - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - boolean returnValue = false; - if (reader.getLocalName().equals(this.itemXmlElementName)) { - if (!reader.isEmptyElement()) { - this.add(reader.readValue()); - returnValue = true; - } else { - reader.read(); + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + boolean returnValue = false; + if (reader.getLocalName().equals(this.itemXmlElementName)) { + if (!reader.isEmptyElement()) { + this.add(reader.readValue()); + returnValue = true; + } else { + reader.read(); - returnValue = true; - } + returnValue = true; + } - } - return returnValue; - } + } + return returnValue; + } - /** - * Writes elements to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - for (String item : this.items) { - writer.writeStartElement(XmlNamespace.Types, - this.itemXmlElementName); - writer.writeValue(item, this.itemXmlElementName); - writer.writeEndElement(); - } - } + /** + * Writes elements to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + for (String item : this.items) { + writer.writeStartElement(XmlNamespace.Types, + this.itemXmlElementName); + writer.writeValue(item, this.itemXmlElementName); + writer.writeEndElement(); + } + } - /** - * Adds a string to the list. - * - * @param s - * The string to add. - */ - public void add(String s) { - this.items.add(s); - this.changed(); - } + /** + * Adds a string to the list. + * + * @param s The string to add. + */ + public void add(String s) { + this.items.add(s); + this.changed(); + } - /** - * Adds multiple strings to the list. - * - * @param strings - * The strings to add. - */ - public void addRange(Iterable strings) { - boolean changed = false; + /** + * Adds multiple strings to the list. + * + * @param strings The strings to add. + */ + public void addRange(Iterable strings) { + boolean changed = false; - for (String s : strings) { - if (!this.contains(s)) { - this.items.add(s); - changed = true; - } - } - if (changed) { - this.changed(); - } - } + for (String s : strings) { + if (!this.contains(s)) { + this.items.add(s); + changed = true; + } + } + if (changed) { + this.changed(); + } + } - /** - * Determines whether the list contains a specific string. - * - * @param s - * The string to check the presence of. - * @return True if s is present in the list, false otherwise. - */ - public boolean contains(String s) { - return this.items.contains(s); - } + /** + * Determines whether the list contains a specific string. + * + * @param s The string to check the presence of. + * @return True if s is present in the list, false otherwise. + */ + public boolean contains(String s) { + return this.items.contains(s); + } - /** - * Removes a string from the list. - * - * @param s - * The string to remove. - * @return True is s was removed, false otherwise. - */ - public boolean remove(String s) { - boolean result = this.items.remove(s); - if (result) { - this.changed(); - } - return result; - } + /** + * Removes a string from the list. + * + * @param s The string to remove. + * @return True is s was removed, false otherwise. + */ + public boolean remove(String s) { + boolean result = this.items.remove(s); + if (result) { + this.changed(); + } + return result; + } - /** - * Removes the string at the specified position from the list. - * - * @param index - * The index of the string to remove. - */ - public void removeAt(int index) { - if (index < 0 || index >= this.getSize()) { - throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } - this.items.remove(index); - this.changed(); - } + /** + * Removes the string at the specified position from the list. + * + * @param index The index of the string to remove. + */ + public void removeAt(int index) { + if (index < 0 || index >= this.getSize()) { + throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } + this.items.remove(index); + this.changed(); + } - /** - * Clears the list. - */ - public void clearList() { - this.items.clear(); - this.changed(); - } + /** + * Clears the list. + */ + public void clearList() { + this.items.clear(); + this.changed(); + } - /** - * Returns a string representation of the object. In general, the - * toString method returns a string that "textually represents" - * this object. The result should be a concise but informative - * representation that is easy for a person to read. It is recommended that - * all subclasses override this method. - *

- * The toString method for class Object returns a - * string consisting of the name of the class of which the object is an - * instance, the at-sign character `@', and the unsigned - * hexadecimal representation of the hash code of the object. In other - * words, this method returns a string equal to the value of:

- * - *
-	 * getClass().getName() + '@' + Integer.toHexString(hashCode())
-	 * 
- * - *
- * - * @return a string representation of the object. - */ - @Override - public String toString() { - StringBuffer temp = new StringBuffer(); - for (String str : this.items) { - temp.append(str.concat(",")); - } - String tempString = temp.toString(); - return tempString; - } + /** + * Returns a string representation of the object. In general, the + * toString method returns a string that "textually represents" + * this object. The result should be a concise but informative + * representation that is easy for a person to read. It is recommended that + * all subclasses override this method. + *

+ * The toString method for class Object returns a + * string consisting of the name of the class of which the object is an + * instance, the at-sign character `@', and the unsigned + * hexadecimal representation of the hash code of the object. In other + * words, this method returns a string equal to the value of:

+ *

+ *

+   * getClass().getName() + '@' + Integer.toHexString(hashCode())
+   * 
+ *

+ *

+ * + * @return a string representation of the object. + */ + @Override + public String toString() { + StringBuffer temp = new StringBuffer(); + for (String str : this.items) { + temp.append(str.concat(",")); + } + String tempString = temp.toString(); + return tempString; + } - /** - * Gets the number of strings in the list. - * - * @return the size - */ - public int getSize() { - return this.items.size(); - } + /** + * Gets the number of strings in the list. + * + * @return the size + */ + public int getSize() { + return this.items.size(); + } - /** - * Gets the string at the specified index. - * - * @param index - * The index of the string to get or set. - * @return The string at the specified index. - */ - public String getString(int index) { - if (index < 0 || index >= this.getSize()) { - throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } - return this.items.get(index); - } + /** + * Gets the string at the specified index. + * + * @param index The index of the string to get or set. + * @return The string at the specified index. + */ + public String getString(int index) { + if (index < 0 || index >= this.getSize()) { + throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } + return this.items.get(index); + } - /** - * Sets the string at the specified index. - * - * @param index - * The index - * @param object - * The object. - */ - public void setString(int index, Object object) { - if (index < 0 || index >= this.getSize()) { - throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); - } + /** + * Sets the string at the specified index. + * + * @param index The index + * @param object The object. + */ + public void setString(int index, Object object) { + if (index < 0 || index >= this.getSize()) { + throw new ArrayIndexOutOfBoundsException(Strings.IndexIsOutOfRange); + } - if (this.items.get(index) != object) { - this.items.set(index, (String) object); - this.changed(); - } - } + if (this.items.get(index) != object) { + this.items.set(index, (String) object); + this.changed(); + } + } - /** - * Gets an iterator that iterates through the elements of the collection. - * - * @return An Iterator for the collection. - */ - public Iterator getIterator() { - return this.items.iterator(); - } + /** + * Gets an iterator that iterates through the elements of the collection. + * + * @return An Iterator for the collection. + */ + public Iterator getIterator() { + return this.items.iterator(); + } - /** - * Indicates whether some other object is "equal to" this one. - *

- * The equals method implements an equivalence relation on - * non-null object references: - *

    - *
  • It is reflexive: for any non-null reference value - * x, x.equals(x) should return true. - *
  • It is symmetric: for any non-null reference values - * x and y, x.equals(y) should return - * true if and only if y.equals(x) returns - * true. - *
  • It is transitive: for any non-null reference values - * x, y, and z, if - * x.equals(y) returns true and - * y.equals(z) returns true, then - * x.equals(z) should return true. - *
  • It is consistent: for any non-null reference values - * x and y, multiple invocations of - * x.equals(y) consistently return true or - * consistently return false, provided no information used in - * equals comparisons on the objects is modified. - *
  • For any non-null reference value x, - * x.equals(null) should return false. - *
- *

- * The equals method for class Object implements the - * most discriminating possible equivalence relation on objects; that is, - * for any non-null reference values x and y, this - * method returns true if and only if x and - * y refer to the same object (x == y has the - * value true). - *

- * Note that it is generally necessary to override the hashCode - * method whenever this method is overridden, so as to maintain the general - * contract for the hashCode method, which states that equal - * objects must have equal hash codes. - * - * @param obj - * the reference object with which to compare. - * @return if this object is the same as the obj argument; otherwise. - * @see #hashCode() - * @see java.util.Hashtable - */ - @Override - public boolean equals(Object obj) { - if (obj instanceof StringList) { - StringList other = (StringList) obj; - return this.toString().equals(other.toString()); - } else { - return false; - } - } + /** + * Indicates whether some other object is "equal to" this one. + *

+ * The equals method implements an equivalence relation on + * non-null object references: + *

    + *
  • It is reflexive: for any non-null reference value + * x, x.equals(x) should return true. + *
  • It is symmetric: for any non-null reference values + * x and y, x.equals(y) should return + * true if and only if y.equals(x) returns + * true. + *
  • It is transitive: for any non-null reference values + * x, y, and z, if + * x.equals(y) returns true and + * y.equals(z) returns true, then + * x.equals(z) should return true. + *
  • It is consistent: for any non-null reference values + * x and y, multiple invocations of + * x.equals(y) consistently return true or + * consistently return false, provided no information used in + * equals comparisons on the objects is modified. + *
  • For any non-null reference value x, + * x.equals(null) should return false. + *
+ *

+ * The equals method for class Object implements the + * most discriminating possible equivalence relation on objects; that is, + * for any non-null reference values x and y, this + * method returns true if and only if x and + * y refer to the same object (x == y has the + * value true). + *

+ * Note that it is generally necessary to override the hashCode + * method whenever this method is overridden, so as to maintain the general + * contract for the hashCode method, which states that equal + * objects must have equal hash codes. + * + * @param obj the reference object with which to compare. + * @return if this object is the same as the obj argument; otherwise. + * @see #hashCode() + * @see java.util.Hashtable + */ + @Override + public boolean equals(Object obj) { + if (obj instanceof StringList) { + StringList other = (StringList) obj; + return this.toString().equals(other.toString()); + } else { + return false; + } + } - /** - * Serves as a hash function for a particular type. - * - * @return A hash code for the current "T:System.Object". - */ - @Override - public int hashCode() { - return this.toString().hashCode(); - } + /** + * Serves as a hash function for a particular type. + * + * @return A hash code for the current "T:System.Object". + */ + @Override + public int hashCode() { + return this.toString().hashCode(); + } - /** - * Returns an iterator over a set of elements of type T. - * - * @return an Iterator. - */ - @Override - public Iterator iterator() { - return items.iterator(); - } -} \ No newline at end of file + /** + * Returns an iterator over a set of elements of type T. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + return items.iterator(); + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index fa5914d23..416078b1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -12,56 +12,51 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.EnumSet; -/*** +/** * Represents String property definition. */ class StringPropertyDefinition extends TypedPropertyDefinition { - /** - * Initializes a new instance of the "StringPropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected StringPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the "StringPropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected StringPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } - /** - * Parses the specified value. - * - * @param value - * The value. - * @return Typed value. - */ - @Override - protected Object parse(String value) { - return value; - } + /** + * Parses the specified value. + * + * @param value The value. + * @return Typed value. + */ + @Override + protected Object parse(String value) { + return value; + } - /** - * Gets a value indicating whether this property definition is for a - * nullable type (ref, int?, bool?...). - * - * @return True - */ - @Override - protected boolean isNullable() { - return true; - } - - /** - * Gets the property type. - */ - @Override - public Class getType() { - return String.class; - } + /** + * Gets a value indicating whether this property definition is for a + * nullable type (ref, int?, bool?...). + * + * @return True + */ + @Override + protected boolean isNullable() { + return true; + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return String.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Strings.java b/src/main/java/microsoft/exchange/webservices/data/Strings.java index adc3a28e9..4fc092252 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Strings.java +++ b/src/main/java/microsoft/exchange/webservices/data/Strings.java @@ -11,175 +11,259 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; public abstract class Strings { - public static String AdditionalPropertyIsNull = "The additional property at index %d is null."; - public static String AtLeastOneAttachmentCouldNotBeDeleted = "At least one attachment couldn't be deleted."; - public static String AttachmentCreationFailed = "At least one attachment couldn't be created."; - public static String CollectionIsEmpty = "The collection is empty."; - public static String ArgumentIsBlankString = "The string argument contains only white space characters."; - public static String ValueMustBeGreaterThanZero = "The value must be greater than 0."; - public static String ClassIncompatibleWithRequestVersion = "Class %s is only valid for Exchange version %s or later."; - public static String CredentialsRequired = "Credentials are required to make a service request."; - public static String DeletingThisObjectTypeNotAuthorized = "Deleting this type of object isn't authorized."; - public static String EndDateMustBeGreaterThanStartDate = "EndDate must be greater than StartDate."; - public static String EnumValueIncompatibleWithRequestVersion = "Enumeration value %s in enumeration type %s is only valid for Exchange version %s or later."; - public static String FolderTypeNotCompatible = "The folder type returned by the service (%s) isn't compatible with the requested folder type (%s)."; - public static String FolderToUpdateCannotBeNullOrNew = "Folders[%d] is either null or does not have an Id."; - public static String HourMustBeBetween0And23 = "Hour must be between 0 and 23."; - public static String IdAlreadyInList = "The ID is already in the list."; - public static String IdPropertyMustBeSet = "The Id property must be set."; - public static String IEnumerableDoesNotContainThatManyObject = "The IEnumerable doesn't contain that many objects."; - public static String IndexIsOutOfRange = "index is out of range."; - public static String IntervalMustBeGreaterOrEqualToOne = "The interval must be greater than or equal to 1."; - public static String InvalidMailboxType = "The mailbox type isn't valid."; - public static String InvalidRecurrencePattern = "Invalid recurrence pattern: (%s)."; - public static String InvalidRecurrenceRange = "Invalid recurrence range: (%s)."; - public static String InvalidFrequencyValue = "%d is not a valid frequency value. Valid values range from 1 to 1440."; - public static String InvalidTimeoutValue = "%d is not a valid timeout value. Valid values range from 1 to 1440."; - public static String ItemToUpdateCannotBeNullOrNew = "Items[%d] is either null or does not have an Id."; - public static String ItemTypeNotCompatible = "The item type returned by the service (%s) isn't compatible with the requested item type (%s)."; - public static String LoadingThisObjectTypeNotSupported = "Loading this type of object is not supported."; - public static String MaxChangesMustBeBetween1And512 = "MaxChangesReturned must be between 1 and 512."; - public static String MethodIncompatibleWithRequestVersion = "Method %s is only valid for Exchange Server version %s or later."; - public static String MinuteMustBeBetween0And59 = "Minute must be between 0 and 59."; - public static String MinutesMustBeBetween0And1439 = "minutes must be between 0 and 1439, inclusive."; - public static String MustLoadOrAssignPropertyBeforeAccess = "You must load or assign this property before you can read its value."; - public static String NoAppropriateConstructorForItemClass = "No appropriate constructor could be found for this item class."; - public static String NumberOfOccurrencesMustBeGreaterThanZero = "NumberOfOccurrences must be greater than 0."; - public static String ObjectDoesNotHaveId = "This service object doesn't have an ID."; - public static String ObjectTypeIncompatibleWithRequestVersion = "The object type %s is only valid for Exchange Server version %s or later versions."; - public static String OccurrenceIndexMustBeGreaterThanZero = "OccurrenceIndex must be greater than 0."; - public static String OffsetMustBeGreaterThanZero = "The offset must be greater than 0."; - public static String OperationDoesNotSupportAttachments = "This operation isn't supported on attachments."; - public static String PhoneCallAlreadyDisconnected = "The phone call has already been disconnected."; - public static String PropertyCannotBeDeleted = "This property can't be deleted."; - public static String PropertyCannotBeUpdated = "This property can't be updated."; - public static String PropertyDefinitionPropertyMustBeSet = "The PropertyDefinition property must be set."; - public static String PropertyIsReadOnly = "This property is read-only and can't be set."; - public static String PropertyIncompatibleWithRequestVersion = "The property %s is valid only for Exchange %s or later versions."; - public static String AttachmentCollectionNotLoaded = "The attachment collection must be loaded."; - public static String RegenerationPatternsOnlyValidForTasks = "Regeneration patterns can only be used with Task items."; - public static String RequestIncompatibleWithRequestVersion = "The service request %s is only valid for Exchange version %s or later."; - public static String EqualityComparisonFilterIsInvalid = "Either the OtherPropertyDefinition or the Value properties must be set."; - public static String SearchFilterAtIndexIsInvalid = "The search filter at index %d is invalid."; - public static String SearchFilterMustBeSet = "The SearchFilter property must be set."; - public static String SecondMustBeBetween0And59 = "Second must be between 0 and 59."; - public static String ServiceObjectAlreadyHasId = "This operation can't be performed because this service object already has an ID. To update this service object, use the Update() method instead."; - public static String ServiceObjectDoesNotHaveId = "This operation can't be performed because this service object doesn't have an Id."; - public static String ServiceRequestFailed = "The request failed. %s"; - public static String TagValueIsOutOfRange = "The extended property tag value must be in the range of 0 to 65,535."; - public static String TimeoutMustBeGreaterThanZero = "Timeout must be greater than zero."; - public static String UnexpectedElement = "An element node '%s:%s' of the type %s was expected, but node '%s' of type %s was found."; - public static String UnexpectedElementType = "The expected XML node type was %s, but the actual type is %s."; - public static String UnexpectedEndOfXmlDocument = "Unexpected end of XML document."; - public static String ExpectedStartElement = "The start element was expected, but node '%s' of type %s was found."; - public static String ElementNotFound = "The element '%s' in namespace '%s' wasn't found at the current position."; - public static String CurrentPositionNotElementStart = "The current position is not the start of an element."; - public static String ValidationFailed = "Validation failed."; - public static String ValuePropertyMustBeSet = "The Value property must be set."; - public static String InvalidEmailAddress = "The e-mail address is formed incorrectly."; - public static String MaximumRedirectionHopsExceeded = "The maximum redirection hop count has been reached."; - public static String AutodiscoverError = "The Autodiscover service returned an error."; - public static String AutodiscoverCouldNotBeLocated = "The Autodiscover service couldn't be located."; - public static String UnsupportedWebProtocol = "Protocol %s isn't supported for service requests."; - public static String ServerVersionNotSupported = "Exchange Server doesn't support the requested version."; - public static String ItemAttachmentCannotBeUpdated = "Item attachments can't be updated."; - public static String ServiceUrlMustBeSet = "The Url property on the ExchangeService object must be set."; - public static String NonSummaryPropertyCannotBeUsed = "The property %s can't be used in %s requests."; - public static String ReadAccessInvalidForNonCalendarFolder = "Permission read access value %s cannot be used with non-calendar folder."; - public static String PermissionLevelInvalidForNonCalendarFolder = "Permission level value %s cannot be used with non-calendar folder."; - public static String ItemAttachmentMustBeNamed = "The name of the item attachment at index %d must be set."; - public static String ValuePropertyNotLoaded = "This property was requested, but it wasn't returned by the server."; - public static String ValuePropertyNotAssigned = "You must assign this property before you can read its value."; - public static String NullStringArrayElementInvalid = "The array contains at least one null element."; - public static String ZeroLengthArrayInvalid = "The array must contain at least one element."; - public static String ObjectTypeNotSupported = "Objects of type %s can't be added to the dictionary. The following types are supported: string array, byte array, boolean, byte, DateTime, integer, long, string, unsigned integer, and unsigned long."; - public static String DeleteInvalidForUnsavedUserConfiguration = "This user configuration object can't be deleted because it's never been saved."; - public static String InvalidElementStringValue = "The invalid value '%s' was specified for the '%s' element."; - public static String InvalidAttributeValue = "The invalid value '%s' was specified for the '%s' attribute."; - public static String FolderPermissionHasInvalidUserId = "The UserId in the folder permission at index %d is invalid. The StandardUser, PrimarySmtpAddress, or SID property must be set."; - public static String AttachmentCannotBeUpdated = "Attachments can't be updated."; - public static String FileAttachmentContentIsNotSet = "The content of the file attachment at index %d must be set."; - public static String SearchParametersRootFolderIdsEmpty = "SearchParameters must contain at least one folder id."; - public static String AutodiscoverDidNotReturnEwsUrl = "The Autodiscover service didn't return an appropriate URL that can be used for the ExchangeService Autodiscover URL."; - public static String UserIdForDelegateUserNotSpecified = "The UserId in the DelegateUser hasn't been specified."; - public static String DelegateUserHasInvalidUserId = "The UserId in the DelegateUser is invalid. The StandardUser, PrimarySmtpAddress or SID property must be set."; - public static String DayOfMonthMustBeBetween1And31 = "DayOfMonth must be between 1 and 31."; - public static String TimeoutMustBeBetween1And1440 = "Timeout must be a value between 1 and 1440."; - public static String FrequencyMustBeBetween1And1440 = "The frequency must be a value between 1 and 1440."; - public static String CannotSetPermissionLevelToCustom = "The PermissionLevel property can't be set to FolderPermissionLevel.Custom. To define a custom permission, set its individual properties to the values you want."; - public static String AutodiscoverRedirectBlocked = "Autodiscover blocked a potentially insecure redirection to %s. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload."; - public static String InvalidUser = "Invalid user: '%s'"; - public static String InvalidAutodiscoverRequest = "Invalid Autodiscover request: '%s'"; - public static String AutodiscoverServiceIncompatibleWithRequestVersion = "The Autodiscover service only supports %s or a later version."; - public static String InvalidAutodiscoverSettingsCount = "At least one setting must be requested."; - public static String InvalidAutodiscoverSmtpAddressesCount = "At least one SMTP address must be requested."; - public static String InvalidAutodiscoverDomainsCount = "At least one domain name must be requested."; - public static String AutodiscoverServiceRequestRequiresDomainOrUrl = "This Autodiscover request requires that either the Domain or Url be specified."; - public static String NoSoapOrWsSecurityEndpointAvailable = "No appropriate Autodiscover SOAP or WS-Security endpoint is available."; - public static String InvalidAutodiscoverServiceResponse = "The Autodiscover service response was invalid."; - public static String InvalidAutodiscoverSmtpAddress = "A valid SMTP address must be specified."; - public static String InvalidAutodiscoverDomain = "The domain name must be specified."; - public static String MaxScpHopsExceeded = "The number of SCP URL hops exceeded the limit."; - public static String UnsupportedTimeZonePeriodTransitionTarget = "The time zone transition target isn't supported."; - public static String PeriodNotFound = "Invalid transition. A period with the specified Id couldn't be found: %s"; - public static String TransitionGroupNotFound = "Invalid transition. A transition group with the specified ID couldn't be found: %s"; - public static String UnknownTimeZonePeriodTransitionType = "Unknown time zone transition type: %s"; - public static String InvalidOrUnsupportedTimeZoneDefinition = "The time zone definition is invalid or unsupported."; - public static String AttributeValueCannotBeSerialized = "Values of type '%s' can't be used for the '%s' attribute."; - public static String ElementValueCannotBeSerialized = "Values of type '%s' can't be used for the '%s' element."; - public static String SearchFilterComparisonValueTypeIsNotSupported = "Values of type '%s' cannot be as comparison values in search filters."; - public static String TooFewServiceReponsesReturned = "The service was expected to return %s responses of type '%d', but %d responses were received."; - public static String InvalidRedirectionResponseReturned = "The service returned an invalid redirection response."; - public static String WLIDCredentialsCannotBeUsedWithLegacyAutodiscover = "WindowsLiveCredentials can't be used with this Autodiscover endpoint."; - public static String ServerErrorAndStackTraceDetails = "%s -- Server Error: %s: %s %s"; - public static String PropertySetCannotBeModified = "This PropertySet is read-only and can't be modified."; - public static String ItemIsOutOfDate = "The operation can't be performed because the item is out of date. Reload the item and try again."; - public static String RecurrencePatternMustHaveStartDate = "The recurrence pattern's StartDate property must be specified."; - public static String DayOfMonthMustBeSpecifiedForRecurrencePattern = "The recurrence pattern's DayOfMonth property must be specified."; - public static String DaysOfTheWeekNotSpecified = "The recurrence pattern's property DaysOfTheWeek must contain at least one day of the week."; - public static String DayOfTheWeekMustBeSpecifiedForRecurrencePattern = "The recurrence pattern's property DayOfTheWeek must be specified."; - public static String DayOfWeekIndexMustBeSpecifiedForRecurrencePattern = "The recurrence pattern's DayOfWeekIndex property must be specified."; - public static String MonthMustBeSpecifiedForRecurrencePattern = "The recurrence pattern's Month property must be specified."; - public static String PropertyValueMustBeSpecifiedForRecurrencePattern = "The recurrence pattern's %s property must be specified."; - public static String ParameterIncompatibleWithRequestVersion = "The parameter %s is only valid for Exchange Server version %s or a later version."; - public static String NoError = "No error."; - public static String InvalidPropertyValueNotInRange = "%s must be between %d and %d."; - public static String MergedFreeBusyIntervalMustBeSmallerThanTimeWindow = "MergedFreeBusyInterval must be smaller than the specified time window."; - public static String DurationMustBeSpecifiedWhenScheduled = "Duration must be specified when State is equal to Scheduled."; - public static String CannotSubscribeToStatusEvents = "Status events can't be subscribed to."; - public static String CannotUpdateNewUserConfiguration = "This user configuration can't be updated because it's never been saved."; - public static String CannotSaveNotNewUserConfiguration = "Calling Save isn't allowed because this user configuration isn't new. To apply local changes to this user configuration, call Update instead."; - public static String ArrayMustHaveAtLeastOneElement = "The Array value must have at least one element."; - public static String ArrayMustHaveSingleDimension = "The array value must have a single dimension."; - public static String IncompatibleTypeForArray = "Type %s can't be used as an array of type %s."; - public static String ValueCannotBeConverted = "The value '%s' couldn't be converted to type %s."; - public static String ValueOfTypeCannotBeConverted = "The value '%s' of type %s can't be converted to a value of type %s."; - public static String BothSearchFilterAndQueryStringCannotBeSpecified = "Both search filter and query string can't be specified. One of them must be null."; - public static String PropertyAlreadyExistsInOrderByCollection = "Property %s already exists in OrderByCollection."; - public static String AutodiscoverInvalidSettingForOutlookProvider = "The requested setting, '%s', isn't supported by this Autodiscover endpoint."; - public static String ServiceResponseDoesNotContainXml = "The response received from the service didn't contain valid XML."; - public static String OperationNotSupportedForPropertyDefinitionType = "This operation isn't supported for property definition type %s."; - public static String PropertyDefinitionTypeMismatch = "Property definition type '%s' and type parameter '%s' aren't compatible."; - public static String CannotAddSubscriptionToLiveConnection = "Subscriptions can't be added to an open connection."; - public static String CannotRemoveSubscriptionFromLiveConnection = "Subscriptions can't be removed from an open connection."; - public static String CannotCallConnectDuringLiveConnection = "The connection has already opened."; - public static String CannotCallDisconnectWithNoLiveConnection = "The connection is already closed."; - public static String NoSubscriptionsOnConnection = "You must add at least one subscription to this connection before it can be opened."; - public static String InvalidDomainName = "'%s' is not a valid domain name."; - public static String CreateItemsDoesNotAllowAttachments = "This operation doesn't support items that have attachments."; - public static String UpdateItemsDoesNotAllowAttachments = "This operation can't be performed because attachments have been added or deleted for one or more items."; - public static String CreateItemsDoesNotHandleExistingItems = "This operation can't be performed because at least one item already has an ID."; - public static String UpdateItemsDoesNotSupportNewOrUnchangedItems = "This operation can't be performed because one or more items are new or unmodified."; - public static String CannotAddRequestHeader = "HTTP header '%s' isn't permitted. Only HTTP headers with the 'X-' prefix are permitted."; - public static String CannotSetDelegateFolderPermissionLevelToCustom = "This operation can't be performed because one or more folder permission levels were set to Custom."; - public static String ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst = "The contact group's Members property must be reloaded before newly-added members can be updated."; - public static String StartTimeZoneRequired = "StartTimeZone required when setting the Start, End, IsAllDayEvent, or Recurrence properties. You must load or assign this property before attempting to update the appointment."; - public static String AccountIsLocked = "This account is locked. Visit %s to unlock it."; - public static String AttachmentItemTypeMismatch = "Attachment item type mismatch."; - public static String PropertyTypeIncompatibleWhenUpdatingCollection = "Property type incompatible when updating collection."; - public static String MultipleContactPhotosInAttachment = "Multiple contact photos in attachment."; - public static String InvalidAsyncResult = "Invalid AsyncResult."; - public static String HttpsIsRequired = "Https is required."; + public static String AdditionalPropertyIsNull = "The additional property at index %d is null."; + public static String AtLeastOneAttachmentCouldNotBeDeleted = "At least one attachment couldn't be deleted."; + public static String AttachmentCreationFailed = "At least one attachment couldn't be created."; + public static String CollectionIsEmpty = "The collection is empty."; + public static String ArgumentIsBlankString = "The string argument contains only white space characters."; + public static String ValueMustBeGreaterThanZero = "The value must be greater than 0."; + public static String ClassIncompatibleWithRequestVersion = + "Class %s is only valid for Exchange version %s or later."; + public static String CredentialsRequired = "Credentials are required to make a service request."; + public static String DeletingThisObjectTypeNotAuthorized = "Deleting this type of object isn't authorized."; + public static String EndDateMustBeGreaterThanStartDate = "EndDate must be greater than StartDate."; + public static String EnumValueIncompatibleWithRequestVersion = + "Enumeration value %s in enumeration type %s is only valid for Exchange version %s or later."; + public static String FolderTypeNotCompatible = + "The folder type returned by the service (%s) isn't compatible with the requested folder type (%s)."; + public static String FolderToUpdateCannotBeNullOrNew = "Folders[%d] is either null or does not have an Id."; + public static String HourMustBeBetween0And23 = "Hour must be between 0 and 23."; + public static String IdAlreadyInList = "The ID is already in the list."; + public static String IdPropertyMustBeSet = "The Id property must be set."; + public static String IEnumerableDoesNotContainThatManyObject = + "The IEnumerable doesn't contain that many objects."; + public static String IndexIsOutOfRange = "index is out of range."; + public static String IntervalMustBeGreaterOrEqualToOne = "The interval must be greater than or equal to 1."; + public static String InvalidMailboxType = "The mailbox type isn't valid."; + public static String InvalidRecurrencePattern = "Invalid recurrence pattern: (%s)."; + public static String InvalidRecurrenceRange = "Invalid recurrence range: (%s)."; + public static String InvalidFrequencyValue = + "%d is not a valid frequency value. Valid values range from 1 to 1440."; + public static String InvalidTimeoutValue = + "%d is not a valid timeout value. Valid values range from 1 to 1440."; + public static String ItemToUpdateCannotBeNullOrNew = "Items[%d] is either null or does not have an Id."; + public static String ItemTypeNotCompatible = + "The item type returned by the service (%s) isn't compatible with the requested item type (%s)."; + public static String LoadingThisObjectTypeNotSupported = "Loading this type of object is not supported."; + public static String MaxChangesMustBeBetween1And512 = "MaxChangesReturned must be between 1 and 512."; + public static String MethodIncompatibleWithRequestVersion = + "Method %s is only valid for Exchange Server version %s or later."; + public static String MinuteMustBeBetween0And59 = "Minute must be between 0 and 59."; + public static String MinutesMustBeBetween0And1439 = "minutes must be between 0 and 1439, inclusive."; + public static String MustLoadOrAssignPropertyBeforeAccess = + "You must load or assign this property before you can read its value."; + public static String NoAppropriateConstructorForItemClass = + "No appropriate constructor could be found for this item class."; + public static String NumberOfOccurrencesMustBeGreaterThanZero = + "NumberOfOccurrences must be greater than 0."; + public static String ObjectDoesNotHaveId = "This service object doesn't have an ID."; + public static String ObjectTypeIncompatibleWithRequestVersion = + "The object type %s is only valid for Exchange Server version %s or later versions."; + public static String OccurrenceIndexMustBeGreaterThanZero = "OccurrenceIndex must be greater than 0."; + public static String OffsetMustBeGreaterThanZero = "The offset must be greater than 0."; + public static String OperationDoesNotSupportAttachments = "This operation isn't supported on attachments."; + public static String PhoneCallAlreadyDisconnected = "The phone call has already been disconnected."; + public static String PropertyCannotBeDeleted = "This property can't be deleted."; + public static String PropertyCannotBeUpdated = "This property can't be updated."; + public static String PropertyDefinitionPropertyMustBeSet = "The PropertyDefinition property must be set."; + public static String PropertyIsReadOnly = "This property is read-only and can't be set."; + public static String PropertyIncompatibleWithRequestVersion = + "The property %s is valid only for Exchange %s or later versions."; + public static String AttachmentCollectionNotLoaded = "The attachment collection must be loaded."; + public static String RegenerationPatternsOnlyValidForTasks = + "Regeneration patterns can only be used with Task items."; + public static String RequestIncompatibleWithRequestVersion = + "The service request %s is only valid for Exchange version %s or later."; + public static String EqualityComparisonFilterIsInvalid = + "Either the OtherPropertyDefinition or the Value properties must be set."; + public static String SearchFilterAtIndexIsInvalid = "The search filter at index %d is invalid."; + public static String SearchFilterMustBeSet = "The SearchFilter property must be set."; + public static String SecondMustBeBetween0And59 = "Second must be between 0 and 59."; + public static String ServiceObjectAlreadyHasId = + "This operation can't be performed because this service object already has an ID. To update this service object, use the Update() method instead."; + public static String ServiceObjectDoesNotHaveId = + "This operation can't be performed because this service object doesn't have an Id."; + public static String ServiceRequestFailed = "The request failed. %s"; + public static String TagValueIsOutOfRange = + "The extended property tag value must be in the range of 0 to 65,535."; + public static String TimeoutMustBeGreaterThanZero = "Timeout must be greater than zero."; + public static String UnexpectedElement = + "An element node '%s:%s' of the type %s was expected, but node '%s' of type %s was found."; + public static String UnexpectedElementType = + "The expected XML node type was %s, but the actual type is %s."; + public static String UnexpectedEndOfXmlDocument = "Unexpected end of XML document."; + public static String ExpectedStartElement = + "The start element was expected, but node '%s' of type %s was found."; + public static String ElementNotFound = + "The element '%s' in namespace '%s' wasn't found at the current position."; + public static String CurrentPositionNotElementStart = + "The current position is not the start of an element."; + public static String ValidationFailed = "Validation failed."; + public static String ValuePropertyMustBeSet = "The Value property must be set."; + public static String InvalidEmailAddress = "The e-mail address is formed incorrectly."; + public static String MaximumRedirectionHopsExceeded = "The maximum redirection hop count has been reached."; + public static String AutodiscoverError = "The Autodiscover service returned an error."; + public static String AutodiscoverCouldNotBeLocated = "The Autodiscover service couldn't be located."; + public static String UnsupportedWebProtocol = "Protocol %s isn't supported for service requests."; + public static String ServerVersionNotSupported = "Exchange Server doesn't support the requested version."; + public static String ItemAttachmentCannotBeUpdated = "Item attachments can't be updated."; + public static String ServiceUrlMustBeSet = "The Url property on the ExchangeService object must be set."; + public static String NonSummaryPropertyCannotBeUsed = "The property %s can't be used in %s requests."; + public static String ReadAccessInvalidForNonCalendarFolder = + "Permission read access value %s cannot be used with non-calendar folder."; + public static String PermissionLevelInvalidForNonCalendarFolder = + "Permission level value %s cannot be used with non-calendar folder."; + public static String ItemAttachmentMustBeNamed = "The name of the item attachment at index %d must be set."; + public static String ValuePropertyNotLoaded = + "This property was requested, but it wasn't returned by the server."; + public static String ValuePropertyNotAssigned = + "You must assign this property before you can read its value."; + public static String NullStringArrayElementInvalid = "The array contains at least one null element."; + public static String ZeroLengthArrayInvalid = "The array must contain at least one element."; + public static String ObjectTypeNotSupported = + "Objects of type %s can't be added to the dictionary. The following types are supported: string array, byte array, boolean, byte, DateTime, integer, long, string, unsigned integer, and unsigned long."; + public static String DeleteInvalidForUnsavedUserConfiguration = + "This user configuration object can't be deleted because it's never been saved."; + public static String InvalidElementStringValue = + "The invalid value '%s' was specified for the '%s' element."; + public static String InvalidAttributeValue = "The invalid value '%s' was specified for the '%s' attribute."; + public static String FolderPermissionHasInvalidUserId = + "The UserId in the folder permission at index %d is invalid. The StandardUser, PrimarySmtpAddress, or SID property must be set."; + public static String AttachmentCannotBeUpdated = "Attachments can't be updated."; + public static String FileAttachmentContentIsNotSet = + "The content of the file attachment at index %d must be set."; + public static String SearchParametersRootFolderIdsEmpty = + "SearchParameters must contain at least one folder id."; + public static String AutodiscoverDidNotReturnEwsUrl = + "The Autodiscover service didn't return an appropriate URL that can be used for the ExchangeService Autodiscover URL."; + public static String UserIdForDelegateUserNotSpecified = + "The UserId in the DelegateUser hasn't been specified."; + public static String DelegateUserHasInvalidUserId = + "The UserId in the DelegateUser is invalid. The StandardUser, PrimarySmtpAddress or SID property must be set."; + public static String DayOfMonthMustBeBetween1And31 = "DayOfMonth must be between 1 and 31."; + public static String TimeoutMustBeBetween1And1440 = "Timeout must be a value between 1 and 1440."; + public static String FrequencyMustBeBetween1And1440 = "The frequency must be a value between 1 and 1440."; + public static String CannotSetPermissionLevelToCustom = + "The PermissionLevel property can't be set to FolderPermissionLevel.Custom. To define a custom permission, set its individual properties to the values you want."; + public static String AutodiscoverRedirectBlocked = + "Autodiscover blocked a potentially insecure redirection to %s. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload."; + public static String InvalidUser = "Invalid user: '%s'"; + public static String InvalidAutodiscoverRequest = "Invalid Autodiscover request: '%s'"; + public static String AutodiscoverServiceIncompatibleWithRequestVersion = + "The Autodiscover service only supports %s or a later version."; + public static String InvalidAutodiscoverSettingsCount = "At least one setting must be requested."; + public static String InvalidAutodiscoverSmtpAddressesCount = "At least one SMTP address must be requested."; + public static String InvalidAutodiscoverDomainsCount = "At least one domain name must be requested."; + public static String AutodiscoverServiceRequestRequiresDomainOrUrl = + "This Autodiscover request requires that either the Domain or Url be specified."; + public static String NoSoapOrWsSecurityEndpointAvailable = + "No appropriate Autodiscover SOAP or WS-Security endpoint is available."; + public static String InvalidAutodiscoverServiceResponse = "The Autodiscover service response was invalid."; + public static String InvalidAutodiscoverSmtpAddress = "A valid SMTP address must be specified."; + public static String InvalidAutodiscoverDomain = "The domain name must be specified."; + public static String MaxScpHopsExceeded = "The number of SCP URL hops exceeded the limit."; + public static String UnsupportedTimeZonePeriodTransitionTarget = + "The time zone transition target isn't supported."; + public static String PeriodNotFound = + "Invalid transition. A period with the specified Id couldn't be found: %s"; + public static String TransitionGroupNotFound = + "Invalid transition. A transition group with the specified ID couldn't be found: %s"; + public static String UnknownTimeZonePeriodTransitionType = "Unknown time zone transition type: %s"; + public static String InvalidOrUnsupportedTimeZoneDefinition = + "The time zone definition is invalid or unsupported."; + public static String AttributeValueCannotBeSerialized = + "Values of type '%s' can't be used for the '%s' attribute."; + public static String ElementValueCannotBeSerialized = + "Values of type '%s' can't be used for the '%s' element."; + public static String SearchFilterComparisonValueTypeIsNotSupported = + "Values of type '%s' cannot be as comparison values in search filters."; + public static String TooFewServiceReponsesReturned = + "The service was expected to return %s responses of type '%d', but %d responses were received."; + public static String InvalidRedirectionResponseReturned = + "The service returned an invalid redirection response."; + public static String WLIDCredentialsCannotBeUsedWithLegacyAutodiscover = + "WindowsLiveCredentials can't be used with this Autodiscover endpoint."; + public static String ServerErrorAndStackTraceDetails = "%s -- Server Error: %s: %s %s"; + public static String PropertySetCannotBeModified = "This PropertySet is read-only and can't be modified."; + public static String ItemIsOutOfDate = + "The operation can't be performed because the item is out of date. Reload the item and try again."; + public static String RecurrencePatternMustHaveStartDate = + "The recurrence pattern's StartDate property must be specified."; + public static String DayOfMonthMustBeSpecifiedForRecurrencePattern = + "The recurrence pattern's DayOfMonth property must be specified."; + public static String DaysOfTheWeekNotSpecified = + "The recurrence pattern's property DaysOfTheWeek must contain at least one day of the week."; + public static String DayOfTheWeekMustBeSpecifiedForRecurrencePattern = + "The recurrence pattern's property DayOfTheWeek must be specified."; + public static String DayOfWeekIndexMustBeSpecifiedForRecurrencePattern = + "The recurrence pattern's DayOfWeekIndex property must be specified."; + public static String MonthMustBeSpecifiedForRecurrencePattern = + "The recurrence pattern's Month property must be specified."; + public static String PropertyValueMustBeSpecifiedForRecurrencePattern = + "The recurrence pattern's %s property must be specified."; + public static String ParameterIncompatibleWithRequestVersion = + "The parameter %s is only valid for Exchange Server version %s or a later version."; + public static String NoError = "No error."; + public static String InvalidPropertyValueNotInRange = "%s must be between %d and %d."; + public static String MergedFreeBusyIntervalMustBeSmallerThanTimeWindow = + "MergedFreeBusyInterval must be smaller than the specified time window."; + public static String DurationMustBeSpecifiedWhenScheduled = + "Duration must be specified when State is equal to Scheduled."; + public static String CannotSubscribeToStatusEvents = "Status events can't be subscribed to."; + public static String CannotUpdateNewUserConfiguration = + "This user configuration can't be updated because it's never been saved."; + public static String CannotSaveNotNewUserConfiguration = + "Calling Save isn't allowed because this user configuration isn't new. To apply local changes to this user configuration, call Update instead."; + public static String ArrayMustHaveAtLeastOneElement = "The Array value must have at least one element."; + public static String ArrayMustHaveSingleDimension = "The array value must have a single dimension."; + public static String IncompatibleTypeForArray = "Type %s can't be used as an array of type %s."; + public static String ValueCannotBeConverted = "The value '%s' couldn't be converted to type %s."; + public static String ValueOfTypeCannotBeConverted = + "The value '%s' of type %s can't be converted to a value of type %s."; + public static String BothSearchFilterAndQueryStringCannotBeSpecified = + "Both search filter and query string can't be specified. One of them must be null."; + public static String PropertyAlreadyExistsInOrderByCollection = + "Property %s already exists in OrderByCollection."; + public static String AutodiscoverInvalidSettingForOutlookProvider = + "The requested setting, '%s', isn't supported by this Autodiscover endpoint."; + public static String ServiceResponseDoesNotContainXml = + "The response received from the service didn't contain valid XML."; + public static String OperationNotSupportedForPropertyDefinitionType = + "This operation isn't supported for property definition type %s."; + public static String PropertyDefinitionTypeMismatch = + "Property definition type '%s' and type parameter '%s' aren't compatible."; + public static String CannotAddSubscriptionToLiveConnection = + "Subscriptions can't be added to an open connection."; + public static String CannotRemoveSubscriptionFromLiveConnection = + "Subscriptions can't be removed from an open connection."; + public static String CannotCallConnectDuringLiveConnection = "The connection has already opened."; + public static String CannotCallDisconnectWithNoLiveConnection = "The connection is already closed."; + public static String NoSubscriptionsOnConnection = + "You must add at least one subscription to this connection before it can be opened."; + public static String InvalidDomainName = "'%s' is not a valid domain name."; + public static String CreateItemsDoesNotAllowAttachments = + "This operation doesn't support items that have attachments."; + public static String UpdateItemsDoesNotAllowAttachments = + "This operation can't be performed because attachments have been added or deleted for one or more items."; + public static String CreateItemsDoesNotHandleExistingItems = + "This operation can't be performed because at least one item already has an ID."; + public static String UpdateItemsDoesNotSupportNewOrUnchangedItems = + "This operation can't be performed because one or more items are new or unmodified."; + public static String CannotAddRequestHeader = + "HTTP header '%s' isn't permitted. Only HTTP headers with the 'X-' prefix are permitted."; + public static String CannotSetDelegateFolderPermissionLevelToCustom = + "This operation can't be performed because one or more folder permission levels were set to Custom."; + public static String ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst = + "The contact group's Members property must be reloaded before newly-added members can be updated."; + public static String StartTimeZoneRequired = + "StartTimeZone required when setting the Start, End, IsAllDayEvent, or Recurrence properties. You must load or assign this property before attempting to update the appointment."; + public static String AccountIsLocked = "This account is locked. Visit %s to unlock it."; + public static String AttachmentItemTypeMismatch = "Attachment item type mismatch."; + public static String PropertyTypeIncompatibleWhenUpdatingCollection = + "Property type incompatible when updating collection."; + public static String MultipleContactPhotosInAttachment = "Multiple contact photos in attachment."; + public static String InvalidAsyncResult = "Invalid AsyncResult."; + public static String HttpsIsRequired = "Https is required."; /* public static String FolderPermissionLevelMustBeSet = "The permission level of the folder permission at index %s must be set."; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java index d4b71830f..8afafb677 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java @@ -10,229 +10,225 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.ArrayList; import java.util.List; -import javax.xml.stream.XMLStreamException; - /** * The Class SubscribeRequest. - * - * @param - * the generic type + * + * @param the generic type */ abstract class SubscribeRequest extends - MultiResponseServiceRequest> { - - /** The folder ids. */ - private FolderIdWrapperList folderIds = new FolderIdWrapperList(); - - /** The event types. */ - private List eventTypes = new ArrayList(); - - /** The watermark. */ - private String watermark; - - /** - * Validate request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); - EwsUtilities.validateParamCollection(this.getEventTypes().iterator(), - "EventTypes"); - this.getFolderIds().validate( - this.getService().getRequestedServerVersion()); - // Check that caller isn't trying - //to subscribe to Status events. - if (this.getEventTypes().contains(EventType.Status)) { - throw new ServiceValidationException( - Strings.CannotSubscribeToStatusEvents); - } - - // If Watermark was specified, make sure it's not a blank string. - if (!(this.getWatermark() == null || - this.getWatermark().isEmpty())) { - EwsUtilities.validateNonBlankStringParam(this. - getWatermark(), "Watermark"); - } - - for (EventType eventType : this.getEventTypes()) { - EwsUtilities.validateEnumVersionValue(eventType, - this.getService().getRequestedServerVersion()); - } - - } - - /** - * Gets the name of the subscription XML element. - * - * @return XML element name - */ - protected abstract String getSubscriptionXmlElementName(); - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Subscribe; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.SubscribeResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.SubscribeResponseMessage; - } - - /** - * Internal method to write XML elements. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void internalWriteElementsToXml( - EwsServiceXmlWriter writer) throws XMLStreamException, - ServiceXmlSerializationException; - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Messages, this - .getSubscriptionXmlElementName()); - - if (this.getFolderIds().getCount() == 0) { - writer.writeAttributeValue(XmlAttributeNames.SubscribeToAllFolders, - true); - } - - this.getFolderIds().writeToXml(writer, XmlNamespace.Types, - XmlElementNames.FolderIds); - - writer - .writeStartElement(XmlNamespace.Types, - XmlElementNames.EventTypes); - for (EventType eventType : this.getEventTypes()) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.EventType, eventType); - } - writer.writeEndElement(); - - if (!(this.getWatermark() == null || this.getWatermark().isEmpty())) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.Watermark, this.getWatermark()); - } - - this.internalWriteElementsToXml(writer); - - writer.writeEndElement(); - } - - /** - * Instantiates a new subscribe request. - * - * @param service - * the service - * @throws Exception - */ - protected SubscribeRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - this.setFolderIds(new FolderIdWrapperList()); - this.setEventTypes(new ArrayList()); - } - - /** - * Gets the folder ids. - * - * @return the folder ids - */ - public FolderIdWrapperList getFolderIds() { - return this.folderIds; - } - - /** - * Sets the folder ids. - */ - private void setFolderIds(FolderIdWrapperList value) - { - this.folderIds=value; - } - /** - * Gets the event types. - * - * @return the event types - */ - public List getEventTypes() { - return this.eventTypes; - } - - /** - * set the EventTypes - */ - private void setEventTypes(List value) { - this.eventTypes=value; - } - - /** - * Gets the watermark. - * - * @return the watermark - */ - public String getWatermark() { - return this.watermark; - } - - /** - * Sets the watermark. - * - * @param watermark - * the new watermark - */ - public void setWatermark(String watermark) { - this.watermark = watermark; - } + MultiResponseServiceRequest> { + + /** + * The folder ids. + */ + private FolderIdWrapperList folderIds = new FolderIdWrapperList(); + + /** + * The event types. + */ + private List eventTypes = new ArrayList(); + + /** + * The watermark. + */ + private String watermark; + + /** + * Validate request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); + EwsUtilities.validateParamCollection(this.getEventTypes().iterator(), + "EventTypes"); + this.getFolderIds().validate( + this.getService().getRequestedServerVersion()); + // Check that caller isn't trying + //to subscribe to Status events. + if (this.getEventTypes().contains(EventType.Status)) { + throw new ServiceValidationException( + Strings.CannotSubscribeToStatusEvents); + } + + // If Watermark was specified, make sure it's not a blank string. + if (!(this.getWatermark() == null || + this.getWatermark().isEmpty())) { + EwsUtilities.validateNonBlankStringParam(this. + getWatermark(), "Watermark"); + } + + for (EventType eventType : this.getEventTypes()) { + EwsUtilities.validateEnumVersionValue(eventType, + this.getService().getRequestedServerVersion()); + } + + } + + /** + * Gets the name of the subscription XML element. + * + * @return XML element name + */ + protected abstract String getSubscriptionXmlElementName(); + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Subscribe; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.SubscribeResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.SubscribeResponseMessage; + } + + /** + * Internal method to write XML elements. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void internalWriteElementsToXml( + EwsServiceXmlWriter writer) throws XMLStreamException, + ServiceXmlSerializationException; + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Messages, this + .getSubscriptionXmlElementName()); + + if (this.getFolderIds().getCount() == 0) { + writer.writeAttributeValue(XmlAttributeNames.SubscribeToAllFolders, + true); + } + + this.getFolderIds().writeToXml(writer, XmlNamespace.Types, + XmlElementNames.FolderIds); + + writer + .writeStartElement(XmlNamespace.Types, + XmlElementNames.EventTypes); + for (EventType eventType : this.getEventTypes()) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.EventType, eventType); + } + writer.writeEndElement(); + + if (!(this.getWatermark() == null || this.getWatermark().isEmpty())) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.Watermark, this.getWatermark()); + } + + this.internalWriteElementsToXml(writer); + + writer.writeEndElement(); + } + + /** + * Instantiates a new subscribe request. + * + * @param service the service + * @throws Exception + */ + protected SubscribeRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + this.setFolderIds(new FolderIdWrapperList()); + this.setEventTypes(new ArrayList()); + } + + /** + * Gets the folder ids. + * + * @return the folder ids + */ + public FolderIdWrapperList getFolderIds() { + return this.folderIds; + } + + /** + * Sets the folder ids. + */ + private void setFolderIds(FolderIdWrapperList value) { + this.folderIds = value; + } + + /** + * Gets the event types. + * + * @return the event types + */ + public List getEventTypes() { + return this.eventTypes; + } + + /** + * set the EventTypes + */ + private void setEventTypes(List value) { + this.eventTypes = value; + } + + /** + * Gets the watermark. + * + * @return the watermark + */ + public String getWatermark() { + return this.watermark; + } + + /** + * Sets the watermark. + * + * @param watermark the new watermark + */ + public void setWatermark(String watermark) { + this.watermark = watermark; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java index 3f7a0438e..afa2b94de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java @@ -14,63 +14,56 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base response class to subscription creation operations. - * - * @param - * Subscription type + * + * @param Subscription type */ final class SubscribeResponse extends - ServiceResponse { + ServiceResponse { - /** The subscription. */ - private TSubscription subscription; + /** + * The subscription. + */ + private TSubscription subscription; - /** - * Initializes a new instance of the SubscribeResponse<TSubscription - * class. - * - * @param subscription - * The Subscription - */ - protected SubscribeResponse(TSubscription subscription) { - super(); - EwsUtilities.EwsAssert(subscription != null, "SubscribeResponse.ctor", - "subscription is null"); - this.subscription = subscription; - } + /** + * Initializes a new instance of the SubscribeResponse<TSubscription + * class. + * + * @param subscription The Subscription + */ + protected SubscribeResponse(TSubscription subscription) { + super(); + EwsUtilities.EwsAssert(subscription != null, "SubscribeResponse.ctor", + "subscription is null"); + this.subscription = subscription; + } - /** - * Reads response elements from XML. - * - * @param reader - * The reader. - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, Exception { - super.readElementsFromXml(reader); - this.subscription.loadFromXml(reader); - } + /** + * Reads response elements from XML. + * + * @param reader The reader. + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, + ServiceLocalException, Exception { + super.readElementsFromXml(reader); + this.subscription.loadFromXml(reader); + } - /** - * Gets the subscription. - * - * @return the subscription - */ - public TSubscription getSubscription() { - return this.subscription; - } + /** + * Gets the subscription. + * + * @return the subscription + */ + public TSubscription getSubscription() { + return this.subscription; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java index 0df580e84..b2c4d2de1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java @@ -16,112 +16,104 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a "pull" Subscribe request. */ class SubscribeToPullNotificationsRequest extends - SubscribeRequest { + SubscribeRequest { - /** The timeout. */ - private int timeout = 30; + /** + * The timeout. + */ + private int timeout = 30; - /** - * Instantiates a new subscribe to pull notifications request. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected SubscribeToPullNotificationsRequest(ExchangeService service) - throws Exception { + /** + * Instantiates a new subscribe to pull notifications request. + * + * @param service the service + * @throws Exception the exception + */ + protected SubscribeToPullNotificationsRequest(ExchangeService service) + throws Exception { - super(service); + super(service); - } + } - /** - * Gets the timeout. - * - * @return the timeout - */ - public int getTimeout() { - return this.timeout; - } + /** + * Gets the timeout. + * + * @return the timeout + */ + public int getTimeout() { + return this.timeout; + } - /** - * Sets the time out. - * - * @param timeout - * the new time out - */ - public void setTimeOut(int timeout) { - this.timeout = timeout; - } + /** + * Sets the time out. + * + * @param timeout the new time out + */ + public void setTimeOut(int timeout) { + this.timeout = timeout; + } - /** - * Validate request. - * - * @throws Exception - * the exception - */ - protected void validate() throws Exception { - super.validate(); - if ((this.getTimeout() < 1) || (this.getTimeout() > 1440)) { - throw new ArgumentException(String.format( - Strings.InvalidTimeoutValue, this.getTimeout())); - } - } + /** + * Validate request. + * + * @throws Exception the exception + */ + protected void validate() throws Exception { + super.validate(); + if ((this.getTimeout() < 1) || (this.getTimeout() > 1440)) { + throw new ArgumentException(String.format( + Strings.InvalidTimeoutValue, this.getTimeout())); + } + } - /** - * Creates the service response. - * - * @param service - * The service. - * @param responseIndex - * Index of the response. - * @return Service response. - * @throws Exception - * the exception - */ - @Override - protected SubscribeResponse createServiceResponse( - ExchangeService service, int responseIndex) throws Exception { - return new SubscribeResponse(new PullSubscription( - service)); - } + /** + * Creates the service response. + * + * @param service The service. + * @param responseIndex Index of the response. + * @return Service response. + * @throws Exception the exception + */ + @Override + protected SubscribeResponse createServiceResponse( + ExchangeService service, int responseIndex) throws Exception { + return new SubscribeResponse(new PullSubscription( + service)); + } - /*** - * Gets the minimum server version required to process this request. - * - * @return Exchange server version. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum server version required to process this request. + * + * @return Exchange server version. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Gets the name of the subscription XML element. - * - * @return XML element name - */ - @Override - protected String getSubscriptionXmlElementName() { - return XmlElementNames.PullSubscriptionRequest; - } + /** + * Gets the name of the subscription XML element. + * + * @return XML element name + */ + @Override + protected String getSubscriptionXmlElementName() { + return XmlElementNames.PullSubscriptionRequest; + } - /** - * Reads response elements from XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws microsoft.exchange.webservices.data.ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Timeout, - this.getTimeout()); + /** + * Reads response elements from XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws microsoft.exchange.webservices.data.ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Timeout, + this.getTimeout()); - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java index 088338193..61329413d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java @@ -10,140 +10,140 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.net.URI; - import javax.xml.stream.XMLStreamException; +import java.net.URI; /** * The Class SubscribeToPushNotificationsRequest. */ class SubscribeToPushNotificationsRequest extends - SubscribeRequest { - - /** The frequency. */ - private int frequency = 30; - - /** The url. */ - private URI url; - - /** - * Instantiates a new subscribe to push notifications request. - * - * @param service - * the service - * @throws Exception - */ - protected SubscribeToPushNotificationsRequest(ExchangeService service) - throws Exception { - super(service); - } - - /* - * (non-Javadoc) - * - * @see microsoft.exchange.webservices.SubscribeRequest#validate() - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getUrl(), "Url"); - if ((this.getFrequency() < 1) || (this.getFrequency() > 1440)) { - throw new ArgumentException(String.format( - Strings.InvalidFrequencyValue, this.getFrequency())); - } - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.SubscribeRequest - * #getSubscriptionXmlElementName - * () - */ - @Override - protected String getSubscriptionXmlElementName() { - return XmlElementNames.PushSubscriptionRequest; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.SubscribeRequest - * #internalWriteElementsToXml - * (microsoft.exchange.webservices.EwsServiceXmlWriter) - */ - @Override - protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.StatusFrequency, this.getFrequency()); - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.URL, this - .getUrl().toString()); - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# - * createServiceResponse(microsoft.exchange.webservices.ExchangeService, - * int) - */ - @Override - protected SubscribeResponse createServiceResponse( - ExchangeService service, int responseIndex) throws Exception { - return new SubscribeResponse(new PushSubscription( - service)); - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.ServiceRequestBase# - * getMinimumRequiredServerVersion() - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the frequency. - * - * @return the frequency - */ - public int getFrequency() { - return this.frequency; - } - - /** - * Sets the frequency. - * - * @param frequency - * the new frequency - */ - public void setFrequency(int frequency) { - this.frequency = frequency; - } - - /** - * Gets the url. - * - * @return the url - */ - public URI getUrl() { - return this.url; - } - - /** - * Sets the url. - * - * @param url - * the new url - */ - public void setUrl(URI url) { - this.url = url; - } + SubscribeRequest { + + /** + * The frequency. + */ + private int frequency = 30; + + /** + * The url. + */ + private URI url; + + /** + * Instantiates a new subscribe to push notifications request. + * + * @param service the service + * @throws Exception + */ + protected SubscribeToPushNotificationsRequest(ExchangeService service) + throws Exception { + super(service); + } + + /* + * (non-Javadoc) + * + * @see microsoft.exchange.webservices.SubscribeRequest#validate() + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getUrl(), "Url"); + if ((this.getFrequency() < 1) || (this.getFrequency() > 1440)) { + throw new ArgumentException(String.format( + Strings.InvalidFrequencyValue, this.getFrequency())); + } + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.SubscribeRequest + * #getSubscriptionXmlElementName + * () + */ + @Override + protected String getSubscriptionXmlElementName() { + return XmlElementNames.PushSubscriptionRequest; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.SubscribeRequest + * #internalWriteElementsToXml + * (microsoft.exchange.webservices.EwsServiceXmlWriter) + */ + @Override + protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.StatusFrequency, this.getFrequency()); + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.URL, this + .getUrl().toString()); + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# + * createServiceResponse(microsoft.exchange.webservices.ExchangeService, + * int) + */ + @Override + protected SubscribeResponse createServiceResponse( + ExchangeService service, int responseIndex) throws Exception { + return new SubscribeResponse(new PushSubscription( + service)); + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.ServiceRequestBase# + * getMinimumRequiredServerVersion() + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the frequency. + * + * @return the frequency + */ + public int getFrequency() { + return this.frequency; + } + + /** + * Sets the frequency. + * + * @param frequency the new frequency + */ + public void setFrequency(int frequency) { + this.frequency = frequency; + } + + /** + * Gets the url. + * + * @return the url + */ + public URI getUrl() { + return this.url; + } + + /** + * Sets the url. + * + * @param url the new url + */ + public void setUrl(URI url) { + this.url = url; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java index ad3427650..b546ae09d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java @@ -11,74 +11,80 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * Defines the SubscribeToStreamingNotificationsRequest class. + * Defines the SubscribeToStreamingNotificationsRequest class. */ -class SubscribeToStreamingNotificationsRequest extends -SubscribeRequest { +class SubscribeToStreamingNotificationsRequest extends + SubscribeRequest { - /** - * Initializes a new instance of the - * SubscribeToStreamingNotificationsRequest class. - * @param service The service - * @throws Exception - */ - protected SubscribeToStreamingNotificationsRequest(ExchangeService service) - throws Exception { - super(service); - } + /** + * Initializes a new instance of the + * SubscribeToStreamingNotificationsRequest class. + * + * @param service The service + * @throws Exception + */ + protected SubscribeToStreamingNotificationsRequest(ExchangeService service) + throws Exception { + super(service); + } - /** - * Validate request. - * @throws Exception - */ - @Override - protected void validate() throws Exception { - super.validate(); + /** + * Validate request. + * + * @throws Exception + */ + @Override + protected void validate() throws Exception { + super.validate(); - if (!(this.getWatermark()== null || this.getWatermark().isEmpty())) { - throw new ArgumentException( - "Watermarks cannot be used with StreamingSubscriptions."); - } - } + if (!(this.getWatermark() == null || this.getWatermark().isEmpty())) { + throw new ArgumentException( + "Watermarks cannot be used with StreamingSubscriptions."); + } + } - /** - * Gets the name of the subscription XML element. - * @return XmlElementsNames - */ - @Override - protected String getSubscriptionXmlElementName() { - return XmlElementNames.StreamingSubscriptionRequest; - } + /** + * Gets the name of the subscription XML element. + * + * @return XmlElementsNames + */ + @Override + protected String getSubscriptionXmlElementName() { + return XmlElementNames.StreamingSubscriptionRequest; + } - /** - * Internals the write elements to XML. - * @param writer The writer - */ - @Override - protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) { - } + /** + * Internals the write elements to XML. + * + * @param writer The writer + */ + @Override + protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) { + } - /** - * Creates the service response. - * @param service The service - * @param responseIndex The responseIndex - * @return SubscribeResponse - * @throws Exception - */ - @Override - protected SubscribeResponse createServiceResponse(ExchangeService service, - int responseIndex) throws Exception { - return new SubscribeResponse( - new StreamingSubscription(service)); - } + /** + * Creates the service response. + * + * @param service The service + * @param responseIndex The responseIndex + * @return SubscribeResponse + * @throws Exception + */ + @Override + protected SubscribeResponse createServiceResponse(ExchangeService service, + int responseIndex) throws Exception { + return new SubscribeResponse( + new StreamingSubscription(service)); + } - /** - * Gets the request version. - * @return ExchangeVersion - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } + /** + * Gets the request version. + * + * @return ExchangeVersion + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java index 02a94bd54..ca81fe9c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java @@ -16,135 +16,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class SubscriptionBase { - /** The service. */ - private ExchangeService service; - - /** The id. */ - private String id; - - /** The watermark. */ - private String watermark; - - /** - * Instantiates a new subscription base. - * - * @param service - * the service - * @throws Exception - * the exception - */ - protected SubscriptionBase(ExchangeService service) throws Exception { - EwsUtilities.validateParam(service, "service"); - // EwsUtilities.validateParam(service, "service"); - - this.service = service; - } - - /** - * Instantiates a new subscription base. - * - * @param service - * the service - * @param id - * the id - * @throws Exception - * the exception - */ - protected SubscriptionBase(ExchangeService service, String id) - throws Exception { - this(service); - EwsUtilities.validateParam(id, "id"); - - this.id = id; - } - - /** - * Instantiates a new subscription base. - * - * @param service - * the service - * @param id - * the id - * @param watermark - * the watermark - * @throws Exception - * the exception - */ - protected SubscriptionBase(ExchangeService service, String id, - String watermark) throws Exception { - this(service, id); - this.watermark = watermark; - } - - /** - * Load from xml. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - this.id = reader.readElementValue(XmlNamespace.Messages, - XmlElementNames.SubscriptionId); - if(this.getUsesWatermark()) { - this.watermark = reader.readElementValue(XmlNamespace.Messages, - XmlElementNames.Watermark); } - - } - - /** - * Gets the session. - * - * @return the session - */ - protected ExchangeService getService() { - return this.service; - } - - /** - * Gets the id. - * - * @return the id - */ - public String getId() { - return id; - } - - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(String id) { - this.id = id; - } - - /** - * Sets the water mark. - * - * @param watermark - * the new water mark - */ - protected void setWaterMark(String watermark) { - this.watermark = watermark; - } - - /** - * Gets the water mark. - * - * @return the water mark - */ - public String getWaterMark() { - return this.watermark; - } - - /** - * Gets whether or not this subscription uses watermarks. - */ - protected boolean getUsesWatermark() { - return true; - } + /** + * The service. + */ + private ExchangeService service; + + /** + * The id. + */ + private String id; + + /** + * The watermark. + */ + private String watermark; + + /** + * Instantiates a new subscription base. + * + * @param service the service + * @throws Exception the exception + */ + protected SubscriptionBase(ExchangeService service) throws Exception { + EwsUtilities.validateParam(service, "service"); + // EwsUtilities.validateParam(service, "service"); + + this.service = service; + } + + /** + * Instantiates a new subscription base. + * + * @param service the service + * @param id the id + * @throws Exception the exception + */ + protected SubscriptionBase(ExchangeService service, String id) + throws Exception { + this(service); + EwsUtilities.validateParam(id, "id"); + + this.id = id; + } + + /** + * Instantiates a new subscription base. + * + * @param service the service + * @param id the id + * @param watermark the watermark + * @throws Exception the exception + */ + protected SubscriptionBase(ExchangeService service, String id, + String watermark) throws Exception { + this(service, id); + this.watermark = watermark; + } + + /** + * Load from xml. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + this.id = reader.readElementValue(XmlNamespace.Messages, + XmlElementNames.SubscriptionId); + if (this.getUsesWatermark()) { + this.watermark = reader.readElementValue(XmlNamespace.Messages, + XmlElementNames.Watermark); + } + + } + + /** + * Gets the session. + * + * @return the session + */ + protected ExchangeService getService() { + return this.service; + } + + /** + * Gets the id. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(String id) { + this.id = id; + } + + /** + * Sets the water mark. + * + * @param watermark the new water mark + */ + protected void setWaterMark(String watermark) { + this.watermark = watermark; + } + + /** + * Gets the water mark. + * + * @return the water mark + */ + public String getWaterMark() { + return this.watermark; + } + + /** + * Gets whether or not this subscription uses watermarks. + */ + protected boolean getUsesWatermark() { + return true; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java index 87ba74cd3..642dd358d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java @@ -11,62 +11,64 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * Provides data to a StreamingSubscriptionConnection's + * Provides data to a StreamingSubscriptionConnection's * OnSubscriptionError and OnDisconnect events. */ public class SubscriptionErrorEventArgs { //TODO extends EventObject { - private StreamingSubscription subscription; - private Exception exception; + private StreamingSubscription subscription; + private Exception exception; - /** - * Initializes a new instance of the SubscriptionErrorEventArgs class. - * @param subscription The subscription for which an error occurred. - * If subscription is null, the error applies to the entire connection. - * @param exception The exception representing the error. - * If exception is null, the connection - * was cleanly closed by the server. - */ - protected SubscriptionErrorEventArgs( - StreamingSubscription subscription, - Exception exception) { - // super(subscription); //TODO need to check for EventObject - this.setSubscription(subscription); - this.setException(exception); - } + /** + * Initializes a new instance of the SubscriptionErrorEventArgs class. + * + * @param subscription The subscription for which an error occurred. + * If subscription is null, the error applies to the entire connection. + * @param exception The exception representing the error. + * If exception is null, the connection + * was cleanly closed by the server. + */ + protected SubscriptionErrorEventArgs( + StreamingSubscription subscription, + Exception exception) { + // super(subscription); //TODO need to check for EventObject + this.setSubscription(subscription); + this.setException(exception); + } - /** - * Gets the subscription for which an error occurred. - * If Subscription is null, the error applies to the entire connection. - */ - public StreamingSubscription getSubscription() { - return this.subscription; + /** + * Gets the subscription for which an error occurred. + * If Subscription is null, the error applies to the entire connection. + */ + public StreamingSubscription getSubscription() { + return this.subscription; - } - - /** - * Sets the subscription for which an error occurred. - * If Subscription is null, the error applies to the entire connection. - */ - protected void setSubscription(StreamingSubscription value) { - this.subscription = value; + } - } - - /** - * Gets the exception representing the error. If Exception is null, - * the connection was cleanly closed by the server. - */ - public Exception getException() { - return this.exception; + /** + * Sets the subscription for which an error occurred. + * If Subscription is null, the error applies to the entire connection. + */ + protected void setSubscription(StreamingSubscription value) { + this.subscription = value; - } - /** - * Sets the exception representing the error. If Exception is null, - * the connection was cleanly closed by the server. - */ - protected void setException(Exception value) { - this.exception = value; + } - } + /** + * Gets the exception representing the error. If Exception is null, + * the connection was cleanly closed by the server. + */ + public Exception getException() { + return this.exception; + + } + + /** + * Sets the exception representing the error. If Exception is null, + * the connection was cleanly closed by the server. + */ + protected void setException(Exception value) { + this.exception = value; + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java index 2b3f4980d..ffc30e1e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java @@ -10,112 +10,113 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collection; import java.util.Date; -import javax.xml.stream.XMLStreamException; - /** * Represents a suggestion for a specific date. */ public final class Suggestion extends ComplexProperty { - /** The date. */ - private Date date; - - /** The quality. */ - private SuggestionQuality quality; - - /** The time suggestions. */ - private Collection timeSuggestions = - new ArrayList(); - - /** - * Initializes a new instance of the Suggestion class. - */ - protected Suggestion() { - super(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException, - Exception { - if (reader.getLocalName().equals(XmlElementNames.Date)) { - SimpleDateFormat sdfin = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - Date tempDate = sdfin.parse(reader.readElementValue()); - this.date = tempDate; - return true; - } else if (reader.getLocalName().equals(XmlElementNames.DayQuality)) { - this.quality = reader.readElementValue(SuggestionQuality.class); - return true; - } else if (reader.getLocalName() - .equals(XmlElementNames.SuggestionArray)) { - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.Suggestion)) { - TimeSuggestion timeSuggestion = new TimeSuggestion(); - - timeSuggestion.loadFromXml(reader, reader - .getLocalName()); - - this.timeSuggestions.add(timeSuggestion); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.SuggestionArray)); - } - - return true; - } else { - return false; - } - - } - - /** - * Gets the date and time of the suggestion. - * - * @return the date - */ - public Date getDate() { - return date; - } - - /** - * Gets the quality of the suggestion. - * - * @return the quality - */ - public SuggestionQuality getQuality() { - return quality; - } - - /** - * Gets a collection of suggested times within the suggested day. - * - * @return the time suggestions - */ - public Collection getTimeSuggestions() { - return timeSuggestions; - } + /** + * The date. + */ + private Date date; + + /** + * The quality. + */ + private SuggestionQuality quality; + + /** + * The time suggestions. + */ + private Collection timeSuggestions = + new ArrayList(); + + /** + * Initializes a new instance of the Suggestion class. + */ + protected Suggestion() { + super(); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException, + Exception { + if (reader.getLocalName().equals(XmlElementNames.Date)) { + SimpleDateFormat sdfin = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + Date tempDate = sdfin.parse(reader.readElementValue()); + this.date = tempDate; + return true; + } else if (reader.getLocalName().equals(XmlElementNames.DayQuality)) { + this.quality = reader.readElementValue(SuggestionQuality.class); + return true; + } else if (reader.getLocalName() + .equals(XmlElementNames.SuggestionArray)) { + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.Suggestion)) { + TimeSuggestion timeSuggestion = new TimeSuggestion(); + + timeSuggestion.loadFromXml(reader, reader + .getLocalName()); + + this.timeSuggestions.add(timeSuggestion); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.SuggestionArray)); + } + + return true; + } else { + return false; + } + + } + + /** + * Gets the date and time of the suggestion. + * + * @return the date + */ + public Date getDate() { + return date; + } + + /** + * Gets the quality of the suggestion. + * + * @return the quality + */ + public SuggestionQuality getQuality() { + return quality; + } + + /** + * Gets a collection of suggested times within the suggested day. + * + * @return the time suggestions + */ + public Collection getTimeSuggestions() { + return timeSuggestions; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java index afacabf61..6de5308d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java @@ -15,20 +15,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SuggestionQuality { - // The suggestion is excellent. - /** The Excellent. */ - Excellent, + // The suggestion is excellent. + /** + * The Excellent. + */ + Excellent, - // The suggestion is good. - /** The Good. */ - Good, + // The suggestion is good. + /** + * The Good. + */ + Good, - // The suggestion is fair. - /** The Fair. */ - Fair, + // The suggestion is fair. + /** + * The Fair. + */ + Fair, - // The suggestion is poor. - /** The Poor. */ - Poor + // The suggestion is poor. + /** + * The Poor. + */ + Poor } diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java index 38f0bc0d0..d3a5f52b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java @@ -18,50 +18,50 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class SuggestionsResponse extends ServiceResponse { - /** The day suggestions. */ - private Collection daySuggestions = new ArrayList(); + /** + * The day suggestions. + */ + private Collection daySuggestions = new ArrayList(); - /** - * Initializes a new instance of the SuggestionsResponse class. - */ - protected SuggestionsResponse() { - super(); - } + /** + * Initializes a new instance of the SuggestionsResponse class. + */ + protected SuggestionsResponse() { + super(); + } - /** - * Loads the suggested days from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadSuggestedDaysFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.SuggestionDayResultArray); + /** + * Loads the suggested days from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadSuggestedDaysFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.SuggestionDayResultArray); - do { - reader.read(); + do { + reader.read(); - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.SuggestionDayResult)) { - Suggestion daySuggestion = new Suggestion(); + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.SuggestionDayResult)) { + Suggestion daySuggestion = new Suggestion(); - daySuggestion.loadFromXml(reader, reader.getLocalName()); + daySuggestion.loadFromXml(reader, reader.getLocalName()); - this.daySuggestions.add(daySuggestion); - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.SuggestionDayResultArray)); - } + this.daySuggestions.add(daySuggestion); + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.SuggestionDayResultArray)); + } - /** - * Gets a list of suggested days. - * - * @return the suggestions - */ - protected Collection getSuggestions() { - return this.daySuggestions; - } + /** + * Gets a list of suggested days. + * + * @return the suggestions + */ + protected Collection getSuggestions() { + return this.daySuggestions; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index 741134a97..a687f7574 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -14,91 +14,84 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a response object created to supress read receipts for an item. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.SuppressReadReceipt, returnedByServer = false) - final class SuppressReadReceipt extends ServiceObject { +final class SuppressReadReceipt extends ServiceObject { - /** The reference item. */ - private Item referenceItem; + /** + * The reference item. + */ + private Item referenceItem; - /** - * Initializes a new instance of the class. - * - * @param referenceItem - * the reference item - * @throws Exception - * the exception - */ - protected SuppressReadReceipt(Item referenceItem) throws Exception { - super(referenceItem.getService()); + /** + * Initializes a new instance of the class. + * + * @param referenceItem the reference item + * @throws Exception the exception + */ + protected SuppressReadReceipt(Item referenceItem) throws Exception { + super(referenceItem.getService()); - referenceItem.throwIfThisIsNew(); - this.referenceItem = referenceItem; - } + referenceItem.throwIfThisIsNew(); + this.referenceItem = referenceItem; + } - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return ResponseObjectSchema.Instance; - } + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return ResponseObjectSchema.Instance; + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } - /** - * Loads the specified set of properties on the object. - * - * @param propertySet - * the property set - */ - @Override - protected void internalLoad(PropertySet propertySet) { - throw new UnsupportedOperationException(); - } + /** + * Loads the specified set of properties on the object. + * + * @param propertySet the property set + */ + @Override + protected void internalLoad(PropertySet propertySet) { + throw new UnsupportedOperationException(); + } - /** - * Deletes the object. - * - * @param deleteMode - * the delete mode - * @param sendCancellationsMode - * the send cancellations mode - * @param affectedTaskOccurrences - * the affected task occurrences - */ - @Override - protected void internalDelete(DeleteMode deleteMode, - SendCancellationsMode sendCancellationsMode, - AffectedTaskOccurrence affectedTaskOccurrences) { - throw new UnsupportedOperationException(); - } + /** + * Deletes the object. + * + * @param deleteMode the delete mode + * @param sendCancellationsMode the send cancellations mode + * @param affectedTaskOccurrences the affected task occurrences + */ + @Override + protected void internalDelete(DeleteMode deleteMode, + SendCancellationsMode sendCancellationsMode, + AffectedTaskOccurrence affectedTaskOccurrences) { + throw new UnsupportedOperationException(); + } - /** - * Create the response object. - * - * @param parentFolderId - * the parent folder id - * @param messageDisposition - * the message disposition - * @throws Exception - * the exception - */ - protected void internalCreate(FolderId parentFolderId, - MessageDisposition messageDisposition) throws Exception { - ((ItemId)this.getPropertyBag().getObjectFromPropertyDefinition( - ResponseObjectSchema.ReferenceItemId)) - .assign(this.referenceItem.getId()); - this.getService().internalCreateResponseObject(this, parentFolderId, - messageDisposition); - } + /** + * Create the response object. + * + * @param parentFolderId the parent folder id + * @param messageDisposition the message disposition + * @throws Exception the exception + */ + protected void internalCreate(FolderId parentFolderId, + MessageDisposition messageDisposition) throws Exception { + ((ItemId) this.getPropertyBag().getObjectFromPropertyDefinition( + ResponseObjectSchema.ReferenceItemId)) + .assign(this.referenceItem.getId()); + this.getService().internalCreateResponseObject(this, parentFolderId, + messageDisposition); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java index 9836b86b9..052c92293 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java @@ -10,197 +10,194 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -/*** +/** * Represents a SyncFolderHierarchy request. */ class SyncFolderHierarchyRequest extends - MultiResponseServiceRequest { - - /** The property set. */ - private PropertySet propertySet; - - /** The sync folder id. */ - private FolderId syncFolderId; - - /** The sync state. */ - private String syncState; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected SyncFolderHierarchyRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected SyncFolderHierarchyResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new SyncFolderHierarchyResponse(this.getPropertySet()); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected responses - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.SyncFolderHierarchy; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.SyncFolderHierarchyResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.SyncFolderHierarchyResponseMessage; - } - - /** - * Validates request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); - if (this.getSyncFolderId() != null) { - this.getSyncFolderId().validate( - this.getService().getRequestedServerVersion()); - } - - this.getPropertySet() - .validateForRequest(this, false /* summaryPropertiesOnly */); - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getPropertySet().writeToXml(writer, ServiceObjectType.Folder); - - if (this.getSyncFolderId() != null) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SyncFolderId); - this.getSyncFolderId().writeToXml(writer); - writer.writeEndElement(); - } - - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.SyncState, this.getSyncState()); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets or sets the property set. The property set. - * - * @return the property set - */ - public PropertySet getPropertySet() { - return this.propertySet; - } - - /** - * Sets the property set. - * - * @param value - * the new property set - */ - public void setPropertySet(PropertySet value) { - this.propertySet = value; - } - - /** - * Gets or sets the property set. The property set. - * - * @return the sync folder id - */ - public FolderId getSyncFolderId() { - return this.syncFolderId; - } - - /** - * Sets the sync folder id. - * - * @param value - * the new sync folder id - */ - public void setSyncFolderId(FolderId value) { - this.syncFolderId = value; - } - - /** - * Gets or sets the state of the sync. The state of the - * sync. - * - * @return the sync state - */ - public String getSyncState() { - return this.syncState; - } - - /** - * Sets the sync state. - * - * @param value - * the new sync state - */ - public void setSyncState(String value) { - this.syncState = value; - } + MultiResponseServiceRequest { + + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * The sync folder id. + */ + private FolderId syncFolderId; + + /** + * The sync state. + */ + private String syncState; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected SyncFolderHierarchyRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected SyncFolderHierarchyResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new SyncFolderHierarchyResponse(this.getPropertySet()); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected responses + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.SyncFolderHierarchy; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.SyncFolderHierarchyResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.SyncFolderHierarchyResponseMessage; + } + + /** + * Validates request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); + if (this.getSyncFolderId() != null) { + this.getSyncFolderId().validate( + this.getService().getRequestedServerVersion()); + } + + this.getPropertySet() + .validateForRequest(this, false /* summaryPropertiesOnly */); + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getPropertySet().writeToXml(writer, ServiceObjectType.Folder); + + if (this.getSyncFolderId() != null) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SyncFolderId); + this.getSyncFolderId().writeToXml(writer); + writer.writeEndElement(); + } + + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.SyncState, this.getSyncState()); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets or sets the property set. The property set. + * + * @return the property set + */ + public PropertySet getPropertySet() { + return this.propertySet; + } + + /** + * Sets the property set. + * + * @param value the new property set + */ + public void setPropertySet(PropertySet value) { + this.propertySet = value; + } + + /** + * Gets or sets the property set. The property set. + * + * @return the sync folder id + */ + public FolderId getSyncFolderId() { + return this.syncFolderId; + } + + /** + * Sets the sync folder id. + * + * @param value the new sync folder id + */ + public void setSyncFolderId(FolderId value) { + this.syncFolderId = value; + } + + /** + * Gets or sets the state of the sync. The state of the + * sync. + * + * @return the sync state + */ + public String getSyncState() { + return this.syncState; + } + + /** + * Sets the sync state. + * + * @param value the new sync state + */ + public void setSyncState(String value) { + this.syncState = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java index c3a0005ef..48cd6c4bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java @@ -14,47 +14,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the response to a folder synchronization operation. */ public final class SyncFolderHierarchyResponse extends - SyncResponse { + SyncResponse { - /** - * Represents the response to a folder synchronization operation. - * - * @param propertySet - * the property set - */ - protected SyncFolderHierarchyResponse(PropertySet propertySet) { - super(propertySet); - } + /** + * Represents the response to a folder synchronization operation. + * + * @param propertySet the property set + */ + protected SyncFolderHierarchyResponse(PropertySet propertySet) { + super(propertySet); + } - /** - * Gets the name of the includes last in range XML element. - * - * @return XML element name. - */ - @Override - protected String getIncludesLastInRangeXmlElementName() { - return XmlElementNames.IncludesLastFolderInRange; - } + /** + * Gets the name of the includes last in range XML element. + * + * @return XML element name. + */ + @Override + protected String getIncludesLastInRangeXmlElementName() { + return XmlElementNames.IncludesLastFolderInRange; + } - /** - * Creates a folder change instance. - * - * @return FolderChange instance - */ - @Override - protected FolderChange createChangeInstance() { - return new FolderChange(); - } + /** + * Creates a folder change instance. + * + * @return FolderChange instance + */ + @Override + protected FolderChange createChangeInstance() { + return new FolderChange(); + } - /** - * Gets a value indicating whether this request returns full or summary - * properties. true if summary properties only; otherwise, - * false. - * - * @return the summary properties only - */ - @Override - protected boolean getSummaryPropertiesOnly() { - return false; - } + /** + * Gets a value indicating whether this request returns full or summary + * properties. true if summary properties only; otherwise, + * false. + * + * @return the summary properties only + */ + @Override + protected boolean getSummaryPropertiesOnly() { + return false; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java index 76e91a909..7aba9393a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java @@ -14,281 +14,281 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a SyncFolderItems request. */ class SyncFolderItemsRequest extends - MultiResponseServiceRequest { - - /** The property set. */ - private PropertySet propertySet; - - /** The sync folder id. */ - private FolderId syncFolderId; - - /** The sync scope. */ - private SyncFolderItemsScope syncScope; - - /** The sync state. */ - private String syncState; - - /** The ignored item ids. */ - private ItemIdWrapperList ignoredItemIds = new ItemIdWrapperList(); - - /** The max changes returned. */ - private int maxChangesReturned = 100; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected SyncFolderItemsRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Creates service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response - */ - @Override - protected SyncFolderItemsResponse createServiceResponse( - ExchangeService service, int responseIndex) { - return new SyncFolderItemsResponse(this.getPropertySet()); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.SyncFolderItems; - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.SyncFolderItemsResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.SyncFolderItemsResponseMessage; - } - - /** - * Validates request. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); - EwsUtilities.validateParam(this.getSyncFolderId(), "SyncFolderId"); - this.getSyncFolderId().validate( - this.getService().getRequestedServerVersion()); - - // SyncFolderItemsScope enum was introduced with Exchange2010. Only - // value NormalItems is valid with previous server versions. - if (this.getService().getRequestedServerVersion().compareTo( - ExchangeVersion.Exchange2010) < 0 && - this.syncScope != SyncFolderItemsScope.NormalItems) { - throw new ServiceVersionException(String.format( - Strings.EnumValueIncompatibleWithRequestVersion, this - .getSyncScope().toString(), this.getSyncScope() - .name(), ExchangeVersion.Exchange2010)); - } - - // SyncFolderItems can only handle summary properties - this.getPropertySet() - .validateForRequest(this, true /* summaryPropertiesOnly */); - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - this.getPropertySet().writeToXml(writer, ServiceObjectType.Item); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SyncFolderId); - this.getSyncFolderId().writeToXml(writer); - writer.writeEndElement(); - - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.SyncState, this.getSyncState()); - - this.getIgnoredItemIds().writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.Ignore); - - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.MaxChangesReturned, this - .getMaxChangesReturned()); - - if (this.getService().getRequestedServerVersion().compareTo( - ExchangeVersion.Exchange2010) >= 0) { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.SyncScope, this.syncScope); - } - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets or sets the property set. The property set. - * - * @return the property set - */ - public PropertySet getPropertySet() { - return this.propertySet; - } - - /** - * Sets the property set. - * - * @param propertySet - * the new property set - */ - public void setPropertySet(PropertySet propertySet) { - this.propertySet = propertySet; - } - - /** - * Gets the sync folder id. The sync folder id. - * - * @return the sync folder id - */ - public FolderId getSyncFolderId() { - return this.syncFolderId; - } - - /** - * Sets the sync folder id. - * - * @param syncFolderId - * the new sync folder id - */ - public void setSyncFolderId(FolderId syncFolderId) { - this.syncFolderId = syncFolderId; - } - - /** - * Gets the scope of the sync. The scope of the - * sync. - * - * @return the sync scope - */ - public SyncFolderItemsScope getSyncScope() { - return this.syncScope; - } - - /** - * Sets the sync scope. - * - * @param syncScope - * the new sync scope - */ - public void setSyncScope(SyncFolderItemsScope syncScope) { - this.syncScope = syncScope; - } - - /** - * Gets the state of the sync. The state of the - * sync. - * - * @return the sync state - */ - public String getSyncState() { - return this.syncState; - } - - /** - * Sets the sync state. - * - * @param syncState - * the new sync state - */ - public void setSyncState(String syncState) { - this.syncState = syncState; - } - - /** - * Gets the list of ignored item ids. The ignored item ids. - * - * @return the ignored item ids - */ - public ItemIdWrapperList getIgnoredItemIds() { - return this.ignoredItemIds; - } - - /** - * Gets the maximum number of changes returned by SyncFolderItems. - * Values must be between 1 and 512. Default is 100. - * - * @return the max changes returned - */ - public int getMaxChangesReturned() { - - return this.maxChangesReturned; - } - - /** - * Sets the max changes returned. - * - * @param maxChangesReturned - * the new max changes returned - * @throws microsoft.exchange.webservices.data.ArgumentException - * the argument exception - */ - public void setMaxChangesReturned(int maxChangesReturned) - throws ArgumentException { - if (maxChangesReturned >= 1 && maxChangesReturned <= 512) { - this.maxChangesReturned = maxChangesReturned; - } else { - throw new ArgumentException(Strings.MaxChangesMustBeBetween1And512); - } - } + MultiResponseServiceRequest { + + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * The sync folder id. + */ + private FolderId syncFolderId; + + /** + * The sync scope. + */ + private SyncFolderItemsScope syncScope; + + /** + * The sync state. + */ + private String syncState; + + /** + * The ignored item ids. + */ + private ItemIdWrapperList ignoredItemIds = new ItemIdWrapperList(); + + /** + * The max changes returned. + */ + private int maxChangesReturned = 100; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected SyncFolderItemsRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Creates service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response + */ + @Override + protected SyncFolderItemsResponse createServiceResponse( + ExchangeService service, int responseIndex) { + return new SyncFolderItemsResponse(this.getPropertySet()); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.SyncFolderItems; + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.SyncFolderItemsResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.SyncFolderItemsResponseMessage; + } + + /** + * Validates request. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); + EwsUtilities.validateParam(this.getSyncFolderId(), "SyncFolderId"); + this.getSyncFolderId().validate( + this.getService().getRequestedServerVersion()); + + // SyncFolderItemsScope enum was introduced with Exchange2010. Only + // value NormalItems is valid with previous server versions. + if (this.getService().getRequestedServerVersion().compareTo( + ExchangeVersion.Exchange2010) < 0 && + this.syncScope != SyncFolderItemsScope.NormalItems) { + throw new ServiceVersionException(String.format( + Strings.EnumValueIncompatibleWithRequestVersion, this + .getSyncScope().toString(), this.getSyncScope() + .name(), ExchangeVersion.Exchange2010)); + } + + // SyncFolderItems can only handle summary properties + this.getPropertySet() + .validateForRequest(this, true /* summaryPropertiesOnly */); + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + this.getPropertySet().writeToXml(writer, ServiceObjectType.Item); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SyncFolderId); + this.getSyncFolderId().writeToXml(writer); + writer.writeEndElement(); + + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.SyncState, this.getSyncState()); + + this.getIgnoredItemIds().writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.Ignore); + + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.MaxChangesReturned, this + .getMaxChangesReturned()); + + if (this.getService().getRequestedServerVersion().compareTo( + ExchangeVersion.Exchange2010) >= 0) { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.SyncScope, this.syncScope); + } + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets or sets the property set. The property set. + * + * @return the property set + */ + public PropertySet getPropertySet() { + return this.propertySet; + } + + /** + * Sets the property set. + * + * @param propertySet the new property set + */ + public void setPropertySet(PropertySet propertySet) { + this.propertySet = propertySet; + } + + /** + * Gets the sync folder id. The sync folder id. + * + * @return the sync folder id + */ + public FolderId getSyncFolderId() { + return this.syncFolderId; + } + + /** + * Sets the sync folder id. + * + * @param syncFolderId the new sync folder id + */ + public void setSyncFolderId(FolderId syncFolderId) { + this.syncFolderId = syncFolderId; + } + + /** + * Gets the scope of the sync. The scope of the + * sync. + * + * @return the sync scope + */ + public SyncFolderItemsScope getSyncScope() { + return this.syncScope; + } + + /** + * Sets the sync scope. + * + * @param syncScope the new sync scope + */ + public void setSyncScope(SyncFolderItemsScope syncScope) { + this.syncScope = syncScope; + } + + /** + * Gets the state of the sync. The state of the + * sync. + * + * @return the sync state + */ + public String getSyncState() { + return this.syncState; + } + + /** + * Sets the sync state. + * + * @param syncState the new sync state + */ + public void setSyncState(String syncState) { + this.syncState = syncState; + } + + /** + * Gets the list of ignored item ids. The ignored item ids. + * + * @return the ignored item ids + */ + public ItemIdWrapperList getIgnoredItemIds() { + return this.ignoredItemIds; + } + + /** + * Gets the maximum number of changes returned by SyncFolderItems. + * Values must be between 1 and 512. Default is 100. + * + * @return the max changes returned + */ + public int getMaxChangesReturned() { + + return this.maxChangesReturned; + } + + /** + * Sets the max changes returned. + * + * @param maxChangesReturned the new max changes returned + * @throws microsoft.exchange.webservices.data.ArgumentException the argument exception + */ + public void setMaxChangesReturned(int maxChangesReturned) + throws ArgumentException { + if (maxChangesReturned >= 1 && maxChangesReturned <= 512) { + this.maxChangesReturned = maxChangesReturned; + } else { + throw new ArgumentException(Strings.MaxChangesMustBeBetween1And512); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java index 1c3843b45..a96762441 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java @@ -14,47 +14,46 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the response to a folder items synchronization operation. */ public final class SyncFolderItemsResponse extends - SyncResponse { + SyncResponse { - /** - * Initializes a new instance of the class. - * - * @param propertySet - * the property set - */ - protected SyncFolderItemsResponse(PropertySet propertySet) { - super(propertySet); - } + /** + * Initializes a new instance of the class. + * + * @param propertySet the property set + */ + protected SyncFolderItemsResponse(PropertySet propertySet) { + super(propertySet); + } - /** - * Gets the name of the includes last in range XML element. - * - * @return XML element name. - */ - @Override - protected String getIncludesLastInRangeXmlElementName() { - return XmlElementNames.IncludesLastItemInRange; - } + /** + * Gets the name of the includes last in range XML element. + * + * @return XML element name. + */ + @Override + protected String getIncludesLastInRangeXmlElementName() { + return XmlElementNames.IncludesLastItemInRange; + } - /** - * Creates an item change instance. - * - * @return ItemChange instance - */ - @Override - protected ItemChange createChangeInstance() { - return new ItemChange(); - } + /** + * Creates an item change instance. + * + * @return ItemChange instance + */ + @Override + protected ItemChange createChangeInstance() { + return new ItemChange(); + } - /** - * Gets a value indicating whether this request returns full or summary - * properties. true if summary properties only; otherwise, - * false. - * - * @return the summary properties only - */ - @Override - protected boolean getSummaryPropertiesOnly() { - return true; - } + /** + * Gets a value indicating whether this request returns full or summary + * properties. true if summary properties only; otherwise, + * false. + * + * @return the summary properties only + */ + @Override + protected boolean getSummaryPropertiesOnly() { + return true; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java index 34f62806c..023349a7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java @@ -15,11 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum SyncFolderItemsScope { - // Include only normal items in the response. - /** The Normal items. */ - NormalItems, + // Include only normal items in the response. + /** + * The Normal items. + */ + NormalItems, - // Include normal and associated items in the response. - /** The Normal and associated items. */ - NormalAndAssociatedItems + // Include normal and associated items in the response. + /** + * The Normal and associated items. + */ + NormalAndAssociatedItems } diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java index 19698da52..f4e5b7eac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java @@ -13,162 +13,160 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the base response class for synchronuization operations. * - * @param - * ServiceObject type. - * @param - * Change type. + * @param ServiceObject type. + * @param Change type. */ @EditorBrowsable(state = EditorBrowsableState.Never) -public abstract class SyncResponse extends - ServiceResponse { - - /** The changes. */ - private ChangeCollection changes = new ChangeCollection(); - - /** The property set. */ - private PropertySet propertySet; - - /** - * Initializes a new instance of the class. - * - * @param propertySet - * the property set - */ - protected SyncResponse(PropertySet propertySet) { - super(); - this.propertySet = propertySet; - EwsUtilities.EwsAssert(this.propertySet != null, "SyncResponse.ctor", - "PropertySet should not be null"); - } - - /** - * Gets the name of the includes last in range XML element. - * - * @return XML element name. - */ - protected abstract String getIncludesLastInRangeXmlElementName(); - - /** - * Creates the change instance. - * - * @return TChange instance - */ - protected abstract TChange createChangeInstance(); - - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceLocalException, Exception { - this.changes.setSyncState(reader.readElementValue( - XmlNamespace.Messages, XmlElementNames.SyncState)); - this.changes.setMoreChangesAvailable(!reader.readElementValue( - Boolean.class, XmlNamespace.Messages, this - .getIncludesLastInRangeXmlElementName())); - - reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Changes); - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - TChange change = this.createChangeInstance(); - - if (reader.getLocalName().equals(XmlElementNames.Create)) { - change.setChangeType(ChangeType.Create); - } else if (reader.getLocalName().equals( - XmlElementNames.Update)) { - change.setChangeType(ChangeType.Update); - } else if (reader.getLocalName().equals( - XmlElementNames.Delete)) { - change.setChangeType(ChangeType.Delete); - } else if (reader.getLocalName().equals( - XmlElementNames.ReadFlagChange)) { - change.setChangeType(ChangeType.ReadFlagChange); - } else { - reader.skipCurrentElement(); - } - - if (change != null) { - reader.read(); - reader.ensureCurrentNodeIsStartElement(); - - if (change.getChangeType().equals(ChangeType.Delete) - || change.getChangeType().equals( - ChangeType.ReadFlagChange)) { - change.setId(change.createId()); - change.getId().loadFromXml(reader, - change.getId().getXmlElementName()); - - if (change.getChangeType().equals( - ChangeType.ReadFlagChange)) { - reader.read(); - reader.ensureCurrentNodeIsStartElement(); - ItemChange itemChange = null; - if(change instanceof ItemChange){ - itemChange = (ItemChange) change; - } - EwsUtilities - .EwsAssert( - itemChange != null, - "SyncResponse." + - "ReadElementsFromXml", - "ReadFlagChange is only " + - "valid on ItemChange"); - - itemChange.setIsRead(reader.readElementValue( - Boolean.class, XmlNamespace.Types, - XmlElementNames.IsRead)); - } - } else { - - change.setServiceObject(EwsUtilities - .createEwsObjectFromXmlElementName(null, - reader.getService(), reader - .getLocalName())); - - change.getServiceObject().loadFromXml(reader, - true, /* clearPropertyBag */ - this.propertySet, this.getSummaryPropertiesOnly()); - } - - reader.readEndElementIfNecessary(XmlNamespace.Types, - change.getChangeType().toString()); - - this.changes.add(change); - } - } - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.Changes)); - } else { - reader.read(); - } - } - - /** - * Gets a list of changes that occurred on the synchronized folder. - * - * @return the changes - */ - public ChangeCollection getChanges() { - return this.changes; - } - - /** - * Gets a value indicating whether this request returns full or summary - * properties. - * - * @return the summary properties only - */ - protected abstract boolean getSummaryPropertiesOnly(); +public abstract class SyncResponse extends + ServiceResponse { + + /** + * The changes. + */ + private ChangeCollection changes = new ChangeCollection(); + + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * Initializes a new instance of the class. + * + * @param propertySet the property set + */ + protected SyncResponse(PropertySet propertySet) { + super(); + this.propertySet = propertySet; + EwsUtilities.EwsAssert(this.propertySet != null, "SyncResponse.ctor", + "PropertySet should not be null"); + } + + /** + * Gets the name of the includes last in range XML element. + * + * @return XML element name. + */ + protected abstract String getIncludesLastInRangeXmlElementName(); + + /** + * Creates the change instance. + * + * @return TChange instance + */ + protected abstract TChange createChangeInstance(); + + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceLocalException, Exception { + this.changes.setSyncState(reader.readElementValue( + XmlNamespace.Messages, XmlElementNames.SyncState)); + this.changes.setMoreChangesAvailable(!reader.readElementValue( + Boolean.class, XmlNamespace.Messages, this + .getIncludesLastInRangeXmlElementName())); + + reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Changes); + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + TChange change = this.createChangeInstance(); + + if (reader.getLocalName().equals(XmlElementNames.Create)) { + change.setChangeType(ChangeType.Create); + } else if (reader.getLocalName().equals( + XmlElementNames.Update)) { + change.setChangeType(ChangeType.Update); + } else if (reader.getLocalName().equals( + XmlElementNames.Delete)) { + change.setChangeType(ChangeType.Delete); + } else if (reader.getLocalName().equals( + XmlElementNames.ReadFlagChange)) { + change.setChangeType(ChangeType.ReadFlagChange); + } else { + reader.skipCurrentElement(); + } + + if (change != null) { + reader.read(); + reader.ensureCurrentNodeIsStartElement(); + + if (change.getChangeType().equals(ChangeType.Delete) + || change.getChangeType().equals( + ChangeType.ReadFlagChange)) { + change.setId(change.createId()); + change.getId().loadFromXml(reader, + change.getId().getXmlElementName()); + + if (change.getChangeType().equals( + ChangeType.ReadFlagChange)) { + reader.read(); + reader.ensureCurrentNodeIsStartElement(); + ItemChange itemChange = null; + if (change instanceof ItemChange) { + itemChange = (ItemChange) change; + } + EwsUtilities + .EwsAssert( + itemChange != null, + "SyncResponse." + + "ReadElementsFromXml", + "ReadFlagChange is only " + + "valid on ItemChange"); + + itemChange.setIsRead(reader.readElementValue( + Boolean.class, XmlNamespace.Types, + XmlElementNames.IsRead)); + } + } else { + + change.setServiceObject(EwsUtilities + .createEwsObjectFromXmlElementName(null, + reader.getService(), reader + .getLocalName())); + + change.getServiceObject().loadFromXml(reader, + true, /* clearPropertyBag */ + this.propertySet, this.getSummaryPropertiesOnly()); + } + + reader.readEndElementIfNecessary(XmlNamespace.Types, + change.getChangeType().toString()); + + this.changes.add(change); + } + } + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.Changes)); + } else { + reader.read(); + } + } + + /** + * Gets a list of changes that occurred on the synchronized folder. + * + * @return the changes + */ + public ChangeCollection getChanges() { + return this.changes; + } + + /** + * Gets a value indicating whether this request returns full or summary + * properties. + * + * @return the summary properties only + */ + protected abstract boolean getSummaryPropertiesOnly(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index f947ef0b9..57ab2b417 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -20,609 +20,542 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @ServiceObjectDefinition(xmlElementName = XmlElementNames.Task) public class Task extends Item { - /** - * Initializes an unsaved local instance of Task.To bind to an existing - * task, use Task.Bind() instead. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public Task(ExchangeService service) throws Exception { - super(service); - } - - /** - * Initializes a new instance of the class. - * - * @param parentAttachment - * the parent attachment - * @throws Exception - * the exception - */ - protected Task(ItemAttachment parentAttachment) throws Exception { - super(parentAttachment); - } - - /** - * Binds to an existing task and loads the specified set of properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A Task instance representing the task corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Task bind(ExchangeService service, ItemId id, - PropertySet propertySet) throws Exception { - return service.bindToItem(Task.class, id, propertySet); - } - - /** - * Binds to an existing task and loads its first class properties. Calling - * this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A Task instance representing the task corresponding to the - * specified Id. - * @throws Exception - * the exception - */ - public static Task bind(ExchangeService service, ItemId id) - throws Exception { - return Task.bind(service, id, PropertySet.getFirstClassProperties()); - } - - /** - * Internal method to return the schema associated with this type of object. - * - * @return The schema associated with this type of object. - */ - @Override - protected ServiceObjectSchema getSchema() { - return TaskSchema.Instance; - } - - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets a value indicating whether a time zone SOAP header should be - * emitted in a CreateItem or UpdateItem request so this item can be - * property saved or updated. - * - * @param isUpdateOperation - * the is update operation - * @return if a time zone SOAP header should be emitted; otherwise, . - */ - @Override - protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) { - return true; - } - - /** - * Deletes the current occurrence of a recurring task. After the current - * occurrence isdeleted, the task represents the next occurrence. Developers - * should call Load to retrieve the new property values of the task. Calling - * this method results in a call to EWS. - * - * @param deleteMode - * the delete mode - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - public void deleteCurrentOccurrence(DeleteMode deleteMode) - throws ServiceLocalException, Exception { - this.internalDelete(deleteMode, null, - AffectedTaskOccurrence.SpecifiedOccurrenceOnly); - } - - /** - * Applies the local changes that have been made to this task. Calling - * this method results in at least one call to EWS. Mutliple calls to EWS - * might be made if attachments have been added or removed. - * - * @param conflictResolutionMode - * the conflict resolution mode - * @return A Task object representing the completed occurrence if the task - * is recurring and the update marks it as completed; or a Task - * object representing the current occurrence if the task is - * recurring and the uypdate changed its recurrence pattern; or null - * in every other case. - * @throws ServiceResponseException - * the service response exception - * @throws Exception - * the exception - */ - public Task updateTask(ConflictResolutionMode conflictResolutionMode) - throws ServiceResponseException, Exception { - return (Task) this.internalUpdate(null /* parentFolder */, - conflictResolutionMode, MessageDisposition.SaveOnly, null); - } - - // Properties - - /** - * Gets the actual amount of time that is spent on the task. - * - * @return the actual work - * @throws ServiceLocalException - * the service local exception - */ - public Integer getActualWork() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.ActualWork); - } - - /** - * Sets the checks if is read. - * - * @param value - * the new checks if is read - * @throws Exception - * the exception - */ - public void setActualWork(Integer value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.ActualWork, value); - } - - /** - * Gets the date and time the task was assigned. - * - * @return the assigned time - * @throws ServiceLocalException - * the service local exception - */ - public Date getAssignedTime() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.AssignedTime); - } - - /** - * Gets the billing information of the task. - * - * @return the billing information - * @throws ServiceLocalException - * the service local exception - */ - public String getBillingInformation() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.BillingInformation); - } - - /** - * Sets the billing information. - * - * @param value - * the new billing information - * @throws Exception - * the exception - */ - public void setBillingInformation(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.BillingInformation, value); - } - - /** - * Gets the number of times the task has changed since it was created. - * - * @return the change count - * @throws ServiceLocalException - * the service local exception - */ - public Integer getChangeCount() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.ChangeCount); - } - - /** - * Gets a list of companies associated with the task. - * - * @return the companies - * @throws ServiceLocalException - * the service local exception - */ - public StringList getCompanies() throws ServiceLocalException { - return (StringList) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.Companies); - } - - /** - * Sets the companies. - * - * @param value - * the new companies - * @throws Exception - * the exception - */ - public void setCompanies(StringList value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.Companies, value); - } - - /** - * Gets the date and time on which the task was completed. - * - * @return the complete date - * @throws ServiceLocalException - * the service local exception - */ - public Date getCompleteDate() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.CompleteDate); - } - - /** - * Sets the complete date. - * - * @param value - * the new complete date - * @throws Exception - * the exception - */ - public void setCompleteDate(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.CompleteDate, value); - } - - /** - * Gets a list of contacts associated with the task. - * - * @return the contacts - * @throws ServiceLocalException - * the service local exception - */ - public StringList getContacts() throws ServiceLocalException { - return (StringList) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.Contacts); - } - - /** - * Sets the contacts. - * - * @param value - * the new contacts - * @throws Exception - * the exception - */ - public void setContacts(StringList value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.Contacts, value); - } - - /** - * Gets the current delegation state of the task. - * - * @return the delegation state - * @throws ServiceLocalException - * the service local exception - */ - public TaskDelegationState getDelegationState() - throws ServiceLocalException { - return (TaskDelegationState) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.DelegationState); - } - - /** - * Gets the name of the delegator of this task. - * - * @return the delegator - * @throws ServiceLocalException - * the service local exception - */ - public String getDelegator() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.Delegator); - } - - /** - * Gets a list of contacts associated with the task. - * - * @return the due date - * @throws ServiceLocalException - * the service local exception - */ - public Date getDueDate() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.DueDate); - } - - /** - * Sets the due date. - * - * @param value - * the new due date - * @throws Exception - * the exception - */ - public void setDueDate(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.DueDate, value); - } - - /** - * Gets a value indicating the mode of the task. - * - * @return the mode - * @throws ServiceLocalException - * the service local exception - */ - public TaskMode getMode() throws ServiceLocalException { - return (TaskMode) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.Mode); - } - - /** - * Gets a value indicating whether the task is complete. - * - * @return the checks if is complete - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsComplete() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.IsComplete); - } - - /** - * Gets a value indicating whether the task is recurring. - * - * @return the checks if is recurring - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsRecurring() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.IsRecurring); - } - - /** - * Gets a value indicating whether the task is a team task. - * - * @return the checks if is team task - * @throws ServiceLocalException - * the service local exception - */ - public Boolean getIsTeamTask() throws ServiceLocalException { - return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.IsTeamTask); - } - - /** - * Gets the mileage of the task. - * - * @return the mileage - * @throws ServiceLocalException - * the service local exception - */ - public String getMileage() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.Mileage); - } - - /** - * Sets the mileage. - * - * @param value - * the new mileage - * @throws Exception - * the exception - */ - public void setMileage(String value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.Mileage, value); - } - - /** - * Gets the name of the owner of the task. - * - * @return the owner - * @throws ServiceLocalException - * the service local exception - */ - public String getOwner() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.Owner); - } - - /** - * Gets the completion percentage of the task. - * PercentComplete must be between - * 0 and 100. - * - * @return the percent complete - * @throws ServiceLocalException - * the service local exception - */ - public Double getPercentComplete() throws ServiceLocalException { - return (Double) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.PercentComplete); - } - - /** - * Sets the completion percentage of the task. - * PercentComplete must be between - * 0.0 and 100.0 . - * - * @param value - * the new percent complete - * @deprecated - * use Double parameter instead - * @throws Exception - * the exception - */ - @Deprecated - public void setPercentComplete(String value) throws Exception { - setPercentComplete(Double.valueOf(value)); + /** + * Initializes an unsaved local instance of Task.To bind to an existing + * task, use Task.Bind() instead. + * + * @param service the service + * @throws Exception the exception + */ + public Task(ExchangeService service) throws Exception { + super(service); + } + + /** + * Initializes a new instance of the class. + * + * @param parentAttachment the parent attachment + * @throws Exception the exception + */ + protected Task(ItemAttachment parentAttachment) throws Exception { + super(parentAttachment); + } + + /** + * Binds to an existing task and loads the specified set of properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A Task instance representing the task corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Task bind(ExchangeService service, ItemId id, + PropertySet propertySet) throws Exception { + return service.bindToItem(Task.class, id, propertySet); + } + + /** + * Binds to an existing task and loads its first class properties. Calling + * this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A Task instance representing the task corresponding to the + * specified Id. + * @throws Exception the exception + */ + public static Task bind(ExchangeService service, ItemId id) + throws Exception { + return Task.bind(service, id, PropertySet.getFirstClassProperties()); + } + + /** + * Internal method to return the schema associated with this type of object. + * + * @return The schema associated with this type of object. + */ + @Override + protected ServiceObjectSchema getSchema() { + return TaskSchema.Instance; + } + + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets a value indicating whether a time zone SOAP header should be + * emitted in a CreateItem or UpdateItem request so this item can be + * property saved or updated. + * + * @param isUpdateOperation the is update operation + * @return if a time zone SOAP header should be emitted; otherwise, . + */ + @Override + protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) { + return true; + } + + /** + * Deletes the current occurrence of a recurring task. After the current + * occurrence isdeleted, the task represents the next occurrence. Developers + * should call Load to retrieve the new property values of the task. Calling + * this method results in a call to EWS. + * + * @param deleteMode the delete mode + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + public void deleteCurrentOccurrence(DeleteMode deleteMode) + throws ServiceLocalException, Exception { + this.internalDelete(deleteMode, null, + AffectedTaskOccurrence.SpecifiedOccurrenceOnly); + } + + /** + * Applies the local changes that have been made to this task. Calling + * this method results in at least one call to EWS. Mutliple calls to EWS + * might be made if attachments have been added or removed. + * + * @param conflictResolutionMode the conflict resolution mode + * @return A Task object representing the completed occurrence if the task + * is recurring and the update marks it as completed; or a Task + * object representing the current occurrence if the task is + * recurring and the uypdate changed its recurrence pattern; or null + * in every other case. + * @throws ServiceResponseException the service response exception + * @throws Exception the exception + */ + public Task updateTask(ConflictResolutionMode conflictResolutionMode) + throws ServiceResponseException, Exception { + return (Task) this.internalUpdate(null /* parentFolder */, + conflictResolutionMode, MessageDisposition.SaveOnly, null); + } + + // Properties + + /** + * Gets the actual amount of time that is spent on the task. + * + * @return the actual work + * @throws ServiceLocalException the service local exception + */ + public Integer getActualWork() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.ActualWork); + } + + /** + * Sets the checks if is read. + * + * @param value the new checks if is read + * @throws Exception the exception + */ + public void setActualWork(Integer value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.ActualWork, value); + } + + /** + * Gets the date and time the task was assigned. + * + * @return the assigned time + * @throws ServiceLocalException the service local exception + */ + public Date getAssignedTime() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.AssignedTime); + } + + /** + * Gets the billing information of the task. + * + * @return the billing information + * @throws ServiceLocalException the service local exception + */ + public String getBillingInformation() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.BillingInformation); + } + + /** + * Sets the billing information. + * + * @param value the new billing information + * @throws Exception the exception + */ + public void setBillingInformation(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.BillingInformation, value); + } + + /** + * Gets the number of times the task has changed since it was created. + * + * @return the change count + * @throws ServiceLocalException the service local exception + */ + public Integer getChangeCount() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.ChangeCount); + } + + /** + * Gets a list of companies associated with the task. + * + * @return the companies + * @throws ServiceLocalException the service local exception + */ + public StringList getCompanies() throws ServiceLocalException { + return (StringList) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.Companies); + } + + /** + * Sets the companies. + * + * @param value the new companies + * @throws Exception the exception + */ + public void setCompanies(StringList value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.Companies, value); + } + + /** + * Gets the date and time on which the task was completed. + * + * @return the complete date + * @throws ServiceLocalException the service local exception + */ + public Date getCompleteDate() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.CompleteDate); + } + + /** + * Sets the complete date. + * + * @param value the new complete date + * @throws Exception the exception + */ + public void setCompleteDate(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.CompleteDate, value); + } + + /** + * Gets a list of contacts associated with the task. + * + * @return the contacts + * @throws ServiceLocalException the service local exception + */ + public StringList getContacts() throws ServiceLocalException { + return (StringList) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.Contacts); + } + + /** + * Sets the contacts. + * + * @param value the new contacts + * @throws Exception the exception + */ + public void setContacts(StringList value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.Contacts, value); + } + + /** + * Gets the current delegation state of the task. + * + * @return the delegation state + * @throws ServiceLocalException the service local exception + */ + public TaskDelegationState getDelegationState() + throws ServiceLocalException { + return (TaskDelegationState) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.DelegationState); + } + + /** + * Gets the name of the delegator of this task. + * + * @return the delegator + * @throws ServiceLocalException the service local exception + */ + public String getDelegator() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.Delegator); + } + + /** + * Gets a list of contacts associated with the task. + * + * @return the due date + * @throws ServiceLocalException the service local exception + */ + public Date getDueDate() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.DueDate); + } + + /** + * Sets the due date. + * + * @param value the new due date + * @throws Exception the exception + */ + public void setDueDate(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.DueDate, value); + } + + /** + * Gets a value indicating the mode of the task. + * + * @return the mode + * @throws ServiceLocalException the service local exception + */ + public TaskMode getMode() throws ServiceLocalException { + return (TaskMode) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.Mode); + } + + /** + * Gets a value indicating whether the task is complete. + * + * @return the checks if is complete + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsComplete() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.IsComplete); + } + + /** + * Gets a value indicating whether the task is recurring. + * + * @return the checks if is recurring + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsRecurring() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.IsRecurring); + } + + /** + * Gets a value indicating whether the task is a team task. + * + * @return the checks if is team task + * @throws ServiceLocalException the service local exception + */ + public Boolean getIsTeamTask() throws ServiceLocalException { + return (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.IsTeamTask); + } + + /** + * Gets the mileage of the task. + * + * @return the mileage + * @throws ServiceLocalException the service local exception + */ + public String getMileage() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.Mileage); + } + + /** + * Sets the mileage. + * + * @param value the new mileage + * @throws Exception the exception + */ + public void setMileage(String value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.Mileage, value); + } + + /** + * Gets the name of the owner of the task. + * + * @return the owner + * @throws ServiceLocalException the service local exception + */ + public String getOwner() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.Owner); + } + + /** + * Gets the completion percentage of the task. + * PercentComplete must be between + * 0 and 100. + * + * @return the percent complete + * @throws ServiceLocalException the service local exception + */ + public Double getPercentComplete() throws ServiceLocalException { + return (Double) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.PercentComplete); + } + + /** + * Sets the completion percentage of the task. + * PercentComplete must be between + * 0.0 and 100.0 . + * + * @param value the new percent complete + * @throws Exception the exception + * @deprecated use Double parameter instead + */ + @Deprecated + public void setPercentComplete(String value) throws Exception { + setPercentComplete(Double.valueOf(value)); + } + + /** + * Sets the completion percentage of the task. + * PercentComplete must be between + * 0.0 and 100.0 . + * + * @param value the new percent complete + * @throws Exception the exception + */ + public void setPercentComplete(Double value) throws Exception { + if (value == null || Double.isNaN(value) || value < 0.0 || value > 100.0) { + throw new IllegalArgumentException( + String.format(Strings.InvalidPropertyValueNotInRange, + ((value != null) ? value : "null"), 0.0, 100)); } - - /** - * Sets the completion percentage of the task. - * PercentComplete must be between - * 0.0 and 100.0 . - * - * @param value - * the new percent complete - * @throws Exception - * the exception - */ - public void setPercentComplete(Double value) throws Exception { - if (value == null || Double.isNaN(value) || value < 0.0 || value > 100.0){ - throw new IllegalArgumentException( - String.format(Strings.InvalidPropertyValueNotInRange, - ((value != null)? value : "null"), 0.0, 100)); - } - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.PercentComplete, value); - } - - /** - * Gets the recurrence pattern for this task. Available recurrence - * pattern classes include Recurrence.DailyPattern, - * Recurrence.MonthlyPattern and Recurrence.YearlyPattern. - * - * @return the recurrence - * @throws ServiceLocalException - * the service local exception - */ - public Recurrence getRecurrence() throws ServiceLocalException { - return (Recurrence) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.Recurrence); - } - - /** - * Sets the recurrence. - * - * @param value - * the new recurrence - * @throws Exception - * the exception - */ - public void setRecurrence(Recurrence value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.Recurrence, value); - } - - /** - * Gets the date and time on which the task starts. - * - * @return the start date - * @throws ServiceLocalException - * the service local exception - */ - public Date getStartDate() throws ServiceLocalException { - return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.StartDate); - } - - /** - * Sets the start date. - * - * @param value - * the new start date - * @throws Exception - * the exception - */ - public void setStartDate(Date value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.StartDate, value); - } - - /** - * Gets the status of the task. - * - * @return the status - * @throws ServiceLocalException - * the service local exception - */ - public TaskStatus getStatus() throws ServiceLocalException { - return (TaskStatus) this.getPropertyBag() - .getObjectFromPropertyDefinition(TaskSchema.Status); - } - - /** - * Sets the status. - * - * @param value - * the new status - * @throws Exception - * the exception - */ - public void setStatus(TaskStatus value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.Status, value); - } - - /** - * Gets a string representing the status of the task, localized according to - * the PreferredCulture property of the ExchangeService object the task is - * bound to. - * - * @return the status description - * @throws ServiceLocalException - * the service local exception - */ - public String getStatusDescription() throws ServiceLocalException { - return (String) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.StatusDescription); - } - - /** - * Gets the total amount of work spent on the task. - * - * @return the total work - * @throws ServiceLocalException - * the service local exception - */ - public Integer getTotalWork() throws ServiceLocalException { - return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( - TaskSchema.TotalWork); - } - - /** - * Sets the total work. - * - * @param value - * the new total work - * @throws Exception - * the exception - */ - public void setTotalWork(Integer value) throws Exception { - this.getPropertyBag().setObjectFromPropertyDefinition( - TaskSchema.TotalWork, value); - } - - /** - * Gets the default setting for how to treat affected task occurrences on - * Delete. AffectedTaskOccurrence.AllOccurrences: All affected Task - * occurrences will be deleted. - * - * @return the default affected task occurrences - */ - @Override - protected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences() { - return AffectedTaskOccurrence.AllOccurrences; - } + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.PercentComplete, value); + } + + /** + * Gets the recurrence pattern for this task. Available recurrence + * pattern classes include Recurrence.DailyPattern, + * Recurrence.MonthlyPattern and Recurrence.YearlyPattern. + * + * @return the recurrence + * @throws ServiceLocalException the service local exception + */ + public Recurrence getRecurrence() throws ServiceLocalException { + return (Recurrence) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.Recurrence); + } + + /** + * Sets the recurrence. + * + * @param value the new recurrence + * @throws Exception the exception + */ + public void setRecurrence(Recurrence value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.Recurrence, value); + } + + /** + * Gets the date and time on which the task starts. + * + * @return the start date + * @throws ServiceLocalException the service local exception + */ + public Date getStartDate() throws ServiceLocalException { + return (Date) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.StartDate); + } + + /** + * Sets the start date. + * + * @param value the new start date + * @throws Exception the exception + */ + public void setStartDate(Date value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.StartDate, value); + } + + /** + * Gets the status of the task. + * + * @return the status + * @throws ServiceLocalException the service local exception + */ + public TaskStatus getStatus() throws ServiceLocalException { + return (TaskStatus) this.getPropertyBag() + .getObjectFromPropertyDefinition(TaskSchema.Status); + } + + /** + * Sets the status. + * + * @param value the new status + * @throws Exception the exception + */ + public void setStatus(TaskStatus value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.Status, value); + } + + /** + * Gets a string representing the status of the task, localized according to + * the PreferredCulture property of the ExchangeService object the task is + * bound to. + * + * @return the status description + * @throws ServiceLocalException the service local exception + */ + public String getStatusDescription() throws ServiceLocalException { + return (String) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.StatusDescription); + } + + /** + * Gets the total amount of work spent on the task. + * + * @return the total work + * @throws ServiceLocalException the service local exception + */ + public Integer getTotalWork() throws ServiceLocalException { + return (Integer) this.getPropertyBag().getObjectFromPropertyDefinition( + TaskSchema.TotalWork); + } + + /** + * Sets the total work. + * + * @param value the new total work + * @throws Exception the exception + */ + public void setTotalWork(Integer value) throws Exception { + this.getPropertyBag().setObjectFromPropertyDefinition( + TaskSchema.TotalWork, value); + } + + /** + * Gets the default setting for how to treat affected task occurrences on + * Delete. AffectedTaskOccurrence.AllOccurrences: All affected Task + * occurrences will be deleted. + * + * @return the default affected task occurrences + */ + @Override + protected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences() { + return AffectedTaskOccurrence.AllOccurrences; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java index 385c7c421..47369bdc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java @@ -16,29 +16,39 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * values between 0 and 3, so we should be safe without mappings for * EWS's Declined and Max values */ + + /** * Defines the delegation state of a task. */ public enum TaskDelegationState { - // The task is not delegated - /** The No delegation. */ - NoDelegation, // Maps to NoMatch - - // The task's delegation state is unknown. - /** The Unknown. */ - Unknown, // Maps to OwnNew - - // The task was delegated and the delegation was accepted. - /** The Accepted. */ - Accepted, // Maps to Owned - - // The task was delegated but the delegation was declined. - /** The Declined. */ - Declined - // Maps to Accepted - - // The original Declined value has no mapping - // The original Max value has no mapping + // The task is not delegated + /** + * The No delegation. + */ + NoDelegation, // Maps to NoMatch + + // The task's delegation state is unknown. + /** + * The Unknown. + */ + Unknown, // Maps to OwnNew + + // The task was delegated and the delegation was accepted. + /** + * The Accepted. + */ + Accepted, // Maps to Owned + + // The task was delegated but the delegation was declined. + /** + * The Declined. + */ + Declined + // Maps to Accepted + + // The original Declined value has no mapping + // The original Max value has no mapping } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java index 5dac34935..497d7c524 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java @@ -15,110 +15,120 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a task delegation property definition. */ -final class TaskDelegationStatePropertyDefinition extends -GenericPropertyDefinition { - /** The No match. */ - private static final String NoMatch = "NoMatch"; +final class TaskDelegationStatePropertyDefinition extends + GenericPropertyDefinition { + /** + * The No match. + */ + private static final String NoMatch = "NoMatch"; - /** The Own new. */ - private static final String OwnNew = "OwnNew"; + /** + * The Own new. + */ + private static final String OwnNew = "OwnNew"; - /** The Owned. */ - private static final String Owned = "Owned"; + /** + * The Owned. + */ + private static final String Owned = "Owned"; - /** The Accepted. */ - private static final String Accepted = "Accepted"; + /** + * The Accepted. + */ + private static final String Accepted = "Accepted"; - /** - * Initializes a new instance of the "TaskDelegationStatePropertyDefinition" - * class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected TaskDelegationStatePropertyDefinition(String xmlElementName, - String uri, EnumSet flags, - ExchangeVersion version) { - super(TaskDelegationState.class, xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the "TaskDelegationStatePropertyDefinition" + * class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected TaskDelegationStatePropertyDefinition(String xmlElementName, + String uri, EnumSet flags, + ExchangeVersion version) { + super(TaskDelegationState.class, xmlElementName, uri, flags, version); + } - /** - * The Enum Status. - */ - public enum Status { + /** + * The Enum Status. + */ + public enum Status { - /** The No match. */ - NoMatch, - /** The Own new. */ - OwnNew, - /** The Owned. */ - Owned, - /** The Accepted. */ - Accepted; - } + /** + * The No match. + */ + NoMatch, + /** + * The Own new. + */ + OwnNew, + /** + * The Owned. + */ + Owned, + /** + * The Accepted. + */ + Accepted; + } - /** - * Parses the specified value. - * - * @param value - * The value. - * @return Typed value. - */ - @Override - protected Object parse(String value) { - switch (Status.valueOf(value)) { - case NoMatch: - return TaskDelegationState.NoDelegation; - case OwnNew: - return TaskDelegationState.Unknown; - case Owned: - return TaskDelegationState.Accepted; - case Accepted: - return TaskDelegationState.Declined; - default: - EwsUtilities.EwsAssert(false, - "TaskDelegationStatePropertyDefinition.Parse", String - .format("TaskDelegationStatePropertyDefinition." + - "Parse():" + - " value %s cannot be handled.", value)); + /** + * Parses the specified value. + * + * @param value The value. + * @return Typed value. + */ + @Override + protected Object parse(String value) { + switch (Status.valueOf(value)) { + case NoMatch: + return TaskDelegationState.NoDelegation; + case OwnNew: + return TaskDelegationState.Unknown; + case Owned: + return TaskDelegationState.Accepted; + case Accepted: + return TaskDelegationState.Declined; + default: + EwsUtilities.EwsAssert(false, + "TaskDelegationStatePropertyDefinition.Parse", String + .format("TaskDelegationStatePropertyDefinition." + + "Parse():" + + " value %s cannot be handled.", value)); - return null; // To keep the compiler happy - } - } + return null; // To keep the compiler happy + } + } - /** - * Convert instance to string. - * - * @param value - * The value. - * @return String representation of property value. - */ - @Override - protected String toString(Object value) { - TaskDelegationState taskDelegationState = (TaskDelegationState)value; + /** + * Convert instance to string. + * + * @param value The value. + * @return String representation of property value. + */ + @Override + protected String toString(Object value) { + TaskDelegationState taskDelegationState = (TaskDelegationState) value; - if (taskDelegationState.equals(TaskDelegationState.NoDelegation)) { - return NoMatch; - } else if (taskDelegationState.equals(TaskDelegationState.Unknown)) { - return OwnNew; - } else if (taskDelegationState.equals(TaskDelegationState.Accepted)) { - return Owned; - } - if (taskDelegationState.equals(TaskDelegationState.Declined)) { - return Accepted; - } else { - EwsUtilities.EwsAssert(false, - "TaskDelegationStatePropertyDefinition.ToString", - "Invalid TaskDelegationState value."); - return null; // To keep the compiler happy - } + if (taskDelegationState.equals(TaskDelegationState.NoDelegation)) { + return NoMatch; + } else if (taskDelegationState.equals(TaskDelegationState.Unknown)) { + return OwnNew; + } else if (taskDelegationState.equals(TaskDelegationState.Accepted)) { + return Owned; + } + if (taskDelegationState.equals(TaskDelegationState.Declined)) { + return Accepted; + } else { + EwsUtilities.EwsAssert(false, + "TaskDelegationStatePropertyDefinition.ToString", + "Invalid TaskDelegationState value."); + return null; // To keep the compiler happy + } - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index 450b480ed..9c6e91c82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -15,41 +15,54 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum TaskMode { - // The task is normal - /** The Normal. */ - Normal(0), - - // The task is a task assignment request - /** The Request. */ - Request(1), - - // The task assignment request was accepted - /** The Request accepted. */ - RequestAccepted(2), - - // The task assignment request was declined - /** The Request declined. */ - RequestDeclined(3), - - // The task has been updated - /** The Update. */ - Update(4), - - // The task is self delegated - /** The Self delegated. */ - SelfDelegated(5); - - /** The task mode. */ - @SuppressWarnings("unused") - private final int taskMode; - - /** - * Instantiates a new task mode. - * - * @param taskMode - * the task mode - */ - TaskMode(int taskMode) { - this.taskMode = taskMode; - } + // The task is normal + /** + * The Normal. + */ + Normal(0), + + // The task is a task assignment request + /** + * The Request. + */ + Request(1), + + // The task assignment request was accepted + /** + * The Request accepted. + */ + RequestAccepted(2), + + // The task assignment request was declined + /** + * The Request declined. + */ + RequestDeclined(3), + + // The task has been updated + /** + * The Update. + */ + Update(4), + + // The task is self delegated + /** + * The Self delegated. + */ + SelfDelegated(5); + + /** + * The task mode. + */ + @SuppressWarnings("unused") + private final int taskMode; + + /** + * Instantiates a new task mode. + * + * @param taskMode the task mode + */ + TaskMode(int taskMode) { + this.taskMode = taskMode; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index 5b3597696..9323f9d33 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -18,368 +18,415 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @Schema public class TaskSchema extends ItemSchema { - /** - * Field URIs for tasks. - */ - private static class FieldUris { - - /** The Constant ActualWork. */ - public final static String ActualWork = "task:ActualWork"; - - /** The Constant AssignedTime. */ - public final static String AssignedTime = "task:AssignedTime"; - - /** The Constant BillingInformation. */ - public final static String BillingInformation = - "task:BillingInformation"; - - /** The Constant ChangeCount. */ - public final static String ChangeCount = "task:ChangeCount"; - - /** The Constant Companies. */ - public final static String Companies = "task:Companies"; - - /** The Constant CompleteDate. */ - public final static String CompleteDate = "task:CompleteDate"; - - /** The Constant Contacts. */ - public final static String Contacts = "task:Contacts"; - - /** The Constant DelegationState. */ - public final static String DelegationState = "task:DelegationState"; - - /** The Constant Delegator. */ - public final static String Delegator = "task:Delegator"; - - /** The Constant DueDate. */ - public final static String DueDate = "task:DueDate"; - - /** The Constant IsAssignmentEditable. */ - public final static String IsAssignmentEditable = - "task:IsAssignmentEditable"; - - /** The Constant IsComplete. */ - public final static String IsComplete = "task:IsComplete"; - - /** The Constant IsRecurring. */ - public final static String IsRecurring = "task:IsRecurring"; - - /** The Constant IsTeamTask. */ - public final static String IsTeamTask = "task:IsTeamTask"; - - /** The Constant Mileage. */ - public final static String Mileage = "task:Mileage"; - - /** The Constant Owner. */ - public final static String Owner = "task:Owner"; - - /** The Constant PercentComplete. */ - public final static String PercentComplete = "task:PercentComplete"; - - /** The Constant Recurrence. */ - public final static String Recurrence = "task:Recurrence"; - - /** The Constant StartDate. */ - public final static String StartDate = "task:StartDate"; - - /** The Constant Status. */ - public final static String Status = "task:Status"; - - /** The Constant StatusDescription. */ - public final static String StatusDescription = "task:StatusDescription"; - - /** The Constant TotalWork. */ - public final static String TotalWork = "task:TotalWork"; - } - - /** - * Defines the ActualWork property. - */ - public static final PropertyDefinition ActualWork = - new IntPropertyDefinition( - XmlElementNames.ActualWork, FieldUris.ActualWork, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - - true); // isNullable - - /** - * Defines the AssignedTime property. - */ - public static final PropertyDefinition AssignedTime = - new DateTimePropertyDefinition( - XmlElementNames.AssignedTime, FieldUris.AssignedTime, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); - - /** - * Defines the BillingInformation property. - */ - public static final PropertyDefinition BillingInformation = - new StringPropertyDefinition( - XmlElementNames.BillingInformation, FieldUris.BillingInformation, - EnumSet.of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the ChangeCount property. - */ - public static final PropertyDefinition ChangeCount = - new IntPropertyDefinition( - XmlElementNames.ChangeCount, FieldUris.ChangeCount, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Companies property. - */ - public static final PropertyDefinition Companies = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Companies, FieldUris.Companies, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the CompleteDate property. - */ - public static final PropertyDefinition CompleteDate = - new DateTimePropertyDefinition( - XmlElementNames.CompleteDate, FieldUris.CompleteDate, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - /** - * Defines the Contacts property. - */ - public static final PropertyDefinition Contacts = - new ComplexPropertyDefinition( - StringList.class, - XmlElementNames.Contacts, FieldUris.Contacts, EnumSet.of( - PropertyDefinitionFlags.AutoInstantiateOnRead, - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, - new ICreateComplexPropertyDelegate() { - public StringList createComplexProperty() { - return new StringList(); - } - }); - - /** - * Defines the DelegationState property. - */ - public static final PropertyDefinition DelegationState = - new TaskDelegationStatePropertyDefinition( - XmlElementNames.DelegationState, FieldUris.DelegationState, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Delegator property. - */ - public static final PropertyDefinition Delegator = - new StringPropertyDefinition( - XmlElementNames.Delegator, FieldUris.Delegator, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the DueDate property. - */ - public static final PropertyDefinition DueDate = - new DateTimePropertyDefinition( - XmlElementNames.DueDate, FieldUris.DueDate, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - /** - * Defines the Mode property. - */ - public static final PropertyDefinition Mode = - new GenericPropertyDefinition( - TaskMode.class, - XmlElementNames.IsAssignmentEditable, - FieldUris.IsAssignmentEditable, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsComplete property. - */ - public static final PropertyDefinition IsComplete = - new BoolPropertyDefinition( - XmlElementNames.IsComplete, FieldUris.IsComplete, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsRecurring property. - */ - public static final PropertyDefinition IsRecurring = - new BoolPropertyDefinition( - XmlElementNames.IsRecurring, FieldUris.IsRecurring, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the IsTeamTask property. - */ - public static final PropertyDefinition IsTeamTask = - new BoolPropertyDefinition( - XmlElementNames.IsTeamTask, FieldUris.IsTeamTask, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Mileage property. - */ - public static final PropertyDefinition Mileage = - new StringPropertyDefinition( - XmlElementNames.Mileage, FieldUris.Mileage, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Owner property. - */ - public static final PropertyDefinition Owner = new StringPropertyDefinition( - XmlElementNames.Owner, FieldUris.Owner, EnumSet - .of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the PercentComplete property. - */ - public static final PropertyDefinition PercentComplete = - new DoublePropertyDefinition( - XmlElementNames.PercentComplete, FieldUris.PercentComplete, EnumSet - .of(PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the Recurrence property. - */ - public static final PropertyDefinition Recurrence = - new RecurrencePropertyDefinition( - XmlElementNames.Recurrence, FieldUris.Recurrence, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the StartDate property. - */ - public static final PropertyDefinition StartDate = - new DateTimePropertyDefinition( - XmlElementNames.StartDate, FieldUris.StartDate, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - /** - * Defines the Status property. - */ - public static final PropertyDefinition Status = - new GenericPropertyDefinition( - TaskStatus.class, - XmlElementNames.Status, FieldUris.Status, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the StatusDescription property. - */ - public static final PropertyDefinition StatusDescription = - new StringPropertyDefinition( - XmlElementNames.StatusDescription, FieldUris.StatusDescription, - EnumSet.of(PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1); - - /** - * Defines the TotalWork property. - */ - public static final PropertyDefinition TotalWork = - new IntPropertyDefinition( - XmlElementNames.TotalWork, FieldUris.TotalWork, EnumSet.of( - PropertyDefinitionFlags.CanSet, - PropertyDefinitionFlags.CanUpdate, - PropertyDefinitionFlags.CanDelete, - PropertyDefinitionFlags.CanFind), - ExchangeVersion.Exchange2007_SP1, true); // isNullable - - /** This must be declared after the property definitions. */ - protected static final TaskSchema Instance = new TaskSchema(); - - /** - * This must be declared after the property definitions. - */ - @Override - protected void registerProperties() { - super.registerProperties(); - - this.registerProperty(ActualWork); - this.registerProperty(AssignedTime); - this.registerProperty(BillingInformation); - this.registerProperty(ChangeCount); - this.registerProperty(Companies); - this.registerProperty(CompleteDate); - this.registerProperty(Contacts); - this.registerProperty(DelegationState); - this.registerProperty(Delegator); - this.registerProperty(DueDate); - this.registerProperty(Mode); - this.registerProperty(IsComplete); - this.registerProperty(IsRecurring); - this.registerProperty(IsTeamTask); - this.registerProperty(Mileage); - this.registerProperty(Owner); - this.registerProperty(PercentComplete); - this.registerProperty(Recurrence); - this.registerProperty(StartDate); - this.registerProperty(Status); - this.registerProperty(StatusDescription); - this.registerProperty(TotalWork); - } - - /** - * Initializes a new instance of the class. - */ - TaskSchema() { - super(); - } + /** + * Field URIs for tasks. + */ + private static class FieldUris { + + /** + * The Constant ActualWork. + */ + public final static String ActualWork = "task:ActualWork"; + + /** + * The Constant AssignedTime. + */ + public final static String AssignedTime = "task:AssignedTime"; + + /** + * The Constant BillingInformation. + */ + public final static String BillingInformation = + "task:BillingInformation"; + + /** + * The Constant ChangeCount. + */ + public final static String ChangeCount = "task:ChangeCount"; + + /** + * The Constant Companies. + */ + public final static String Companies = "task:Companies"; + + /** + * The Constant CompleteDate. + */ + public final static String CompleteDate = "task:CompleteDate"; + + /** + * The Constant Contacts. + */ + public final static String Contacts = "task:Contacts"; + + /** + * The Constant DelegationState. + */ + public final static String DelegationState = "task:DelegationState"; + + /** + * The Constant Delegator. + */ + public final static String Delegator = "task:Delegator"; + + /** + * The Constant DueDate. + */ + public final static String DueDate = "task:DueDate"; + + /** + * The Constant IsAssignmentEditable. + */ + public final static String IsAssignmentEditable = + "task:IsAssignmentEditable"; + + /** + * The Constant IsComplete. + */ + public final static String IsComplete = "task:IsComplete"; + + /** + * The Constant IsRecurring. + */ + public final static String IsRecurring = "task:IsRecurring"; + + /** + * The Constant IsTeamTask. + */ + public final static String IsTeamTask = "task:IsTeamTask"; + + /** + * The Constant Mileage. + */ + public final static String Mileage = "task:Mileage"; + + /** + * The Constant Owner. + */ + public final static String Owner = "task:Owner"; + + /** + * The Constant PercentComplete. + */ + public final static String PercentComplete = "task:PercentComplete"; + + /** + * The Constant Recurrence. + */ + public final static String Recurrence = "task:Recurrence"; + + /** + * The Constant StartDate. + */ + public final static String StartDate = "task:StartDate"; + + /** + * The Constant Status. + */ + public final static String Status = "task:Status"; + + /** + * The Constant StatusDescription. + */ + public final static String StatusDescription = "task:StatusDescription"; + + /** + * The Constant TotalWork. + */ + public final static String TotalWork = "task:TotalWork"; + } + + + /** + * Defines the ActualWork property. + */ + public static final PropertyDefinition ActualWork = + new IntPropertyDefinition( + XmlElementNames.ActualWork, FieldUris.ActualWork, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + + true); // isNullable + + /** + * Defines the AssignedTime property. + */ + public static final PropertyDefinition AssignedTime = + new DateTimePropertyDefinition( + XmlElementNames.AssignedTime, FieldUris.AssignedTime, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); + + /** + * Defines the BillingInformation property. + */ + public static final PropertyDefinition BillingInformation = + new StringPropertyDefinition( + XmlElementNames.BillingInformation, FieldUris.BillingInformation, + EnumSet.of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the ChangeCount property. + */ + public static final PropertyDefinition ChangeCount = + new IntPropertyDefinition( + XmlElementNames.ChangeCount, FieldUris.ChangeCount, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Companies property. + */ + public static final PropertyDefinition Companies = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Companies, FieldUris.Companies, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the CompleteDate property. + */ + public static final PropertyDefinition CompleteDate = + new DateTimePropertyDefinition( + XmlElementNames.CompleteDate, FieldUris.CompleteDate, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + /** + * Defines the Contacts property. + */ + public static final PropertyDefinition Contacts = + new ComplexPropertyDefinition( + StringList.class, + XmlElementNames.Contacts, FieldUris.Contacts, EnumSet.of( + PropertyDefinitionFlags.AutoInstantiateOnRead, + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, + new ICreateComplexPropertyDelegate() { + public StringList createComplexProperty() { + return new StringList(); + } + }); + + /** + * Defines the DelegationState property. + */ + public static final PropertyDefinition DelegationState = + new TaskDelegationStatePropertyDefinition( + XmlElementNames.DelegationState, FieldUris.DelegationState, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Delegator property. + */ + public static final PropertyDefinition Delegator = + new StringPropertyDefinition( + XmlElementNames.Delegator, FieldUris.Delegator, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the DueDate property. + */ + public static final PropertyDefinition DueDate = + new DateTimePropertyDefinition( + XmlElementNames.DueDate, FieldUris.DueDate, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + /** + * Defines the Mode property. + */ + public static final PropertyDefinition Mode = + new GenericPropertyDefinition( + TaskMode.class, + XmlElementNames.IsAssignmentEditable, + FieldUris.IsAssignmentEditable, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsComplete property. + */ + public static final PropertyDefinition IsComplete = + new BoolPropertyDefinition( + XmlElementNames.IsComplete, FieldUris.IsComplete, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsRecurring property. + */ + public static final PropertyDefinition IsRecurring = + new BoolPropertyDefinition( + XmlElementNames.IsRecurring, FieldUris.IsRecurring, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the IsTeamTask property. + */ + public static final PropertyDefinition IsTeamTask = + new BoolPropertyDefinition( + XmlElementNames.IsTeamTask, FieldUris.IsTeamTask, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Mileage property. + */ + public static final PropertyDefinition Mileage = + new StringPropertyDefinition( + XmlElementNames.Mileage, FieldUris.Mileage, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Owner property. + */ + public static final PropertyDefinition Owner = new StringPropertyDefinition( + XmlElementNames.Owner, FieldUris.Owner, EnumSet + .of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the PercentComplete property. + */ + public static final PropertyDefinition PercentComplete = + new DoublePropertyDefinition( + XmlElementNames.PercentComplete, FieldUris.PercentComplete, EnumSet + .of(PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the Recurrence property. + */ + public static final PropertyDefinition Recurrence = + new RecurrencePropertyDefinition( + XmlElementNames.Recurrence, FieldUris.Recurrence, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the StartDate property. + */ + public static final PropertyDefinition StartDate = + new DateTimePropertyDefinition( + XmlElementNames.StartDate, FieldUris.StartDate, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + /** + * Defines the Status property. + */ + public static final PropertyDefinition Status = + new GenericPropertyDefinition( + TaskStatus.class, + XmlElementNames.Status, FieldUris.Status, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the StatusDescription property. + */ + public static final PropertyDefinition StatusDescription = + new StringPropertyDefinition( + XmlElementNames.StatusDescription, FieldUris.StatusDescription, + EnumSet.of(PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1); + + /** + * Defines the TotalWork property. + */ + public static final PropertyDefinition TotalWork = + new IntPropertyDefinition( + XmlElementNames.TotalWork, FieldUris.TotalWork, EnumSet.of( + PropertyDefinitionFlags.CanSet, + PropertyDefinitionFlags.CanUpdate, + PropertyDefinitionFlags.CanDelete, + PropertyDefinitionFlags.CanFind), + ExchangeVersion.Exchange2007_SP1, true); // isNullable + + /** + * This must be declared after the property definitions. + */ + protected static final TaskSchema Instance = new TaskSchema(); + + /** + * This must be declared after the property definitions. + */ + @Override + protected void registerProperties() { + super.registerProperties(); + + this.registerProperty(ActualWork); + this.registerProperty(AssignedTime); + this.registerProperty(BillingInformation); + this.registerProperty(ChangeCount); + this.registerProperty(Companies); + this.registerProperty(CompleteDate); + this.registerProperty(Contacts); + this.registerProperty(DelegationState); + this.registerProperty(Delegator); + this.registerProperty(DueDate); + this.registerProperty(Mode); + this.registerProperty(IsComplete); + this.registerProperty(IsRecurring); + this.registerProperty(IsTeamTask); + this.registerProperty(Mileage); + this.registerProperty(Owner); + this.registerProperty(PercentComplete); + this.registerProperty(Recurrence); + this.registerProperty(StartDate); + this.registerProperty(Status); + this.registerProperty(StatusDescription); + this.registerProperty(TotalWork); + } + + /** + * Initializes a new instance of the class. + */ + TaskSchema() { + super(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java index 9db7f25f9..be68f702e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java @@ -15,24 +15,34 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum TaskStatus { - // The execution of the task is not started. - /** The Not started. */ - NotStarted, - - // The execution of the task is in progress. - /** The In progress. */ - InProgress, - - // The execution of the task is completed. - /** The Completed. */ - Completed, - - // The execution of the task is waiting on others. - /** The Waiting on others. */ - WaitingOnOthers, - - // The execution of the task is deferred. - /** The Deferred. */ - Deferred + // The execution of the task is not started. + /** + * The Not started. + */ + NotStarted, + + // The execution of the task is in progress. + /** + * The In progress. + */ + InProgress, + + // The execution of the task is completed. + /** + * The Completed. + */ + Completed, + + // The execution of the task is waiting on others. + /** + * The Waiting on others. + */ + WaitingOnOthers, + + // The execution of the task is deferred. + /** + * The Deferred. + */ + Deferred } diff --git a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java index 7321fa6a7..9701e7baf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java @@ -14,107 +14,91 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a folder containing task items. */ @ServiceObjectDefinition(xmlElementName = XmlElementNames.TasksFolder) -public class TasksFolder extends Folder{ +public class TasksFolder extends Folder { - /** - * Initializes an unsaved local instance of the class. - * - * @param service - * the service - * @throws Exception - * the exception - */ - public TasksFolder(ExchangeService service) throws Exception { - super(service); - } + /** + * Initializes an unsaved local instance of the class. + * + * @param service the service + * @throws Exception the exception + */ + public TasksFolder(ExchangeService service) throws Exception { + super(service); + } - /** - * Binds to an existing tasks folder and loads the specified set of - * properties. Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @param propertySet - * the property set - * @return A TasksFolder instance representing the task folder corresponding - * to the specified Id. - * @throws Exception - * the exception - */ - public static TasksFolder bind(ExchangeService service, FolderId id, - PropertySet propertySet) throws Exception { - return service.bindToFolder(TasksFolder.class, id, propertySet); - } + /** + * Binds to an existing tasks folder and loads the specified set of + * properties. Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @param propertySet the property set + * @return A TasksFolder instance representing the task folder corresponding + * to the specified Id. + * @throws Exception the exception + */ + public static TasksFolder bind(ExchangeService service, FolderId id, + PropertySet propertySet) throws Exception { + return service.bindToFolder(TasksFolder.class, id, propertySet); + } - /** - * Binds to an existing tasks folder and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param id - * the id - * @return A TasksFolder instance representing the task folder corresponding - * to the specified Id. - * @throws Exception - * the exception - */ - public static TasksFolder bind(ExchangeService service, FolderId id) - throws Exception { - return TasksFolder.bind(service, id, PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing tasks folder and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param id the id + * @return A TasksFolder instance representing the task folder corresponding + * to the specified Id. + * @throws Exception the exception + */ + public static TasksFolder bind(ExchangeService service, FolderId id) + throws Exception { + return TasksFolder.bind(service, id, PropertySet + .getFirstClassProperties()); + } - /** - * Binds to an existing tasks folder and loads specified set of properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @param propertySet - * the property set - * @return A TasksFolder instance representing the tasks folder with the - * specified name. - * @throws Exception - * the exception - */ - public static TasksFolder bind(ExchangeService service, - WellKnownFolderName name, PropertySet propertySet) - throws Exception { - return TasksFolder.bind(service, new FolderId(name), propertySet); - } + /** + * Binds to an existing tasks folder and loads specified set of properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @param propertySet the property set + * @return A TasksFolder instance representing the tasks folder with the + * specified name. + * @throws Exception the exception + */ + public static TasksFolder bind(ExchangeService service, + WellKnownFolderName name, PropertySet propertySet) + throws Exception { + return TasksFolder.bind(service, new FolderId(name), propertySet); + } - /** - * Binds to an existing tasks folder and loads its first class properties. - * Calling this method results in a call to EWS. - * - * @param service - * the service - * @param name - * the name - * @return A TasksFolder instance representing the tasks folder with the - * specified name. - * @throws Exception - * the exception - */ - public static TasksFolder bind(ExchangeService service, - WellKnownFolderName name) throws Exception { - return TasksFolder.bind(service, new FolderId(name), PropertySet - .getFirstClassProperties()); - } + /** + * Binds to an existing tasks folder and loads its first class properties. + * Calling this method results in a call to EWS. + * + * @param service the service + * @param name the name + * @return A TasksFolder instance representing the tasks folder with the + * specified name. + * @throws Exception the exception + */ + public static TasksFolder bind(ExchangeService service, + WellKnownFolderName name) throws Exception { + return TasksFolder.bind(service, new FolderId(name), PropertySet + .getFirstClassProperties()); + } - /** - * Gets the minimum required server version. - * - * @return Earliest Exchange version in which this service object type is - * supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } + /** + * Gets the minimum required server version. + * + * @return Earliest Exchange version in which this service object type is + * supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index b7c4dbe3b..c885b3463 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -16,169 +16,162 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents time. */ final class Time { - - /** The hours. */ - private int hours; - - /** The minutes. */ - private int minutes; - - /** The seconds. */ - private int seconds; - - /** - * Initializes a new instance of Time. - */ - protected Time() { - } - - /** - * Initializes a new instance of Time. - * - * @param minutes - * The number of minutes since 12:00AM. - * @throws ArgumentException - * the argument exception - */ - - protected Time(int minutes) throws ArgumentException { - this(); - if (minutes < 0 || minutes >= 1440) { - throw new ArgumentException(String.format("%s,%s", - Strings.MinutesMustBeBetween0And1439, "minutes")); - } - - this.hours = minutes / 60; - this.minutes = minutes % 60; - this.seconds = 0; - } - - /** - * Initializes a new instance of Time. - * - * @param dateTime - * the date time - * @throws ArgumentException - * the argument exception - */ - protected Time(Date dateTime) throws ArgumentException { - this.setHours(dateTime.getHours()); - this.setMinutes(dateTime.getMinutes()); - this.setSeconds(dateTime.getSeconds()); - } - - /** - * Initializes a new instance of Time. - * - * @param hours - * the hours - * @param minutes - * the minutes - * @param seconds - * the seconds - */ - protected Time(int hours, int minutes, int seconds) { - this(); - this.hours = hours; - this.minutes = minutes; - this.seconds = seconds; - } - - /** - * Convert Time to XML Schema time. - * - * @return String in XML Schema time format - */ - - protected String toXSTime() { - return String.format("%s,%s,%s,%s","{0:00}:{1:00}:{2:00}", - this.getHours(), this - .getMinutes(), this.getSeconds()); - } - - /** - * Converts the time into a number of minutes since 12:00AM. - * - * @return The number of minutes since 12:00AM the time represents. - */ - - protected int convertToMinutes() { - return this.getMinutes() + (this.getHours() * 60); - } - - /** - * Gets the hours. - * - * @return the hours - */ - protected int getHours() { - return this.hours; - } - - /** - * sets the hours. - * - * @param value - * the new hours - * @throws ArgumentException - * the argument exception - */ - - protected void setHours(int value) throws ArgumentException { - if (value >= 0 && value < 24) { - this.hours = value; - } else { - throw new ArgumentException(Strings.HourMustBeBetween0And23); - } - } - - /** - * Gets the minutes. - * - * @return the minutes - */ - protected int getMinutes() { - return this.minutes; - } - - /** - * Sets the minutes. - * - * @param value - * the new minutes - * @throws ArgumentException - * the argument exception - */ - protected void setMinutes(int value) throws ArgumentException { - if (value >= 0 && value < 60) { - this.minutes = value; - } else { - throw new ArgumentException(Strings.MinuteMustBeBetween0And59); - } - } - - /** - * Gets the seconds. - * - * @return the seconds - */ - protected int getSeconds() { - return this.seconds; - } - - /** - * Sets the seconds. - * - * @param value - * the new seconds - * @throws ArgumentException - * the argument exception - */ - protected void setSeconds(int value) throws ArgumentException { - if (value >= 0 && value < 60) { - this.seconds = value; - } else { - throw new ArgumentException(Strings.SecondMustBeBetween0And59); - } - } + + /** + * The hours. + */ + private int hours; + + /** + * The minutes. + */ + private int minutes; + + /** + * The seconds. + */ + private int seconds; + + /** + * Initializes a new instance of Time. + */ + protected Time() { + } + + /** + * Initializes a new instance of Time. + * + * @param minutes The number of minutes since 12:00AM. + * @throws ArgumentException the argument exception + */ + + protected Time(int minutes) throws ArgumentException { + this(); + if (minutes < 0 || minutes >= 1440) { + throw new ArgumentException(String.format("%s,%s", + Strings.MinutesMustBeBetween0And1439, "minutes")); + } + + this.hours = minutes / 60; + this.minutes = minutes % 60; + this.seconds = 0; + } + + /** + * Initializes a new instance of Time. + * + * @param dateTime the date time + * @throws ArgumentException the argument exception + */ + protected Time(Date dateTime) throws ArgumentException { + this.setHours(dateTime.getHours()); + this.setMinutes(dateTime.getMinutes()); + this.setSeconds(dateTime.getSeconds()); + } + + /** + * Initializes a new instance of Time. + * + * @param hours the hours + * @param minutes the minutes + * @param seconds the seconds + */ + protected Time(int hours, int minutes, int seconds) { + this(); + this.hours = hours; + this.minutes = minutes; + this.seconds = seconds; + } + + /** + * Convert Time to XML Schema time. + * + * @return String in XML Schema time format + */ + + protected String toXSTime() { + return String.format("%s,%s,%s,%s", "{0:00}:{1:00}:{2:00}", + this.getHours(), this + .getMinutes(), this.getSeconds()); + } + + /** + * Converts the time into a number of minutes since 12:00AM. + * + * @return The number of minutes since 12:00AM the time represents. + */ + + protected int convertToMinutes() { + return this.getMinutes() + (this.getHours() * 60); + } + + /** + * Gets the hours. + * + * @return the hours + */ + protected int getHours() { + return this.hours; + } + + /** + * sets the hours. + * + * @param value the new hours + * @throws ArgumentException the argument exception + */ + + protected void setHours(int value) throws ArgumentException { + if (value >= 0 && value < 24) { + this.hours = value; + } else { + throw new ArgumentException(Strings.HourMustBeBetween0And23); + } + } + + /** + * Gets the minutes. + * + * @return the minutes + */ + protected int getMinutes() { + return this.minutes; + } + + /** + * Sets the minutes. + * + * @param value the new minutes + * @throws ArgumentException the argument exception + */ + protected void setMinutes(int value) throws ArgumentException { + if (value >= 0 && value < 60) { + this.minutes = value; + } else { + throw new ArgumentException(Strings.MinuteMustBeBetween0And59); + } + } + + /** + * Gets the seconds. + * + * @return the seconds + */ + protected int getSeconds() { + return this.seconds; + } + + /** + * Sets the seconds. + * + * @param value the new seconds + * @throws ArgumentException the argument exception + */ + protected void setSeconds(int value) throws ArgumentException { + if (value >= 0 && value < 60) { + this.seconds = value; + } else { + throw new ArgumentException(Strings.SecondMustBeBetween0And59); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java index 297005575..7f68043c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java @@ -18,258 +18,253 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class TimeChange extends ComplexProperty { - /** The time zone name. */ - private String timeZoneName; + /** + * The time zone name. + */ + private String timeZoneName; - /** The offset. */ - private TimeSpan offset; + /** + * The offset. + */ + private TimeSpan offset; - /** The time. */ - private Time time; + /** + * The time. + */ + private Time time; - /** The absolute date. */ - private Date absoluteDate; + /** + * The absolute date. + */ + private Date absoluteDate; - /** The recurrence. */ - private TimeChangeRecurrence recurrence; + /** + * The recurrence. + */ + private TimeChangeRecurrence recurrence; - /** - *Initializes a new instance of the "TimeChange" class. - */ - public TimeChange() { - super(); - } + /** + * Initializes a new instance of the "TimeChange" class. + */ + public TimeChange() { + super(); + } - /** - * Initializes a new instance of the class. - * - * @param offset - * The offset since the beginning of the year when the change - * occurs. - */ - public TimeChange(TimeSpan offset) { - this(); - this.offset = offset; - } + /** + * Initializes a new instance of the class. + * + * @param offset The offset since the beginning of the year when the change + * occurs. + */ + public TimeChange(TimeSpan offset) { + this(); + this.offset = offset; + } - /** - * Initializes a new instance of the "TimeChange" class. - * - * @param offset - * The offset since the beginning of the year when the change - * occurs. - * @param time - * The time at which the change occurs. - */ - public TimeChange(TimeSpan offset, Time time) { - this(offset); - this.time = time; - } + /** + * Initializes a new instance of the "TimeChange" class. + * + * @param offset The offset since the beginning of the year when the change + * occurs. + * @param time The time at which the change occurs. + */ + public TimeChange(TimeSpan offset, Time time) { + this(offset); + this.time = time; + } - /** - * Gets the name of the associated time zone. - * - * @return the timeZoneName - */ - public String getTimeZoneName() { - return timeZoneName; - } + /** + * Gets the name of the associated time zone. + * + * @return the timeZoneName + */ + public String getTimeZoneName() { + return timeZoneName; + } - /** - * Sets the name of the associated time zone. - * - * @param timeZoneName - * the timeZoneName to set - */ - public void setTimeZoneName(String timeZoneName) { - this.timeZoneName = timeZoneName; - } + /** + * Sets the name of the associated time zone. + * + * @param timeZoneName the timeZoneName to set + */ + public void setTimeZoneName(String timeZoneName) { + this.timeZoneName = timeZoneName; + } - /** - * Gets the offset since the beginning of the year when the change occurs. - * - * @return the offset - */ - public TimeSpan getOffset() { - return offset; - } + /** + * Gets the offset since the beginning of the year when the change occurs. + * + * @return the offset + */ + public TimeSpan getOffset() { + return offset; + } - /** - * Sets the offset since the beginning of the year when the change occurs. - * - * @param offset - * the offset to set - */ - public void setOffset(TimeSpan offset) { - this.offset = offset; - } + /** + * Sets the offset since the beginning of the year when the change occurs. + * + * @param offset the offset to set + */ + public void setOffset(TimeSpan offset) { + this.offset = offset; + } - /** - * Gets the time. - * - * @return the time - */ - public Time getTime() { - return time; - } + /** + * Gets the time. + * + * @return the time + */ + public Time getTime() { + return time; + } - /** - * Sets the time. - * - * @param time - * the time to set - */ - public void setTime(Time time) { - this.time = time; - } + /** + * Sets the time. + * + * @param time the time to set + */ + public void setTime(Time time) { + this.time = time; + } - /** - * Gets the absolute date. - * - * @return the absoluteDate - */ - public Date getAbsoluteDate() { - return absoluteDate; - } + /** + * Gets the absolute date. + * + * @return the absoluteDate + */ + public Date getAbsoluteDate() { + return absoluteDate; + } - /** - * Sets the absolute date. - * - * @param absoluteDate - * the absoluteDate to set - */ - public void setAbsoluteDate(Date absoluteDate) { - this.absoluteDate = absoluteDate; - if (absoluteDate != null) { - this.recurrence = null; - } - } + /** + * Sets the absolute date. + * + * @param absoluteDate the absoluteDate to set + */ + public void setAbsoluteDate(Date absoluteDate) { + this.absoluteDate = absoluteDate; + if (absoluteDate != null) { + this.recurrence = null; + } + } - /** - * Gets the recurrence. - * - * @return the recurrence - */ - public TimeChangeRecurrence getRecurrence() { - return recurrence; - } + /** + * Gets the recurrence. + * + * @return the recurrence + */ + public TimeChangeRecurrence getRecurrence() { + return recurrence; + } - /** - * Sets the recurrence. - * - * @param recurrence - * the recurrence to set - */ - public void setRecurrence(TimeChangeRecurrence recurrence) { - this.recurrence = recurrence; - if (this.recurrence != null) { - this.absoluteDate = null; - } - } + /** + * Sets the recurrence. + * + * @param recurrence the recurrence to set + */ + public void setRecurrence(TimeChangeRecurrence recurrence) { + this.recurrence = recurrence; + if (this.recurrence != null) { + this.absoluteDate = null; + } + } - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Offset)) { - this.offset = EwsUtilities.getXSDurationToTimeSpan(reader - .readElementValue()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.RelativeYearlyRecurrence)) { - this.recurrence = new TimeChangeRecurrence(); - this.recurrence.loadFromXml(reader, reader.getLocalName()); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.AbsoluteDate)) { - SimpleDateFormat sdfin = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - Date tempDate = sdfin.parse(reader.readElementValue()); - this.absoluteDate = tempDate; - return true; - } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Time)) { - SimpleDateFormat sdfin = new SimpleDateFormat( - "yyyy-MM-dd'T'HH:mm:ss"); - Date tempDate = sdfin.parse(reader.readElementValue()); - this.time = new Time(tempDate); - return true; - } else { - return false; - } - } + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Offset)) { + this.offset = EwsUtilities.getXSDurationToTimeSpan(reader + .readElementValue()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.RelativeYearlyRecurrence)) { + this.recurrence = new TimeChangeRecurrence(); + this.recurrence.loadFromXml(reader, reader.getLocalName()); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.AbsoluteDate)) { + SimpleDateFormat sdfin = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + Date tempDate = sdfin.parse(reader.readElementValue()); + this.absoluteDate = tempDate; + return true; + } else if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.Time)) { + SimpleDateFormat sdfin = new SimpleDateFormat( + "yyyy-MM-dd'T'HH:mm:ss"); + Date tempDate = sdfin.parse(reader.readElementValue()); + this.time = new Time(tempDate); + return true; + } else { + return false; + } + } - /** - * Reads the attributes from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @throws Exception - * throws Exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.timeZoneName = reader - .readAttributeValue(XmlAttributeNames.TimeZoneName); - } + /** + * Reads the attributes from XML. + * + * @param reader accepts EwsServiceXmlReader + * @throws Exception throws Exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.timeZoneName = reader + .readAttributeValue(XmlAttributeNames.TimeZoneName); + } - /** - * Writes the attributes to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) { - try { - writer.writeAttributeValue(XmlAttributeNames.TimeZoneName, - this.timeZoneName); - } catch (ServiceXmlSerializationException e) { - e.printStackTrace(); - } - } + /** + * Writes the attributes to XML. + * + * @param writer accepts EwsServiceXmlWriter + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) { + try { + writer.writeAttributeValue(XmlAttributeNames.TimeZoneName, + this.timeZoneName); + } catch (ServiceXmlSerializationException e) { + e.printStackTrace(); + } + } - /** - * Writes elements to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws Exception - * throws Exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.offset != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.Offset, EwsUtilities - .getTimeSpanToXSDuration(this.getOffset())); - } + /** + * Writes elements to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws Exception throws Exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.offset != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.Offset, EwsUtilities + .getTimeSpanToXSDuration(this.getOffset())); + } - if (this.recurrence != null) { - this.recurrence.writeToXml(writer, - XmlElementNames.RelativeYearlyRecurrence); - } + if (this.recurrence != null) { + this.recurrence.writeToXml(writer, + XmlElementNames.RelativeYearlyRecurrence); + } - if (this.absoluteDate != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.AbsoluteDate, EwsUtilities - .dateTimeToXSDate(this.getAbsoluteDate())); - } + if (this.absoluteDate != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.AbsoluteDate, EwsUtilities + .dateTimeToXSDate(this.getAbsoluteDate())); + } - if (this.time != null) { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, - this.getTime().toXSTime()); - } - } + if (this.time != null) { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Time, + this.getTime().toXSTime()); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java index 42fe4f042..d289c38a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java @@ -12,166 +12,161 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; -/*** +/** * Represents a recurrence pattern for a time change in a time zone. */ final class TimeChangeRecurrence extends ComplexProperty { - /** The day of the week. */ - private DayOfTheWeek dayOfTheWeek; - - /** The day of the week index. */ - private DayOfTheWeekIndex dayOfTheWeekIndex; - - /** The month. */ - private Month month; - - /** - * Initializes a new instance of the TimeChangeRecurrence class. - */ - public TimeChangeRecurrence() { - super(); - } - - /** - * Initializes a new instance of the TimeChangeRecurrence class. - * - * @param dayOfTheWeekIndex - * the day of the week index - * @param dayOfTheWeek - * the day of the week - * @param month - * the month - */ - public TimeChangeRecurrence(DayOfTheWeekIndex dayOfTheWeekIndex, - DayOfTheWeek dayOfTheWeek, Month month) { - this(); - this.dayOfTheWeekIndex = dayOfTheWeekIndex; - this.dayOfTheWeek = dayOfTheWeek; - this.month = month; - } - - /** - * Gets the day of the week the time change occurs. - * - * @return the day of the week - */ - public DayOfTheWeek getDayOfTheWeek() { - return dayOfTheWeek; - } - - /** - * Sets the day of the week. - * - * @param dayOfTheWeek - * the new day of the week - */ - public void setDayOfTheWeek(DayOfTheWeek dayOfTheWeek) { - if (this.canSetFieldValue(this.dayOfTheWeek, dayOfTheWeek)) { - this.dayOfTheWeek = dayOfTheWeek; - this.changed(); - } - } - - /** - * Gets the index of the day in the month at which the time change - * occurs. - * - * @return the day of the week index - */ - public DayOfTheWeekIndex getDayOfTheWeekIndex() { - return dayOfTheWeekIndex; - } - - /** - * Sets the day of the week index. - * - * @param dayOfTheWeekIndex - * the new day of the week index - */ - public void setDayOfTheWeekIndex(DayOfTheWeekIndex dayOfTheWeekIndex) { - if (this.canSetFieldValue(this.dayOfTheWeekIndex, dayOfTheWeekIndex)) { - this.dayOfTheWeekIndex = dayOfTheWeekIndex; - this.changed(); - } - } - - /** - * Gets the month the time change occurs. - * - * @return the month - */ - public Month getMonth() { - return month; - } - - /** - * Sets the month. - * - * @param month - * the new month - */ - public void setMonth(Month month) { - if (this.canSetFieldValue(this.month, month)) { - this.month = month; - this.changed(); - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - if (this.dayOfTheWeek != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DaysOfWeek, this.dayOfTheWeek); - } - - if (this.dayOfTheWeekIndex != null) { - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DayOfWeekIndex, this.dayOfTheWeekIndex); - } - - if (this.month != null) { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, - this.month); - } - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.DaysOfWeek)) { - - this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); - return true; - } else if (reader.getLocalName().equalsIgnoreCase( - XmlElementNames.DayOfWeekIndex)) { - this.dayOfTheWeekIndex = reader - .readElementValue(DayOfTheWeekIndex.class); - return true; - } else if (reader.getLocalName() - .equalsIgnoreCase(XmlElementNames.Month)) { - this.month = reader.readElementValue(Month.class); - return true; - } else { - return false; - } - } + /** + * The day of the week. + */ + private DayOfTheWeek dayOfTheWeek; + + /** + * The day of the week index. + */ + private DayOfTheWeekIndex dayOfTheWeekIndex; + + /** + * The month. + */ + private Month month; + + /** + * Initializes a new instance of the TimeChangeRecurrence class. + */ + public TimeChangeRecurrence() { + super(); + } + + /** + * Initializes a new instance of the TimeChangeRecurrence class. + * + * @param dayOfTheWeekIndex the day of the week index + * @param dayOfTheWeek the day of the week + * @param month the month + */ + public TimeChangeRecurrence(DayOfTheWeekIndex dayOfTheWeekIndex, + DayOfTheWeek dayOfTheWeek, Month month) { + this(); + this.dayOfTheWeekIndex = dayOfTheWeekIndex; + this.dayOfTheWeek = dayOfTheWeek; + this.month = month; + } + + /** + * Gets the day of the week the time change occurs. + * + * @return the day of the week + */ + public DayOfTheWeek getDayOfTheWeek() { + return dayOfTheWeek; + } + + /** + * Sets the day of the week. + * + * @param dayOfTheWeek the new day of the week + */ + public void setDayOfTheWeek(DayOfTheWeek dayOfTheWeek) { + if (this.canSetFieldValue(this.dayOfTheWeek, dayOfTheWeek)) { + this.dayOfTheWeek = dayOfTheWeek; + this.changed(); + } + } + + /** + * Gets the index of the day in the month at which the time change + * occurs. + * + * @return the day of the week index + */ + public DayOfTheWeekIndex getDayOfTheWeekIndex() { + return dayOfTheWeekIndex; + } + + /** + * Sets the day of the week index. + * + * @param dayOfTheWeekIndex the new day of the week index + */ + public void setDayOfTheWeekIndex(DayOfTheWeekIndex dayOfTheWeekIndex) { + if (this.canSetFieldValue(this.dayOfTheWeekIndex, dayOfTheWeekIndex)) { + this.dayOfTheWeekIndex = dayOfTheWeekIndex; + this.changed(); + } + } + + /** + * Gets the month the time change occurs. + * + * @return the month + */ + public Month getMonth() { + return month; + } + + /** + * Sets the month. + * + * @param month the new month + */ + public void setMonth(Month month) { + if (this.canSetFieldValue(this.month, month)) { + this.month = month; + this.changed(); + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + if (this.dayOfTheWeek != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DaysOfWeek, this.dayOfTheWeek); + } + + if (this.dayOfTheWeekIndex != null) { + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DayOfWeekIndex, this.dayOfTheWeekIndex); + } + + if (this.month != null) { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, + this.month); + } + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equalsIgnoreCase(XmlElementNames.DaysOfWeek)) { + + this.dayOfTheWeek = reader.readElementValue(DayOfTheWeek.class); + return true; + } else if (reader.getLocalName().equalsIgnoreCase( + XmlElementNames.DayOfWeekIndex)) { + this.dayOfTheWeekIndex = reader + .readElementValue(DayOfTheWeekIndex.class); + return true; + } else if (reader.getLocalName() + .equalsIgnoreCase(XmlElementNames.Month)) { + this.month = reader.readElementValue(Month.class); + return true; + } else { + return false; + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index 4ebfdae43..6f8a56d8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -15,470 +15,465 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class TimeSpan implements Comparable, java.io.Serializable, Cloneable { - /** The time. */ - private long time = 0; - - /** Constant for milliseconds unit and conversion. */ - public static final int MILLISECONDS = 1; - - /** Constant for seconds unit and conversion. */ - public static final int SECONDS = MILLISECONDS * 1000; - - /** Constant for minutes unit and conversion. */ - public static final int MINUTES = SECONDS * 60; - - /** Constant for hours unit and conversion. */ - public static final int HOURS = MINUTES * 60; - - /** Constant for days unit and conversion. */ - public static final int DAYS = HOURS * 24; - - /** Represents the Maximum TimeSpan value. */ - public static final TimeSpan MAX_VALUE = new TimeSpan(Long.MAX_VALUE); - - /** Represents the Minimum TimeSpan value. */ - public static final TimeSpan MIN_VALUE = new TimeSpan(Long.MIN_VALUE); - - /** Represents the TimeSpan with a value of zero. */ - public static final TimeSpan ZERO = new TimeSpan(0L); - - /** - * Creates a new instance of TimeSpan based on the number of milliseconds - * entered. - * - * @param time - * the number of milliseconds for this TimeSpan. - * - */ - public TimeSpan(long time) { - this.time = time; - } - - /** - * Creates a new TimeSpan object based on the unit and value entered. - * - * @param units - * the type of unit to use to create a TimeSpan instance. - * @param value - * the number of units to use to create a TimeSpan instance. - * - */ - public TimeSpan(int units, long value) { - this.time = this.toMilliseconds(units, value); - } + /** + * The time. + */ + private long time = 0; + + /** + * Constant for milliseconds unit and conversion. + */ + public static final int MILLISECONDS = 1; + + /** + * Constant for seconds unit and conversion. + */ + public static final int SECONDS = MILLISECONDS * 1000; + + /** + * Constant for minutes unit and conversion. + */ + public static final int MINUTES = SECONDS * 60; + + /** + * Constant for hours unit and conversion. + */ + public static final int HOURS = MINUTES * 60; + + /** + * Constant for days unit and conversion. + */ + public static final int DAYS = HOURS * 24; + + /** + * Represents the Maximum TimeSpan value. + */ + public static final TimeSpan MAX_VALUE = new TimeSpan(Long.MAX_VALUE); + + /** + * Represents the Minimum TimeSpan value. + */ + public static final TimeSpan MIN_VALUE = new TimeSpan(Long.MIN_VALUE); + + /** + * Represents the TimeSpan with a value of zero. + */ + public static final TimeSpan ZERO = new TimeSpan(0L); + + /** + * Creates a new instance of TimeSpan based on the number of milliseconds + * entered. + * + * @param time the number of milliseconds for this TimeSpan. + */ + public TimeSpan(long time) { + this.time = time; + } + + /** + * Creates a new TimeSpan object based on the unit and value entered. + * + * @param units the type of unit to use to create a TimeSpan instance. + * @param value the number of units to use to create a TimeSpan instance. + */ + public TimeSpan(int units, long value) { + this.time = this.toMilliseconds(units, value); + } /* - * public static TimeSpan fromMinutes(int value) { int l = value*60*100; + * public static TimeSpan fromMinutes(int value) { int l = value*60*100; * return l; } */ - /** - * Subtracts two Date objects creating a new TimeSpan object. - * - * @param date1 - * Date to use as the base value. - * @param date2 - * Date to subtract from the base value. - * - * @return a TimeSpan object representing the difference bewteen the two - * Date objects. - * - */ - public static TimeSpan subtract(java.util.Date date1, - java.util.Date date2) { - return new TimeSpan(date1.getTime() - date2.getTime()); - } - - /** - * Compares this object with the specified object for order. Returns a - * negative integer, zero, or a positive integer as this object is less - * than, equal to, or greater than the specified object. Comparison is based - * on the number of milliseconds in this TimeSpan. - * - * @param o - * the Object to be compared. - * @return a negative integer, zero, or a positive integer as this object is - * less than, equal to, or greater than the specified object. - */ - public int compareTo(Object o) { - TimeSpan compare = (TimeSpan)o; - if (this.time == compare.time) { - return 0; - } - if (this.time > compare.time) { - return +1; - } - return -1; - } - - /** - * Indicates whether some other object is "equal to" this one. Comparison is - * based on the number of milliseconds in this TimeSpan. - * - * @param obj - * the reference object with which to compare. - * @return if the obj argument is a TimeSpan object with the exact same - * number of milliseconds. otherwise. - */ - public boolean equals(Object obj) { - if (obj instanceof TimeSpan) { - TimeSpan compare = (TimeSpan)obj; - if (this.time == compare.time) { - return true; - } - } - return false; - } - - /** - * Returns a hash code value for the object. This method is supported for - * the benefit of hashtables such as those provided by - * java.util.Hashtable. The method uses the same algorithm as - * found in the Long class. - * - * @return a hash code value for this object. - * - * @see Object#equals(Object) - * @see java.util.Hashtable - * - */ - public int hashCode() { - return Long.valueOf(this.time).hashCode(); - } - - /** - * Returns a string representation of the object in the format. - * "[-]d.hh:mm:ss.ff" where "-" is an optional sign for negative TimeSpan - * values, the "d" component is days, "hh" is hours, "mm" is minutes, "ss" - * is seconds, and "ff" is milliseconds - * - * @return a string containing the number of milliseconds. - * - */ - public String toString() { - StringBuffer sb = new StringBuffer(); - long millis = this.time; - if (millis < 0) { - sb.append("-"); - millis = -millis; - } - - long day = millis / this.DAYS; - - if (day != 0) { - sb.append(day); - sb.append("d."); - millis = millis % this.DAYS; - } - - sb.append(millis / this.HOURS); - millis = millis % this.HOURS; - sb.append("h:"); - sb.append(millis / this.MINUTES); - millis = millis % this.MINUTES; - sb.append("m:"); - sb.append(millis / this.SECONDS); - sb.append("s"); - millis = millis % this.SECONDS; - if (millis != 0) { - sb.append("."); - sb.append(millis); - sb.append("ms"); - } - return sb.toString(); - } - - /** - * Returns a clone of this TimeSpan. - * - * @return a clone of this TimeSpan. - */ - public Object clone() { - try { - return super.clone(); - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - throw new InternalError(); - } - } - - /** - * Indicates whether the value of the TimeSpan is positive. - * - * @return if the value of the TimeSpan is greater than - * zero. otherwise. - */ - public boolean isPositive() { - return this.compareTo(TimeSpan.ZERO) > 0 ? true : false; - } - - /** - * Indicates whether the value of the TimeSpan is negative. - * - * @return if the value of the TimeSpan is less than zero. - * otherwise. - */ - public boolean isNegative() { - return this.compareTo(TimeSpan.ZERO) < 0 ? true : false; - } - - /** - * Indicates whether the value of the TimeSpan is zero. - * - * @return if the value of the TimeSpan is equal to zero. - * otherwise. - */ - public boolean isZero() { - return this.equals(TimeSpan.ZERO); - } - - /** - * Gets the number of milliseconds. - * - * @return the number of milliseconds. - */ - public long getMilliseconds() { - return (((this.time % this.HOURS) % this.MINUTES) % this.MILLISECONDS) / this.MILLISECONDS; - } - - /** - * Gets the number of milliseconds. - * - * @return the number of milliseconds. - */ - public long getTotalMilliseconds() { - return this.time; - } - - /** - * Gets the number of seconds (truncated). - * - * @return the number of seconds. - */ - public long getSeconds() { - return ((this.time % this.HOURS) % this.MINUTES) / this.SECONDS; - } + /** + * Subtracts two Date objects creating a new TimeSpan object. + * + * @param date1 Date to use as the base value. + * @param date2 Date to subtract from the base value. + * @return a TimeSpan object representing the difference bewteen the two + * Date objects. + */ + public static TimeSpan subtract(java.util.Date date1, + java.util.Date date2) { + return new TimeSpan(date1.getTime() - date2.getTime()); + } + + /** + * Compares this object with the specified object for order. Returns a + * negative integer, zero, or a positive integer as this object is less + * than, equal to, or greater than the specified object. Comparison is based + * on the number of milliseconds in this TimeSpan. + * + * @param o the Object to be compared. + * @return a negative integer, zero, or a positive integer as this object is + * less than, equal to, or greater than the specified object. + */ + public int compareTo(Object o) { + TimeSpan compare = (TimeSpan) o; + if (this.time == compare.time) { + return 0; + } + if (this.time > compare.time) { + return +1; + } + return -1; + } + + /** + * Indicates whether some other object is "equal to" this one. Comparison is + * based on the number of milliseconds in this TimeSpan. + * + * @param obj the reference object with which to compare. + * @return if the obj argument is a TimeSpan object with the exact same + * number of milliseconds. otherwise. + */ + public boolean equals(Object obj) { + if (obj instanceof TimeSpan) { + TimeSpan compare = (TimeSpan) obj; + if (this.time == compare.time) { + return true; + } + } + return false; + } + + /** + * Returns a hash code value for the object. This method is supported for + * the benefit of hashtables such as those provided by + * java.util.Hashtable. The method uses the same algorithm as + * found in the Long class. + * + * @return a hash code value for this object. + * @see Object#equals(Object) + * @see java.util.Hashtable + */ + public int hashCode() { + return Long.valueOf(this.time).hashCode(); + } + + /** + * Returns a string representation of the object in the format. + * "[-]d.hh:mm:ss.ff" where "-" is an optional sign for negative TimeSpan + * values, the "d" component is days, "hh" is hours, "mm" is minutes, "ss" + * is seconds, and "ff" is milliseconds + * + * @return a string containing the number of milliseconds. + */ + public String toString() { + StringBuffer sb = new StringBuffer(); + long millis = this.time; + if (millis < 0) { + sb.append("-"); + millis = -millis; + } + + long day = millis / this.DAYS; + + if (day != 0) { + sb.append(day); + sb.append("d."); + millis = millis % this.DAYS; + } + + sb.append(millis / this.HOURS); + millis = millis % this.HOURS; + sb.append("h:"); + sb.append(millis / this.MINUTES); + millis = millis % this.MINUTES; + sb.append("m:"); + sb.append(millis / this.SECONDS); + sb.append("s"); + millis = millis % this.SECONDS; + if (millis != 0) { + sb.append("."); + sb.append(millis); + sb.append("ms"); + } + return sb.toString(); + } + + /** + * Returns a clone of this TimeSpan. + * + * @return a clone of this TimeSpan. + */ + public Object clone() { + try { + return super.clone(); + } catch (CloneNotSupportedException e) { + e.printStackTrace(); + throw new InternalError(); + } + } + + /** + * Indicates whether the value of the TimeSpan is positive. + * + * @return if the value of the TimeSpan is greater than + * zero. otherwise. + */ + public boolean isPositive() { + return this.compareTo(TimeSpan.ZERO) > 0 ? true : false; + } + + /** + * Indicates whether the value of the TimeSpan is negative. + * + * @return if the value of the TimeSpan is less than zero. + * otherwise. + */ + public boolean isNegative() { + return this.compareTo(TimeSpan.ZERO) < 0 ? true : false; + } + + /** + * Indicates whether the value of the TimeSpan is zero. + * + * @return if the value of the TimeSpan is equal to zero. + * otherwise. + */ + public boolean isZero() { + return this.equals(TimeSpan.ZERO); + } + + /** + * Gets the number of milliseconds. + * + * @return the number of milliseconds. + */ + public long getMilliseconds() { + return (((this.time % this.HOURS) % this.MINUTES) % this.MILLISECONDS) / this.MILLISECONDS; + } + + /** + * Gets the number of milliseconds. + * + * @return the number of milliseconds. + */ + public long getTotalMilliseconds() { + return this.time; + } + + /** + * Gets the number of seconds (truncated). + * + * @return the number of seconds. + */ + public long getSeconds() { + + return ((this.time % this.HOURS) % this.MINUTES) / this.SECONDS; + } + + /** + * Gets the number of seconds including fractional seconds. + * + * @return the number of seconds. + */ + public double getTotalSeconds() { + return this.time / 1000.0d; + } + + /** + * Gets the number of minutes (truncated). + * + * @return the number of minutes. + */ + public long getMinutes() { + return (this.time % this.HOURS) / this.MINUTES;// (this.time/1000)/60; + } + + /** + * Gets the number of minutes including fractional minutes. + * + * @return the number of minutes. + */ + public double getTotalMinutes() { + return (this.time / 1000.0d) / 60.0d; + } + + /** + * Gets the number of hours (truncated). + * + * @return the number of hours. + */ + public long getHours() { + return ((this.time / 1000) / 60) / 60; + } + + /** + * Gets the number of hours including fractional hours. + * + * @return the number of hours. + */ + public double getTotalHours() { + return ((this.time / 1000.0d) / 60.0d) / 60.0d; + } + + /** + * Gets the number of days (truncated). + * + * @return the number of days. + */ + public long getDays() { + return (((this.time / 1000) / 60) / 60) / 24; + } + + /** + * Gets the number of days including fractional days. + * + * @return the number of days. + */ + public double getTotalDays() { + return (((this.time / 1000.0d) / 60.0d) / 60.0d) / 24.0d; + } + + /** + * Adds a TimeSpan to this TimeSpan. + * + * @param timespan the TimeSpan to add to this TimeSpan. + */ + public void add(TimeSpan timespan) { + add(this.MILLISECONDS, timespan.time); + } + + /** + * Adds a number of units to this TimeSpan. + * + * @param units the type of unit to add to this TimeSpan. + * @param value the number of units to add to this TimeSpan. + */ + public void add(int units, long value) { + this.time += this.toMilliseconds(units, value); + } + + /** + * Compares two TimeSpan objects. + * + * @param first first TimeSpan to use in the compare. + * @param second second TimeSpan to use in the compare. + * @return a negative integer, zero, or a positive integer as the first + * TimeSpan is less than, equal to, or greater than the second + * TimeSpan. + */ + public static int compare(TimeSpan first, TimeSpan second) { + if (first.time == second.time) { + return 0; + } + if (first.time > second.time) { + return +1; + } + return -1; + } + + /** + * Returns a TimeSpan whose value is the absolute value of this TimeSpan. + * + * @return a TimeSpan whose value is the absolute value of this TimeSpan. + */ + public TimeSpan duration() { + return new TimeSpan(Math.abs(this.time)); + } + + /** + * Returns a TimeSpan whose value is the negated value of this TimeSpan. + * + * @return a TimeSpan whose value is the negated value of this TimeSpan. + */ + public TimeSpan negate() { + return new TimeSpan(-this.time); + } + + /** + * Subtracts a TimeSpan from this TimeSpan. + * + * @param timespan the TimeSpan to subtract from this TimeSpan. + */ + public void subtract(TimeSpan timespan) { + subtract(this.MILLISECONDS, timespan.time); + } + + /** + * Subtracts a number of units from this TimeSpan. + * + * @param units the type of unit to subtract from this TimeSpan. + * @param value the number of units to subtract from this TimeSpan. + */ + public void subtract(int units, long value) { + add(units, -value); + } + + /** + * To milliseconds. + * + * @param units the units + * @param value the value + * @return the long + */ + private static long toMilliseconds(int units, long value) { + long millis; + switch (units) { + case TimeSpan.MILLISECONDS: + case TimeSpan.SECONDS: + case TimeSpan.MINUTES: + case TimeSpan.HOURS: + case TimeSpan.DAYS: + millis = value * units; + break; + default: + throw new IllegalArgumentException("Unrecognized units: " + units); + } + return millis; + } + + public static TimeSpan parse(String s) throws Exception { + String str = s.trim(); + String[] st1 = str.split("\\."); + int days = 0, millsec = 0, totMillSec = 0; + String data = str; + switch (st1.length) { + case 1: + data = str; + break; + case 2: + if (st1[0].split(":").length > 1) { + millsec = Integer.parseInt(st1[1]); + data = st1[0]; + } else { + days = Integer.parseInt(st1[0]); + data = st1[1]; + } + break; + case 3: + days = Integer.parseInt(st1[0]); + data = st1[1]; + millsec = Integer.parseInt(st1[2]); + break; + default: + throw new FormatException("Bad Format"); + + } + String[] st = data.split(":"); + switch (st.length) { + case 1: + totMillSec = Integer.parseInt(str) * 24 * 60 * 60 * 1000; + break; + case 2: + totMillSec = (Integer.parseInt(st[0]) * 60 * 60 * 1000) + (Integer.parseInt(st[1]) * 60 * 1000); + break; + case 3: + totMillSec = (Integer.parseInt(st[0]) * 60 * 60 * 1000) + (Integer.parseInt(st[1]) * 60 * 1000) + ( + Integer.parseInt(st[2]) * 1000); + break; + case 4: + totMillSec = + (Integer.parseInt(st[0]) * 24 * 60 * 60 * 1000) + (Integer.parseInt(st[1]) * 60 * 60 * 1000) + ( + Integer.parseInt(st[2]) * 60 * 1000) + (Integer.parseInt(st[3]) * 1000); + break; + default: + throw new FormatException("Bad Format/Overflow"); + } + totMillSec += (days * 24 * 60 * 60 * 1000) + millsec; + return new TimeSpan(totMillSec); + } - /** - * Gets the number of seconds including fractional seconds. - * - * @return the number of seconds. - */ - public double getTotalSeconds() { - return this.time / 1000.0d; - } - - /** - * Gets the number of minutes (truncated). - * - * @return the number of minutes. - */ - public long getMinutes() { - return (this.time % this.HOURS) / this.MINUTES;// (this.time/1000)/60; - } - - /** - * Gets the number of minutes including fractional minutes. - * - * @return the number of minutes. - */ - public double getTotalMinutes() { - return (this.time / 1000.0d) / 60.0d; - } - - /** - * Gets the number of hours (truncated). - * - * @return the number of hours. - */ - public long getHours() { - return ((this.time / 1000) / 60) / 60; - } - - /** - * Gets the number of hours including fractional hours. - * - * @return the number of hours. - */ - public double getTotalHours() { - return ((this.time / 1000.0d) / 60.0d) / 60.0d; - } - - /** - * Gets the number of days (truncated). - * - * @return the number of days. - */ - public long getDays() { - return (((this.time / 1000) / 60) / 60) / 24; - } - - /** - * Gets the number of days including fractional days. - * - * @return the number of days. - */ - public double getTotalDays() { - return (((this.time / 1000.0d) / 60.0d) / 60.0d) / 24.0d; - } - - /** - * Adds a TimeSpan to this TimeSpan. - * - * @param timespan - * the TimeSpan to add to this TimeSpan. - */ - public void add(TimeSpan timespan) { - add(this.MILLISECONDS, timespan.time); - } - - /** - * Adds a number of units to this TimeSpan. - * - * @param units - * the type of unit to add to this TimeSpan. - * @param value - * the number of units to add to this TimeSpan. - */ - public void add(int units, long value) { - this.time += this.toMilliseconds(units, value); - } - - /** - * Compares two TimeSpan objects. - * - * @param first - * first TimeSpan to use in the compare. - * @param second - * second TimeSpan to use in the compare. - * - * @return a negative integer, zero, or a positive integer as the first - * TimeSpan is less than, equal to, or greater than the second - * TimeSpan. - * - */ - public static int compare(TimeSpan first, TimeSpan second) { - if (first.time == second.time) { - return 0; - } - if (first.time > second.time) { - return +1; - } - return -1; - } - - /** - * Returns a TimeSpan whose value is the absolute value of this TimeSpan. - * - * @return a TimeSpan whose value is the absolute value of this TimeSpan. - */ - public TimeSpan duration() { - return new TimeSpan(Math.abs(this.time)); - } - - /** - * Returns a TimeSpan whose value is the negated value of this TimeSpan. - * - * @return a TimeSpan whose value is the negated value of this TimeSpan. - */ - public TimeSpan negate() { - return new TimeSpan(-this.time); - } - - /** - * Subtracts a TimeSpan from this TimeSpan. - * - * @param timespan - * the TimeSpan to subtract from this TimeSpan. - */ - public void subtract(TimeSpan timespan) { - subtract(this.MILLISECONDS, timespan.time); - } - - /** - * Subtracts a number of units from this TimeSpan. - * - * @param units - * the type of unit to subtract from this TimeSpan. - * @param value - * the number of units to subtract from this TimeSpan. - */ - public void subtract(int units, long value) { - add(units, -value); - } - - /** - * To milliseconds. - * - * @param units - * the units - * @param value - * the value - * @return the long - */ - private static long toMilliseconds(int units, long value) { - long millis; - switch (units) { - case TimeSpan.MILLISECONDS: - case TimeSpan.SECONDS: - case TimeSpan.MINUTES: - case TimeSpan.HOURS: - case TimeSpan.DAYS: - millis = value * units; - break; - default: - throw new IllegalArgumentException("Unrecognized units: " + units); - } - return millis; - } - - public static TimeSpan parse(String s) throws Exception { - String str = s.trim(); - String[] st1 = str.split("\\."); - int days = 0,millsec = 0,totMillSec = 0; - String data = str; - switch (st1.length) { - case 1: - data = str; - break; - case 2: - if(st1[0].split(":").length > 1) { - millsec = Integer.parseInt(st1[1]); - data = st1[0]; - } - else { - days = Integer.parseInt(st1[0]); - data = st1[1]; - } - break; - case 3: - days = Integer.parseInt(st1[0]); - data = st1[1]; - millsec = Integer.parseInt(st1[2]); - break; - default: - throw new FormatException("Bad Format"); - - } - String[] st = data.split(":"); - switch (st.length) { - case 1: - totMillSec = Integer.parseInt(str)*24*60*60*1000; - break; - case 2: - totMillSec = (Integer.parseInt(st[0])*60*60*1000)+(Integer.parseInt(st[1])*60*1000); - break; - case 3: - totMillSec = (Integer.parseInt(st[0])*60*60*1000)+(Integer.parseInt(st[1])*60*1000)+(Integer.parseInt(st[2])*1000); - break; - case 4: - totMillSec = (Integer.parseInt(st[0])*24*60*60*1000)+(Integer.parseInt(st[1])*60*60*1000)+(Integer.parseInt(st[2])*60*1000)+(Integer.parseInt(st[3])*1000); - break; - default: - throw new FormatException("Bad Format/Overflow"); - } - totMillSec += (days*24*60*60*1000) + millsec; - return new TimeSpan(totMillSec); - } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java index 353245cd5..8a253483c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java @@ -18,46 +18,40 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of class TimeSpanPropertyDefinition extends GenericPropertyDefinition { - /** - * Initializes a new instance of the "TimeSpanPropertyDefinition" class. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected TimeSpanPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(TimeSpan.class, xmlElementName, uri, flags, version); - } - - /** - * Parses the specified value. - * - * @param value - * The value. - * @return Typed value. - */ - @Override - protected Object parse(String value) { - - return EwsUtilities.getXSDurationToTimeSpanValue(value); - - } - - /** - * Convert instance to string. - * - * @param value - * The value. - * @return String representation of property value. - */ - @Override - protected String toString(Object value) { - return EwsUtilities.getTimeSpanToXSDuration((TimeSpan)value); - } + /** + * Initializes a new instance of the "TimeSpanPropertyDefinition" class. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected TimeSpanPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(TimeSpan.class, xmlElementName, uri, flags, version); + } + + /** + * Parses the specified value. + * + * @param value The value. + * @return Typed value. + */ + @Override + protected Object parse(String value) { + + return EwsUtilities.getXSDurationToTimeSpanValue(value); + + } + + /** + * Convert instance to string. + * + * @param value The value. + * @return String representation of property value. + */ + @Override + protected String toString(Object value) { + return EwsUtilities.getTimeSpanToXSDuration((TimeSpan) value); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java index 83e6f757d..f4bed1bf3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -17,33 +17,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class TimeSpanTest. */ public class TimeSpanTest { - // public sat; + // public sat; - /** - * The main method. - * - * @param args - * the arguments - */ - public static void main(String[] args) { - Calendar calendar = new GregorianCalendar(2008, Calendar.OCTOBER, 10); - timeSpanToXSDuration(calendar); - } + /** + * The main method. + * + * @param args the arguments + */ + public static void main(String[] args) { + Calendar calendar = new GregorianCalendar(2008, Calendar.OCTOBER, 10); + timeSpanToXSDuration(calendar); + } - /** - * Time span to xs duration. - * - * @param timeSpan - * the time span - * @return the string - */ - public static String timeSpanToXSDuration(Calendar timeSpan) { - String offsetStr = (timeSpan.SECOND < 0) ? "-" : ""; - String obj = String.format("%s %s %s %s %s ", offsetStr, Math - .abs(timeSpan.DAY_OF_MONTH), Math.abs(timeSpan.HOUR_OF_DAY), - Math.abs(timeSpan.MINUTE), Math.abs(timeSpan.SECOND) + "." + - Math.abs(timeSpan.MILLISECOND)); + /** + * Time span to xs duration. + * + * @param timeSpan the time span + * @return the string + */ + public static String timeSpanToXSDuration(Calendar timeSpan) { + String offsetStr = (timeSpan.SECOND < 0) ? "-" : ""; + String obj = String.format("%s %s %s %s %s ", offsetStr, Math + .abs(timeSpan.DAY_OF_MONTH), Math.abs(timeSpan.HOUR_OF_DAY), + Math.abs(timeSpan.MINUTE), Math.abs(timeSpan.SECOND) + "." + + Math.abs(timeSpan.MILLISECOND)); - return obj; - } + return obj; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java index 1c115963c..849a14299 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java @@ -19,143 +19,149 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class TimeSuggestion extends ComplexProperty { - /** The meeting time. */ - private Date meetingTime; - - /** The is work time. */ - private boolean isWorkTime; - - /** The quality. */ - private SuggestionQuality quality; - - /** The conflicts. */ - private Collection conflicts = new ArrayList(); - - /** - * Initializes a new instance of the TimeSuggestion class. - */ - protected TimeSuggestion() { - super(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if appropriate element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.MeetingTime)) { - this.meetingTime = reader - .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.IsWorkTime)) { - this.isWorkTime = reader.readElementValue(Boolean.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.SuggestionQuality)) { - this.quality = reader.readElementValue(SuggestionQuality.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.AttendeeConflictDataArray)) { - if (!reader.isEmptyElement()) { - do { - reader.read(); - - if (reader.isStartElement()) { - Conflict conflict = null; - - if (reader.getLocalName().equals( - XmlElementNames.UnknownAttendeeConflictData)) { - conflict = new Conflict( - ConflictType.UnknownAttendeeConflict); - } else if (reader - .getLocalName() - .equals( - XmlElementNames. - TooBigGroupAttendeeConflictData)) { - conflict = new Conflict( - ConflictType.GroupTooBigConflict); - } else if (reader.getLocalName().equals( - XmlElementNames. - IndividualAttendeeConflictData)) { - conflict = new Conflict( - ConflictType.IndividualAttendeeConflict); - } else if (reader.getLocalName().equals( - XmlElementNames.GroupAttendeeConflictData)) { - conflict = new Conflict(ConflictType.GroupConflict); - } else { - EwsUtilities - .EwsAssert( - false, - "TimeSuggestion." + - "TryReadElementFromXml", - String - .format( - "The %s element name " + - "does not map " + - "to any AttendeeConflict " + - "descendant.", - reader - .getLocalName())); - - // The following line to please the compiler - } - conflict.loadFromXml(reader, reader.getLocalName()); - - this.conflicts.add(conflict); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.AttendeeConflictDataArray)); - } - - return true; - } else { - return false; - } - - } - - /** - * Gets the suggested time. - * - * @return the meeting time - */ - public Date getMeetingTime() { - return meetingTime; - } - - /** - * Gets a value indicating whether the suggested time is within working - * hours. - * - * @return true, if is work time - */ - public boolean isWorkTime() { - return isWorkTime; - } - - /** - * Gets the quality of the suggestion. - * - * @return the quality - */ - public SuggestionQuality getQuality() { - return quality; - } - - /** - * Gets a collection of conflicts at the suggested time. - * - * @return the conflicts - */ - public Collection getConflicts() { - return conflicts; - } + /** + * The meeting time. + */ + private Date meetingTime; + + /** + * The is work time. + */ + private boolean isWorkTime; + + /** + * The quality. + */ + private SuggestionQuality quality; + + /** + * The conflicts. + */ + private Collection conflicts = new ArrayList(); + + /** + * Initializes a new instance of the TimeSuggestion class. + */ + protected TimeSuggestion() { + super(); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if appropriate element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.MeetingTime)) { + this.meetingTime = reader + .readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.IsWorkTime)) { + this.isWorkTime = reader.readElementValue(Boolean.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.SuggestionQuality)) { + this.quality = reader.readElementValue(SuggestionQuality.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.AttendeeConflictDataArray)) { + if (!reader.isEmptyElement()) { + do { + reader.read(); + + if (reader.isStartElement()) { + Conflict conflict = null; + + if (reader.getLocalName().equals( + XmlElementNames.UnknownAttendeeConflictData)) { + conflict = new Conflict( + ConflictType.UnknownAttendeeConflict); + } else if (reader + .getLocalName() + .equals( + XmlElementNames. + TooBigGroupAttendeeConflictData)) { + conflict = new Conflict( + ConflictType.GroupTooBigConflict); + } else if (reader.getLocalName().equals( + XmlElementNames. + IndividualAttendeeConflictData)) { + conflict = new Conflict( + ConflictType.IndividualAttendeeConflict); + } else if (reader.getLocalName().equals( + XmlElementNames.GroupAttendeeConflictData)) { + conflict = new Conflict(ConflictType.GroupConflict); + } else { + EwsUtilities + .EwsAssert( + false, + "TimeSuggestion." + + "TryReadElementFromXml", + String + .format( + "The %s element name " + + "does not map " + + "to any AttendeeConflict " + + "descendant.", + reader + .getLocalName())); + + // The following line to please the compiler + } + conflict.loadFromXml(reader, reader.getLocalName()); + + this.conflicts.add(conflict); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.AttendeeConflictDataArray)); + } + + return true; + } else { + return false; + } + + } + + /** + * Gets the suggested time. + * + * @return the meeting time + */ + public Date getMeetingTime() { + return meetingTime; + } + + /** + * Gets a value indicating whether the suggested time is within working + * hours. + * + * @return true, if is work time + */ + public boolean isWorkTime() { + return isWorkTime; + } + + /** + * Gets the quality of the suggestion. + * + * @return the quality + */ + public SuggestionQuality getQuality() { + return quality; + } + + /** + * Gets a collection of conflicts at the suggested time. + * + * @return the conflicts + */ + public Collection getConflicts() { + return conflicts; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java index 6157767ec..5743b7d72 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java @@ -10,190 +10,173 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; -import javax.xml.stream.XMLStreamException; - /** * Represents a time period. */ public class TimeWindow implements ISelfValidate { - /** The start time. */ - private Date startTime; - - /** The end time. */ - private Date endTime; - - /** - * Initializes a new instance of the "TimeWindow" class. - */ - protected TimeWindow() { - } - - /** - * Initializes a new instance of the "TimeWindow" class. - * - * @param startTime - * the start time - * @param endTime - * the end time - */ - public TimeWindow(Date startTime, Date endTime) { - this(); - this.startTime = startTime; - this.endTime = endTime; - } - - /** - * Gets the start time. - * - * @return the start time - */ - public Date getStartTime() { - return startTime; - } - - /** - * Sets the start time. - * - * @param startTime - * the new start time - */ - public void setStartTime(Date startTime) { - this.startTime = startTime; - } - - /** - * Gets the end time. - * - * @return the end time - */ - public Date getEndTime() { - return endTime; - } - - /** - * Sets the end time. - * - * @param endTime - * the new end time - */ - public void setEndTime(Date endTime) { - this.endTime = endTime; - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, - XmlElementNames.Duration); - - this.startTime = reader.readElementValueAsDateTime(XmlNamespace.Types, - XmlElementNames.StartTime); - this.endTime = reader.readElementValueAsDateTime(XmlNamespace.Types, - XmlElementNames.EndTime); - - reader.readEndElement(XmlNamespace.Types, XmlElementNames.Duration); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @param startTime - * the start time - * @param endTime - * the end time - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private static void writeToXml(EwsServiceXmlWriter writer, - String xmlElementName, Object startTime, Object endTime) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, xmlElementName); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.StartTime, - startTime); - - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EndTime, - endTime); - - writer.writeEndElement(); // xmlElementName - } - - /** - * Writes to XML without scoping the dates and without emitting times. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXmlUnscopedDatesOnly(EwsServiceXmlWriter writer, - String xmlElementName) throws XMLStreamException, - ServiceXmlSerializationException { - final String DateOnlyFormat = "yyyy-MM-dd'T'00:00:00"; - - DateFormat formatter = new SimpleDateFormat(DateOnlyFormat); - - String start = formatter.format(this.startTime); - String end = formatter.format(this.endTime); - TimeWindow.writeToXml(writer, xmlElementName, start, end); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @param xmlElementName - * the xml element name - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws XMLStreamException, ServiceXmlSerializationException { - TimeWindow.writeToXml(writer, xmlElementName, this.startTime, - this.endTime); - } - - /** - * Gets the duration. - * - * @return the duration - */ - protected long getDuration() { - return this.endTime.getTime() - this.startTime.getTime(); - } - - /** - * Validates this instance. - */ - public void validate() { - /* + /** + * The start time. + */ + private Date startTime; + + /** + * The end time. + */ + private Date endTime; + + /** + * Initializes a new instance of the "TimeWindow" class. + */ + protected TimeWindow() { + } + + /** + * Initializes a new instance of the "TimeWindow" class. + * + * @param startTime the start time + * @param endTime the end time + */ + public TimeWindow(Date startTime, Date endTime) { + this(); + this.startTime = startTime; + this.endTime = endTime; + } + + /** + * Gets the start time. + * + * @return the start time + */ + public Date getStartTime() { + return startTime; + } + + /** + * Sets the start time. + * + * @param startTime the new start time + */ + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + /** + * Gets the end time. + * + * @return the end time + */ + public Date getEndTime() { + return endTime; + } + + /** + * Sets the end time. + * + * @param endTime the new end time + */ + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, + XmlElementNames.Duration); + + this.startTime = reader.readElementValueAsDateTime(XmlNamespace.Types, + XmlElementNames.StartTime); + this.endTime = reader.readElementValueAsDateTime(XmlNamespace.Types, + XmlElementNames.EndTime); + + reader.readEndElement(XmlNamespace.Types, XmlElementNames.Duration); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @param startTime the start time + * @param endTime the end time + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private static void writeToXml(EwsServiceXmlWriter writer, + String xmlElementName, Object startTime, Object endTime) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, xmlElementName); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.StartTime, + startTime); + + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EndTime, + endTime); + + writer.writeEndElement(); // xmlElementName + } + + /** + * Writes to XML without scoping the dates and without emitting times. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXmlUnscopedDatesOnly(EwsServiceXmlWriter writer, + String xmlElementName) throws XMLStreamException, + ServiceXmlSerializationException { + final String DateOnlyFormat = "yyyy-MM-dd'T'00:00:00"; + + DateFormat formatter = new SimpleDateFormat(DateOnlyFormat); + + String start = formatter.format(this.startTime); + String end = formatter.format(this.endTime); + TimeWindow.writeToXml(writer, xmlElementName, start, end); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @param xmlElementName the xml element name + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws XMLStreamException, ServiceXmlSerializationException { + TimeWindow.writeToXml(writer, xmlElementName, this.startTime, + this.endTime); + } + + /** + * Gets the duration. + * + * @return the duration + */ + protected long getDuration() { + return this.endTime.getTime() - this.startTime.getTime(); + } + + /** + * Validates this instance. + */ + public void validate() { + /* * if (this.startTime >= this.endTime) { throw new * ArgumentException(Strings * .TimeWindowStartTimeMustBeGreaterThanEndTime); } */ - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index 8b486a3d9..b366d2524 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -16,34 +16,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class TimeZoneConversionException extends ServiceLocalException { - /** - * ServiceLocalException Constructor. - */ - public TimeZoneConversionException() { - super(); - } + /** + * ServiceLocalException Constructor. + */ + public TimeZoneConversionException() { + super(); + } - /** - * ServiceLocalException Constructor. - * - * @param message - * the message - */ - public TimeZoneConversionException(String message) { - super(message); - } + /** + * ServiceLocalException Constructor. + * + * @param message the message + */ + public TimeZoneConversionException(String message) { + super(message); + } - /** - * ServiceLocalException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public TimeZoneConversionException(String message, - Exception innerException) { - super(message, innerException); - } + /** + * ServiceLocalException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public TimeZoneConversionException(String message, + Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index 5d8d1dd58..ec8746dfd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -10,403 +10,396 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; /** * Represents a time zone as defined by the EWS schema. */ -public class TimeZoneDefinition extends ComplexProperty implements Comparator{ - /** Prefix for generated ids.*/ - private static String NoIdPrefix = "NoId_"; - - /** The Standard period id. */ - protected final String StandardPeriodId = "Std"; - - /** The Standard period name. */ - protected final String StandardPeriodName = "Standard"; - - /** The Daylight period id. */ - protected final String DaylightPeriodId = "Dlt"; - - /** The Daylight period name. */ - protected final String DaylightPeriodName = "Daylight"; - - /** The name. */ - protected String name; - - /** The id. */ - protected String id; - - /** The periods. */ - private Map periods = - new HashMap(); - - /** The transition groups. */ - private Map transitionGroups = - new HashMap(); - - /** The transitions. */ - private List transitions = - new ArrayList(); - - /** - * Compares the transitions. - * - * @param x - * The first transition. - * @param y - * The second transition. - * @return A negative number if x is less than y, 0 if x and y are equal, a - * positive number if x is greater than y. - */ - @Override - public int compare(TimeZoneTransition x, TimeZoneTransition y) { - if (x == y) { - return 0; - } else if (x instanceof TimeZoneTransition) { - return -1; - } else if (y instanceof TimeZoneTransition) { - return 1; - } else { - AbsoluteDateTransition firstTransition = (AbsoluteDateTransition)x; - AbsoluteDateTransition secondTransition = (AbsoluteDateTransition)y; - - return firstTransition.getDateTime().compareTo( - secondTransition.getDateTime()); - } - } - - /** - * Initializes a new instance of the TimeZoneDefinition class. - */ - protected TimeZoneDefinition() { - super(); - } - - - /** - * Adds a transition group with a single transition to the specified period. - * - * @param timeZonePeriod - * the time zone period - * @return A TimeZoneTransitionGroup. - */ - private TimeZoneTransitionGroup createTransitionGroupToPeriod( - TimeZonePeriod timeZonePeriod) { - TimeZoneTransition transitionToPeriod = new TimeZoneTransition(this, - timeZonePeriod); - - TimeZoneTransitionGroup transitionGroup = new TimeZoneTransitionGroup( - this, String.valueOf(this.transitionGroups.size())); - transitionGroup.getTransitions().add(transitionToPeriod); - this.transitionGroups.put(transitionGroup.getId(), transitionGroup); - return transitionGroup; - } - - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.name = reader.readAttributeValue(XmlAttributeNames.Name); - this.id = reader.readAttributeValue(XmlAttributeNames.Id); - - // E14:319057 -- EWS can return a TimeZone definition with no Id. Generate a new Id in this case. - if(this.id == null || this.id.isEmpty()){ - String nameValue = (this.getName() == null || this. - getName().isEmpty()) ? "" : this.getName(); - this.setId(NoIdPrefix + Math.abs(nameValue.hashCode())); +public class TimeZoneDefinition extends ComplexProperty implements Comparator { + /** + * Prefix for generated ids. + */ + private static String NoIdPrefix = "NoId_"; + + /** + * The Standard period id. + */ + protected final String StandardPeriodId = "Std"; + + /** + * The Standard period name. + */ + protected final String StandardPeriodName = "Standard"; + + /** + * The Daylight period id. + */ + protected final String DaylightPeriodId = "Dlt"; + + /** + * The Daylight period name. + */ + protected final String DaylightPeriodName = "Daylight"; + + /** + * The name. + */ + protected String name; + + /** + * The id. + */ + protected String id; + + /** + * The periods. + */ + private Map periods = + new HashMap(); + + /** + * The transition groups. + */ + private Map transitionGroups = + new HashMap(); + + /** + * The transitions. + */ + private List transitions = + new ArrayList(); + + /** + * Compares the transitions. + * + * @param x The first transition. + * @param y The second transition. + * @return A negative number if x is less than y, 0 if x and y are equal, a + * positive number if x is greater than y. + */ + @Override + public int compare(TimeZoneTransition x, TimeZoneTransition y) { + if (x == y) { + return 0; + } else if (x instanceof TimeZoneTransition) { + return -1; + } else if (y instanceof TimeZoneTransition) { + return 1; + } else { + AbsoluteDateTransition firstTransition = (AbsoluteDateTransition) x; + AbsoluteDateTransition secondTransition = (AbsoluteDateTransition) y; + + return firstTransition.getDateTime().compareTo( + secondTransition.getDateTime()); + } + } + + /** + * Initializes a new instance of the TimeZoneDefinition class. + */ + protected TimeZoneDefinition() { + super(); + } + + + /** + * Adds a transition group with a single transition to the specified period. + * + * @param timeZonePeriod the time zone period + * @return A TimeZoneTransitionGroup. + */ + private TimeZoneTransitionGroup createTransitionGroupToPeriod( + TimeZonePeriod timeZonePeriod) { + TimeZoneTransition transitionToPeriod = new TimeZoneTransition(this, + timeZonePeriod); + + TimeZoneTransitionGroup transitionGroup = new TimeZoneTransitionGroup( + this, String.valueOf(this.transitionGroups.size())); + transitionGroup.getTransitions().add(transitionToPeriod); + this.transitionGroups.put(transitionGroup.getId(), transitionGroup); + return transitionGroup; + } + + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.name = reader.readAttributeValue(XmlAttributeNames.Name); + this.id = reader.readAttributeValue(XmlAttributeNames.Id); + + // E14:319057 -- EWS can return a TimeZone definition with no Id. Generate a new Id in this case. + if (this.id == null || this.id.isEmpty()) { + String nameValue = (this.getName() == null || this. + getName().isEmpty()) ? "" : this.getName(); + this.setId(NoIdPrefix + Math.abs(nameValue.hashCode())); + } + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + // The Name attribute is only supported in Exchange 2010 and above. + if (writer.getService().getRequestedServerVersion() != ExchangeVersion.Exchange2007_SP1) { + writer.writeAttributeValue(XmlAttributeNames.Name, this.name); + } + + writer.writeAttributeValue(XmlAttributeNames.Id, this.id); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.Periods)) { + do { + reader.read(); + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.Period)) { + TimeZonePeriod period = new TimeZonePeriod(); + period.loadFromXml(reader); + + this.periods.put(period.getId(), period); } - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - // The Name attribute is only supported in Exchange 2010 and above. - if (writer.getService().getRequestedServerVersion() != ExchangeVersion.Exchange2007_SP1) { - writer.writeAttributeValue(XmlAttributeNames.Name, this.name); - } - - writer.writeAttributeValue(XmlAttributeNames.Id, this.id); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.Periods)) { - do { - reader.read(); - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.Period)) { - TimeZonePeriod period = new TimeZonePeriod(); - period.loadFromXml(reader); - - this.periods.put(period.getId(), period); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.Periods)); - - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.TransitionsGroups)) { - do { - reader.read(); - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.TransitionsGroup)) { - TimeZoneTransitionGroup transitionGroup = - new TimeZoneTransitionGroup( - this); - - transitionGroup.loadFromXml(reader); - - this.transitionGroups.put(transitionGroup.getId(), - transitionGroup); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.TransitionsGroups)); - - return true; - } else if (reader.getLocalName().equals(XmlElementNames.Transitions)) { - do { - reader.read(); - if (reader.isStartElement()) { - TimeZoneTransition transition = TimeZoneTransition.create( - this, reader.getLocalName()); - - transition.loadFromXml(reader); - - this.transitions.add(transition); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.Transitions)); - - return true; - } else { - return false; - } - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - this.loadFromXml(reader, XmlElementNames.TimeZoneDefinition); - Collections.sort(this.transitions, new TimeZoneDefinition()); - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // We only emit the full time zone definition against Exchange 2010 - // servers and above. - if (writer.getService().getRequestedServerVersion() != ExchangeVersion.Exchange2007_SP1) { - if (this.periods.size() > 0) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Periods); - - Iterator it = this.periods.values().iterator(); - while (it.hasNext()) { - ((TimeZonePeriod) it.next()).writeToXml(writer); - } - - writer.writeEndElement(); // Periods - } - - if (this.transitionGroups.size() > 0) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.TransitionsGroups); - for (int i = 0; i < this.transitionGroups.size(); i++) { - Object key[] = this.transitionGroups.keySet().toArray(); - this.transitionGroups.get(key[i]).writeToXml(writer); - } - writer.writeEndElement(); // TransitionGroups - } - - if (this.transitions.size() > 0) { - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.Transitions); - - for (TimeZoneTransition transition : this.transitions) { - transition.writeToXml(writer); - } - - writer.writeEndElement(); // Transitions - } - } - } - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, XmlElementNames.TimeZoneDefinition); - } - - /** - * Validates this time zone definition. - * - * @throws ServiceLocalException - * the service local exception - */ - public void validate() throws ServiceLocalException { - // The definition must have at least one period, one transition group - // and one transition, - // and there must be as many transitions as there are transition groups. - if (this.periods.size() < 1 || this.transitions.size() < 1 - || this.transitionGroups.size() < 1 - || this.transitionGroups.size() != this.transitions.size()) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - - // The first transition must be of type TimeZoneTransition. - if (this.transitions.get(0).getClass() != TimeZoneTransition.class) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - - // All transitions must be to transition groups and be either - // TimeZoneTransition or - // AbsoluteDateTransition instances. - for (TimeZoneTransition transition : this.transitions) { - Class transitionType = transition.getClass(); - - if (transitionType != TimeZoneTransition.class - && transitionType != AbsoluteDateTransition.class) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - - if (transition.getTargetGroup() == null) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - } - - // All transition groups must be valid. - for (TimeZoneTransitionGroup transitionGroup : this.transitionGroups - .values()) { - transitionGroup.validate(); - } - } - - /** - * Gets the name of this time zone definition. - * - * @return the name - */ - public String getName() { - return this.name; - } - - /** - * Sets the name. - * - * @param name - * the new name - */ - protected void setName(String name) { - this.name = name; - } - - /** - * Gets the Id of this time zone definition. - * - * @return the id - */ - public String getId() { - return this.id; - } - - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(String id) { - this.id = id; - } - - /** - * Adds a transition group with a single transition to the specified period. - * - * @return A TimeZoneTransitionGroup. - */ - protected Map getPeriods() { - return this.periods; - } - - /** - * Gets the transition groups associated with this time zone definition, - * indexed by Id. - * - * @return the transition groups - */ - protected Map getTransitionGroups() { - return this.transitionGroups; - } - - /** - * Writes to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @param xmlElementName - * accepts String - * @throws Exception - * throws Exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) - throws Exception { - this.writeToXml(writer, this.getNamespace(), xmlElementName); - } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.Periods)); + + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.TransitionsGroups)) { + do { + reader.read(); + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.TransitionsGroup)) { + TimeZoneTransitionGroup transitionGroup = + new TimeZoneTransitionGroup( + this); + + transitionGroup.loadFromXml(reader); + + this.transitionGroups.put(transitionGroup.getId(), + transitionGroup); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.TransitionsGroups)); + + return true; + } else if (reader.getLocalName().equals(XmlElementNames.Transitions)) { + do { + reader.read(); + if (reader.isStartElement()) { + TimeZoneTransition transition = TimeZoneTransition.create( + this, reader.getLocalName()); + + transition.loadFromXml(reader); + + this.transitions.add(transition); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.Transitions)); + + return true; + } else { + return false; + } + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + this.loadFromXml(reader, XmlElementNames.TimeZoneDefinition); + Collections.sort(this.transitions, new TimeZoneDefinition()); + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // We only emit the full time zone definition against Exchange 2010 + // servers and above. + if (writer.getService().getRequestedServerVersion() != ExchangeVersion.Exchange2007_SP1) { + if (this.periods.size() > 0) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Periods); + + Iterator it = this.periods.values().iterator(); + while (it.hasNext()) { + ((TimeZonePeriod) it.next()).writeToXml(writer); + } + + writer.writeEndElement(); // Periods + } + + if (this.transitionGroups.size() > 0) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.TransitionsGroups); + for (int i = 0; i < this.transitionGroups.size(); i++) { + Object key[] = this.transitionGroups.keySet().toArray(); + this.transitionGroups.get(key[i]).writeToXml(writer); + } + writer.writeEndElement(); // TransitionGroups + } + + if (this.transitions.size() > 0) { + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.Transitions); + + for (TimeZoneTransition transition : this.transitions) { + transition.writeToXml(writer); + } + + writer.writeEndElement(); // Transitions + } + } + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, XmlElementNames.TimeZoneDefinition); + } + + /** + * Validates this time zone definition. + * + * @throws ServiceLocalException the service local exception + */ + public void validate() throws ServiceLocalException { + // The definition must have at least one period, one transition group + // and one transition, + // and there must be as many transitions as there are transition groups. + if (this.periods.size() < 1 || this.transitions.size() < 1 + || this.transitionGroups.size() < 1 + || this.transitionGroups.size() != this.transitions.size()) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + + // The first transition must be of type TimeZoneTransition. + if (this.transitions.get(0).getClass() != TimeZoneTransition.class) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + + // All transitions must be to transition groups and be either + // TimeZoneTransition or + // AbsoluteDateTransition instances. + for (TimeZoneTransition transition : this.transitions) { + Class transitionType = transition.getClass(); + + if (transitionType != TimeZoneTransition.class + && transitionType != AbsoluteDateTransition.class) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + + if (transition.getTargetGroup() == null) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + } + + // All transition groups must be valid. + for (TimeZoneTransitionGroup transitionGroup : this.transitionGroups + .values()) { + transitionGroup.validate(); + } + } + + /** + * Gets the name of this time zone definition. + * + * @return the name + */ + public String getName() { + return this.name; + } + + /** + * Sets the name. + * + * @param name the new name + */ + protected void setName(String name) { + this.name = name; + } + + /** + * Gets the Id of this time zone definition. + * + * @return the id + */ + public String getId() { + return this.id; + } + + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(String id) { + this.id = id; + } + + /** + * Adds a transition group with a single transition to the specified period. + * + * @return A TimeZoneTransitionGroup. + */ + protected Map getPeriods() { + return this.periods; + } + + /** + * Gets the transition groups associated with this time zone definition, + * indexed by Id. + * + * @return the transition groups + */ + protected Map getTransitionGroups() { + return this.transitionGroups; + } + + /** + * Writes to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @param xmlElementName accepts String + * @throws Exception throws Exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) + throws Exception { + this.writeToXml(writer, this.getNamespace(), xmlElementName); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java index 7e7ee32e3..234cca484 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java @@ -15,157 +15,160 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class TimeZonePeriod extends ComplexProperty { - /** The Constant StandardPeriodId. */ - protected final static String StandardPeriodId = "Std"; - - /** The Constant StandardPeriodName. */ - protected final static String StandardPeriodName = "Standard"; - - /** The Constant DaylightPeriodId. */ - protected final static String DaylightPeriodId = "Dlt"; - - /** The Constant DaylightPeriodName. */ - protected final static String DaylightPeriodName = "Daylight"; - - /** The bias. */ - private TimeSpan bias; - - /** The name. */ - private String name; - - /** The id. */ - private String id; - - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.id = reader.readAttributeValue(XmlAttributeNames.Id); - this.name = reader.readAttributeValue(XmlAttributeNames.Name); - this.bias = EwsUtilities.getXSDurationToTimeSpan(reader - .readAttributeValue(XmlAttributeNames.Bias)); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Bias, EwsUtilities - .getTimeSpanToXSDuration(this.bias)); - writer.writeAttributeValue(XmlAttributeNames.Name, this.name); - writer.writeAttributeValue(XmlAttributeNames.Id, this.id); - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - this.loadFromXml(reader, XmlElementNames.Period); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, XmlElementNames.Period); - } - - /** - * Initializes a new instance of the TimeZonePeriod class. - */ - protected TimeZonePeriod() { - super(); - } - - /** - * Gets a value indicating whether this period represents the Standard - * period. - * - * @return true if this instance is standard period; otherwise, false - */ - protected boolean isStandardPeriod() { - return this.name.equals(TimeZonePeriod.StandardPeriodName); - } - - /** - * Gets the bias to UTC associated with this period. - * - * @return the bias - */ - protected TimeSpan getBias() { - return bias; - } - - /** - * Sets the bias. - * - * @param bias - * the new bias - */ - protected void setBias(TimeSpan bias) { - this.bias = bias; - } - - /** - * Gets the name of this period. - * - * @return the name - */ - protected String getName() { - return name; - } - - /** - * Sets the name. - * - * @param name - * the new name - */ - protected void setName(String name) { - this.name = name; - } - - /** - * Gets the id of this period. - * - * @return the id - */ - protected String getId() { - return id; - } - - /** - * Sets the id. - * - * @param id - * the new id - */ - protected void setId(String id) { - this.id = id; - } + /** + * The Constant StandardPeriodId. + */ + protected final static String StandardPeriodId = "Std"; + + /** + * The Constant StandardPeriodName. + */ + protected final static String StandardPeriodName = "Standard"; + + /** + * The Constant DaylightPeriodId. + */ + protected final static String DaylightPeriodId = "Dlt"; + + /** + * The Constant DaylightPeriodName. + */ + protected final static String DaylightPeriodName = "Daylight"; + + /** + * The bias. + */ + private TimeSpan bias; + + /** + * The name. + */ + private String name; + + /** + * The id. + */ + private String id; + + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.id = reader.readAttributeValue(XmlAttributeNames.Id); + this.name = reader.readAttributeValue(XmlAttributeNames.Name); + this.bias = EwsUtilities.getXSDurationToTimeSpan(reader + .readAttributeValue(XmlAttributeNames.Bias)); + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Bias, EwsUtilities + .getTimeSpanToXSDuration(this.bias)); + writer.writeAttributeValue(XmlAttributeNames.Name, this.name); + writer.writeAttributeValue(XmlAttributeNames.Id, this.id); + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + this.loadFromXml(reader, XmlElementNames.Period); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, XmlElementNames.Period); + } + + /** + * Initializes a new instance of the TimeZonePeriod class. + */ + protected TimeZonePeriod() { + super(); + } + + /** + * Gets a value indicating whether this period represents the Standard + * period. + * + * @return true if this instance is standard period; otherwise, false + */ + protected boolean isStandardPeriod() { + return this.name.equals(TimeZonePeriod.StandardPeriodName); + } + + /** + * Gets the bias to UTC associated with this period. + * + * @return the bias + */ + protected TimeSpan getBias() { + return bias; + } + + /** + * Sets the bias. + * + * @param bias the new bias + */ + protected void setBias(TimeSpan bias) { + this.bias = bias; + } + + /** + * Gets the name of this period. + * + * @return the name + */ + protected String getName() { + return name; + } + + /** + * Sets the name. + * + * @param name the new name + */ + protected void setName(String name) { + this.name = name; + } + + /** + * Gets the id of this period. + * + * @return the id + */ + protected String getId() { + return id; + } + + /** + * Sets the id. + * + * @param id the new id + */ + protected void setId(String id) { + this.id = id; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index 078a589e7..2ba8a297d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -10,95 +10,79 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.util.EnumSet; import java.util.TimeZone; -import javax.xml.stream.XMLStreamException; - /** * Represents a property definition for properties of type TimeZoneInfo. */ class TimeZonePropertyDefinition extends PropertyDefinition { - /** - * Initializes a new instance of the TimeZonePropertyDefinition class. - * - * @param xmlElementName - * the xml element name - * @param uri - * the uri - * @param flags - * the flags - * @param version - * the version - */ - protected TimeZonePropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } + /** + * Initializes a new instance of the TimeZonePropertyDefinition class. + * + * @param xmlElementName the xml element name + * @param uri the uri + * @param flags the flags + * @param version the version + */ + protected TimeZonePropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } - /** - * Loads from XML. - * - * @param reader - * the reader - * @param propertyBag - * the property bag - * @throws Exception - * the exception - */ - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); - timeZoneDefinition.loadFromXml(reader, this.getXmlElement()); - propertyBag.setObjectFromPropertyDefinition(this, timeZoneDefinition); - } + /** + * Loads from XML. + * + * @param reader the reader + * @param propertyBag the property bag + * @throws Exception the exception + */ + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + TimeZoneDefinition timeZoneDefinition = new TimeZoneDefinition(); + timeZoneDefinition.loadFromXml(reader, this.getXmlElement()); + propertyBag.setObjectFromPropertyDefinition(this, timeZoneDefinition); + } - /** - * Writes to XML. - * - * @param writer - * the writer - * @param propertyBag - * the property bag - * @param isUpdateOperation - * the is update operation - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws Exception - * the exception - */ - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws ServiceLocalException, XMLStreamException, - ServiceXmlSerializationException, Exception { - TimeZoneDefinition timeZoneDefinition = (TimeZoneDefinition) propertyBag - .getObjectFromPropertyDefinition(this); + /** + * Writes to XML. + * + * @param writer the writer + * @param propertyBag the property bag + * @param isUpdateOperation the is update operation + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws Exception the exception + */ + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws ServiceLocalException, XMLStreamException, + ServiceXmlSerializationException, Exception { + TimeZoneDefinition timeZoneDefinition = (TimeZoneDefinition) propertyBag + .getObjectFromPropertyDefinition(this); - if (timeZoneDefinition != null) { - // We emit time zone properties only if we have not emitted the time - // zone SOAP header - // or if this time zone is different from that of the service - // through which the request - // is being emitted. - if (!writer.isTimeZoneHeaderEmitted())// || value != - // writer.getService().getTimeZone()) - { - timeZoneDefinition.writeToXml(writer, this.getXmlElement()); - } - } - } - - /** - * Gets the property type. - */ - @Override - public Class getType() - { - return TimeZone.class; + if (timeZoneDefinition != null) { + // We emit time zone properties only if we have not emitted the time + // zone SOAP header + // or if this time zone is different from that of the service + // through which the request + // is being emitted. + if (!writer.isTimeZoneHeaderEmitted())// || value != + // writer.getService().getTimeZone()) + { + timeZoneDefinition.writeToXml(writer, this.getXmlElement()); + } } + } + + /** + * Gets the property type. + */ + @Override + public Class getType() { + return TimeZone.class; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java index 4d3a4caaa..babfa6a90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java @@ -17,211 +17,206 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class TimeZoneTransition extends ComplexProperty { - /** The Period target. */ - private final String PeriodTarget = "Period"; - - /** The Group target. */ - private final String GroupTarget = "Group"; - - /** The time zone definition. */ - private TimeZoneDefinition timeZoneDefinition; - - /** The target period. */ - private TimeZonePeriod targetPeriod; - - /** The target group. */ - private TimeZoneTransitionGroup targetGroup; - - /** - * Creates a time zone period transition of the appropriate type given an - * XML element name. - * - * @param timeZoneDefinition - * the time zone definition - * @param xmlElementName - * the xml element name - * @return A TimeZonePeriodTransition instance. - * @throws ServiceLocalException - * the service local exception - */ - protected static TimeZoneTransition create( - TimeZoneDefinition timeZoneDefinition, String xmlElementName) - throws ServiceLocalException { - if (xmlElementName.equals(XmlElementNames.AbsoluteDateTransition)) { - return new AbsoluteDateTransition(timeZoneDefinition); - } else if (xmlElementName - .equals(XmlElementNames.AbsoluteDateTransition)) { - return new AbsoluteDateTransition(timeZoneDefinition); - } else if (xmlElementName - .equals(XmlElementNames.RecurringDayTransition)) { - return new RelativeDayOfMonthTransition(timeZoneDefinition); - } else if (xmlElementName - .equals(XmlElementNames.RecurringDateTransition)) { - return new AbsoluteDayOfMonthTransition(timeZoneDefinition); - } else if (xmlElementName.equals(XmlElementNames.Transition)) { - return new TimeZoneTransition(timeZoneDefinition); - } else { - throw new ServiceLocalException(String - .format(Strings.UnknownTimeZonePeriodTransitionType, - xmlElementName)); - } - } - - /** - * Gets the XML element name associated with the transition. - * - * @return The XML element name associated with the transition. - */ - protected String getXmlElementName() { - return XmlElementNames.Transition; - } - - /** - * Tries to read element from XML.The reader. - * - * @param reader The - * reader. - * @return True if element was read. - * @throws Exception the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.To)) { - String targetKind = reader - .readAttributeValue(XmlAttributeNames.Kind); - String targetId = reader.readElementValue(); - if (targetKind.equals(PeriodTarget)) { - if (!this.timeZoneDefinition.getPeriods().containsKey(targetId)) { - this.targetPeriod = this.timeZoneDefinition.getPeriods() - .get(targetId); - throw new ServiceLocalException(String.format( - Strings.PeriodNotFound, targetId)); - } - } else if (targetKind.equals(GroupTarget)) { - if (!this.timeZoneDefinition.getTransitionGroups().containsKey( - targetId)) { - this.targetGroup = this.timeZoneDefinition - .getTransitionGroups().get(targetId); - throw new ServiceLocalException(String.format( - Strings.TransitionGroupNotFound, targetId)); - } - } else { - throw new ServiceLocalException( - Strings.UnsupportedTimeZonePeriodTransitionTarget); - } - - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, XMLStreamException { - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.To); - - if (this.targetPeriod != null) { - writer.writeAttributeValue(XmlAttributeNames.Kind, PeriodTarget); - writer.writeValue(this.targetPeriod.getId(), XmlElementNames.To); - } else { - writer.writeAttributeValue(XmlAttributeNames.Kind, GroupTarget); - writer.writeValue(this.targetGroup.getId(), XmlElementNames.To); - } - - writer.writeEndElement(); // To - } - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - this.loadFromXml(reader, this.getXmlElementName()); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, this.getXmlElementName()); - } - - /** - * Initializes a new instance of the class. - * - * @param timeZoneDefinition - * the time zone definition - */ - protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition) { - super(); - this.timeZoneDefinition = timeZoneDefinition; - } - - /** - * Initializes a new instance of the class. - * - * @param timeZoneDefinition - * the time zone definition - * @param targetGroup - * the target group - */ - protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition, - TimeZoneTransitionGroup targetGroup) { - this(timeZoneDefinition); - this.targetGroup = targetGroup; - } - - /** - * Initializes a new instance of the class. - * - * @param timeZoneDefinition - * the time zone definition - * @param targetPeriod - * the target period - */ - protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition, - TimeZonePeriod targetPeriod) { - this(timeZoneDefinition); - this.targetPeriod = targetPeriod; - } - - /** - * Gets the target period of the transition. - * - * @return the target period - */ - protected TimeZonePeriod getTargetPeriod() { - return this.targetPeriod; - } - - /** - * Gets the target transition group of the transition. - * - * @return the target group - */ - protected TimeZoneTransitionGroup getTargetGroup() { - return this.targetGroup; - } + /** + * The Period target. + */ + private final String PeriodTarget = "Period"; + + /** + * The Group target. + */ + private final String GroupTarget = "Group"; + + /** + * The time zone definition. + */ + private TimeZoneDefinition timeZoneDefinition; + + /** + * The target period. + */ + private TimeZonePeriod targetPeriod; + + /** + * The target group. + */ + private TimeZoneTransitionGroup targetGroup; + + /** + * Creates a time zone period transition of the appropriate type given an + * XML element name. + * + * @param timeZoneDefinition the time zone definition + * @param xmlElementName the xml element name + * @return A TimeZonePeriodTransition instance. + * @throws ServiceLocalException the service local exception + */ + protected static TimeZoneTransition create( + TimeZoneDefinition timeZoneDefinition, String xmlElementName) + throws ServiceLocalException { + if (xmlElementName.equals(XmlElementNames.AbsoluteDateTransition)) { + return new AbsoluteDateTransition(timeZoneDefinition); + } else if (xmlElementName + .equals(XmlElementNames.AbsoluteDateTransition)) { + return new AbsoluteDateTransition(timeZoneDefinition); + } else if (xmlElementName + .equals(XmlElementNames.RecurringDayTransition)) { + return new RelativeDayOfMonthTransition(timeZoneDefinition); + } else if (xmlElementName + .equals(XmlElementNames.RecurringDateTransition)) { + return new AbsoluteDayOfMonthTransition(timeZoneDefinition); + } else if (xmlElementName.equals(XmlElementNames.Transition)) { + return new TimeZoneTransition(timeZoneDefinition); + } else { + throw new ServiceLocalException(String + .format(Strings.UnknownTimeZonePeriodTransitionType, + xmlElementName)); + } + } + + /** + * Gets the XML element name associated with the transition. + * + * @return The XML element name associated with the transition. + */ + protected String getXmlElementName() { + return XmlElementNames.Transition; + } + + /** + * Tries to read element from XML.The reader. + * + * @param reader The + * reader. + * @return True if element was read. + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.To)) { + String targetKind = reader + .readAttributeValue(XmlAttributeNames.Kind); + String targetId = reader.readElementValue(); + if (targetKind.equals(PeriodTarget)) { + if (!this.timeZoneDefinition.getPeriods().containsKey(targetId)) { + this.targetPeriod = this.timeZoneDefinition.getPeriods() + .get(targetId); + throw new ServiceLocalException(String.format( + Strings.PeriodNotFound, targetId)); + } + } else if (targetKind.equals(GroupTarget)) { + if (!this.timeZoneDefinition.getTransitionGroups().containsKey( + targetId)) { + this.targetGroup = this.timeZoneDefinition + .getTransitionGroups().get(targetId); + throw new ServiceLocalException(String.format( + Strings.TransitionGroupNotFound, targetId)); + } + } else { + throw new ServiceLocalException( + Strings.UnsupportedTimeZonePeriodTransitionTarget); + } + + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, XMLStreamException { + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.To); + + if (this.targetPeriod != null) { + writer.writeAttributeValue(XmlAttributeNames.Kind, PeriodTarget); + writer.writeValue(this.targetPeriod.getId(), XmlElementNames.To); + } else { + writer.writeAttributeValue(XmlAttributeNames.Kind, GroupTarget); + writer.writeValue(this.targetGroup.getId(), XmlElementNames.To); + } + + writer.writeEndElement(); // To + } + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + this.loadFromXml(reader, this.getXmlElementName()); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, this.getXmlElementName()); + } + + /** + * Initializes a new instance of the class. + * + * @param timeZoneDefinition the time zone definition + */ + protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition) { + super(); + this.timeZoneDefinition = timeZoneDefinition; + } + + /** + * Initializes a new instance of the class. + * + * @param timeZoneDefinition the time zone definition + * @param targetGroup the target group + */ + protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition, + TimeZoneTransitionGroup targetGroup) { + this(timeZoneDefinition); + this.targetGroup = targetGroup; + } + + /** + * Initializes a new instance of the class. + * + * @param timeZoneDefinition the time zone definition + * @param targetPeriod the target period + */ + protected TimeZoneTransition(TimeZoneDefinition timeZoneDefinition, + TimeZonePeriod targetPeriod) { + this(timeZoneDefinition); + this.targetPeriod = targetPeriod; + } + + /** + * Gets the target period of the transition. + * + * @return the target period + */ + protected TimeZonePeriod getTargetPeriod() { + return this.targetPeriod; + } + + /** + * Gets the target transition group of the transition. + * + * @return the target group + */ + protected TimeZoneTransitionGroup getTargetGroup() { + return this.targetGroup; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java index 0ca4af431..568b185d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java @@ -18,398 +18,395 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class TimeZoneTransitionGroup extends ComplexProperty { - /** The time zone definition. */ - private TimeZoneDefinition timeZoneDefinition; - - /** The id. */ - private String id; - - /** The transitions. */ - private List transitions = - new ArrayList(); - - /** The transition to standard. */ - private TimeZoneTransition transitionToStandard; - - /** The transition to daylight. */ - private TimeZoneTransition transitionToDaylight; - - /** The Constant PeriodTarget. */ - private final static String PeriodTarget = "Period"; - - /** The Constant GroupTarget. */ - private final static String GroupTarget = "Group"; - - - /** - * Loads from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - this.loadFromXml(reader, XmlElementNames.TransitionsGroup); - } - - /** - * Writes to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { - this.writeToXml(writer, XmlElementNames.TransitionsGroup); - } - - /** - * Reads the attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.id = reader.readAttributeValue(XmlAttributeNames.Id); - } - - /** - * Writes the attributes to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.Id, this.id); - } - - /** - * Writes the attributes to XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.ensureCurrentNodeIsStartElement(); - - TimeZoneTransition transition = TimeZoneTransition.create( - this.timeZoneDefinition, reader.getLocalName()); - - transition.loadFromXml(reader); - - EwsUtilities.EwsAssert(transition.getTargetPeriod() != null, - "TimeZoneTransitionGroup.TryReadElementFromXml", - "The transition's target period is null."); - - this.transitions.add(transition); - - return true; - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - for (TimeZoneTransition transition : this.transitions) { - transition.writeToXml(writer); - } - } - - /** - * Validates this transition group. - * - * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception - */ - public void validate() throws ServiceLocalException { - // There must be exactly one or two transitions in the group. - if (this.transitions.size() < 1 || this.transitions.size() > 2) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - - // If there is only one transition, it must be of type - // TimeZoneTransition - if (this.transitions.size() == 1 - && !(this.transitions.get(0).getClass() == - TimeZoneTransition.class)) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - - // If there are two transitions, none of them should be of type - // TimeZoneTransition - if (this.transitions.size() == 2) { - for (TimeZoneTransition transition : this.transitions) { - if (transition.getClass() == TimeZoneTransition.class) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - } - } - - // All the transitions in the group must be to a period. - for (TimeZoneTransition transition : this.transitions) { - if (transition.getTargetPeriod() == null) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - } - } - - /** - * The Class CustomTimeZoneCreateParams. - */ - protected static class CustomTimeZoneCreateParams { - - /** The base offset to utc. */ - private TimeSpan baseOffsetToUtc; - - /** The standard display name. */ - private String standardDisplayName; - - /** The daylight display name. */ - private String daylightDisplayName; - - /** - * Initializes a new instance of the class. - * - */ - protected CustomTimeZoneCreateParams() { - } - - /** - * Gets the base offset to UTC. - * - * @return the base offset to utc - */ - protected TimeSpan getBaseOffsetToUtc() { - return this.baseOffsetToUtc; - } - - /** - * Sets the base offset to utc. - * - * @param baseOffsetToUtc - * the new base offset to utc - */ - protected void setBaseOffsetToUtc(TimeSpan baseOffsetToUtc) { - this.baseOffsetToUtc = baseOffsetToUtc; - } - - /** - * Gets the display name of the standard period. - * - * @return the standard display name - */ - protected String getStandardDisplayName() { - return this.standardDisplayName; - } - - /** - * Sets the standard display name. - * - * @param standardDisplayName - * the new standard display name - */ - protected void setStandardDisplayName(String standardDisplayName) { - this.standardDisplayName = standardDisplayName; - } - - /** - * Gets the display name of the daylight period. - * - * @return the daylight display name - */ - protected String getDaylightDisplayName() { - return this.daylightDisplayName; - } - - /** - * Sets the daylight display name. - * - * @param daylightDisplayName - * the new daylight display name - */ - protected void setDaylightDisplayName(String daylightDisplayName) { - this.daylightDisplayName = daylightDisplayName; - } - - /** - * Gets a value indicating whether the custom time zone should have a - * daylight period. true if the custom time zone should - * have a daylight period; otherwise, false. - * - * @return the checks for daylight period - */ - protected boolean getHasDaylightPeriod() { - return (!(this.daylightDisplayName == null || - this.daylightDisplayName.isEmpty())); - } - } - - /** - * Gets a value indicating whether this group contains a transition to the - * Daylight period. true if this group contains a transition - * to daylight; otherwise, false. - * - * @return the supports daylight - */ - protected boolean getSupportsDaylight() { - return this.transitions.size() == 2; - } - - /** - * Initializes the private members holding references to the transitions to - * the Daylight and Standard periods. - * - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - private void initializeTransitions() throws ServiceLocalException { - if (this.transitionToStandard == null) { - for (TimeZoneTransition transition : this.transitions) { - if (transition.getTargetPeriod().isStandardPeriod() || - (this.transitions.size() == 1)) { - this.transitionToStandard = transition; - } else { - this.transitionToDaylight = transition; - } - } - } - - // If we didn't find a Standard period, this is an invalid time zone - // group. - if (this.transitionToStandard == null) { - throw new ServiceLocalException( - Strings.InvalidOrUnsupportedTimeZoneDefinition); - } - } - - /** - * Gets the transition to the Daylight period. - * - * @return the transition to daylight - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - private TimeZoneTransition getTransitionToDaylight() - throws ServiceLocalException { - this.initializeTransitions(); - return this.transitionToDaylight; - } - - /** - * Gets the transition to the Standard period. - * - * @return the transition to standard - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - private TimeZoneTransition getTransitionToStandard() - throws ServiceLocalException { - this.initializeTransitions(); - return this.transitionToStandard; - } - - /** - * Gets the offset to UTC based on this group's transitions. - * - * @return the custom time zone creation params - */ - protected CustomTimeZoneCreateParams getCustomTimeZoneCreationParams() { - CustomTimeZoneCreateParams result = new CustomTimeZoneCreateParams(); - - if (this.transitionToDaylight != null) { - result.setDaylightDisplayName(this.transitionToDaylight - .getTargetPeriod().getName()); - } - - result.setStandardDisplayName(this.transitionToStandard - .getTargetPeriod().getName()); - - // Assume that the standard period's offset is the base offset to UTC. - // EWS returns a positive offset for time zones that are behind UTC, and - // a negative one for time zones ahead of UTC. TimeZoneInfo does it the - // other - // way around. - // result.BaseOffsetToUtc = - // -this.TransitionToStandard.TargetPeriod.Bias; - - return result; - } - - /** - * Initializes a new instance of the class. - * - * @param timeZoneDefinition - * the time zone definition - */ - protected TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition) { - super(); - this.timeZoneDefinition = timeZoneDefinition; - } - - /** - * Initializes a new instance of the class. - * - * @param timeZoneDefinition - * the time zone definition - * @param id - * the id - */ - protected TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, - String id) { - this(timeZoneDefinition); - this.id = id; - } - - /** - * Gets the id of this group. - * - * @return the id - */ - protected String getId() { - return this.id; - } - - /** - * Sets the id. - * - * @param id - * the new id - */ - public void setId(String id) { - this.id = id; - } - - /** - * Gets the transitions in this group. - * - * @return the transitions - */ - protected List getTransitions() { - return this.transitions; - } + /** + * The time zone definition. + */ + private TimeZoneDefinition timeZoneDefinition; + + /** + * The id. + */ + private String id; + + /** + * The transitions. + */ + private List transitions = + new ArrayList(); + + /** + * The transition to standard. + */ + private TimeZoneTransition transitionToStandard; + + /** + * The transition to daylight. + */ + private TimeZoneTransition transitionToDaylight; + + /** + * The Constant PeriodTarget. + */ + private final static String PeriodTarget = "Period"; + + /** + * The Constant GroupTarget. + */ + private final static String GroupTarget = "Group"; + + + /** + * Loads from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + this.loadFromXml(reader, XmlElementNames.TransitionsGroup); + } + + /** + * Writes to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { + this.writeToXml(writer, XmlElementNames.TransitionsGroup); + } + + /** + * Reads the attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.id = reader.readAttributeValue(XmlAttributeNames.Id); + } + + /** + * Writes the attributes to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.Id, this.id); + } + + /** + * Writes the attributes to XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.ensureCurrentNodeIsStartElement(); + + TimeZoneTransition transition = TimeZoneTransition.create( + this.timeZoneDefinition, reader.getLocalName()); + + transition.loadFromXml(reader); + + EwsUtilities.EwsAssert(transition.getTargetPeriod() != null, + "TimeZoneTransitionGroup.TryReadElementFromXml", + "The transition's target period is null."); + + this.transitions.add(transition); + + return true; + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + for (TimeZoneTransition transition : this.transitions) { + transition.writeToXml(writer); + } + } + + /** + * Validates this transition group. + * + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + public void validate() throws ServiceLocalException { + // There must be exactly one or two transitions in the group. + if (this.transitions.size() < 1 || this.transitions.size() > 2) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + + // If there is only one transition, it must be of type + // TimeZoneTransition + if (this.transitions.size() == 1 + && !(this.transitions.get(0).getClass() == + TimeZoneTransition.class)) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + + // If there are two transitions, none of them should be of type + // TimeZoneTransition + if (this.transitions.size() == 2) { + for (TimeZoneTransition transition : this.transitions) { + if (transition.getClass() == TimeZoneTransition.class) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + } + } + + // All the transitions in the group must be to a period. + for (TimeZoneTransition transition : this.transitions) { + if (transition.getTargetPeriod() == null) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + } + } + + /** + * The Class CustomTimeZoneCreateParams. + */ + protected static class CustomTimeZoneCreateParams { + + /** + * The base offset to utc. + */ + private TimeSpan baseOffsetToUtc; + + /** + * The standard display name. + */ + private String standardDisplayName; + + /** + * The daylight display name. + */ + private String daylightDisplayName; + + /** + * Initializes a new instance of the class. + */ + protected CustomTimeZoneCreateParams() { + } + + /** + * Gets the base offset to UTC. + * + * @return the base offset to utc + */ + protected TimeSpan getBaseOffsetToUtc() { + return this.baseOffsetToUtc; + } + + /** + * Sets the base offset to utc. + * + * @param baseOffsetToUtc the new base offset to utc + */ + protected void setBaseOffsetToUtc(TimeSpan baseOffsetToUtc) { + this.baseOffsetToUtc = baseOffsetToUtc; + } + + /** + * Gets the display name of the standard period. + * + * @return the standard display name + */ + protected String getStandardDisplayName() { + return this.standardDisplayName; + } + + /** + * Sets the standard display name. + * + * @param standardDisplayName the new standard display name + */ + protected void setStandardDisplayName(String standardDisplayName) { + this.standardDisplayName = standardDisplayName; + } + + /** + * Gets the display name of the daylight period. + * + * @return the daylight display name + */ + protected String getDaylightDisplayName() { + return this.daylightDisplayName; + } + + /** + * Sets the daylight display name. + * + * @param daylightDisplayName the new daylight display name + */ + protected void setDaylightDisplayName(String daylightDisplayName) { + this.daylightDisplayName = daylightDisplayName; + } + + /** + * Gets a value indicating whether the custom time zone should have a + * daylight period. true if the custom time zone should + * have a daylight period; otherwise, false. + * + * @return the checks for daylight period + */ + protected boolean getHasDaylightPeriod() { + return (!(this.daylightDisplayName == null || + this.daylightDisplayName.isEmpty())); + } + } + + /** + * Gets a value indicating whether this group contains a transition to the + * Daylight period. true if this group contains a transition + * to daylight; otherwise, false. + * + * @return the supports daylight + */ + protected boolean getSupportsDaylight() { + return this.transitions.size() == 2; + } + + /** + * Initializes the private members holding references to the transitions to + * the Daylight and Standard periods. + * + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + private void initializeTransitions() throws ServiceLocalException { + if (this.transitionToStandard == null) { + for (TimeZoneTransition transition : this.transitions) { + if (transition.getTargetPeriod().isStandardPeriod() || + (this.transitions.size() == 1)) { + this.transitionToStandard = transition; + } else { + this.transitionToDaylight = transition; + } + } + } + + // If we didn't find a Standard period, this is an invalid time zone + // group. + if (this.transitionToStandard == null) { + throw new ServiceLocalException( + Strings.InvalidOrUnsupportedTimeZoneDefinition); + } + } + + /** + * Gets the transition to the Daylight period. + * + * @return the transition to daylight + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + private TimeZoneTransition getTransitionToDaylight() + throws ServiceLocalException { + this.initializeTransitions(); + return this.transitionToDaylight; + } + + /** + * Gets the transition to the Standard period. + * + * @return the transition to standard + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + private TimeZoneTransition getTransitionToStandard() + throws ServiceLocalException { + this.initializeTransitions(); + return this.transitionToStandard; + } + + /** + * Gets the offset to UTC based on this group's transitions. + * + * @return the custom time zone creation params + */ + protected CustomTimeZoneCreateParams getCustomTimeZoneCreationParams() { + CustomTimeZoneCreateParams result = new CustomTimeZoneCreateParams(); + + if (this.transitionToDaylight != null) { + result.setDaylightDisplayName(this.transitionToDaylight + .getTargetPeriod().getName()); + } + + result.setStandardDisplayName(this.transitionToStandard + .getTargetPeriod().getName()); + + // Assume that the standard period's offset is the base offset to UTC. + // EWS returns a positive offset for time zones that are behind UTC, and + // a negative one for time zones ahead of UTC. TimeZoneInfo does it the + // other + // way around. + // result.BaseOffsetToUtc = + // -this.TransitionToStandard.TargetPeriod.Bias; + + return result; + } + + /** + * Initializes a new instance of the class. + * + * @param timeZoneDefinition the time zone definition + */ + protected TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition) { + super(); + this.timeZoneDefinition = timeZoneDefinition; + } + + /** + * Initializes a new instance of the class. + * + * @param timeZoneDefinition the time zone definition + * @param id the id + */ + protected TimeZoneTransitionGroup(TimeZoneDefinition timeZoneDefinition, + String id) { + this(timeZoneDefinition); + this.id = id; + } + + /** + * Gets the id of this group. + * + * @return the id + */ + protected String getId() { + return this.id; + } + + /** + * Sets the id. + * + * @param id the new id + */ + public void setId(String id) { + this.id = id; + } + + /** + * Gets the transitions in this group. + * + * @return the transitions + */ + protected List getTransitions() { + return this.transitions; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java index 481b85b30..49e3574bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java @@ -17,32 +17,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class TokenCredentials extends WSSecurityBasedCredentials { - /** - * Initializes a new instance of the TokenCredentials class. - * - * @param securityToken - * The token. - * @throws ArgumentNullException - * the argument null exception - */ - public TokenCredentials(String securityToken) throws Exception { - super(securityToken); - EwsUtilities.validateParam(securityToken, "securityToken"); - - } + /** + * Initializes a new instance of the TokenCredentials class. + * + * @param securityToken The token. + * @throws ArgumentNullException the argument null exception + */ + public TokenCredentials(String securityToken) throws Exception { + super(securityToken); + EwsUtilities.validateParam(securityToken, "securityToken"); - /** - * This method is called to apply credentials to a service request before - * the request is made. - * - * @param request - * The request. - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - @Override - protected void prepareWebRequest(HttpWebRequest request) - throws URISyntaxException { - this.setEwsUrl(request.getUrl().toURI()); - } + } + + /** + * This method is called to apply credentials to a service request before + * the request is made. + * + * @param request The request. + * @throws java.net.URISyntaxException the uRI syntax exception + */ + @Override + protected void prepareWebRequest(HttpWebRequest request) + throws URISyntaxException { + this.setEwsUrl(request.getUrl().toURI()); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java index 8cd24c514..0d51c7d8a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java @@ -14,63 +14,85 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines flags to control tracing details. */ public enum TraceFlags { - /* + /* * No tracing. */ - /** The None. */ - None, + /** + * The None. + */ + None, /* * Trace EWS request messages. */ - /** The Ews request. */ - EwsRequest, + /** + * The Ews request. + */ + EwsRequest, /* * Trace EWS response messages. */ - /** The Ews response. */ - EwsResponse, + /** + * The Ews response. + */ + EwsResponse, /* * Trace EWS response HTTP headers. */ - /** The Ews response http headers. */ - EwsResponseHttpHeaders, + /** + * The Ews response http headers. + */ + EwsResponseHttpHeaders, /* * Trace Autodiscover request messages. */ - /** The Autodiscover request. */ - AutodiscoverRequest, + /** + * The Autodiscover request. + */ + AutodiscoverRequest, /* * Trace Autodiscover response messages. */ - /** The Autodiscover response. */ - AutodiscoverResponse, + /** + * The Autodiscover response. + */ + AutodiscoverResponse, /* * Trace Autodiscover response HTTP headers. */ - /** The Autodiscover response http headers. */ - AutodiscoverResponseHttpHeaders, + /** + * The Autodiscover response http headers. + */ + AutodiscoverResponseHttpHeaders, /* * Trace Autodiscover configuration logic. */ - /** The Autodiscover configuration. */ - AutodiscoverConfiguration, + /** + * The Autodiscover configuration. + */ + AutodiscoverConfiguration, /* * Trace messages used in debugging the Exchange Web Services Managed API */ - /** The Debug Message. */ - DebugMessage, + /** + * The Debug Message. + */ + DebugMessage, /* * Trace EWS request HTTP headers. */ - /** The Ews Request Http Headers. */ - EwsRequestHttpHeaders, + /** + * The Ews Request Http Headers. + */ + EwsRequestHttpHeaders, /* * Trace Autodiscover request HTTP headers. */ - /** The Autodiscover Request HttpHeaders */ - AutodiscoverRequestHttpHeaders, + /** + * The Autodiscover Request HttpHeaders + */ + AutodiscoverRequestHttpHeaders, } diff --git a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java index fdc1fb950..a31a5f892 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java @@ -10,158 +10,136 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; import java.text.ParseException; import java.util.EnumSet; -import javax.xml.stream.XMLStreamException; - /** * Represents typed property definition. */ abstract class TypedPropertyDefinition extends PropertyDefinition { - /** The is nullable. */ - private boolean isNullable; - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param version - * The version. - */ - protected TypedPropertyDefinition(String xmlElementName, String uri, - ExchangeVersion version) { - super(xmlElementName, uri, version); - this.isNullable = false; - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - */ - protected TypedPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version) { - super(xmlElementName, uri, flags, version); - } - - /** - * Initializes a new instance. - * - * @param xmlElementName - * Name of the XML element. - * @param uri - * The URI. - * @param flags - * The flags. - * @param version - * The version. - * @param isNullable - * Indicates that this property definition is for a nullable - * property. - */ - protected TypedPropertyDefinition(String xmlElementName, String uri, - EnumSet flags, ExchangeVersion version, - boolean isNullable) { - super(xmlElementName, uri, flags, version); - this.isNullable = isNullable; - } - - /** - * Parses the specified value. - * - * @param value - * The value. - * @return Typed value. - * @throws java.text.ParseException - * @throws IllegalAccessException - * @throws InstantiationException - */ - protected abstract Object parse(String value) throws InstantiationException, - IllegalAccessException, ParseException; - - /** - * Gets a value indicating whether this property definition is for a - * nullable type. - * - * @return always true - */ - @Override - protected boolean isNullable() { - return this.isNullable; - } - - /** - * Convert instance to string. - * - * @param value - * The value. - * @return String representation of property value. - */ - protected String toString(Object value) { - return value.toString(); - } - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @param propertyBag - * The property bag. - * @throws Exception - * the exception - */ - @Override - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - String value = reader.readElementValue(XmlNamespace.Types, this - .getXmlElement()); - - if (value != null && !value.isEmpty()) { - propertyBag - .setObjectFromPropertyDefinition(this, this.parse(value)); - } - } - - /** - * Writes the property value to XML. - * - * @param writer - * The writer. - * @param propertyBag - * The property bag. - * @param isUpdateOperation - * Indicates whether the context is an update operation. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - @Override - protected void writePropertyValueToXml(EwsServiceXmlWriter writer, - PropertyBag propertyBag, boolean isUpdateOperation) - throws XMLStreamException, ServiceXmlSerializationException, - ServiceLocalException { - Object value = propertyBag.getObjectFromPropertyDefinition(this); - - if (value != null) { - writer.writeElementValue(XmlNamespace.Types, this.getXmlElement(), - this.getName(), value); - } - - } + /** + * The is nullable. + */ + private boolean isNullable; + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param version The version. + */ + protected TypedPropertyDefinition(String xmlElementName, String uri, + ExchangeVersion version) { + super(xmlElementName, uri, version); + this.isNullable = false; + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + */ + protected TypedPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version) { + super(xmlElementName, uri, flags, version); + } + + /** + * Initializes a new instance. + * + * @param xmlElementName Name of the XML element. + * @param uri The URI. + * @param flags The flags. + * @param version The version. + * @param isNullable Indicates that this property definition is for a nullable + * property. + */ + protected TypedPropertyDefinition(String xmlElementName, String uri, + EnumSet flags, ExchangeVersion version, + boolean isNullable) { + super(xmlElementName, uri, flags, version); + this.isNullable = isNullable; + } + + /** + * Parses the specified value. + * + * @param value The value. + * @return Typed value. + * @throws java.text.ParseException + * @throws IllegalAccessException + * @throws InstantiationException + */ + protected abstract Object parse(String value) throws InstantiationException, + IllegalAccessException, ParseException; + + /** + * Gets a value indicating whether this property definition is for a + * nullable type. + * + * @return always true + */ + @Override + protected boolean isNullable() { + return this.isNullable; + } + + /** + * Convert instance to string. + * + * @param value The value. + * @return String representation of property value. + */ + protected String toString(Object value) { + return value.toString(); + } + + /** + * Loads from XML. + * + * @param reader The reader. + * @param propertyBag The property bag. + * @throws Exception the exception + */ + @Override + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, + PropertyBag propertyBag) throws Exception { + String value = reader.readElementValue(XmlNamespace.Types, this + .getXmlElement()); + + if (value != null && !value.isEmpty()) { + propertyBag + .setObjectFromPropertyDefinition(this, this.parse(value)); + } + } + + /** + * Writes the property value to XML. + * + * @param writer The writer. + * @param propertyBag The property bag. + * @param isUpdateOperation Indicates whether the context is an update operation. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + @Override + protected void writePropertyValueToXml(EwsServiceXmlWriter writer, + PropertyBag propertyBag, boolean isUpdateOperation) + throws XMLStreamException, ServiceXmlSerializationException, + ServiceLocalException { + Object value = propertyBag.getObjectFromPropertyDefinition(this); + + if (value != null) { + writer.writeElementValue(XmlNamespace.Types, this.getXmlElement(), + this.getName(), value); + } + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java index 4d3d0caf6..a61820917 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java @@ -15,76 +15,70 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class UnifiedMessaging { - /** The service. */ - private ExchangeService service; + /** + * The service. + */ + private ExchangeService service; - /** - * Constructor. - * - * @param service - * the service - */ - protected UnifiedMessaging(ExchangeService service) { - this.service = service; - } + /** + * Constructor. + * + * @param service the service + */ + protected UnifiedMessaging(ExchangeService service) { + this.service = service; + } - /** - * Calls a phone and reads a message to the person who picks up. - * - * @param itemId - * the item id - * @param dialString - * the dial string - * @return An object providing status for the phone call. - * @throws Exception - * the exception - */ - public PhoneCall playOnPhone(ItemId itemId, String dialString) - throws Exception { - EwsUtilities.validateParam(itemId, "itemId"); - EwsUtilities.validateParam(dialString, "dialString"); + /** + * Calls a phone and reads a message to the person who picks up. + * + * @param itemId the item id + * @param dialString the dial string + * @return An object providing status for the phone call. + * @throws Exception the exception + */ + public PhoneCall playOnPhone(ItemId itemId, String dialString) + throws Exception { + EwsUtilities.validateParam(itemId, "itemId"); + EwsUtilities.validateParam(dialString, "dialString"); - PlayOnPhoneRequest request = new PlayOnPhoneRequest(service); - request.setDialString(dialString); - request.setItemId(itemId); - PlayOnPhoneResponse serviceResponse = request.execute(); + PlayOnPhoneRequest request = new PlayOnPhoneRequest(service); + request.setDialString(dialString); + request.setItemId(itemId); + PlayOnPhoneResponse serviceResponse = request.execute(); - PhoneCall callInformation = new PhoneCall(service, serviceResponse - .getPhoneCallId()); + PhoneCall callInformation = new PhoneCall(service, serviceResponse + .getPhoneCallId()); - return callInformation; - } + return callInformation; + } - /** - * Retrieves information about a current phone call. - * - * @param id - * the id - * @return An object providing status for the phone call. - * @throws Exception - * the exception - */ - protected PhoneCall getPhoneCallInformation(PhoneCallId id) - throws Exception { - GetPhoneCallRequest request = new GetPhoneCallRequest(service); - request.setId(id); - GetPhoneCallResponse response = request.execute(); + /** + * Retrieves information about a current phone call. + * + * @param id the id + * @return An object providing status for the phone call. + * @throws Exception the exception + */ + protected PhoneCall getPhoneCallInformation(PhoneCallId id) + throws Exception { + GetPhoneCallRequest request = new GetPhoneCallRequest(service); + request.setId(id); + GetPhoneCallResponse response = request.execute(); - return response.getPhoneCall(); - } + return response.getPhoneCall(); + } - /** - * Disconnects a phone call. - * - * @param id - * the id - * @throws Exception - * the exception - */ - protected void disconnectPhoneCall(PhoneCallId id) throws Exception { - DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest( - service); - request.setId(id); - request.execute(); - } + /** + * Disconnects a phone call. + * + * @param id the id + * @throws Exception the exception + */ + protected void disconnectPhoneCall(PhoneCallId id) throws Exception { + DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest( + service); + request.setId(id); + request.execute(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java index b88db1cb8..4aaa6d604 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java @@ -18,116 +18,109 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class UniqueBody extends ComplexProperty { - /** The body type. */ - private BodyType bodyType; + /** + * The body type. + */ + private BodyType bodyType; - /** The text. */ - private String text; + /** + * The text. + */ + private String text; - /** - * Initializes a new instance. - */ - protected UniqueBody() { - } + /** + * Initializes a new instance. + */ + protected UniqueBody() { + } - /** - * Defines an implicit conversion of UniqueBody into a string. - * - * @param messageBody - * the message body - * @return string containing the text of the UniqueBody - * @throws Exception - * the exception - */ - public static String getStringFromUniqueBody(UniqueBody messageBody) - throws Exception { - EwsUtilities.validateParam(messageBody, "messageBody"); - return messageBody.text; - } + /** + * Defines an implicit conversion of UniqueBody into a string. + * + * @param messageBody the message body + * @return string containing the text of the UniqueBody + * @throws Exception the exception + */ + public static String getStringFromUniqueBody(UniqueBody messageBody) + throws Exception { + EwsUtilities.validateParam(messageBody, "messageBody"); + return messageBody.text; + } - /** - * Reads attributes from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - protected void readAttributesFromXml(EwsServiceXmlReader reader) - throws Exception { - this.bodyType = reader.readAttributeValue(BodyType.class, - XmlAttributeNames.BodyType); - } + /** + * Reads attributes from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + protected void readAttributesFromXml(EwsServiceXmlReader reader) + throws Exception { + this.bodyType = reader.readAttributeValue(BodyType.class, + XmlAttributeNames.BodyType); + } - /** - * Reads attributes from XML. - * - * @param reader - * the reader - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - */ - protected void readTextValueFromXml(EwsServiceXmlReader reader) - throws XMLStreamException, ServiceXmlDeserializationException { - this.text = reader.readValue(); - } + /** + * Reads attributes from XML. + * + * @param reader the reader + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + protected void readTextValueFromXml(EwsServiceXmlReader reader) + throws XMLStreamException, ServiceXmlDeserializationException { + this.text = reader.readValue(); + } - /** - * Reads attributes from XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - writer.writeAttributeValue(XmlAttributeNames.BodyType, this.bodyType); - } + /** + * Reads attributes from XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + writer.writeAttributeValue(XmlAttributeNames.BodyType, this.bodyType); + } - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - if (!(this.text == null || this.text.isEmpty())) { - writer.writeValue(this.text, XmlElementNames.UniqueBody); - } - } + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + if (!(this.text == null || this.text.isEmpty())) { + writer.writeValue(this.text, XmlElementNames.UniqueBody); + } + } - /** - * Gets the type of the unique body's text. - * - * @return bodytype - */ - public BodyType getBodyType() { - return this.bodyType; - } + /** + * Gets the type of the unique body's text. + * + * @return bodytype + */ + public BodyType getBodyType() { + return this.bodyType; + } - /** - * Gets the text of the unique body. - * - * @return text - */ - public String getText() { - return this.text; - } + /** + * Gets the text of the unique body. + * + * @return text + */ + public String getText() { + return this.text; + } - /* - * (non-Javadoc) - * - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return (this.getText() == null) ? "" : this.getText(); - } + /* + * (non-Javadoc) + * + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return (this.getText() == null) ? "" : this.getText(); + } -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java index 1ee66337c..1e9bdd3db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java @@ -17,136 +17,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class UnsubscribeRequest extends MultiResponseServiceRequest { - /** The subscription id. */ - private String subscriptionId; - - /** - * Instantiates a new unsubscribe request. - * - * @param service - * the service - * @throws Exception - */ - protected UnsubscribeRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } - - /** - * Creates service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } - - /** - * Gets the name of the XML element. - * - * @return Xml element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.Unsubscribe; - } - - /** - * Gets the name of the response XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UnsubscribeResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.UnsubscribeResponseMessage; - } - - /** - * Validate the request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateNonBlankStringParam(this. - getSubscriptionId(), "SubscriptionId"); - - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.SubscriptionId, this.getSubscriptionId()); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the subscription id. - * - * @return the subscription id - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * Sets the subscription id. - * - * @param subscriptionId - * the new subscription id - */ - public void setSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - } + /** + * The subscription id. + */ + private String subscriptionId; + + /** + * Instantiates a new unsubscribe request. + * + * @param service the service + * @throws Exception + */ + protected UnsubscribeRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } + + /** + * Creates service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } + + /** + * Gets the name of the XML element. + * + * @return Xml element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.Unsubscribe; + } + + /** + * Gets the name of the response XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UnsubscribeResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.UnsubscribeResponseMessage; + } + + /** + * Validate the request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateNonBlankStringParam(this. + getSubscriptionId(), "SubscriptionId"); + + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.SubscriptionId, this.getSubscriptionId()); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the subscription id. + * + * @return the subscription id + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + + /** + * Sets the subscription id. + * + * @param subscriptionId the new subscription id + */ + public void setSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java index d382063af..115e5fec9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java @@ -17,139 +17,138 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an UpdateDelegate request. */ public class UpdateDelegateRequest extends - DelegateManagementRequestBase { - - /** The delegate users. */ - private List delegateUsers = new ArrayList(); - - /** The meeting requests delivery scope. */ - private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope; - - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected UpdateDelegateRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Validate request.. - * - * @throws Exception - * the exception - */ - @Override - protected void validate() throws Exception { - super.validate(); - EwsUtilities.validateParamCollection( - this.getDelegateUsers().iterator(), "DelegateUsers"); - for(DelegateUser delegateUser:this.getDelegateUsers()) { - delegateUser.validateUpdateDelegate(); - } - } - - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - super.writeElementsToXml(writer); - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.DelegateUsers); - - for (DelegateUser delegateUser : this.getDelegateUsers()) { - delegateUser.writeToXml(writer, XmlElementNames.DelegateUser); - } - - writer.writeEndElement(); // DelegateUsers - - if (this.getMeetingRequestsDeliveryScope() != null) { - writer.writeElementValue(XmlNamespace.Messages, - XmlElementNames.DeliverMeetingRequests, this - .getMeetingRequestsDeliveryScope()); - } - } - - /** - * Gets the name of the response XML element. - * - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UpdateDelegateResponse; - } - - /** - * Creates the response. - * - * @return Response object. - */ - @Override - protected DelegateManagementResponse createResponse() { - return new DelegateManagementResponse(true, this.delegateUsers); - } - - /** - * Gets the name of the XML element. - * - * @return Xml element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.UpdateDelegate; - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the meeting requests delivery scope. The meeting - * requests delivery scope. - * - * @return the meeting requests delivery scope - */ - public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { - return this.meetingRequestsDeliveryScope; - } - - /** - * Sets the meeting requests delivery scope. - * - * @param value - * the new meeting requests delivery scope - */ - public void setMeetingRequestsDeliveryScope( - MeetingRequestsDeliveryScope value) { - this.meetingRequestsDeliveryScope = value; - } - - /** - * Gets the delegate users. The delegate users. - * - * @return the delegate users - */ - public List getDelegateUsers() { - return this.delegateUsers; - } + DelegateManagementRequestBase { + + /** + * The delegate users. + */ + private List delegateUsers = new ArrayList(); + + /** + * The meeting requests delivery scope. + */ + private MeetingRequestsDeliveryScope meetingRequestsDeliveryScope; + + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected UpdateDelegateRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Validate request.. + * + * @throws Exception the exception + */ + @Override + protected void validate() throws Exception { + super.validate(); + EwsUtilities.validateParamCollection( + this.getDelegateUsers().iterator(), "DelegateUsers"); + for (DelegateUser delegateUser : this.getDelegateUsers()) { + delegateUser.validateUpdateDelegate(); + } + } + + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + super.writeElementsToXml(writer); + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.DelegateUsers); + + for (DelegateUser delegateUser : this.getDelegateUsers()) { + delegateUser.writeToXml(writer, XmlElementNames.DelegateUser); + } + + writer.writeEndElement(); // DelegateUsers + + if (this.getMeetingRequestsDeliveryScope() != null) { + writer.writeElementValue(XmlNamespace.Messages, + XmlElementNames.DeliverMeetingRequests, this + .getMeetingRequestsDeliveryScope()); + } + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UpdateDelegateResponse; + } + + /** + * Creates the response. + * + * @return Response object. + */ + @Override + protected DelegateManagementResponse createResponse() { + return new DelegateManagementResponse(true, this.delegateUsers); + } + + /** + * Gets the name of the XML element. + * + * @return Xml element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.UpdateDelegate; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the meeting requests delivery scope. The meeting + * requests delivery scope. + * + * @return the meeting requests delivery scope + */ + public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope() { + return this.meetingRequestsDeliveryScope; + } + + /** + * Sets the meeting requests delivery scope. + * + * @param value the new meeting requests delivery scope + */ + public void setMeetingRequestsDeliveryScope( + MeetingRequestsDeliveryScope value) { + this.meetingRequestsDeliveryScope = value; + } + + /** + * Gets the delegate users. The delegate users. + * + * @return the delegate users + */ + public List getDelegateUsers() { + return this.delegateUsers; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java index 2b568865e..c0290e50a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java @@ -16,143 +16,137 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents an UpdateFolder request. */ final class UpdateFolderRequest extends - MultiResponseServiceRequest { - - /** The folders. */ - private ArrayList folders = new ArrayList(); - - /** - * Initializes a new instance of the UpdateFolderRequest class. - * - * @param service - * The Servcie - * @param errorHandlingMode - * Indicates how errors should be handled. - * @throws Exception - */ - protected UpdateFolderRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /** - * validates request. - * - * @throws ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParamCollection(this - .getFolders().iterator(), "Folders"); - for (int i = 0; i < this.getFolders().size(); i++) { - Folder folder = this.getFolders().get(i); - - if ((folder == null) || folder.isNew()) { - throw new IllegalArgumentException(String.format( - Strings.FolderToUpdateCannotBeNullOrNew, i)); - } - - folder.validate(); - } - } - - /** - * Creates the service response. - * - * @param session - * The session - * @param responseIndex - * Index of the response. - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService session, - int responseIndex) { - return new UpdateFolderResponse(this.getFolders().get(responseIndex)); - } - - /** - *Gets the name of the XML element. - * - * @return Xml element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.UpdateFolder; - } - - /** - * Gets the name of the response XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UpdateFolderResponse; - } - - /** - * Gets the name of the response message XML element. - * - * @return Xml element name. - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.UpdateFolderResponseMessage; - } - - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.getFolders().size(); - } - - /** - * Writes to xml. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.FolderChanges); - - for (Folder folder : this.folders) { - folder.writeToXmlForUpdate(writer); - } - - writer.writeEndElement(); - } - - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the folders. - * - * @return the folders - */ - public ArrayList getFolders() { - return this.folders; - } + MultiResponseServiceRequest { + + /** + * The folders. + */ + private ArrayList folders = new ArrayList(); + + /** + * Initializes a new instance of the UpdateFolderRequest class. + * + * @param service The Servcie + * @param errorHandlingMode Indicates how errors should be handled. + * @throws Exception + */ + protected UpdateFolderRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /** + * validates request. + * + * @throws ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParamCollection(this + .getFolders().iterator(), "Folders"); + for (int i = 0; i < this.getFolders().size(); i++) { + Folder folder = this.getFolders().get(i); + + if ((folder == null) || folder.isNew()) { + throw new IllegalArgumentException(String.format( + Strings.FolderToUpdateCannotBeNullOrNew, i)); + } + + folder.validate(); + } + } + + /** + * Creates the service response. + * + * @param session The session + * @param responseIndex Index of the response. + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService session, + int responseIndex) { + return new UpdateFolderResponse(this.getFolders().get(responseIndex)); + } + + /** + * Gets the name of the XML element. + * + * @return Xml element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.UpdateFolder; + } + + /** + * Gets the name of the response XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UpdateFolderResponse; + } + + /** + * Gets the name of the response message XML element. + * + * @return Xml element name. + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.UpdateFolderResponseMessage; + } + + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.getFolders().size(); + } + + /** + * Writes to xml. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.FolderChanges); + + for (Folder folder : this.folders) { + folder.writeToXmlForUpdate(writer); + } + + writer.writeEndElement(); + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the folders. + * + * @return the folders + */ + public ArrayList getFolders() { + return this.folders; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java index 297d73977..59ec99538 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java @@ -14,82 +14,76 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents response to UpdateFolder request. */ final class UpdateFolderResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { - /** The folder. */ - private Folder folder; + /** + * The folder. + */ + private Folder folder; - /** - * Initializes a new instance of the UpdateFolderResponse class. - * - * @param folder - * The folder - */ - protected UpdateFolderResponse(Folder folder) { - super(); - EwsUtilities.EwsAssert(folder != null, "UpdateFolderResponse.ctor", - "folder is null"); + /** + * Initializes a new instance of the UpdateFolderResponse class. + * + * @param folder The folder + */ + protected UpdateFolderResponse(Folder folder) { + super(); + EwsUtilities.EwsAssert(folder != null, "UpdateFolderResponse.ctor", + "folder is null"); - this.folder = folder; - } + this.folder = folder; + } - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws Exception - * the exception - */ - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws Exception { - super.readElementsFromXml(reader); + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws Exception the exception + */ + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws Exception { + super.readElementsFromXml(reader); - reader.readServiceObjectsCollectionFromXml(XmlElementNames.Folders, - this, false, /* clearPropertyBag */ - null, /* requestedPropertySet */ - false); /* summaryPropertiesOnly */ - } + reader.readServiceObjectsCollectionFromXml(XmlElementNames.Folders, + this, false, /* clearPropertyBag */ + null, /* requestedPropertySet */ + false); /* summaryPropertiesOnly */ + } - /** - * Clears the change log of the updated folder if the update succeeded. - */ - @Override - protected void loaded() { - if (this.getResult() == ServiceResult.Success) { - this.folder.clearChangeLog(); - } - } + /** + * Clears the change log of the updated folder if the update succeeded. + */ + @Override + protected void loaded() { + if (this.getResult() == ServiceResult.Success) { + this.folder.clearChangeLog(); + } + } - /** - * Gets Folder instance. - * - * @param session - * The session - * @param xmlElementName - * Name of the XML element. - * @return Folder - */ - private Folder getObjectInstance(ExchangeService session, - String xmlElementName) { - return this.folder; - } + /** + * Gets Folder instance. + * + * @param session The session + * @param xmlElementName Name of the XML element. + * @return Folder + */ + private Folder getObjectInstance(ExchangeService session, + String xmlElementName) { + return this.folder; + } - /** - * Gets the object instance delegate. - * - * @param service - * accepts ExchangeService - * @param xmlElementName - * accepts String - * @return Object - * @throws Exception - * throws Exception - */ - @Override - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } + /** + * Gets the object instance delegate. + * + * @param service accepts ExchangeService + * @param xmlElementName accepts String + * @return Object + * @throws Exception throws Exception + */ + @Override + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index 6178ebfd9..7913bf595 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -11,64 +11,63 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; /** - * Represents an exception thrown when an error occurs as a result of calling + * Represents an exception thrown when an error occurs as a result of calling * the UpdateInboxRules operation. */ public class UpdateInboxRulesException extends ServiceRemoteException { - - /** - * ServiceResponse when service operation failed remotely. - */ - private ServiceResponse serviceResponse; - - /** - * Rule operation error collection. - */ - private RuleOperationErrorCollection errors; - - /** - * Initializes a new instance of the UpdateInboxRulesException class. - * @param serviceResponse - * The rule operation service response. - * @param ruleOperations - * The original operations. - */ - protected UpdateInboxRulesException(UpdateInboxRulesResponse serviceResponse, - Iterable ruleOperations){ - super(); - this.serviceResponse = serviceResponse; - this.errors = serviceResponse.getErrors(); - for (RuleOperationError error : this.errors) { - error.setOperationByIndex(ruleOperations.iterator()); - } - } - - /** - * Gets the ServiceResponse for the exception. - */ - public ServiceResponse getServiceResponse() { - return this.serviceResponse; - } - - /** - * Gets the rule operation error collection. - */ - public RuleOperationErrorCollection getErrors() { - return this.errors; - } - - /** - * Gets the rule operation error code. - */ - public ServiceError getErrorCode() { - return this.serviceResponse.getErrorCode(); - } - - /** - * Gets the rule operation error message. - */ - public String getErrorMessage() { - return this.serviceResponse.getErrorMessage(); + + /** + * ServiceResponse when service operation failed remotely. + */ + private ServiceResponse serviceResponse; + + /** + * Rule operation error collection. + */ + private RuleOperationErrorCollection errors; + + /** + * Initializes a new instance of the UpdateInboxRulesException class. + * + * @param serviceResponse The rule operation service response. + * @param ruleOperations The original operations. + */ + protected UpdateInboxRulesException(UpdateInboxRulesResponse serviceResponse, + Iterable ruleOperations) { + super(); + this.serviceResponse = serviceResponse; + this.errors = serviceResponse.getErrors(); + for (RuleOperationError error : this.errors) { + error.setOperationByIndex(ruleOperations.iterator()); } + } + + /** + * Gets the ServiceResponse for the exception. + */ + public ServiceResponse getServiceResponse() { + return this.serviceResponse; + } + + /** + * Gets the rule operation error collection. + */ + public RuleOperationErrorCollection getErrors() { + return this.errors; + } + + /** + * Gets the rule operation error code. + */ + public ServiceError getErrorCode() { + return this.serviceResponse.getErrorCode(); + } + + /** + * Gets the rule operation error message. + */ + public String getErrorMessage() { + return this.serviceResponse.getErrorMessage(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index f2faaae44..39d0485a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -13,183 +13,190 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a UpdateInboxRulesRequest request. */ -final class UpdateInboxRulesRequest extends SimpleServiceRequestBase{ - /** - * The smtp address of the mailbox from which to get the inbox rules. - */ - private String mailboxSmtpAddress; - - /** - * Remove OutlookRuleBlob or not. - */ - private boolean removeOutlookRuleBlob; - - /** - * InboxRule operation collection. - */ - private Iterable inboxRuleOperations; - - /** - * Initializes a new instance of the - * class. - * @param service The service. - */ - protected UpdateInboxRulesRequest(ExchangeService service) - throws Exception { - super(service); - } - - /** - * Gets the name of the XML element. - * @return XML element name. - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.UpdateInboxRules; - } - - /** - * Writes XML elements. - * @param writer The writer. - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (!(mailboxSmtpAddress == null || mailboxSmtpAddress.isEmpty())) { - writer.writeElementValue( - XmlNamespace.Messages, - XmlElementNames.MailboxSmtpAddress, - this.mailboxSmtpAddress); - } - - writer.writeElementValue( - XmlNamespace.Messages, - XmlElementNames.RemoveOutlookRuleBlob, - this.removeOutlookRuleBlob); - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.Operations); - for(RuleOperation operation : this.inboxRuleOperations) { - operation.writeToXml(writer, operation.getXmlElementName()); - } - writer.writeEndElement(); - } - - /** - * Gets the name of the response XML element. - * @return XML element name. - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UpdateInboxRulesResponse; - } - - /** - * Parses the response. - * @param reader The reader. - * @return Response object. - * @throws Exception - */ - @Override - protected Object parseResponse(EwsServiceXmlReader reader) - throws Exception { - UpdateInboxRulesResponse response = new UpdateInboxRulesResponse(); - response.loadFromXml(reader, XmlElementNames.UpdateInboxRulesResponse); - return response; - } - - /** - * Gets the request version. - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010_SP1; - } - - /** - * Validate request. - */ - @Override - protected void validate() throws Exception { - if (this.inboxRuleOperations == null) { - throw new IllegalArgumentException( - "RuleOperations cannot be null."+ "Operations"); - } - - int operationCount = 0; - for(RuleOperation operation : this.inboxRuleOperations) { - EwsUtilities.validateParam(operation, "RuleOperation"); - operationCount++; - } - - if (operationCount == 0) { - throw new IllegalArgumentException( - "RuleOperations cannot be empty."+ "Operations"); - } - - this.getService().validate(); - } - - /** - * Executes this request. - * @return Service response. - * @throws Exception - * @throws microsoft.exchange.webservices.data.ServiceLocalException - */ - protected UpdateInboxRulesResponse execute() - throws ServiceLocalException, Exception { - UpdateInboxRulesResponse serviceResponse = - (UpdateInboxRulesResponse)this.internalExecute(); - if (serviceResponse.getResult() == ServiceResult.Error) { - throw new UpdateInboxRulesException(serviceResponse, - this.inboxRuleOperations); - } - return serviceResponse; - } - - /** - * Gets the address of the mailbox in which to update the inbox rules. - */ - protected String getMailboxSmtpAddress() { - return this.mailboxSmtpAddress; - } - - /** - * Sets the address of the mailbox in which to update the inbox rules. - */ - protected void setMailboxSmtpAddress(String value) { - this.mailboxSmtpAddress = value; - } - - /** - * Gets a value indicating whether or not to - * remove OutlookRuleBlob from the rule collection. - */ - protected boolean getRemoveOutlookRuleBlob() { - return this.removeOutlookRuleBlob; - } - - /** - * Sets a value indicating whether or not to - * remove OutlookRuleBlob from the rule collection. - */ - protected void setRemoveOutlookRuleBlob(boolean value) { - this.removeOutlookRuleBlob = value; - } - - - /** - * Gets the RuleOperation collection. - */ - protected Iterable getInboxRuleOperations() { - return this.inboxRuleOperations; - } - - /** - * Sets the RuleOperation collection. - */ - protected void setInboxRuleOperations(Iterable value) { - this.inboxRuleOperations = value; - } - -} \ No newline at end of file +final class UpdateInboxRulesRequest extends SimpleServiceRequestBase { + /** + * The smtp address of the mailbox from which to get the inbox rules. + */ + private String mailboxSmtpAddress; + + /** + * Remove OutlookRuleBlob or not. + */ + private boolean removeOutlookRuleBlob; + + /** + * InboxRule operation collection. + */ + private Iterable inboxRuleOperations; + + /** + * Initializes a new instance of the + * class. + * + * @param service The service. + */ + protected UpdateInboxRulesRequest(ExchangeService service) + throws Exception { + super(service); + } + + /** + * Gets the name of the XML element. + * + * @return XML element name. + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.UpdateInboxRules; + } + + /** + * Writes XML elements. + * + * @param writer The writer. + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (!(mailboxSmtpAddress == null || mailboxSmtpAddress.isEmpty())) { + writer.writeElementValue( + XmlNamespace.Messages, + XmlElementNames.MailboxSmtpAddress, + this.mailboxSmtpAddress); + } + + writer.writeElementValue( + XmlNamespace.Messages, + XmlElementNames.RemoveOutlookRuleBlob, + this.removeOutlookRuleBlob); + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.Operations); + for (RuleOperation operation : this.inboxRuleOperations) { + operation.writeToXml(writer, operation.getXmlElementName()); + } + writer.writeEndElement(); + } + + /** + * Gets the name of the response XML element. + * + * @return XML element name. + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UpdateInboxRulesResponse; + } + + /** + * Parses the response. + * + * @param reader The reader. + * @return Response object. + * @throws Exception + */ + @Override + protected Object parseResponse(EwsServiceXmlReader reader) + throws Exception { + UpdateInboxRulesResponse response = new UpdateInboxRulesResponse(); + response.loadFromXml(reader, XmlElementNames.UpdateInboxRulesResponse); + return response; + } + + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010_SP1; + } + + /** + * Validate request. + */ + @Override + protected void validate() throws Exception { + if (this.inboxRuleOperations == null) { + throw new IllegalArgumentException( + "RuleOperations cannot be null." + "Operations"); + } + + int operationCount = 0; + for (RuleOperation operation : this.inboxRuleOperations) { + EwsUtilities.validateParam(operation, "RuleOperation"); + operationCount++; + } + + if (operationCount == 0) { + throw new IllegalArgumentException( + "RuleOperations cannot be empty." + "Operations"); + } + + this.getService().validate(); + } + + /** + * Executes this request. + * + * @return Service response. + * @throws Exception + * @throws microsoft.exchange.webservices.data.ServiceLocalException + */ + protected UpdateInboxRulesResponse execute() + throws ServiceLocalException, Exception { + UpdateInboxRulesResponse serviceResponse = + (UpdateInboxRulesResponse) this.internalExecute(); + if (serviceResponse.getResult() == ServiceResult.Error) { + throw new UpdateInboxRulesException(serviceResponse, + this.inboxRuleOperations); + } + return serviceResponse; + } + + /** + * Gets the address of the mailbox in which to update the inbox rules. + */ + protected String getMailboxSmtpAddress() { + return this.mailboxSmtpAddress; + } + + /** + * Sets the address of the mailbox in which to update the inbox rules. + */ + protected void setMailboxSmtpAddress(String value) { + this.mailboxSmtpAddress = value; + } + + /** + * Gets a value indicating whether or not to + * remove OutlookRuleBlob from the rule collection. + */ + protected boolean getRemoveOutlookRuleBlob() { + return this.removeOutlookRuleBlob; + } + + /** + * Sets a value indicating whether or not to + * remove OutlookRuleBlob from the rule collection. + */ + protected void setRemoveOutlookRuleBlob(boolean value) { + this.removeOutlookRuleBlob = value; + } + + + /** + * Gets the RuleOperation collection. + */ + protected Iterable getInboxRuleOperations() { + return this.inboxRuleOperations; + } + + /** + * Sets the RuleOperation collection. + */ + protected void setInboxRuleOperations(Iterable value) { + this.inboxRuleOperations = value; + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index 15a6bf301..82af2419c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -13,49 +13,48 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents the response to a UpdateInboxRulesResponse operation. */ -final class UpdateInboxRulesResponse extends ServiceResponse{ - - /** - * Rule operation error collection. - */ - private RuleOperationErrorCollection errors; +final class UpdateInboxRulesResponse extends ServiceResponse { - /** - * Initializes a new instance of the UpdateInboxRulesResponse class. - */ - protected UpdateInboxRulesResponse() { - super(); - this.errors = new RuleOperationErrorCollection(); - } + /** + * Rule operation error collection. + */ + private RuleOperationErrorCollection errors; - /** - * Loads extra error details from XML - * @param reader The reader. - * @param xmlElementName The current element name of the extra error details. - * @return True if the expected extra details is loaded, - * False if the element name does not match the expected element. - * @throws Exception - */ - @Override - protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, - String xmlElementName) throws Exception { - if (xmlElementName.equals(XmlElementNames.MessageXml)) { - return super.loadExtraErrorDetailsFromXml(reader, xmlElementName); - } - else if (xmlElementName.equals(XmlElementNames.RuleOperationErrors)) { - this.getErrors().loadFromXml(reader, - XmlNamespace.Messages, xmlElementName); - return true; - } - else { - return false; - } - } + /** + * Initializes a new instance of the UpdateInboxRulesResponse class. + */ + protected UpdateInboxRulesResponse() { + super(); + this.errors = new RuleOperationErrorCollection(); + } - /** - * Gets the rule operation errors in the response. - */ - protected RuleOperationErrorCollection getErrors() { - return this.errors; - } + /** + * Loads extra error details from XML + * + * @param reader The reader. + * @param xmlElementName The current element name of the extra error details. + * @return True if the expected extra details is loaded, + * False if the element name does not match the expected element. + * @throws Exception + */ + @Override + protected boolean loadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, + String xmlElementName) throws Exception { + if (xmlElementName.equals(XmlElementNames.MessageXml)) { + return super.loadExtraErrorDetailsFromXml(reader, xmlElementName); + } else if (xmlElementName.equals(XmlElementNames.RuleOperationErrors)) { + this.getErrors().loadFromXml(reader, + XmlNamespace.Messages, xmlElementName); + return true; + } else { + return false; + } + } + + /** + * Gets the rule operation errors in the response. + */ + protected RuleOperationErrorCollection getErrors() { + return this.errors; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java index da7cc32a0..f6bdc3c89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java @@ -17,277 +17,281 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class UpdateItemRequest. */ final class UpdateItemRequest extends - MultiResponseServiceRequest { - - /** The items. */ - private List items = new ArrayList(); - - /** The saved items destination folder. */ - private FolderId savedItemsDestinationFolder; - - /** The conflict resolution mode. */ - private ConflictResolutionMode conflictResolutionMode; - - /** The message disposition. */ - private MessageDisposition messageDisposition; - - /** The send invitations or cancellations mode. */ - private SendInvitationsOrCancellationsMode - sendInvitationsOrCancellationsMode; - - /** - * Instantiates a new update item request. - * - * @param service - * the service - * @param errorHandlingMode - * the error handling mode - * @throws Exception - */ - protected UpdateItemRequest(ExchangeService service, - ServiceErrorHandling errorHandlingMode) - throws Exception { - super(service, errorHandlingMode); - } - - /* - * (non-Javadoc) - * - * @see microsoft.exchange.webservices.ServiceRequestBase#validate() - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParamCollection(this.getItems().iterator(), - "Items"); - for (int i = 0; i < this.getItems().size(); i++) { - if ((this.getItems().get(i) == null) || - this.getItems().get(i).isNew()) { - throw new ArgumentException(String.format( - Strings.ItemToUpdateCannotBeNullOrNew, i)); - } - } - - if (this.savedItemsDestinationFolder != null) { - this.savedItemsDestinationFolder.validate(this.getService() - .getRequestedServerVersion()); - } - - // Validate each item. - for (Item item : this.getItems()) { - item.validate(); - } - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# - * createServiceResponse(microsoft.exchange.webservices.ExchangeService, - * int) - */ - @Override - protected UpdateItemResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new UpdateItemResponse(this.getItems().get(responseIndex)); - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ServiceRequestBase#getXmlElementName() - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.UpdateItem; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ServiceRequestBase - * #getResponseXmlElementName - * () - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UpdateItemResponse; - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# - * getResponseMessageXmlElementName() - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.UpdateItemResponseMessage; - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# - * getExpectedResponseMessageCount() - */ - @Override - protected int getExpectedResponseMessageCount() { - return this.items.size(); - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ServiceRequestBase#writeAttributesToXml - * (microsoft.exchange.webservices.EwsServiceXmlWriter) - */ - @Override - protected void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException { - super.writeAttributesToXml(writer); - - if (this.messageDisposition != null) { - writer.writeAttributeValue(XmlAttributeNames.MessageDisposition, - this.messageDisposition); - } - - writer.writeAttributeValue(XmlAttributeNames.ConflictResolution, - this.conflictResolutionMode); - - if (this.sendInvitationsOrCancellationsMode != null) { - writer.writeAttributeValue( - XmlAttributeNames.SendMeetingInvitationsOrCancellations, - this.sendInvitationsOrCancellationsMode); - } - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ServiceRequestBase#writeElementsToXml( - * microsoft.exchange.webservices.EwsServiceXmlWriter) - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - if (this.savedItemsDestinationFolder != null) { - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.SavedItemFolderId); - this.savedItemsDestinationFolder.writeToXml(writer); - writer.writeEndElement(); - } - - writer.writeStartElement(XmlNamespace.Messages, - XmlElementNames.ItemChanges); - - for (Item item : this.items) { - item.writeToXmlForUpdate(writer); - } - - writer.writeEndElement(); - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.ServiceRequestBase# - * getMinimumRequiredServerVersion() - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2007_SP1; - } - - /** - * Gets the message disposition. - * - * @return the message disposition - */ - public MessageDisposition getMessageDisposition() { - return this.messageDisposition; - } - - /** - * Sets the message disposition. - * - * @param value - * the new message disposition - */ - public void setMessageDisposition(MessageDisposition value) { - this.messageDisposition = value; - } - - /** - * Gets the conflict resolution mode. - * - * @return the conflict resolution mode - */ - public ConflictResolutionMode getConflictResolutionMode() { - return this.conflictResolutionMode; - } - - /** - * Sets the conflict resolution mode. - * - * @param value - * the new conflict resolution mode - */ - public void setConflictResolutionMode(ConflictResolutionMode value) { - this.conflictResolutionMode = value; - } - - /** - * Gets the send invitations or cancellations mode. - * - * @return the send invitations or cancellations mode - */ - public SendInvitationsOrCancellationsMode - getSendInvitationsOrCancellationsMode() { - return this.sendInvitationsOrCancellationsMode; - } - - /** - * Sets the send invitations or cancellations mode. - * - * @param value - * the new send invitations or cancellations mode - */ - public void setSendInvitationsOrCancellationsMode( - SendInvitationsOrCancellationsMode value) { - this.sendInvitationsOrCancellationsMode = value; - } - - /** - * Gets the items. - * - * @return the items - */ - public List getItems() { - return this.items; - } - - /** - * Gets the saved items destination folder. - * - * @return the saved items destination folder - */ - public FolderId getSavedItemsDestinationFolder() { - return this.savedItemsDestinationFolder; - } - - /** - * Sets the saved items destination folder. - * - * @param value - * the new saved items destination folder - */ - public void setSavedItemsDestinationFolder(FolderId value) { - this.savedItemsDestinationFolder = value; - } + MultiResponseServiceRequest { + + /** + * The items. + */ + private List items = new ArrayList(); + + /** + * The saved items destination folder. + */ + private FolderId savedItemsDestinationFolder; + + /** + * The conflict resolution mode. + */ + private ConflictResolutionMode conflictResolutionMode; + + /** + * The message disposition. + */ + private MessageDisposition messageDisposition; + + /** + * The send invitations or cancellations mode. + */ + private SendInvitationsOrCancellationsMode + sendInvitationsOrCancellationsMode; + + /** + * Instantiates a new update item request. + * + * @param service the service + * @param errorHandlingMode the error handling mode + * @throws Exception + */ + protected UpdateItemRequest(ExchangeService service, + ServiceErrorHandling errorHandlingMode) + throws Exception { + super(service, errorHandlingMode); + } + + /* + * (non-Javadoc) + * + * @see microsoft.exchange.webservices.ServiceRequestBase#validate() + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParamCollection(this.getItems().iterator(), + "Items"); + for (int i = 0; i < this.getItems().size(); i++) { + if ((this.getItems().get(i) == null) || + this.getItems().get(i).isNew()) { + throw new ArgumentException(String.format( + Strings.ItemToUpdateCannotBeNullOrNew, i)); + } + } + + if (this.savedItemsDestinationFolder != null) { + this.savedItemsDestinationFolder.validate(this.getService() + .getRequestedServerVersion()); + } + + // Validate each item. + for (Item item : this.getItems()) { + item.validate(); + } + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# + * createServiceResponse(microsoft.exchange.webservices.ExchangeService, + * int) + */ + @Override + protected UpdateItemResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new UpdateItemResponse(this.getItems().get(responseIndex)); + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ServiceRequestBase#getXmlElementName() + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.UpdateItem; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ServiceRequestBase + * #getResponseXmlElementName + * () + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UpdateItemResponse; + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# + * getResponseMessageXmlElementName() + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.UpdateItemResponseMessage; + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.MultiResponseServiceRequest# + * getExpectedResponseMessageCount() + */ + @Override + protected int getExpectedResponseMessageCount() { + return this.items.size(); + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ServiceRequestBase#writeAttributesToXml + * (microsoft.exchange.webservices.EwsServiceXmlWriter) + */ + @Override + protected void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException { + super.writeAttributesToXml(writer); + + if (this.messageDisposition != null) { + writer.writeAttributeValue(XmlAttributeNames.MessageDisposition, + this.messageDisposition); + } + + writer.writeAttributeValue(XmlAttributeNames.ConflictResolution, + this.conflictResolutionMode); + + if (this.sendInvitationsOrCancellationsMode != null) { + writer.writeAttributeValue( + XmlAttributeNames.SendMeetingInvitationsOrCancellations, + this.sendInvitationsOrCancellationsMode); + } + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ServiceRequestBase#writeElementsToXml( + * microsoft.exchange.webservices.EwsServiceXmlWriter) + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + if (this.savedItemsDestinationFolder != null) { + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.SavedItemFolderId); + this.savedItemsDestinationFolder.writeToXml(writer); + writer.writeEndElement(); + } + + writer.writeStartElement(XmlNamespace.Messages, + XmlElementNames.ItemChanges); + + for (Item item : this.items) { + item.writeToXmlForUpdate(writer); + } + + writer.writeEndElement(); + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.ServiceRequestBase# + * getMinimumRequiredServerVersion() + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2007_SP1; + } + + /** + * Gets the message disposition. + * + * @return the message disposition + */ + public MessageDisposition getMessageDisposition() { + return this.messageDisposition; + } + + /** + * Sets the message disposition. + * + * @param value the new message disposition + */ + public void setMessageDisposition(MessageDisposition value) { + this.messageDisposition = value; + } + + /** + * Gets the conflict resolution mode. + * + * @return the conflict resolution mode + */ + public ConflictResolutionMode getConflictResolutionMode() { + return this.conflictResolutionMode; + } + + /** + * Sets the conflict resolution mode. + * + * @param value the new conflict resolution mode + */ + public void setConflictResolutionMode(ConflictResolutionMode value) { + this.conflictResolutionMode = value; + } + + /** + * Gets the send invitations or cancellations mode. + * + * @return the send invitations or cancellations mode + */ + public SendInvitationsOrCancellationsMode + getSendInvitationsOrCancellationsMode() { + return this.sendInvitationsOrCancellationsMode; + } + + /** + * Sets the send invitations or cancellations mode. + * + * @param value the new send invitations or cancellations mode + */ + public void setSendInvitationsOrCancellationsMode( + SendInvitationsOrCancellationsMode value) { + this.sendInvitationsOrCancellationsMode = value; + } + + /** + * Gets the items. + * + * @return the items + */ + public List getItems() { + return this.items; + } + + /** + * Gets the saved items destination folder. + * + * @return the saved items destination folder + */ + public FolderId getSavedItemsDestinationFolder() { + return this.savedItemsDestinationFolder; + } + + /** + * Sets the saved items destination folder. + * + * @param value the new saved items destination folder + */ + public void setSavedItemsDestinationFolder(FolderId value) { + this.savedItemsDestinationFolder = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index bbf7c97a7..52d568da3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -16,154 +16,147 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class UpdateItemResponse. */ public final class UpdateItemResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { - - /** - * Represents the response to an individual item update operation. - */ - private Item item; - - /** The returned item. */ - private Item returnedItem; - - /** The conflict count. */ - private int conflictCount; - - /** - * Initializes a new instance of the class. - * - * @param item - * the item - */ - protected UpdateItemResponse(Item item) { - super(); - EwsUtilities.EwsAssert(item != null, "UpdateItemResponse.ctor", - "item is null"); - this.item = item; - } - - /** - * Reads response elements from XML. - * - * @param reader - * the reader - * @throws ServiceXmlDeserializationException - * the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws InstantiationException - * the instantiation exception - * @throws IllegalAccessException - * the illegal access exception - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - @Override - protected void readElementsFromXml(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, Exception { - super.readElementsFromXml(reader); - - reader.readServiceObjectsCollectionFromXml(XmlElementNames.Items, this, - false, null, false); - - if(!reader.getService().getExchange2007CompatibilityMode()) - { - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.ConflictResults); - this.conflictCount = reader.readElementValue(Integer.class, - XmlNamespace.Types, XmlElementNames.Count); - reader.readEndElement(XmlNamespace.Messages, - XmlElementNames.ConflictResults); - } - - // If UpdateItem returned an item that has the same Id as the item that - // is being updated, this is a "normal" UpdateItem operation, and we - // need - // to update the ChangeKey of the item being updated with the one that - // was - // returned. Also set returnedItem to indicate that no new item was - // returned. - // - // Otherwise, this in a "special" UpdateItem operation, such as a - // recurring - // task marked as complete (the returned item in that case is the - // one-off - // task that represents the completed instance). - // - // Note that there can be no returned item at all, as in an UpdateItem - // call - // with MessageDisposition set to SendOnly or SendAndSaveCopy. - if (this.returnedItem != null) { - if (this.item.getId().getUniqueId().equals( - this.returnedItem.getId().getUniqueId())) { - this.item.getId().setChangeKey( - this.returnedItem.getId().getChangeKey()); - this.returnedItem = null; - } - } - } - - /* - * (non-Javadoc) - * - * @seemicrosoft.exchange.webservices.GetObjectInstanceDelegateInterface# - * getObjectInstanceDelegate(microsoft.exchange.webservices.ExchangeService, - * java.lang.String) - */ - public ServiceObject getObjectInstanceDelegate(ExchangeService service, - String xmlElementName) throws Exception { - return this.getObjectInstance(service, xmlElementName); - } - - /** - * Clears the change log of the created folder if the creation succeeded. - */ - @Override - protected void loaded() { - if (this.getResult() == ServiceResult.Success) { - this.item.clearChangeLog(); - } - } - - /** - * Gets Item instance. - * - * @param service - * the service - * @param xmlElementName - * the xml element name - * @return Item - * @throws Exception - * the exception - */ - private Item getObjectInstance(ExchangeService service, - String xmlElementName) throws Exception { - this.returnedItem = EwsUtilities.createEwsObjectFromXmlElementName( - Item.class, service, xmlElementName); - return this.returnedItem; - } - - /** - * Gets the item that was returned by the update operation. ReturnedItem - * is set only when a recurring Task is marked as complete or when its - * recurrence pattern changes. - * - * @return the returned item - */ - public Item getReturnedItem() { - return this.returnedItem; - } - - /** - * Gets the number of property conflicts that were resolved during the - * update operation. - * - * @return the conflict count - */ - public int getConflictCount() { - return this.conflictCount; - } + IGetObjectInstanceDelegate { + + /** + * Represents the response to an individual item update operation. + */ + private Item item; + + /** + * The returned item. + */ + private Item returnedItem; + + /** + * The conflict count. + */ + private int conflictCount; + + /** + * Initializes a new instance of the class. + * + * @param item the item + */ + protected UpdateItemResponse(Item item) { + super(); + EwsUtilities.EwsAssert(item != null, "UpdateItemResponse.ctor", + "item is null"); + this.item = item; + } + + /** + * Reads response elements from XML. + * + * @param reader the reader + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws InstantiationException the instantiation exception + * @throws IllegalAccessException the illegal access exception + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + @Override + protected void readElementsFromXml(EwsServiceXmlReader reader) + throws ServiceXmlDeserializationException, XMLStreamException, + InstantiationException, IllegalAccessException, Exception { + super.readElementsFromXml(reader); + + reader.readServiceObjectsCollectionFromXml(XmlElementNames.Items, this, + false, null, false); + + if (!reader.getService().getExchange2007CompatibilityMode()) { + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.ConflictResults); + this.conflictCount = reader.readElementValue(Integer.class, + XmlNamespace.Types, XmlElementNames.Count); + reader.readEndElement(XmlNamespace.Messages, + XmlElementNames.ConflictResults); + } + + // If UpdateItem returned an item that has the same Id as the item that + // is being updated, this is a "normal" UpdateItem operation, and we + // need + // to update the ChangeKey of the item being updated with the one that + // was + // returned. Also set returnedItem to indicate that no new item was + // returned. + // + // Otherwise, this in a "special" UpdateItem operation, such as a + // recurring + // task marked as complete (the returned item in that case is the + // one-off + // task that represents the completed instance). + // + // Note that there can be no returned item at all, as in an UpdateItem + // call + // with MessageDisposition set to SendOnly or SendAndSaveCopy. + if (this.returnedItem != null) { + if (this.item.getId().getUniqueId().equals( + this.returnedItem.getId().getUniqueId())) { + this.item.getId().setChangeKey( + this.returnedItem.getId().getChangeKey()); + this.returnedItem = null; + } + } + } + + /* + * (non-Javadoc) + * + * @seemicrosoft.exchange.webservices.GetObjectInstanceDelegateInterface# + * getObjectInstanceDelegate(microsoft.exchange.webservices.ExchangeService, + * java.lang.String) + */ + public ServiceObject getObjectInstanceDelegate(ExchangeService service, + String xmlElementName) throws Exception { + return this.getObjectInstance(service, xmlElementName); + } + + /** + * Clears the change log of the created folder if the creation succeeded. + */ + @Override + protected void loaded() { + if (this.getResult() == ServiceResult.Success) { + this.item.clearChangeLog(); + } + } + + /** + * Gets Item instance. + * + * @param service the service + * @param xmlElementName the xml element name + * @return Item + * @throws Exception the exception + */ + private Item getObjectInstance(ExchangeService service, + String xmlElementName) throws Exception { + this.returnedItem = EwsUtilities.createEwsObjectFromXmlElementName( + Item.class, service, xmlElementName); + return this.returnedItem; + } + + /** + * Gets the item that was returned by the update operation. ReturnedItem + * is set only when a recurring Task is marked as complete or when its + * recurrence pattern changes. + * + * @return the returned item + */ + public Item getReturnedItem() { + return this.returnedItem; + } + + /** + * Gets the number of property conflicts that were resolved during the + * update operation. + * + * @return the conflict count + */ + public int getConflictCount() { + return this.conflictCount; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java index f77580549..134907500 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java @@ -14,135 +14,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a UpdateUserConfiguration request. */ public class UpdateUserConfigurationRequest extends - MultiResponseServiceRequest { + MultiResponseServiceRequest { - /** The user configuration. */ - protected UserConfiguration userConfiguration; + /** + * The user configuration. + */ + protected UserConfiguration userConfiguration; - /** - * Validate request. - * - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - * @throws Exception - * the exception - */ - @Override - protected void validate() throws ServiceLocalException, Exception { - super.validate(); - EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); - } + /** + * Validate request. + * + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + * @throws Exception the exception + */ + @Override + protected void validate() throws ServiceLocalException, Exception { + super.validate(); + EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); + } - /** - * Creates the service response. - * - * @param service - * the service - * @param responseIndex - * the response index - * @return Service response. - */ - @Override - protected ServiceResponse createServiceResponse(ExchangeService service, - int responseIndex) { - return new ServiceResponse(); - } + /** + * Creates the service response. + * + * @param service the service + * @param responseIndex the response index + * @return Service response. + */ + @Override + protected ServiceResponse createServiceResponse(ExchangeService service, + int responseIndex) { + return new ServiceResponse(); + } - /** - * Gets the request version. - * - * @return Earliest Exchange version in which this request is supported. - */ - @Override - protected ExchangeVersion getMinimumRequiredServerVersion() { - return ExchangeVersion.Exchange2010; - } + /** + * Gets the request version. + * + * @return Earliest Exchange version in which this request is supported. + */ + @Override + protected ExchangeVersion getMinimumRequiredServerVersion() { + return ExchangeVersion.Exchange2010; + } - /** - * Gets the expected response message count. - * - * @return Number of expected response messages. - */ - @Override - protected int getExpectedResponseMessageCount() { - return 1; - } + /** + * Gets the expected response message count. + * + * @return Number of expected response messages. + */ + @Override + protected int getExpectedResponseMessageCount() { + return 1; + } - /** - * Gets the name of the XML element. - * - * @return XML element name - */ - @Override - protected String getXmlElementName() { - return XmlElementNames.UpdateUserConfiguration; - } + /** + * Gets the name of the XML element. + * + * @return XML element name + */ + @Override + protected String getXmlElementName() { + return XmlElementNames.UpdateUserConfiguration; + } - /** - * Gets the name of the response XML element. - * - * @return XML element name - */ - @Override - protected String getResponseXmlElementName() { - return XmlElementNames.UpdateUserConfigurationResponse; - } + /** + * Gets the name of the response XML element. + * + * @return XML element name + */ + @Override + protected String getResponseXmlElementName() { + return XmlElementNames.UpdateUserConfigurationResponse; + } - /** - * Gets the name of the response message XML element. - * - * @return XML element name - */ - @Override - protected String getResponseMessageXmlElementName() { - return XmlElementNames.UpdateUserConfigurationResponseMessage; - } + /** + * Gets the name of the response message XML element. + * + * @return XML element name + */ + @Override + protected String getResponseMessageXmlElementName() { + return XmlElementNames.UpdateUserConfigurationResponseMessage; + } - /** - * Writes XML elements. - * - * @param writer - * the writer - * @throws Exception - * the exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws Exception { - // Write UserConfiguation element - this.userConfiguration.writeToXml(writer, XmlNamespace.Messages, - XmlElementNames.UserConfiguration); - } + /** + * Writes XML elements. + * + * @param writer the writer + * @throws Exception the exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws Exception { + // Write UserConfiguation element + this.userConfiguration.writeToXml(writer, XmlNamespace.Messages, + XmlElementNames.UserConfiguration); + } - /** - * Initializes a new instance of the class. - * - * @param service - * the service - * @throws Exception - */ - protected UpdateUserConfigurationRequest(ExchangeService service) - throws Exception { - super(service, ServiceErrorHandling.ThrowOnError); - } + /** + * Initializes a new instance of the class. + * + * @param service the service + * @throws Exception + */ + protected UpdateUserConfigurationRequest(ExchangeService service) + throws Exception { + super(service, ServiceErrorHandling.ThrowOnError); + } - /** - * Gets the user configuration. The user - * configuration. - * - * @return the user configuration - */ - public UserConfiguration getUserConfiguration() { - return this.userConfiguration; - } + /** + * Gets the user configuration. The user + * configuration. + * + * @return the user configuration + */ + public UserConfiguration getUserConfiguration() { + return this.userConfiguration; + } - /** - * Sets the user configuration. - * - * @param userConfiguration - * the new user configuration - */ - public void setUserConfiguration(UserConfiguration userConfiguration) { - this.userConfiguration = userConfiguration; - } + /** + * Sets the user configuration. + * + * @param userConfiguration the new user configuration + */ + public void setUserConfiguration(UserConfiguration userConfiguration) { + this.userConfiguration = userConfiguration; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index e23e572c0..bd0ab7b66 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -10,9 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import java.util.EnumSet; - import javax.xml.stream.XMLStreamException; +import java.util.EnumSet; /** * Represents an object that can be used to store user-defined configuration @@ -20,688 +19,651 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class UserConfiguration { - /** The object version. */ - private static ExchangeVersion ObjectVersion = ExchangeVersion.Exchange2010; - - /** - * For consistency with ServiceObject behavior, access to ItemId is - * permitted for a new object. - */ - /** The Constant PropertiesAvailableForNewObject. */ - private final static EnumSet - PropertiesAvailableForNewObject = - EnumSet.of(UserConfigurationProperties.BinaryData, - UserConfigurationProperties.Dictionary, - UserConfigurationProperties.XmlData); - - /** The No properties. */ - private final UserConfigurationProperties NoProperties = - UserConfigurationProperties.values()[0]; - - /** The service. */ - private ExchangeService service; - - /** The name. */ - private String name; - - /** The parent folder id. */ - private FolderId parentFolderId = null; - - /** The item id. */ - private ItemId itemId = null; - - /** The dictionary. */ - private UserConfigurationDictionary dictionary = null; - - /** The xml data. */ - private byte[] xmlData = null; - - /** The binary data. */ - private byte[] binaryData = null; - - /** The properties available for access. */ - private EnumSet propertiesAvailableForAccess; - - /** The updated properties. */ - private EnumSet updatedProperties; - - /** - * Indicates whether changes trigger an update or create operation. - */ - private boolean isNew = false; - - /** - * Initializes a new instance of class. - * - * @param service - * The service to which the user configuration is bound. - * @throws Exception - * the exception - */ - public UserConfiguration(ExchangeService service) throws Exception { - this(service, PropertiesAvailableForNewObject); - } - - /** - * Writes a byte array to Xml. - * - * @param writer - * The writer. - * @param byteArray - * Byte array to write. - * @param xmlElementName - * Name of the Xml element. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private static void writeByteArrayToXml(EwsServiceXmlWriter writer, - byte[] byteArray, String xmlElementName) throws XMLStreamException, - ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfiguration.WriteByteArrayToXml", "writer is null"); - EwsUtilities.EwsAssert(xmlElementName != null, - "UserConfiguration.WriteByteArrayToXml", - "xmlElementName is null"); - - writer.writeStartElement(XmlNamespace.Types, xmlElementName); - - if (byteArray != null && byteArray.length > 0) { - writer.writeValue(Base64EncoderStream.encode(byteArray), - xmlElementName); - } - - writer.writeEndElement(); - } - - - /** - * Writes to Xml. - * - * @param writer - * The writer. - * @param xmlNamespace - * The XML namespace. - * @param name - * The user configuration name. - * @param parentFolderId - * The Id of the folder containing the user configuration. - * @throws Exception - * the exception - */ - protected static void writeUserConfigurationNameToXml( - EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String name, - FolderId parentFolderId) throws Exception { - EwsUtilities.EwsAssert(writer != null, - "UserConfiguration.WriteUserConfigurationNameToXml", - "writer is null"); - EwsUtilities.EwsAssert(name != null, - "UserConfiguration.WriteUserConfigurationNameToXml", - "name is null"); - EwsUtilities.EwsAssert(parentFolderId != null, - "UserConfiguration.WriteUserConfigurationNameToXml", - "parentFolderId is null"); - - writer.writeStartElement(xmlNamespace, - XmlElementNames.UserConfigurationName); - - writer.writeAttributeValue(XmlAttributeNames.Name, name); - - parentFolderId.writeToXml(writer); - - writer.writeEndElement(); - } - - /** - * Initializes a new instance of class. - * - * @param service - * The service to which the user configuration is bound. - * @param requestedProperties - * The properties requested for this user configuration. - * @throws Exception - * the exception - */ - protected UserConfiguration(ExchangeService service, - EnumSet requestedProperties) - throws Exception { - EwsUtilities.validateParam(service, "service"); - - if (service.getRequestedServerVersion().ordinal() < this.ObjectVersion.ordinal()) - { - throw new ServiceVersionException(String.format( - Strings.ObjectTypeIncompatibleWithRequestVersion, this - .getClass().getName(), this.ObjectVersion)); - } - - this.service = service; - this.isNew = true; - - this.initializeProperties(requestedProperties); - } - - /** - * Gets the name of the user configuration. - * - * @return the name - */ - public String getName() { - return this.name; - } - - /** - * Sets the name. - * - * @param value - * the new name - */ - protected void setName(String value) { - this.name = value; - } - - /** - * Gets the Id of the folder containing the user configuration. - * - * @return the parent folder id - */ - public FolderId getParentFolderId() { - return this.parentFolderId; - } - - /** - * Sets the parent folder id. - * - * @param value - * the new parent folder id - */ - protected void setParentFolderId(FolderId value) { - this.parentFolderId = value; - } - - /** - * Gets the Id of the user configuration. - * - * @return the item id - */ - public ItemId getItemId() { - return this.itemId; - } - - /** - * Gets the dictionary of the user configuration. - * - * @return the dictionary - */ - public UserConfigurationDictionary getDictionary() { - return this.dictionary; - } - - /** - * Gets the xml data of the user configuration. - * - * @return the xml data - * @throws microsoft.exchange.webservices.data.PropertyException - * the property exception - */ - public byte[] getXmlData() throws PropertyException { - - this.validatePropertyAccess(UserConfigurationProperties.XmlData); - - return this.xmlData; - } - - /** - * Sets the xml data. - * - * @param value - * the new xml data - */ - public void setXmlData(byte[] value) { - this.xmlData = value; - - this.markPropertyForUpdate(UserConfigurationProperties.XmlData); - } - - /** - * Gets the binary data of the user configuration. - * - * @return the binary data - * @throws microsoft.exchange.webservices.data.PropertyException - * the property exception - */ - public byte[] getBinaryData() throws PropertyException { - this.validatePropertyAccess(UserConfigurationProperties.BinaryData); - - return this.binaryData; - - } - - /** - * Sets the binary data. - * - * @param value - * the new binary data - */ - public void setBinaryData(byte[] value) { - this.binaryData = value; - this.markPropertyForUpdate(UserConfigurationProperties.BinaryData); - } - - /** - * Gets a value indicating whether this user configuration has been - * modified. - * - * @return the checks if is dirty - */ - public boolean getIsDirty() { - return (!this.updatedProperties.contains(NoProperties)) - || this.dictionary.getIsDirty(); - } - - /** - * Binds to an existing user configuration and loads the specified - * properties. Calling this method results in a call to EWS. - * - * @param service - * The service to which the user configuration is bound. - * @param name - * The name of the user configuration. - * @param parentFolderId - * The Id of the folder containing the user configuration. - * @param properties - * The properties to load. - * @return A user configuration instance. - * @throws IndexOutOfBoundsException - * the index out of bounds exception - * @throws Exception - * the exception - */ - public static UserConfiguration bind(ExchangeService service, String name, - FolderId parentFolderId, UserConfigurationProperties properties) - throws IndexOutOfBoundsException, Exception { - - UserConfiguration result = service.getUserConfiguration(name, - parentFolderId, properties); - result.isNew = false; - return result; - } - - /** - * Binds to an existing user configuration and loads the specified - * properties. - * - * @param service - * The service to which the user configuration is bound. - * @param name - * The name of the user configuration. - * @param parentFolderName - * The name of the folder containing the user configuration. - * @param properties - * The properties to load. - * @return A user configuration instance. - * @throws IndexOutOfBoundsException - * the index out of bounds exception - * @throws Exception - * the exception - */ - public static UserConfiguration bind(ExchangeService service, String name, - WellKnownFolderName parentFolderName, - UserConfigurationProperties properties) - throws IndexOutOfBoundsException, Exception { - return UserConfiguration.bind(service, name, new FolderId( - parentFolderName), properties); - } - - /** - * Saves the user configuration. Calling this method results in a call to - * EWS. - * - * @param name - * The name of the user configuration. - * @param parentFolderId - * The Id of the folder in which to save the user configuration. - * @throws Exception - * the exception - */ - public void save(String name, FolderId parentFolderId) throws Exception { - EwsUtilities.validateParam(name, "name"); - EwsUtilities.validateParam(parentFolderId, "parentFolderId"); - - parentFolderId.validate(this.service.getRequestedServerVersion()); - - if (!this.isNew) { - throw new InvalidOperationException( - Strings.CannotSaveNotNewUserConfiguration); - } - - this.parentFolderId = parentFolderId; - this.name = name; - - this.service.createUserConfiguration(this); - - this.isNew = false; - - this.resetIsDirty(); - } - - /** - * Saves the user configuration. Calling this method results in a call to - * EWS. - * - * @param name - * The name of the user configuration. - * @param parentFolderName - * The name of the folder in which to save the user - * configuration. - * @throws Exception - * the exception - */ - public void save(String name, WellKnownFolderName parentFolderName) - throws Exception { - this.save(name, new FolderId(parentFolderName)); - } - - /** - * Updates the user configuration by applying local changes to the Exchange - * server. Calling this method results in a call to EWS - * - * @throws Exception - * the exception - */ - - public void update() throws Exception { - if (this.isNew) { - throw new InvalidOperationException( - Strings.CannotUpdateNewUserConfiguration); - } - - if (this.isPropertyUpdated(UserConfigurationProperties.BinaryData) - || this - .isPropertyUpdated(UserConfigurationProperties. - Dictionary) - || this.isPropertyUpdated(UserConfigurationProperties. - XmlData)) { - - this.service.updateUserConfiguration(this); - } - - this.resetIsDirty(); - } - - /** - * Deletes the user configuration. Calling this method results in a call to - * EWS. - * - * @throws Exception - * the exception - */ - public void delete() throws Exception { - if (this.isNew) { - throw new InvalidOperationException( - Strings.DeleteInvalidForUnsavedUserConfiguration); - } else { - this.service - .deleteUserConfiguration(this.name, this.parentFolderId); - } - } - - /** - * Loads the specified properties on the user configuration. Calling this - * method results in a call to EWS. - * - * @param properties - * The properties to load. - * @throws Exception - * the exception - */ - public void load(UserConfigurationProperties properties) throws Exception { - this.initializeProperties(EnumSet.of(properties)); - this.service.loadPropertiesForUserConfiguration(this, properties); - } - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param xmlNamespace - * The XML namespace. - * @param xmlElementName - * Name of the XML element. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, - XmlNamespace xmlNamespace, String xmlElementName) throws Exception { - EwsUtilities.EwsAssert(writer != null, "UserConfiguration.WriteToXml", - "writer is null"); - EwsUtilities.EwsAssert(xmlElementName != null, - "UserConfiguration.WriteToXml", "xmlElementName is null"); - - writer.writeStartElement(xmlNamespace, xmlElementName); - - // Write the UserConfigurationName element - writeUserConfigurationNameToXml(writer, XmlNamespace.Types, this.name, - this.parentFolderId); - - // Write the Dictionary element - if (this.isPropertyUpdated(UserConfigurationProperties.Dictionary)) { - this.dictionary.writeToXml(writer, XmlElementNames.Dictionary); - } - - // Write the XmlData element - if (this.isPropertyUpdated(UserConfigurationProperties.XmlData)) { - this.writeXmlDataToXml(writer); - } - - // Write the BinaryData element - if (this.isPropertyUpdated(UserConfigurationProperties.BinaryData)) { - this.writeBinaryDataToXml(writer); - } - - writer.writeEndElement(); - } - - /** - * Determines whether the specified property was updated. - * - * @param property - * property to evaluate. - * @return Boolean indicating whether to send the property Xml. - */ - private boolean isPropertyUpdated(UserConfigurationProperties property) { - boolean isPropertyDirty = false; - boolean isPropertyEmpty = false; - - switch (property) { - case Dictionary: - isPropertyDirty = this.getDictionary().getIsDirty(); - isPropertyEmpty = this.getDictionary().getCount() == 0; - break; - case XmlData: - isPropertyDirty = this.updatedProperties.contains(property); - isPropertyEmpty = (this.xmlData == null) || - (this.xmlData.length == 0); - break; - case BinaryData: - isPropertyDirty = this.updatedProperties.contains(property); - isPropertyEmpty = (this.binaryData == null) || - (this.binaryData.length == 0); - break; - default: - EwsUtilities.EwsAssert(false, - "UserConfiguration.IsPropertyUpdated", - "property not supported: " + property.toString()); - break; - } - - // Consider the property updated, if it's been modified, and either - // . there's a value or - // . there's no value but the operation is update. - return isPropertyDirty && ((!isPropertyEmpty) || (!this.isNew)); - } - - /** - * Writes the XmlData property to Xml. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeXmlDataToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfiguration.WriteXmlDataToXml", "writer is null"); - - writeByteArrayToXml(writer, this.xmlData, XmlElementNames.XmlData); - } - - /** - * Writes the BinaryData property to Xml. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeBinaryDataToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfiguration.WriteBinaryDataToXml", "writer is null"); - - writeByteArrayToXml(writer, this.binaryData, - XmlElementNames.BinaryData); - } - - - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { - EwsUtilities.EwsAssert(reader != null, "UserConfiguration.LoadFromXml", - "reader is null"); - - reader.readStartElement(XmlNamespace.Messages, - XmlElementNames.UserConfiguration); - reader.read(); // Position at first property element - - do { - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - XmlElementNames.UserConfigurationName)) { - String responseName = reader - .readAttributeValue(XmlAttributeNames.Name); - - EwsUtilities.EwsAssert(this.name.equals(responseName), - "UserConfiguration.LoadFromXml", - "UserConfigurationName does not match: Expected: " - + this.name + " Name in response: " - + responseName); - - reader.skipCurrentElement(); - } else if (reader.getLocalName().equals(XmlElementNames.ItemId)) { - this.itemId = new ItemId(); - this.itemId.loadFromXml(reader, XmlElementNames.ItemId); - } else if (reader.getLocalName().equals( - XmlElementNames.Dictionary)) { - this.dictionary.loadFromXml(reader, - XmlElementNames.Dictionary); - } else if (reader.getLocalName() - .equals(XmlElementNames.XmlData)) { - this.xmlData = Base64EncoderStream.decode(reader - .readElementValue()); - } else if (reader.getLocalName().equals( - XmlElementNames.BinaryData)) { - this.binaryData = Base64EncoderStream.decode(reader - .readElementValue()); - } else { - EwsUtilities.EwsAssert(false, - "UserConfiguration.LoadFromXml", - "Xml element not supported: " - + reader.getLocalName()); - } - } - - // If XmlData was loaded, read is skipped because GetXmlData - // positions the reader at the next property. - reader.read(); - } while (!reader.isEndElement(XmlNamespace.Messages, - XmlElementNames.UserConfiguration)); - } - - /** - * Initializes properties. - * - * @param requestedProperties - * The properties requested for this UserConfiguration. - */ - // / InitializeProperties is called in 3 cases: - // / . Create new object: From the UserConfiguration constructor. - // / . Bind to existing object: Again from the constructor. The constructor - // is called eventually by the GetUserConfiguration request. - // / . Refresh properties: From the Load method. - private void initializeProperties( - EnumSet requestedProperties) { - this.itemId = null; - this.dictionary = new UserConfigurationDictionary(); - this.xmlData = null; - this.binaryData = null; - this.propertiesAvailableForAccess = requestedProperties; - - this.resetIsDirty(); - } - - /** - * Resets flags to indicate that properties haven't been modified. - */ - private void resetIsDirty() { - try{ - this.updatedProperties = EnumSet.of(NoProperties); - } catch(Exception e) { - e.printStackTrace(); - } - this.dictionary.setIsDirty(false); - } - - /** - * Determines whether the specified property may be accessed. - * - * @param property - * Property to access. - * @throws microsoft.exchange.webservices.data.PropertyException - * the property exception - */ - private void validatePropertyAccess(UserConfigurationProperties property) - throws PropertyException { - if (!this.propertiesAvailableForAccess.contains(property)) { - throw new PropertyException( - Strings.MustLoadOrAssignPropertyBeforeAccess, property - .toString()); - } - } - - /** - * Adds the passed property to updatedProperties. - * - * @param property - * Property to update. - */ - private void markPropertyForUpdate(UserConfigurationProperties property) { - this.updatedProperties.add(property); - this.propertiesAvailableForAccess.add(property); - - } + /** + * The object version. + */ + private static ExchangeVersion ObjectVersion = ExchangeVersion.Exchange2010; + + /** + * For consistency with ServiceObject behavior, access to ItemId is + * permitted for a new object. + */ + /** + * The Constant PropertiesAvailableForNewObject. + */ + private final static EnumSet + PropertiesAvailableForNewObject = + EnumSet.of(UserConfigurationProperties.BinaryData, + UserConfigurationProperties.Dictionary, + UserConfigurationProperties.XmlData); + + /** + * The No properties. + */ + private final UserConfigurationProperties NoProperties = + UserConfigurationProperties.values()[0]; + + /** + * The service. + */ + private ExchangeService service; + + /** + * The name. + */ + private String name; + + /** + * The parent folder id. + */ + private FolderId parentFolderId = null; + + /** + * The item id. + */ + private ItemId itemId = null; + + /** + * The dictionary. + */ + private UserConfigurationDictionary dictionary = null; + + /** + * The xml data. + */ + private byte[] xmlData = null; + + /** + * The binary data. + */ + private byte[] binaryData = null; + + /** + * The properties available for access. + */ + private EnumSet propertiesAvailableForAccess; + + /** + * The updated properties. + */ + private EnumSet updatedProperties; + + /** + * Indicates whether changes trigger an update or create operation. + */ + private boolean isNew = false; + + /** + * Initializes a new instance of class. + * + * @param service The service to which the user configuration is bound. + * @throws Exception the exception + */ + public UserConfiguration(ExchangeService service) throws Exception { + this(service, PropertiesAvailableForNewObject); + } + + /** + * Writes a byte array to Xml. + * + * @param writer The writer. + * @param byteArray Byte array to write. + * @param xmlElementName Name of the Xml element. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private static void writeByteArrayToXml(EwsServiceXmlWriter writer, + byte[] byteArray, String xmlElementName) throws XMLStreamException, + ServiceXmlSerializationException { + EwsUtilities.EwsAssert(writer != null, + "UserConfiguration.WriteByteArrayToXml", "writer is null"); + EwsUtilities.EwsAssert(xmlElementName != null, + "UserConfiguration.WriteByteArrayToXml", + "xmlElementName is null"); + + writer.writeStartElement(XmlNamespace.Types, xmlElementName); + + if (byteArray != null && byteArray.length > 0) { + writer.writeValue(Base64EncoderStream.encode(byteArray), + xmlElementName); + } + + writer.writeEndElement(); + } + + + /** + * Writes to Xml. + * + * @param writer The writer. + * @param xmlNamespace The XML namespace. + * @param name The user configuration name. + * @param parentFolderId The Id of the folder containing the user configuration. + * @throws Exception the exception + */ + protected static void writeUserConfigurationNameToXml( + EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String name, + FolderId parentFolderId) throws Exception { + EwsUtilities.EwsAssert(writer != null, + "UserConfiguration.WriteUserConfigurationNameToXml", + "writer is null"); + EwsUtilities.EwsAssert(name != null, + "UserConfiguration.WriteUserConfigurationNameToXml", + "name is null"); + EwsUtilities.EwsAssert(parentFolderId != null, + "UserConfiguration.WriteUserConfigurationNameToXml", + "parentFolderId is null"); + + writer.writeStartElement(xmlNamespace, + XmlElementNames.UserConfigurationName); + + writer.writeAttributeValue(XmlAttributeNames.Name, name); + + parentFolderId.writeToXml(writer); + + writer.writeEndElement(); + } + + /** + * Initializes a new instance of class. + * + * @param service The service to which the user configuration is bound. + * @param requestedProperties The properties requested for this user configuration. + * @throws Exception the exception + */ + protected UserConfiguration(ExchangeService service, + EnumSet requestedProperties) + throws Exception { + EwsUtilities.validateParam(service, "service"); + + if (service.getRequestedServerVersion().ordinal() < this.ObjectVersion.ordinal()) { + throw new ServiceVersionException(String.format( + Strings.ObjectTypeIncompatibleWithRequestVersion, this + .getClass().getName(), this.ObjectVersion)); + } + + this.service = service; + this.isNew = true; + + this.initializeProperties(requestedProperties); + } + + /** + * Gets the name of the user configuration. + * + * @return the name + */ + public String getName() { + return this.name; + } + + /** + * Sets the name. + * + * @param value the new name + */ + protected void setName(String value) { + this.name = value; + } + + /** + * Gets the Id of the folder containing the user configuration. + * + * @return the parent folder id + */ + public FolderId getParentFolderId() { + return this.parentFolderId; + } + + /** + * Sets the parent folder id. + * + * @param value the new parent folder id + */ + protected void setParentFolderId(FolderId value) { + this.parentFolderId = value; + } + + /** + * Gets the Id of the user configuration. + * + * @return the item id + */ + public ItemId getItemId() { + return this.itemId; + } + + /** + * Gets the dictionary of the user configuration. + * + * @return the dictionary + */ + public UserConfigurationDictionary getDictionary() { + return this.dictionary; + } + + /** + * Gets the xml data of the user configuration. + * + * @return the xml data + * @throws microsoft.exchange.webservices.data.PropertyException the property exception + */ + public byte[] getXmlData() throws PropertyException { + + this.validatePropertyAccess(UserConfigurationProperties.XmlData); + + return this.xmlData; + } + + /** + * Sets the xml data. + * + * @param value the new xml data + */ + public void setXmlData(byte[] value) { + this.xmlData = value; + + this.markPropertyForUpdate(UserConfigurationProperties.XmlData); + } + + /** + * Gets the binary data of the user configuration. + * + * @return the binary data + * @throws microsoft.exchange.webservices.data.PropertyException the property exception + */ + public byte[] getBinaryData() throws PropertyException { + this.validatePropertyAccess(UserConfigurationProperties.BinaryData); + + return this.binaryData; + + } + + /** + * Sets the binary data. + * + * @param value the new binary data + */ + public void setBinaryData(byte[] value) { + this.binaryData = value; + this.markPropertyForUpdate(UserConfigurationProperties.BinaryData); + } + + /** + * Gets a value indicating whether this user configuration has been + * modified. + * + * @return the checks if is dirty + */ + public boolean getIsDirty() { + return (!this.updatedProperties.contains(NoProperties)) + || this.dictionary.getIsDirty(); + } + + /** + * Binds to an existing user configuration and loads the specified + * properties. Calling this method results in a call to EWS. + * + * @param service The service to which the user configuration is bound. + * @param name The name of the user configuration. + * @param parentFolderId The Id of the folder containing the user configuration. + * @param properties The properties to load. + * @return A user configuration instance. + * @throws IndexOutOfBoundsException the index out of bounds exception + * @throws Exception the exception + */ + public static UserConfiguration bind(ExchangeService service, String name, + FolderId parentFolderId, UserConfigurationProperties properties) + throws IndexOutOfBoundsException, Exception { + + UserConfiguration result = service.getUserConfiguration(name, + parentFolderId, properties); + result.isNew = false; + return result; + } + + /** + * Binds to an existing user configuration and loads the specified + * properties. + * + * @param service The service to which the user configuration is bound. + * @param name The name of the user configuration. + * @param parentFolderName The name of the folder containing the user configuration. + * @param properties The properties to load. + * @return A user configuration instance. + * @throws IndexOutOfBoundsException the index out of bounds exception + * @throws Exception the exception + */ + public static UserConfiguration bind(ExchangeService service, String name, + WellKnownFolderName parentFolderName, + UserConfigurationProperties properties) + throws IndexOutOfBoundsException, Exception { + return UserConfiguration.bind(service, name, new FolderId( + parentFolderName), properties); + } + + /** + * Saves the user configuration. Calling this method results in a call to + * EWS. + * + * @param name The name of the user configuration. + * @param parentFolderId The Id of the folder in which to save the user configuration. + * @throws Exception the exception + */ + public void save(String name, FolderId parentFolderId) throws Exception { + EwsUtilities.validateParam(name, "name"); + EwsUtilities.validateParam(parentFolderId, "parentFolderId"); + + parentFolderId.validate(this.service.getRequestedServerVersion()); + + if (!this.isNew) { + throw new InvalidOperationException( + Strings.CannotSaveNotNewUserConfiguration); + } + + this.parentFolderId = parentFolderId; + this.name = name; + + this.service.createUserConfiguration(this); + + this.isNew = false; + + this.resetIsDirty(); + } + + /** + * Saves the user configuration. Calling this method results in a call to + * EWS. + * + * @param name The name of the user configuration. + * @param parentFolderName The name of the folder in which to save the user + * configuration. + * @throws Exception the exception + */ + public void save(String name, WellKnownFolderName parentFolderName) + throws Exception { + this.save(name, new FolderId(parentFolderName)); + } + + /** + * Updates the user configuration by applying local changes to the Exchange + * server. Calling this method results in a call to EWS + * + * @throws Exception the exception + */ + + public void update() throws Exception { + if (this.isNew) { + throw new InvalidOperationException( + Strings.CannotUpdateNewUserConfiguration); + } + + if (this.isPropertyUpdated(UserConfigurationProperties.BinaryData) + || this + .isPropertyUpdated(UserConfigurationProperties. + Dictionary) + || this.isPropertyUpdated(UserConfigurationProperties. + XmlData)) { + + this.service.updateUserConfiguration(this); + } + + this.resetIsDirty(); + } + + /** + * Deletes the user configuration. Calling this method results in a call to + * EWS. + * + * @throws Exception the exception + */ + public void delete() throws Exception { + if (this.isNew) { + throw new InvalidOperationException( + Strings.DeleteInvalidForUnsavedUserConfiguration); + } else { + this.service + .deleteUserConfiguration(this.name, this.parentFolderId); + } + } + + /** + * Loads the specified properties on the user configuration. Calling this + * method results in a call to EWS. + * + * @param properties The properties to load. + * @throws Exception the exception + */ + public void load(UserConfigurationProperties properties) throws Exception { + this.initializeProperties(EnumSet.of(properties)); + this.service.loadPropertiesForUserConfiguration(this, properties); + } + + /** + * Writes to XML. + * + * @param writer The writer. + * @param xmlNamespace The XML namespace. + * @param xmlElementName Name of the XML element. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, + XmlNamespace xmlNamespace, String xmlElementName) throws Exception { + EwsUtilities.EwsAssert(writer != null, "UserConfiguration.WriteToXml", + "writer is null"); + EwsUtilities.EwsAssert(xmlElementName != null, + "UserConfiguration.WriteToXml", "xmlElementName is null"); + + writer.writeStartElement(xmlNamespace, xmlElementName); + + // Write the UserConfigurationName element + writeUserConfigurationNameToXml(writer, XmlNamespace.Types, this.name, + this.parentFolderId); + + // Write the Dictionary element + if (this.isPropertyUpdated(UserConfigurationProperties.Dictionary)) { + this.dictionary.writeToXml(writer, XmlElementNames.Dictionary); + } + + // Write the XmlData element + if (this.isPropertyUpdated(UserConfigurationProperties.XmlData)) { + this.writeXmlDataToXml(writer); + } + + // Write the BinaryData element + if (this.isPropertyUpdated(UserConfigurationProperties.BinaryData)) { + this.writeBinaryDataToXml(writer); + } + + writer.writeEndElement(); + } + + /** + * Determines whether the specified property was updated. + * + * @param property property to evaluate. + * @return Boolean indicating whether to send the property Xml. + */ + private boolean isPropertyUpdated(UserConfigurationProperties property) { + boolean isPropertyDirty = false; + boolean isPropertyEmpty = false; + + switch (property) { + case Dictionary: + isPropertyDirty = this.getDictionary().getIsDirty(); + isPropertyEmpty = this.getDictionary().getCount() == 0; + break; + case XmlData: + isPropertyDirty = this.updatedProperties.contains(property); + isPropertyEmpty = (this.xmlData == null) || + (this.xmlData.length == 0); + break; + case BinaryData: + isPropertyDirty = this.updatedProperties.contains(property); + isPropertyEmpty = (this.binaryData == null) || + (this.binaryData.length == 0); + break; + default: + EwsUtilities.EwsAssert(false, + "UserConfiguration.IsPropertyUpdated", + "property not supported: " + property.toString()); + break; + } + + // Consider the property updated, if it's been modified, and either + // . there's a value or + // . there's no value but the operation is update. + return isPropertyDirty && ((!isPropertyEmpty) || (!this.isNew)); + } + + /** + * Writes the XmlData property to Xml. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeXmlDataToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + EwsUtilities.EwsAssert(writer != null, + "UserConfiguration.WriteXmlDataToXml", "writer is null"); + + writeByteArrayToXml(writer, this.xmlData, XmlElementNames.XmlData); + } + + /** + * Writes the BinaryData property to Xml. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeBinaryDataToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + EwsUtilities.EwsAssert(writer != null, + "UserConfiguration.WriteBinaryDataToXml", "writer is null"); + + writeByteArrayToXml(writer, this.binaryData, + XmlElementNames.BinaryData); + } + + + + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { + EwsUtilities.EwsAssert(reader != null, "UserConfiguration.LoadFromXml", + "reader is null"); + + reader.readStartElement(XmlNamespace.Messages, + XmlElementNames.UserConfiguration); + reader.read(); // Position at first property element + + do { + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + XmlElementNames.UserConfigurationName)) { + String responseName = reader + .readAttributeValue(XmlAttributeNames.Name); + + EwsUtilities.EwsAssert(this.name.equals(responseName), + "UserConfiguration.LoadFromXml", + "UserConfigurationName does not match: Expected: " + + this.name + " Name in response: " + + responseName); + + reader.skipCurrentElement(); + } else if (reader.getLocalName().equals(XmlElementNames.ItemId)) { + this.itemId = new ItemId(); + this.itemId.loadFromXml(reader, XmlElementNames.ItemId); + } else if (reader.getLocalName().equals( + XmlElementNames.Dictionary)) { + this.dictionary.loadFromXml(reader, + XmlElementNames.Dictionary); + } else if (reader.getLocalName() + .equals(XmlElementNames.XmlData)) { + this.xmlData = Base64EncoderStream.decode(reader + .readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.BinaryData)) { + this.binaryData = Base64EncoderStream.decode(reader + .readElementValue()); + } else { + EwsUtilities.EwsAssert(false, + "UserConfiguration.LoadFromXml", + "Xml element not supported: " + + reader.getLocalName()); + } + } + + // If XmlData was loaded, read is skipped because GetXmlData + // positions the reader at the next property. + reader.read(); + } while (!reader.isEndElement(XmlNamespace.Messages, + XmlElementNames.UserConfiguration)); + } + + /** + * Initializes properties. + * + * @param requestedProperties The properties requested for this UserConfiguration. + */ + // / InitializeProperties is called in 3 cases: + // / . Create new object: From the UserConfiguration constructor. + // / . Bind to existing object: Again from the constructor. The constructor + // is called eventually by the GetUserConfiguration request. + // / . Refresh properties: From the Load method. + private void initializeProperties( + EnumSet requestedProperties) { + this.itemId = null; + this.dictionary = new UserConfigurationDictionary(); + this.xmlData = null; + this.binaryData = null; + this.propertiesAvailableForAccess = requestedProperties; + + this.resetIsDirty(); + } + + /** + * Resets flags to indicate that properties haven't been modified. + */ + private void resetIsDirty() { + try { + this.updatedProperties = EnumSet.of(NoProperties); + } catch (Exception e) { + e.printStackTrace(); + } + this.dictionary.setIsDirty(false); + } + + /** + * Determines whether the specified property may be accessed. + * + * @param property Property to access. + * @throws microsoft.exchange.webservices.data.PropertyException the property exception + */ + private void validatePropertyAccess(UserConfigurationProperties property) + throws PropertyException { + if (!this.propertiesAvailableForAccess.contains(property)) { + throw new PropertyException( + Strings.MustLoadOrAssignPropertyBeforeAccess, property + .toString()); + } + } + + /** + * Adds the passed property to updatedProperties. + * + * @param property Property to update. + */ + private void markPropertyForUpdate(UserConfigurationProperties property) { + this.updatedProperties.add(property); + this.propertiesAvailableForAccess.add(property); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 9597c2731..22d4a118a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -10,10 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import javax.management.Query; import javax.xml.stream.XMLStreamException; import java.lang.reflect.Array; -import java.lang.reflect.Type; import java.util.*; import java.util.Map.Entry; @@ -22,768 +20,717 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ @EditorBrowsable(state = EditorBrowsableState.Never) public final class UserConfigurationDictionary extends ComplexProperty - implements Iterable { - - // TODO: Consider implementing IsDirty mechanism in ComplexProperty. - - /** The dictionary. */ - private Map dictionary; - - /** The is dirty. */ - private boolean isDirty = false; - - /** - * Initializes a new instance of "UserConfigurationDictionary" class. - */ - protected UserConfigurationDictionary() { - super(); - this.dictionary = new HashMap(); - } - - /** - * Gets the element with the specified key. - * - * @param key - * The key of the element to get or set. - * @return The element with the specified key. - */ - public Object getElements(Object key) { - return this.dictionary.get(key); - } - - /** - * Sets the element with the specified key. - * - * @param key - * The key of the element to get or set - * @param value - * the value - * @throws Exception - * the exception - */ - public void setElements(Object key, Object value) throws Exception { - this.validateEntry(key, value); - this.dictionary.put(key, value); - this.changed(); - } - - /** - * Adds an element with the provided key and value to the user configuration - * dictionary. - * - * @param key - * The object to use as the key of the element to add. - * @param value - * The object to use as the value of the element to add. - * @throws Exception - * the exception - */ - public void addElement(Object key, Object value) throws Exception { - this.validateEntry(key, value); - this.dictionary.put(key, value); - this.changed(); - } - - /** - * Determines whether the user configuration dictionary contains an element - * with the specified key. - * - * @param key - * The key to locate in the user configuration dictionary. - * @return true if the user configuration dictionary contains an element - * with the key; otherwise false. - */ - public boolean containsKey(Object key) { - return this.dictionary.containsKey(key); - } - - /** - * Removes the element with the specified key from the user configuration - * dictionary. - * - * @param key - * The key of the element to remove. - * @return true if the element is successfully removed; otherwise false. - */ - public boolean remove(Object key) { - boolean isRemoved = false; - if (key != null) { - this.dictionary.remove(key); - isRemoved = true; - } - - if (isRemoved) { - this.changed(); - } - - return isRemoved; - } - - /** - * Gets the value associated with the specified key. - * - * @param key - * The key whose value to get. - * @param value - * When this method returns, the value associated with the - * specified key, if the key is found; otherwise, null. - * @return true if the user configuration dictionary contains the key; - * otherwise false. - */ - public boolean tryGetValue(Object key, OutParam value) { - if (this.dictionary.containsKey(key)) { - value.setParam(this.dictionary.get(key)); - return true; - } else { - value.setParam(null); - return false; - } - - } - - /** - * Gets the number of elements in the user configuration dictionary. - * - * @return the count - */ - public int getCount() { - return this.dictionary.size(); - } - - /** - * Removes all items from the user configuration dictionary. - */ - public void clear() { - if (this.dictionary.size() != 0) { - this.dictionary.clear(); - - this.changed(); - } - } - - /** - * Gets the enumerator. - * - * @return the enumerator - */ - @SuppressWarnings("unchecked") - /** - * Returns an enumerator that iterates through - * the user configuration dictionary. - * @return An IEnumerator that can be used - * to iterate through the user configuration dictionary. - */ - public Iterator getEnumerator() { - return (this.dictionary.values().iterator()); - } - - /** - * Gets the isDirty flag. - * - * @return the checks if is dirty - */ - protected boolean getIsDirty() { - return this.isDirty; - } - - /** - * Sets the isDirty flag. - * - * @param value - * the new checks if is dirty - */ - protected void setIsDirty(boolean value) { - this.isDirty = value; - } - - /** - * Instance was changed. - */ - @Override - protected void changed() { - super.changed(); - this.isDirty = true; - } - - /** - * Writes elements to XML. - * - * @param writer - * accepts EwsServiceXmlWriter - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - @Override - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfigurationDictionary.WriteElementsToXml", - "writer is null"); - Iterator> it = this.dictionary.entrySet() - .iterator(); - while (it.hasNext()) { - Entry dictionaryEntry = it.next(); - writer.writeStartElement(XmlNamespace.Types, - XmlElementNames.DictionaryEntry); - this.writeObjectToXml(writer, XmlElementNames.DictionaryKey, - dictionaryEntry.getKey()); - this.writeObjectToXml(writer, XmlElementNames.DictionaryValue, - dictionaryEntry.getValue()); - writer.writeEndElement(); - } - } - - /** - * Writes a dictionary object (key or value) to Xml. - * - * @param writer - * The writer. - * @param xmlElementName - * The Xml element name. - * @param dictionaryObject - * The object to write. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeObjectToXml(EwsServiceXmlWriter writer, - String xmlElementName, Object dictionaryObject) - throws XMLStreamException, ServiceXmlSerializationException { - EwsUtilities.EwsAssert(writer != null, - "UserConfigurationDictionary.WriteObjectToXml", - "writer is null"); - EwsUtilities.EwsAssert(xmlElementName != null, - "UserConfigurationDictionary.WriteObjectToXml", - "xmlElementName is null"); - writer.writeStartElement(XmlNamespace.Types, xmlElementName); - - if (dictionaryObject == null) { - EwsUtilities.EwsAssert((!xmlElementName - .equals(XmlElementNames.DictionaryKey)), - "UserConfigurationDictionary.WriteObjectToXml", - "Key is null"); - - writer.writeAttributeValue( - EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, - XmlAttributeNames.Nil, EwsUtilities.XSTrue); - } else { - this.writeObjectValueToXml(writer, dictionaryObject); - } - - writer.writeEndElement(); - } - - /** - * Writes a dictionary Object's value to Xml. - * - * @param writer - * The writer. - * @param dictionaryObject - * The dictionary object to write.
- * Object values are either:
- * an array of strings, an array of bytes (which will be encoded into base64)
- * or a single value. Single values can be:
- * - datetime, boolean, byte, int, long, string - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeObjectValueToXml(final EwsServiceXmlWriter writer, - final Object dictionaryObject) throws XMLStreamException, - ServiceXmlSerializationException { - // Preconditions - if (dictionaryObject == null) { - throw new NullPointerException("DictionaryObject must not be null"); - } - if (writer == null) { - throw new NullPointerException( - "EwsServiceXmlWriter must not be null"); + implements Iterable { + + // TODO: Consider implementing IsDirty mechanism in ComplexProperty. + + /** + * The dictionary. + */ + private Map dictionary; + + /** + * The is dirty. + */ + private boolean isDirty = false; + + /** + * Initializes a new instance of "UserConfigurationDictionary" class. + */ + protected UserConfigurationDictionary() { + super(); + this.dictionary = new HashMap(); + } + + /** + * Gets the element with the specified key. + * + * @param key The key of the element to get or set. + * @return The element with the specified key. + */ + public Object getElements(Object key) { + return this.dictionary.get(key); + } + + /** + * Sets the element with the specified key. + * + * @param key The key of the element to get or set + * @param value the value + * @throws Exception the exception + */ + public void setElements(Object key, Object value) throws Exception { + this.validateEntry(key, value); + this.dictionary.put(key, value); + this.changed(); + } + + /** + * Adds an element with the provided key and value to the user configuration + * dictionary. + * + * @param key The object to use as the key of the element to add. + * @param value The object to use as the value of the element to add. + * @throws Exception the exception + */ + public void addElement(Object key, Object value) throws Exception { + this.validateEntry(key, value); + this.dictionary.put(key, value); + this.changed(); + } + + /** + * Determines whether the user configuration dictionary contains an element + * with the specified key. + * + * @param key The key to locate in the user configuration dictionary. + * @return true if the user configuration dictionary contains an element + * with the key; otherwise false. + */ + public boolean containsKey(Object key) { + return this.dictionary.containsKey(key); + } + + /** + * Removes the element with the specified key from the user configuration + * dictionary. + * + * @param key The key of the element to remove. + * @return true if the element is successfully removed; otherwise false. + */ + public boolean remove(Object key) { + boolean isRemoved = false; + if (key != null) { + this.dictionary.remove(key); + isRemoved = true; + } + + if (isRemoved) { + this.changed(); + } + + return isRemoved; + } + + /** + * Gets the value associated with the specified key. + * + * @param key The key whose value to get. + * @param value When this method returns, the value associated with the + * specified key, if the key is found; otherwise, null. + * @return true if the user configuration dictionary contains the key; + * otherwise false. + */ + public boolean tryGetValue(Object key, OutParam value) { + if (this.dictionary.containsKey(key)) { + value.setParam(this.dictionary.get(key)); + return true; + } else { + value.setParam(null); + return false; + } + + } + + /** + * Gets the number of elements in the user configuration dictionary. + * + * @return the count + */ + public int getCount() { + return this.dictionary.size(); + } + + /** + * Removes all items from the user configuration dictionary. + */ + public void clear() { + if (this.dictionary.size() != 0) { + this.dictionary.clear(); + + this.changed(); + } + } + + /** + * Gets the enumerator. + * + * @return the enumerator + */ + @SuppressWarnings("unchecked") + /** + * Returns an enumerator that iterates through + * the user configuration dictionary. + * @return An IEnumerator that can be used + * to iterate through the user configuration dictionary. + */ + public Iterator getEnumerator() { + return (this.dictionary.values().iterator()); + } + + /** + * Gets the isDirty flag. + * + * @return the checks if is dirty + */ + protected boolean getIsDirty() { + return this.isDirty; + } + + /** + * Sets the isDirty flag. + * + * @param value the new checks if is dirty + */ + protected void setIsDirty(boolean value) { + this.isDirty = value; + } + + /** + * Instance was changed. + */ + @Override + protected void changed() { + super.changed(); + this.isDirty = true; + } + + /** + * Writes elements to XML. + * + * @param writer accepts EwsServiceXmlWriter + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + @Override + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + EwsUtilities.EwsAssert(writer != null, + "UserConfigurationDictionary.WriteElementsToXml", + "writer is null"); + Iterator> it = this.dictionary.entrySet() + .iterator(); + while (it.hasNext()) { + Entry dictionaryEntry = it.next(); + writer.writeStartElement(XmlNamespace.Types, + XmlElementNames.DictionaryEntry); + this.writeObjectToXml(writer, XmlElementNames.DictionaryKey, + dictionaryEntry.getKey()); + this.writeObjectToXml(writer, XmlElementNames.DictionaryValue, + dictionaryEntry.getValue()); + writer.writeEndElement(); + } + } + + /** + * Writes a dictionary object (key or value) to Xml. + * + * @param writer The writer. + * @param xmlElementName The Xml element name. + * @param dictionaryObject The object to write. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeObjectToXml(EwsServiceXmlWriter writer, + String xmlElementName, Object dictionaryObject) + throws XMLStreamException, ServiceXmlSerializationException { + EwsUtilities.EwsAssert(writer != null, + "UserConfigurationDictionary.WriteObjectToXml", + "writer is null"); + EwsUtilities.EwsAssert(xmlElementName != null, + "UserConfigurationDictionary.WriteObjectToXml", + "xmlElementName is null"); + writer.writeStartElement(XmlNamespace.Types, xmlElementName); + + if (dictionaryObject == null) { + EwsUtilities.EwsAssert((!xmlElementName + .equals(XmlElementNames.DictionaryKey)), + "UserConfigurationDictionary.WriteObjectToXml", + "Key is null"); + + writer.writeAttributeValue( + EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, + XmlAttributeNames.Nil, EwsUtilities.XSTrue); + } else { + this.writeObjectValueToXml(writer, dictionaryObject); + } + + writer.writeEndElement(); + } + + /** + * Writes a dictionary Object's value to Xml. + * + * @param writer The writer. + * @param dictionaryObject The dictionary object to write.
+ * Object values are either:
+ * an array of strings, an array of bytes (which will be encoded into base64)
+ * or a single value. Single values can be:
+ * - datetime, boolean, byte, int, long, string + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeObjectValueToXml(final EwsServiceXmlWriter writer, + final Object dictionaryObject) throws XMLStreamException, + ServiceXmlSerializationException { + // Preconditions + if (dictionaryObject == null) { + throw new NullPointerException("DictionaryObject must not be null"); + } + if (writer == null) { + throw new NullPointerException( + "EwsServiceXmlWriter must not be null"); + } + + // Processing + final UserConfigurationDictionaryObjectType dictionaryObjectType; + if (dictionaryObject instanceof String[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.StringArray; + this.writeEntryTypeToXml(writer, dictionaryObjectType); + + for (String arrayElement : (String[]) dictionaryObject) { + this.writeEntryValueToXml(writer, arrayElement); + } + } else { + final String valueAsString; + if (dictionaryObject instanceof String) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.String; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Boolean) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.Boolean; + valueAsString = EwsUtilities + .boolToXSBool((Boolean) dictionaryObject); + } else if (dictionaryObject instanceof Byte) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.Byte; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Date) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.DateTime; + valueAsString = writer.getService() + .convertDateTimeToUniversalDateTimeString( + (Date) dictionaryObject); + } else if (dictionaryObject instanceof Integer) { + // removed unsigned integer because in Java, all types are + // signed, there are no unsigned versions + dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer32; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof Long) { + // removed unsigned integer because in Java, all types are + // signed, there are no unsigned versions + dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer64; + valueAsString = String.valueOf(dictionaryObject); + } else if (dictionaryObject instanceof byte[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; + valueAsString = Base64EncoderStream.encode((byte[]) dictionaryObject); + } else if (dictionaryObject instanceof Byte[]) { + dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; + + // cast Byte[] to byte[] + Byte[] from = (Byte[]) dictionaryObject; + byte[] to = new byte[from.length]; + for (int currentIndex = 0; currentIndex < from.length; currentIndex++) { + to[currentIndex] = (byte) from[currentIndex]; } - // Processing - final UserConfigurationDictionaryObjectType dictionaryObjectType; - if (dictionaryObject instanceof String[]) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.StringArray; - this.writeEntryTypeToXml(writer, dictionaryObjectType); + valueAsString = Base64EncoderStream.encode(to); + } else { + throw new IllegalArgumentException(String.format( + "Unsupported type: %s", dictionaryObject.getClass() + .toString())); + } + this.writeEntryTypeToXml(writer, dictionaryObjectType); + this.writeEntryValueToXml(writer, valueAsString); + } + } + + + /** + * Writes a dictionary entry type to Xml. + * + * @param writer The writer. + * @param dictionaryObjectType Type to write. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeEntryTypeToXml(EwsServiceXmlWriter writer, + UserConfigurationDictionaryObjectType dictionaryObjectType) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Type); + writer + .writeValue(dictionaryObjectType.toString(), + XmlElementNames.Type); + writer.writeEndElement(); + } + + /** + * Writes a dictionary entry value to Xml. + * + * @param writer The writer. + * @param value Value to write. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + private void writeEntryValueToXml(EwsServiceXmlWriter writer, String value) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Value); + + // While an entry value can't be null, if the entry is an array, an + // element of the array can be null. + if (value != null) { + writer.writeValue(value, XmlElementNames.Value); + } - for (String arrayElement : (String[]) dictionaryObject) { - this.writeEntryValueToXml(writer, arrayElement); - } + writer.writeEndElement(); + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ComplexProperty#loadFromXml(microsoft. + * exchange.webservices.EwsServiceXmlReader, + * microsoft.exchange.webservices.XmlNamespace, java.lang.String) + */ + @Override + /** + * Loads this dictionary from the specified reader. + * @param reader The reader. + * @param xmlNamespace The dictionary's XML namespace. + * @param xmlElementName Name of the XML element + * representing the dictionary. + */ + protected void loadFromXml(EwsServiceXmlReader reader, + XmlNamespace xmlNamespace, String xmlElementName) throws Exception { + super.loadFromXml(reader, xmlNamespace, xmlElementName); + + this.isDirty = false; + } + + /* + * (non-Javadoc) + * + * @see + * microsoft.exchange.webservices.ComplexProperty#tryReadElementFromXml( + * microsoft.exchange.webservices.EwsServiceXmlReader) + */ + @Override + /** + * Tries to read element from XML. + * @param reader The reader. + * @return True if element was read. + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + reader.ensureCurrentNodeIsStartElement(this.getNamespace(), + XmlElementNames.DictionaryEntry); + this.loadEntry(reader); + return true; + } + + /** + * Loads an entry, consisting of a key value pair, into this dictionary from + * the specified reader. + * + * @param reader The reader. + * @throws Exception the exception + */ + private void loadEntry(EwsServiceXmlReader reader) throws Exception { + EwsUtilities.EwsAssert(reader != null, + "UserConfigurationDictionary.LoadEntry", "reader is null"); + + Object key; + Object value = null; + + // Position at DictionaryKey + reader.readStartElement(this.getNamespace(), + XmlElementNames.DictionaryKey); + + key = this.getDictionaryObject(reader); + + // Position at DictionaryValue + reader.readStartElement(this.getNamespace(), + XmlElementNames.DictionaryValue); + + String nil = reader.readAttributeValue(XmlNamespace.XmlSchemaInstance, + XmlAttributeNames.Nil); + boolean hasValue = (nil == null) + || (!nil.getClass().equals(Boolean.TYPE)); + if (hasValue) { + value = this.getDictionaryObject(reader); + } + this.dictionary.put(key, value); + } + + /** + * Extracts a dictionary object (key or entry value) from the specified + * reader. + * + * @param reader The reader. + * @return Dictionary object. + * @throws Exception the exception + */ + private Object getDictionaryObject(EwsServiceXmlReader reader) + throws Exception { + EwsUtilities.EwsAssert(reader != null, + "UserConfigurationDictionary.loadFromXml", "reader is null"); + UserConfigurationDictionaryObjectType type = this.getObjectType(reader); + List values = this.getObjectValue(reader, type); + return this.constructObject(type, values, reader); + } + + /** + * Extracts a dictionary object (key or entry value) as a string list from + * the specified reader. + * + * @param reader The reader. + * @param type The object type. + * @return String list representing a dictionary object. + * @throws Exception the exception + */ + private List getObjectValue(EwsServiceXmlReader reader, + UserConfigurationDictionaryObjectType type) throws Exception { + EwsUtilities.EwsAssert(reader != null, + "UserConfigurationDictionary.LoadFromXml", "reader is null"); + + List values = new ArrayList(); + + reader.readStartElement(this.getNamespace(), XmlElementNames.Value); + + do { + String value = null; + + if (reader.isEmptyElement()) { + // Only string types can be represented with empty values. + if (type.equals(UserConfigurationDictionaryObjectType.String) + || type + .equals(UserConfigurationDictionaryObjectType. + StringArray)) { + value = ""; } else { - final String valueAsString; - if (dictionaryObject instanceof String) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.String; - valueAsString = String.valueOf(dictionaryObject); - } else if (dictionaryObject instanceof Boolean) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.Boolean; - valueAsString = EwsUtilities - .boolToXSBool((Boolean) dictionaryObject); - } else if (dictionaryObject instanceof Byte) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.Byte; - valueAsString = String.valueOf(dictionaryObject); - } else if (dictionaryObject instanceof Date) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.DateTime; - valueAsString = writer.getService() - .convertDateTimeToUniversalDateTimeString( - (Date) dictionaryObject); - } else if (dictionaryObject instanceof Integer) { - // removed unsigned integer because in Java, all types are - // signed, there are no unsigned versions - dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer32; - valueAsString = String.valueOf(dictionaryObject); - } else if (dictionaryObject instanceof Long) { - // removed unsigned integer because in Java, all types are - // signed, there are no unsigned versions - dictionaryObjectType = UserConfigurationDictionaryObjectType.Integer64; - valueAsString = String.valueOf(dictionaryObject); - } else if (dictionaryObject instanceof byte[]) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; - valueAsString = Base64EncoderStream.encode((byte[]) dictionaryObject); - } else if (dictionaryObject instanceof Byte[]) { - dictionaryObjectType = UserConfigurationDictionaryObjectType.ByteArray; - - // cast Byte[] to byte[] - Byte[] from = (Byte[]) dictionaryObject; - byte[] to = new byte[from.length]; - for (int currentIndex = 0; currentIndex < from.length; currentIndex++) { - to[currentIndex] = (byte) from[currentIndex]; - } - - valueAsString = Base64EncoderStream.encode(to); - } else { - throw new IllegalArgumentException(String.format( - "Unsupported type: %s", dictionaryObject.getClass() - .toString())); - } - this.writeEntryTypeToXml(writer, dictionaryObjectType); - this.writeEntryValueToXml(writer, valueAsString); + EwsUtilities + .EwsAssert( + false, + "UserConfigurationDictionary." + + "GetObjectValue", + "Empty element passed for type: " + + type.toString()); + } + + } else { + value = reader.readElementValue(); + } + + values.add(value); + reader.read(); // Position at next element or + // DictionaryKey/DictionaryValue end element + } while (reader.isStartElement(this.getNamespace(), + XmlElementNames.Value)); + return values; + } + + /** + * Extracts the dictionary object (key or entry value) type from the + * specified reader. + * + * @param reader The reader. + * @return Dictionary object type. + * @throws Exception the exception + */ + private UserConfigurationDictionaryObjectType getObjectType( + EwsServiceXmlReader reader) throws Exception { + EwsUtilities.EwsAssert(reader != null, + "UserConfigurationDictionary.LoadFromXml", "reader is null"); + + reader.readStartElement(this.getNamespace(), XmlElementNames.Type); + + String type = reader.readElementValue(); + return UserConfigurationDictionaryObjectType.valueOf(type); + } + + /** + * Constructs a dictionary object (key or entry value) from the specified + * type and string list. + * + * @param type Object type to construct. + * @param value Value of the dictionary object as a string list + * @param reader The reader. + * @return Dictionary object. + */ + private Object constructObject(UserConfigurationDictionaryObjectType type, + List value, EwsServiceXmlReader reader) { + EwsUtilities.EwsAssert(value != null, + "UserConfigurationDictionary.ConstructObject", "value is null"); + EwsUtilities + .EwsAssert( + (value.size() == 1 || type == + UserConfigurationDictionaryObjectType.StringArray), + + "UserConfigurationDictionary.ConstructObject", + "value is array but type is not StringArray"); + EwsUtilities + .EwsAssert(reader != null, + "UserConfigurationDictionary.ConstructObject", + "reader is null"); + + Object dictionaryObject = null; + if (type.equals(UserConfigurationDictionaryObjectType.Boolean)) { + dictionaryObject = Boolean.parseBoolean(value.get(0)); + } else if (type.equals(UserConfigurationDictionaryObjectType.Byte)) { + dictionaryObject = Byte.parseByte(value.get(0)); + } else if (type.equals(UserConfigurationDictionaryObjectType.ByteArray)) { + dictionaryObject = Base64EncoderStream.decode(value.get(0)); + } else if (type.equals(UserConfigurationDictionaryObjectType.DateTime)) { + Date dateTime = reader.getService() + .convertUniversalDateTimeStringToDate(value.get(0)); + if (dateTime != null) { + dictionaryObject = dateTime; + } else { + EwsUtilities.EwsAssert(false, + "UserConfigurationDictionary.ConstructObject", + "DateTime is null"); + } + } else if (type.equals(UserConfigurationDictionaryObjectType.Integer32)) { + dictionaryObject = Integer.parseInt(value.get(0)); + } else if (type.equals(UserConfigurationDictionaryObjectType.Integer64)) { + dictionaryObject = Long.parseLong(value.get(0)); + } else if (type.equals(UserConfigurationDictionaryObjectType.String)) { + dictionaryObject = String.valueOf(value.get(0)); + } else if (type + .equals(UserConfigurationDictionaryObjectType.StringArray)) { + dictionaryObject = value.toArray(); + } else if (type + .equals(UserConfigurationDictionaryObjectType. + UnsignedInteger32)) { + dictionaryObject = Integer.parseInt(value.get(0)); + } else if (type + .equals(UserConfigurationDictionaryObjectType. + UnsignedInteger64)) { + dictionaryObject = Long.parseLong(value.get(0)); + } else { + EwsUtilities.EwsAssert(false, + "UserConfigurationDictionary.ConstructObject", + "Type not recognized: " + type.toString()); } + return dictionaryObject; + } + + /** + * Validates the specified key and value. + * + * @param key The key. + * @param value The diction dictionary entry key.ary entry value. + * @throws Exception the exception + */ + private void validateEntry(Object key, Object value) throws Exception { + this.validateObject(key); + this.validateObject(value); + + } + + /** + * Validates the dictionary object (key or entry value). + * + * @param dictionaryObject Object to validate. + * @throws Exception the exception + */ + @SuppressWarnings("unchecked") + private void validateObject(Object dictionaryObject) throws Exception { + // Keys may not be null but we rely on the internal dictionary to throw + // if the key is null. + if (dictionaryObject != null) { + if (dictionaryObject.getClass().isArray()) { + int length = Array.getLength(dictionaryObject); + Class wrapperType = Array.get(dictionaryObject, 0).getClass(); + Object[] newArray = (Object[]) Array. + newInstance(wrapperType, length); + for (int i = 0; i < length; i++) { + newArray[i] = Array.get(dictionaryObject, i); + } + this.validateArrayObject(newArray); + } else { + this.validateObjectType(dictionaryObject); + + } - /** - * Writes a dictionary entry type to Xml. - * - * @param writer - * The writer. - * @param dictionaryObjectType - * Type to write. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeEntryTypeToXml(EwsServiceXmlWriter writer, - UserConfigurationDictionaryObjectType dictionaryObjectType) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Type); - writer - .writeValue(dictionaryObjectType.toString(), - XmlElementNames.Type); - writer.writeEndElement(); - } - - /** - * Writes a dictionary entry value to Xml. - * - * @param writer - * The writer. - * @param value - * Value to write. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - private void writeEntryValueToXml(EwsServiceXmlWriter writer, String value) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Value); - - // While an entry value can't be null, if the entry is an array, an - // element of the array can be null. - if (value != null) { - writer.writeValue(value, XmlElementNames.Value); - } - - writer.writeEndElement(); - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ComplexProperty#loadFromXml(microsoft. - * exchange.webservices.EwsServiceXmlReader, - * microsoft.exchange.webservices.XmlNamespace, java.lang.String) - */ - @Override - /** - * Loads this dictionary from the specified reader. - * @param reader The reader. - * @param xmlNamespace The dictionary's XML namespace. - * @param xmlElementName Name of the XML element - * representing the dictionary. - */ - protected void loadFromXml(EwsServiceXmlReader reader, - XmlNamespace xmlNamespace, String xmlElementName) throws Exception { - super.loadFromXml(reader, xmlNamespace, xmlElementName); - - this.isDirty = false; - } - - /* - * (non-Javadoc) - * - * @see - * microsoft.exchange.webservices.ComplexProperty#tryReadElementFromXml( - * microsoft.exchange.webservices.EwsServiceXmlReader) - */ - @Override - /** - * Tries to read element from XML. - * @param reader The reader. - * @return True if element was read. - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - reader.ensureCurrentNodeIsStartElement(this.getNamespace(), - XmlElementNames.DictionaryEntry); - this.loadEntry(reader); - return true; - } - - /** - * Loads an entry, consisting of a key value pair, into this dictionary from - * the specified reader. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - private void loadEntry(EwsServiceXmlReader reader) throws Exception { - EwsUtilities.EwsAssert(reader != null, - "UserConfigurationDictionary.LoadEntry", "reader is null"); - - Object key; - Object value = null; - - // Position at DictionaryKey - reader.readStartElement(this.getNamespace(), - XmlElementNames.DictionaryKey); - - key = this.getDictionaryObject(reader); - - // Position at DictionaryValue - reader.readStartElement(this.getNamespace(), - XmlElementNames.DictionaryValue); - - String nil = reader.readAttributeValue(XmlNamespace.XmlSchemaInstance, - XmlAttributeNames.Nil); - boolean hasValue = (nil == null) - || (!nil.getClass().equals(Boolean.TYPE)); - if (hasValue) { - value = this.getDictionaryObject(reader); - } - this.dictionary.put(key, value); - } - - /** - * Extracts a dictionary object (key or entry value) from the specified - * reader. - * - * @param reader - * The reader. - * @return Dictionary object. - * @throws Exception - * the exception - */ - private Object getDictionaryObject(EwsServiceXmlReader reader) - throws Exception { - EwsUtilities.EwsAssert(reader != null, - "UserConfigurationDictionary.loadFromXml", "reader is null"); - UserConfigurationDictionaryObjectType type = this.getObjectType(reader); - List values = this.getObjectValue(reader, type); - return this.constructObject(type, values, reader); - } - - /** - * Extracts a dictionary object (key or entry value) as a string list from - * the specified reader. - * - * @param reader - * The reader. - * @param type - * The object type. - * @return String list representing a dictionary object. - * @throws Exception - * the exception - */ - private List getObjectValue(EwsServiceXmlReader reader, - UserConfigurationDictionaryObjectType type) throws Exception { - EwsUtilities.EwsAssert(reader != null, - "UserConfigurationDictionary.LoadFromXml", "reader is null"); - - List values = new ArrayList(); - - reader.readStartElement(this.getNamespace(), XmlElementNames.Value); - - do { - String value = null; - - if (reader.isEmptyElement()) { - // Only string types can be represented with empty values. - if (type.equals(UserConfigurationDictionaryObjectType.String) - || type - .equals(UserConfigurationDictionaryObjectType. - StringArray)) { - value = ""; - } else { - EwsUtilities - .EwsAssert( - false, - "UserConfigurationDictionary." + - "GetObjectValue", - "Empty element passed for type: " - + type.toString()); - - } - - } - - else { - value = reader.readElementValue(); - } - - values.add(value); - reader.read(); // Position at next element or - // DictionaryKey/DictionaryValue end element - } while (reader.isStartElement(this.getNamespace(), - XmlElementNames.Value)); - return values; - } - - /** - * Extracts the dictionary object (key or entry value) type from the - * specified reader. - * - * @param reader - * The reader. - * @return Dictionary object type. - * @throws Exception - * the exception - */ - private UserConfigurationDictionaryObjectType getObjectType( - EwsServiceXmlReader reader) throws Exception { - EwsUtilities.EwsAssert(reader != null, - "UserConfigurationDictionary.LoadFromXml", "reader is null"); - - reader.readStartElement(this.getNamespace(), XmlElementNames.Type); - - String type = reader.readElementValue(); - return UserConfigurationDictionaryObjectType.valueOf(type); - } - - /** - * Constructs a dictionary object (key or entry value) from the specified - * type and string list. - * - * @param type - * Object type to construct. - * @param value - * Value of the dictionary object as a string list - * @param reader - * The reader. - * @return Dictionary object. - */ - private Object constructObject(UserConfigurationDictionaryObjectType type, - List value, EwsServiceXmlReader reader) { - EwsUtilities.EwsAssert(value != null, - "UserConfigurationDictionary.ConstructObject", "value is null"); - EwsUtilities - .EwsAssert( - (value.size() == 1 || type == - UserConfigurationDictionaryObjectType.StringArray), - - "UserConfigurationDictionary.ConstructObject", - "value is array but type is not StringArray"); - EwsUtilities - .EwsAssert(reader != null, - "UserConfigurationDictionary.ConstructObject", - "reader is null"); - - Object dictionaryObject = null; - if (type.equals(UserConfigurationDictionaryObjectType.Boolean)) { - dictionaryObject = Boolean.parseBoolean(value.get(0)); - } else if (type.equals(UserConfigurationDictionaryObjectType.Byte)) { - dictionaryObject = Byte.parseByte(value.get(0)); - } else if (type.equals(UserConfigurationDictionaryObjectType.ByteArray)) { - dictionaryObject = Base64EncoderStream.decode(value.get(0)); - } else if (type.equals(UserConfigurationDictionaryObjectType.DateTime)) { - Date dateTime = reader.getService() - .convertUniversalDateTimeStringToDate(value.get(0)); - if (dateTime != null) { - dictionaryObject = dateTime; - } else { - EwsUtilities.EwsAssert(false, - "UserConfigurationDictionary.ConstructObject", - "DateTime is null"); - } - } else if (type.equals(UserConfigurationDictionaryObjectType.Integer32)) { - dictionaryObject = Integer.parseInt(value.get(0)); - } else if (type.equals(UserConfigurationDictionaryObjectType.Integer64)) { - dictionaryObject = Long.parseLong(value.get(0)); - } else if (type.equals(UserConfigurationDictionaryObjectType.String)) { - dictionaryObject = String.valueOf(value.get(0)); - } else if (type - .equals(UserConfigurationDictionaryObjectType.StringArray)) { - dictionaryObject = value.toArray(); - } else if (type - .equals(UserConfigurationDictionaryObjectType. - UnsignedInteger32)) { - dictionaryObject = Integer.parseInt(value.get(0)); - } else if (type - .equals(UserConfigurationDictionaryObjectType. - UnsignedInteger64)) { - dictionaryObject = Long.parseLong(value.get(0)); - } else { - EwsUtilities.EwsAssert(false, - "UserConfigurationDictionary.ConstructObject", - "Type not recognized: " + type.toString()); - } - - return dictionaryObject; - } - - /** - * Validates the specified key and value. - * - * @param key - * The key. - * @param value - * The diction dictionary entry key.ary entry value. - * @throws Exception - * the exception - */ - private void validateEntry(Object key, Object value) throws Exception { - this.validateObject(key); - this.validateObject(value); - - } - - /** - * Validates the dictionary object (key or entry value). - * - * @param dictionaryObject - * Object to validate. - * @throws Exception - * the exception - */ - @SuppressWarnings("unchecked") - private void validateObject(Object dictionaryObject) throws Exception { - // Keys may not be null but we rely on the internal dictionary to throw - // if the key is null. - if (dictionaryObject != null) { - if(dictionaryObject.getClass().isArray() ){ - int length = Array.getLength(dictionaryObject); - Class wrapperType = Array.get(dictionaryObject, 0).getClass(); - Object[] newArray = (Object[]) Array. - newInstance(wrapperType, length); - for (int i = 0; i < length; i++) { - newArray[i] = Array.get(dictionaryObject, i); - } - this.validateArrayObject(newArray); - } - else{ - this.validateObjectType(dictionaryObject); - - } - - } else { - throw new NullPointerException(); - } - } - - /** - * Validate the array object. - * - * @param dictionaryObjectAsArray - * Object to validate - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - private void validateArrayObject(Object[] dictionaryObjectAsArray) - throws ServiceLocalException { - // This logic is based on - // Microsoft.Exchange.Data.Storage.ConfigurationDictionary. - // CheckElementSupportedType(). - // if (dictionaryObjectAsArray is string[]) - - if (dictionaryObjectAsArray instanceof String[]) { - if (dictionaryObjectAsArray.length > 0) { - for (Object arrayElement : dictionaryObjectAsArray) { - if (arrayElement == null) { - throw new ServiceLocalException( - Strings.NullStringArrayElementInvalid); - } - } - } else { - throw new ServiceLocalException(Strings.ZeroLengthArrayInvalid); - } - } else if (dictionaryObjectAsArray instanceof Byte[]) { - if (dictionaryObjectAsArray.length <= 0) { - throw new ServiceLocalException(Strings.ZeroLengthArrayInvalid); - } - } else { - throw new ServiceLocalException(String.format( - Strings.ObjectTypeNotSupported, dictionaryObjectAsArray - .getClass())); - } - } - - /** - * Validates the dictionary object type. - * - * @param theObject - * Object to validate. - * @throws microsoft.exchange.webservices.data.ServiceLocalException - * the service local exception - */ - private void validateObjectType(Object theObject) throws ServiceLocalException { - // This logic is based on - // Microsoft.Exchange.Data.Storage.ConfigurationDictionary. - // CheckElementSupportedType(). - boolean isValidType = false; - if (theObject != null){ - if (theObject instanceof String || - theObject instanceof Boolean || - theObject instanceof Byte || - theObject instanceof Long || - theObject instanceof Date || - theObject instanceof Integer) - isValidType = true; + } else { + throw new NullPointerException(); + } + } + + /** + * Validate the array object. + * + * @param dictionaryObjectAsArray Object to validate + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + private void validateArrayObject(Object[] dictionaryObjectAsArray) + throws ServiceLocalException { + // This logic is based on + // Microsoft.Exchange.Data.Storage.ConfigurationDictionary. + // CheckElementSupportedType(). + // if (dictionaryObjectAsArray is string[]) + + if (dictionaryObjectAsArray instanceof String[]) { + if (dictionaryObjectAsArray.length > 0) { + for (Object arrayElement : dictionaryObjectAsArray) { + if (arrayElement == null) { + throw new ServiceLocalException( + Strings.NullStringArrayElementInvalid); + } } + } else { + throw new ServiceLocalException(Strings.ZeroLengthArrayInvalid); + } + } else if (dictionaryObjectAsArray instanceof Byte[]) { + if (dictionaryObjectAsArray.length <= 0) { + throw new ServiceLocalException(Strings.ZeroLengthArrayInvalid); + } + } else { + throw new ServiceLocalException(String.format( + Strings.ObjectTypeNotSupported, dictionaryObjectAsArray + .getClass())); + } + } + + /** + * Validates the dictionary object type. + * + * @param theObject Object to validate. + * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception + */ + private void validateObjectType(Object theObject) throws ServiceLocalException { + // This logic is based on + // Microsoft.Exchange.Data.Storage.ConfigurationDictionary. + // CheckElementSupportedType(). + boolean isValidType = false; + if (theObject != null) { + if (theObject instanceof String || + theObject instanceof Boolean || + theObject instanceof Byte || + theObject instanceof Long || + theObject instanceof Date || + theObject instanceof Integer) { + isValidType = true; + } + } - if (!isValidType) { - throw new ServiceLocalException( - String.format(Strings.ObjectTypeNotSupported, (theObject != null ? - theObject.getClass().toString() : "null"))); - } - } - - /* - * (non-Javadoc) - * - * @see java.lang.Iterable#iterator() - */ - @Override - public Iterator iterator() { - return this.dictionary.values().iterator(); - - } + if (!isValidType) { + throw new ServiceLocalException( + String.format(Strings.ObjectTypeNotSupported, (theObject != null ? + theObject.getClass().toString() : "null"))); + } + } + + /* + * (non-Javadoc) + * + * @see java.lang.Iterable#iterator() + */ + @Override + public Iterator iterator() { + return this.dictionary.values().iterator(); + + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java index c12771a72..18bb404d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java @@ -15,44 +15,64 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum UserConfigurationDictionaryObjectType { - // DateTime type. - /** The Date time. */ - DateTime, + // DateTime type. + /** + * The Date time. + */ + DateTime, - // Boolean type. - /** The Boolean. */ - Boolean, + // Boolean type. + /** + * The Boolean. + */ + Boolean, - // Byte type. - /** The Byte. */ - Byte, + // Byte type. + /** + * The Byte. + */ + Byte, - // String type. - /** The String. */ - String, + // String type. + /** + * The String. + */ + String, - // 32-bit integer type. - /** The Integer32. */ - Integer32, + // 32-bit integer type. + /** + * The Integer32. + */ + Integer32, - // 32-bit unsigned integer type. - /** The Unsigned integer32. */ - UnsignedInteger32, + // 32-bit unsigned integer type. + /** + * The Unsigned integer32. + */ + UnsignedInteger32, - // 64-bit integer type. - /** The Integer64. */ - Integer64, + // 64-bit integer type. + /** + * The Integer64. + */ + Integer64, - // 64-bit unsigned integer type. - /** The Unsigned integer64. */ - UnsignedInteger64, + // 64-bit unsigned integer type. + /** + * The Unsigned integer64. + */ + UnsignedInteger64, - // String array type. - /** The String array. */ - StringArray, + // String array type. + /** + * The String array. + */ + StringArray, - // Byte array type - /** The Byte array. */ - ByteArray, + // Byte array type + /** + * The Byte array. + */ + ByteArray, } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index 808ae3af4..8dbf95697 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -15,59 +15,66 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum UserConfigurationProperties { - // Retrieve the Id property. - /** The Id. */ - Id(1), + // Retrieve the Id property. + /** + * The Id. + */ + Id(1), - // Retrieve the Dictionary property. - /** The Dictionary. */ - Dictionary(2), + // Retrieve the Dictionary property. + /** + * The Dictionary. + */ + Dictionary(2), - // Retrieve the XmlData property. - /** The Xml data. */ - XmlData(4), + // Retrieve the XmlData property. + /** + * The Xml data. + */ + XmlData(4), - // Retrieve the BinaryData property. - /** The Binary data. */ - BinaryData(8), + // Retrieve the BinaryData property. + /** + * The Binary data. + */ + BinaryData(8), - // Retrieve all properties. - /** The All. */ - All(UserConfigurationProperties.Id, UserConfigurationProperties.Dictionary, - UserConfigurationProperties.XmlData, - UserConfigurationProperties.BinaryData); + // Retrieve all properties. + /** + * The All. + */ + All(UserConfigurationProperties.Id, UserConfigurationProperties.Dictionary, + UserConfigurationProperties.XmlData, + UserConfigurationProperties.BinaryData); - /** The config properties. */ - @SuppressWarnings("unused") - private int configProperties = 0; + /** + * The config properties. + */ + @SuppressWarnings("unused") + private int configProperties = 0; - /** - * Instantiates a new user configuration properties. - * - * @param configProperties - * the config properties - */ - UserConfigurationProperties(int configProperties) { - this.configProperties = configProperties; - } + /** + * Instantiates a new user configuration properties. + * + * @param configProperties the config properties + */ + UserConfigurationProperties(int configProperties) { + this.configProperties = configProperties; + } - /** - * Instantiates a new user configuration properties. - * - * @param id - * the id - * @param dictionary - * the dictionary - * @param xmlData - * the xml data - * @param binaryData - * the binary data - */ - UserConfigurationProperties(UserConfigurationProperties id, - UserConfigurationProperties dictionary, - UserConfigurationProperties xmlData, - UserConfigurationProperties binaryData) { + /** + * Instantiates a new user configuration properties. + * + * @param id the id + * @param dictionary the dictionary + * @param xmlData the xml data + * @param binaryData the binary data + */ + UserConfigurationProperties(UserConfigurationProperties id, + UserConfigurationProperties dictionary, + UserConfigurationProperties xmlData, + UserConfigurationProperties binaryData) { - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserId.java b/src/main/java/microsoft/exchange/webservices/data/UserId.java index 35e14d101..479bf13e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserId.java @@ -17,221 +17,216 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class UserId extends ComplexProperty { - /** The s id. */ - private String sID; - - /** The primary smtp address. */ - private String primarySmtpAddress; - - /** The display name. */ - private String displayName; - - /** The standard user. */ - private StandardUser standardUser; - - /** - * Initializes a new instance. - */ - public UserId() { - super(); - } - - /** - * Initializes a new instance. - * - * @param primarySmtpAddress - * the primary smtp address - */ - public UserId(String primarySmtpAddress) { - - this.primarySmtpAddress = primarySmtpAddress; - } - - /** - * Initializes a new instance. - * - * @param standardUser - * the standard user - */ - public UserId(StandardUser standardUser) { - this(); - this.standardUser = standardUser; - } - - /** - * Determines whether this instance is valid. - * - * @return true, if this instance is valid. Else, false - */ - protected boolean isValid() { - return (this.standardUser != null || - !(this.primarySmtpAddress == null || this.primarySmtpAddress - .isEmpty()) || !(this.sID == null || - this.sID.isEmpty())); - } - - /** - * Gets the SID of the user. - * - * @return the sID - */ - public String getSID() { - return this.sID; - } - - /** - * Sets the sID. - * - * @param sID - * the new sID - */ - public void setSID(String sID) { - if (this.canSetFieldValue(this.sID, sID)) { - this.sID = sID; - this.changed(); - } - } - - /** - * Gets the primary SMTP address or the user. - * - * @return the primary smtp address - */ - public String getPrimarySmtpAddress() { - return this.primarySmtpAddress; - } - - /** - * Sets the primary smtp address. - * - * @param primarySmtpAddress - * the new primary smtp address - */ - public void setPrimarySmtpAddress(String primarySmtpAddress) { - if (this.canSetFieldValue(this.primarySmtpAddress, primarySmtpAddress)) { - this.primarySmtpAddress = primarySmtpAddress; - this.changed(); - } - - } - - /** - * Gets the display name of the user. - * - * @return the display name - */ - public String getDisplayName() { - return this.displayName; - } - - /** - * Sets the display name. - * - * @param displayName - * the new display name - */ - public void setDisplayName(String displayName) { - if (this.canSetFieldValue(this.displayName, displayName)) { - this.displayName = displayName; - this.changed(); - } - } - - /** - * Gets a value indicating which standard user the user - * represents. - * - * @return the standard user - */ - public StandardUser getstandardUser() { - return this.standardUser; - } - - /** - * Sets the standard user. - * - * @param standardUser - * the new standard user - */ - public void setStandardUser(StandardUser standardUser) { - if (this.canSetFieldValue(this.standardUser, standardUser)) { - this.standardUser = standardUser; - this.changed(); - } - } - - /** - * Implements an implicit conversion between a string representing a - * primary SMTP address and UserId. - * - * @param primarySmtpAddress - * the primary smtp address - * @return A UserId initialized with the specified primary SMTP address - */ - public static UserId getUserId(String primarySmtpAddress) { - return new UserId(primarySmtpAddress); - } - - /** - * Implements an implicit conversion between StandardUser and UserId. - * - * @param standardUser - * the standard user - * @return A UserId initialized with the specified standard user value - */ - public static UserId getUserIdFromStandardUser(StandardUser standardUser) { - return new UserId(standardUser); - } - - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return True if element was read. - * @throws Exception - * the exception - */ - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.SID)) { - this.sID = reader.readValue(); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.PrimarySmtpAddress)) { - this.primarySmtpAddress = reader.readValue(); - return true; - } else if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { - this.displayName = reader.readValue(); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.DistinguishedUser)) { - this.standardUser = reader.readValue(StandardUser.class); - return true; - } else { - return false; - } - } - - /** - * Writes elements to XML. - * - * @param writer - * the writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected void writeElementsToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException { - writer.writeElementValue(XmlNamespace.Types, XmlElementNames.SID, - this.sID); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.PrimarySmtpAddress, this.primarySmtpAddress); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DisplayName, this.displayName); - writer.writeElementValue(XmlNamespace.Types, - XmlElementNames.DistinguishedUser, this.standardUser); - } + /** + * The s id. + */ + private String sID; + + /** + * The primary smtp address. + */ + private String primarySmtpAddress; + + /** + * The display name. + */ + private String displayName; + + /** + * The standard user. + */ + private StandardUser standardUser; + + /** + * Initializes a new instance. + */ + public UserId() { + super(); + } + + /** + * Initializes a new instance. + * + * @param primarySmtpAddress the primary smtp address + */ + public UserId(String primarySmtpAddress) { + + this.primarySmtpAddress = primarySmtpAddress; + } + + /** + * Initializes a new instance. + * + * @param standardUser the standard user + */ + public UserId(StandardUser standardUser) { + this(); + this.standardUser = standardUser; + } + + /** + * Determines whether this instance is valid. + * + * @return true, if this instance is valid. Else, false + */ + protected boolean isValid() { + return (this.standardUser != null || + !(this.primarySmtpAddress == null || this.primarySmtpAddress + .isEmpty()) || !(this.sID == null || + this.sID.isEmpty())); + } + + /** + * Gets the SID of the user. + * + * @return the sID + */ + public String getSID() { + return this.sID; + } + + /** + * Sets the sID. + * + * @param sID the new sID + */ + public void setSID(String sID) { + if (this.canSetFieldValue(this.sID, sID)) { + this.sID = sID; + this.changed(); + } + } + + /** + * Gets the primary SMTP address or the user. + * + * @return the primary smtp address + */ + public String getPrimarySmtpAddress() { + return this.primarySmtpAddress; + } + + /** + * Sets the primary smtp address. + * + * @param primarySmtpAddress the new primary smtp address + */ + public void setPrimarySmtpAddress(String primarySmtpAddress) { + if (this.canSetFieldValue(this.primarySmtpAddress, primarySmtpAddress)) { + this.primarySmtpAddress = primarySmtpAddress; + this.changed(); + } + + } + + /** + * Gets the display name of the user. + * + * @return the display name + */ + public String getDisplayName() { + return this.displayName; + } + + /** + * Sets the display name. + * + * @param displayName the new display name + */ + public void setDisplayName(String displayName) { + if (this.canSetFieldValue(this.displayName, displayName)) { + this.displayName = displayName; + this.changed(); + } + } + + /** + * Gets a value indicating which standard user the user + * represents. + * + * @return the standard user + */ + public StandardUser getstandardUser() { + return this.standardUser; + } + + /** + * Sets the standard user. + * + * @param standardUser the new standard user + */ + public void setStandardUser(StandardUser standardUser) { + if (this.canSetFieldValue(this.standardUser, standardUser)) { + this.standardUser = standardUser; + this.changed(); + } + } + + /** + * Implements an implicit conversion between a string representing a + * primary SMTP address and UserId. + * + * @param primarySmtpAddress the primary smtp address + * @return A UserId initialized with the specified primary SMTP address + */ + public static UserId getUserId(String primarySmtpAddress) { + return new UserId(primarySmtpAddress); + } + + /** + * Implements an implicit conversion between StandardUser and UserId. + * + * @param standardUser the standard user + * @return A UserId initialized with the specified standard user value + */ + public static UserId getUserIdFromStandardUser(StandardUser standardUser) { + return new UserId(standardUser); + } + + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return True if element was read. + * @throws Exception the exception + */ + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.SID)) { + this.sID = reader.readValue(); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.PrimarySmtpAddress)) { + this.primarySmtpAddress = reader.readValue(); + return true; + } else if (reader.getLocalName().equals(XmlElementNames.DisplayName)) { + this.displayName = reader.readValue(); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.DistinguishedUser)) { + this.standardUser = reader.readValue(StandardUser.class); + return true; + } else { + return false; + } + } + + /** + * Writes elements to XML. + * + * @param writer the writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected void writeElementsToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException { + writer.writeElementValue(XmlNamespace.Types, XmlElementNames.SID, + this.sID); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.PrimarySmtpAddress, this.primarySmtpAddress); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DisplayName, this.displayName); + writer.writeElementValue(XmlNamespace.Types, + XmlElementNames.DistinguishedUser, this.standardUser); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index 245e1f90b..22f88ec72 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -15,104 +15,106 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class UserSettingError { - /** The error code. */ - private AutodiscoverErrorCode errorCode; - - /** The error message. */ - private String errorMessage; - - /** The setting name. */ - private String settingName; - - /** - * Initializes a new instance of the "UserSettingError" class. - */ - protected UserSettingError() { - } - - /** - * Initializes a new instance of the "UserSettingError" class. - * @param errorCode - * The error code - * @param errorMessage - * The error message - * @param settingName - * Name of the setting - */ - protected UserSettingError(AutodiscoverErrorCode errorCode, - String errorMessage,String settingName) { - this.errorCode = errorCode; - this.errorMessage = errorMessage; - this.settingName = settingName; - } - - - /** - * Loads from XML. - * - * @param reader - * The reader. - * @throws Exception - * the exception - */ - protected void loadFromXml(EwsXmlReader reader) throws Exception { - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { - this.setErrorCode(reader - .readElementValue(AutodiscoverErrorCode.class)); - } else if (reader.getLocalName().equals( - XmlElementNames.ErrorMessage)) { - this.setErrorMessage(reader.readElementValue()); - } else if (reader.getLocalName().equals( - XmlElementNames.SettingName)) { - this.setSettingName(reader.readElementValue()); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.UserSettingError)); - } - - /** - * Gets the error code. - * - * @return The error code. - */ - public AutodiscoverErrorCode getErrorCode() { - return errorCode; - } - - protected void setErrorCode(AutodiscoverErrorCode errorCode) { - this.errorCode = errorCode; - } - - /** - * Gets the error message. - * - * @return The error message. - */ - public String getErrorMessage() { - return errorMessage; - } - - protected void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - - /** - * Gets the name of the setting. - * - * @return The name of the setting. - */ - public String getSettingName() { - return settingName; - } - - protected void setSettingName(String settingName) { - this.settingName = settingName; - } + /** + * The error code. + */ + private AutodiscoverErrorCode errorCode; + + /** + * The error message. + */ + private String errorMessage; + + /** + * The setting name. + */ + private String settingName; + + /** + * Initializes a new instance of the "UserSettingError" class. + */ + protected UserSettingError() { + } + + /** + * Initializes a new instance of the "UserSettingError" class. + * + * @param errorCode The error code + * @param errorMessage The error message + * @param settingName Name of the setting + */ + protected UserSettingError(AutodiscoverErrorCode errorCode, + String errorMessage, String settingName) { + this.errorCode = errorCode; + this.errorMessage = errorMessage; + this.settingName = settingName; + } + + + /** + * Loads from XML. + * + * @param reader The reader. + * @throws Exception the exception + */ + protected void loadFromXml(EwsXmlReader reader) throws Exception { + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals(XmlElementNames.ErrorCode)) { + this.setErrorCode(reader + .readElementValue(AutodiscoverErrorCode.class)); + } else if (reader.getLocalName().equals( + XmlElementNames.ErrorMessage)) { + this.setErrorMessage(reader.readElementValue()); + } else if (reader.getLocalName().equals( + XmlElementNames.SettingName)) { + this.setSettingName(reader.readElementValue()); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.UserSettingError)); + } + + /** + * Gets the error code. + * + * @return The error code. + */ + public AutodiscoverErrorCode getErrorCode() { + return errorCode; + } + + protected void setErrorCode(AutodiscoverErrorCode errorCode) { + this.errorCode = errorCode; + } + + /** + * Gets the error message. + * + * @return The error message. + */ + public String getErrorMessage() { + return errorMessage; + } + + protected void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + + /** + * Gets the name of the setting. + * + * @return The name of the setting. + */ + public String getSettingName() { + return settingName; + } + + protected void setSettingName(String settingName) { + this.settingName = settingName; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java index 249907016..550f72d77 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java @@ -15,222 +15,328 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public enum UserSettingName { - // The display name of the user. - /** The User display name. */ - UserDisplayName, - - // The legacy distinguished name of the user. - /** The User dn. */ - UserDN, - - // The deployment Id of the user. - /** The User deployment id. */ - UserDeploymentId, - - // The fully qualified domain name of the mailbox server. - /** The Internal mailbox server. */ - InternalMailboxServer, - - // The fully qualified domain name of the RPC client server. - /** The Internal rpc client server. */ - InternalRpcClientServer, - - // The legacy distinguished name of the mailbox server. - /** The Internal mailbox server dn. */ - InternalMailboxServerDN, - - // The internal URL of the Exchange Control Panel. - /** The Internal ecp url. */ - InternalEcpUrl, - - // The internal URL of the Exchange Control Panel for VoiceMail - // Customization. - /** The Internal ecp voicemail url. */ - InternalEcpVoicemailUrl, - - // The internal URL of the Exchange Control Panel for Email Subscriptions. - /** The Internal ecp email subscriptions url. */ - InternalEcpEmailSubscriptionsUrl, - - // The internal URL of the Exchange Control Panel for Text Messaging. - /** The Internal ecp text messaging url. */ - InternalEcpTextMessagingUrl, - - // The internal URL of the Exchange Control Panel for Delivery Reports. - /** The Internal ecp delivery report url. */ - InternalEcpDeliveryReportUrl, - - /// The internal URL of the Exchange Control Panel for RetentionPolicy Tags. - /** The Internal ecp retention policy tags url. */ - InternalEcpRetentionPolicyTagsUrl, - - /// The internal URL of the Exchange Control Panel for Publishing. - /** The Internal ecp publishing url. */ - InternalEcpPublishingUrl, - - // The internal URL of the Exchange Web Services. - /** The Internal ews url. */ - InternalEwsUrl, - - // The internal URL of the Offline Address Book. - /** The Internal oab url. */ - InternalOABUrl, - - // The internal URL of the Unified Messaging services. - /** The Internal um url. */ - InternalUMUrl, - - // The internal URLs of the Exchange web client. - /** The Internal web client urls. */ - InternalWebClientUrls, - - // The distinguished name of the mailbox database of the user's mailbox. - /** The Mailbox dn. */ - MailboxDN, - - // The name of the Public Folders server. - /** The Public folder server. */ - PublicFolderServer, - - // The name of the Active Directory server. - /** The Active directory server. */ - ActiveDirectoryServer, - - // The name of the RPC over HTTP server. - /** The External mailbox server. */ - ExternalMailboxServer, - - // Indicates whether the RPC over HTTP server requires SSL. - /** The External mailbox server requires ssl. */ - ExternalMailboxServerRequiresSSL, - - // The authentication methods supported by the RPC over HTTP server. - /** The External mailbox server authentication methods. */ - ExternalMailboxServerAuthenticationMethods, - - // The URL fragment of the Exchange Control Panel for VoiceMail - // Customization. - /** The Ecp voicemail url fragment. */ - EcpVoicemailUrlFragment, - - // The URL fragment of the Exchange Control Panel for Email Subscriptions. - /** The Ecp email subscriptions url fragment. */ - EcpEmailSubscriptionsUrlFragment, - - // The URL fragment of the Exchange Control Panel for Text Messaging. - /** The Ecp text messaging url fragment. */ - EcpTextMessagingUrlFragment, - - // The URL fragment of the Exchange Control Panel for Delivery Reports. - /** The Ecp delivery report url fragment. */ - EcpDeliveryReportUrlFragment, - - /// The URL fragment of the Exchange Control Panel for RetentionPolicy Tags. - /**The Ecp retention policy tags url fragment. */ - EcpRetentionPolicyTagsUrlFragment, - - /// The URL fragment of the Exchange Control Panel for Publishing. - /**The Ecp publishing url fragment. */ - EcpPublishingUrlFragment, - - // The external URL of the Exchange Control Panel. - /** The External ecp url. */ - ExternalEcpUrl, - - // The external URL of the Exchange Control Panel for VoiceMail - // Customization. - /** The External ecp voicemail url. */ - ExternalEcpVoicemailUrl, - - // The external URL of the Exchange Control Panel for Email Subscriptions. - /** The External ecp email subscriptions url. */ - ExternalEcpEmailSubscriptionsUrl, - - // The external URL of the Exchange Control Panel for Text Messaging. - /** The External ecp text messaging url. */ - ExternalEcpTextMessagingUrl, - - // The external URL of the Exchange Control Panel for Delivery Reports. - /** The External ecp delivery report url. */ - ExternalEcpDeliveryReportUrl, - - /// The external URL of the Exchange Control Panel for RetentionPolicy Tags. - /** The External ecp retention policy tags url. */ - ExternalEcpRetentionPolicyTagsUrl, - - /// The external URL of the Exchange Control Panel for Publishing. - /** The External ecp publishing url. */ - ExternalEcpPublishingUrl, - - // The external URL of the Exchange Web Services. - /** The External ews url. */ - ExternalEwsUrl, - - // The external URL of the Offline Address Book. - /** The External oab url. */ - ExternalOABUrl, - - // The external URL of the Unified Messaging services. - /** The External um url. */ - ExternalUMUrl, - - // The external URLs of the Exchange web client. - /** The External web client urls. */ - ExternalWebClientUrls, - - // Indicates that cross-organization sharing is enabled. - /** The Cross organization sharing enabled. */ - CrossOrganizationSharingEnabled, - - // Collection of alternate mailboxes. - /** The Alternate mailboxes. */ - AlternateMailboxes, - - // The version of the Client Access Server serving the request (e.g. - // 14.XX.YYY.ZZZ) - /** The Cas version. */ - CasVersion, - - // Comma-separated list of schema versions supported by Exchange Web - // Services. The schema version values - // will be the same as the values of the ExchangeServerVersion enumeration. - /** The Ews supported schemas. */ - EwsSupportedSchemas, - - // The internal connection settings list for pop protocol - /** The Internal pop3 connections. */ - InternalPop3Connections, - - // The external connection settings list for pop protocol - /** The External pop3 connections. */ - ExternalPop3Connections, - - // The internal connection settings list for imap4 protocol - /** The Internal imap4 connections. */ - InternalImap4Connections, - - // The external connection settings list for imap4 protocol - /** The External imap4 connections. */ - ExternalImap4Connections, - - // The internal connection settings list for smtp protocol - /** The Internal smtp connections. */ - InternalSmtpConnections, - - // The external connection settings list for smtp protocol - /** The External smtp connections. */ - ExternalSmtpConnections, - - /// If set, then clients can call the server via XTC - /** The Exchange Rpc Url. */ - ExchangeRpcUrl, - - /// The version of the Exchange Web Services - ///server ExternalEwsUrl is pointing to. - /** The External Ews Version. */ - ExternalEwsVersion, - - /** Mobile Mailbox policy settings.*/ - - MobileMailboxPolicy, + // The display name of the user. + /** + * The User display name. + */ + UserDisplayName, + + // The legacy distinguished name of the user. + /** + * The User dn. + */ + UserDN, + + // The deployment Id of the user. + /** + * The User deployment id. + */ + UserDeploymentId, + + // The fully qualified domain name of the mailbox server. + /** + * The Internal mailbox server. + */ + InternalMailboxServer, + + // The fully qualified domain name of the RPC client server. + /** + * The Internal rpc client server. + */ + InternalRpcClientServer, + + // The legacy distinguished name of the mailbox server. + /** + * The Internal mailbox server dn. + */ + InternalMailboxServerDN, + + // The internal URL of the Exchange Control Panel. + /** + * The Internal ecp url. + */ + InternalEcpUrl, + + // The internal URL of the Exchange Control Panel for VoiceMail + // Customization. + /** + * The Internal ecp voicemail url. + */ + InternalEcpVoicemailUrl, + + // The internal URL of the Exchange Control Panel for Email Subscriptions. + /** + * The Internal ecp email subscriptions url. + */ + InternalEcpEmailSubscriptionsUrl, + + // The internal URL of the Exchange Control Panel for Text Messaging. + /** + * The Internal ecp text messaging url. + */ + InternalEcpTextMessagingUrl, + + // The internal URL of the Exchange Control Panel for Delivery Reports. + /** + * The Internal ecp delivery report url. + */ + InternalEcpDeliveryReportUrl, + + /// The internal URL of the Exchange Control Panel for RetentionPolicy Tags. + /** + * The Internal ecp retention policy tags url. + */ + InternalEcpRetentionPolicyTagsUrl, + + /// The internal URL of the Exchange Control Panel for Publishing. + /** + * The Internal ecp publishing url. + */ + InternalEcpPublishingUrl, + + // The internal URL of the Exchange Web Services. + /** + * The Internal ews url. + */ + InternalEwsUrl, + + // The internal URL of the Offline Address Book. + /** + * The Internal oab url. + */ + InternalOABUrl, + + // The internal URL of the Unified Messaging services. + /** + * The Internal um url. + */ + InternalUMUrl, + + // The internal URLs of the Exchange web client. + /** + * The Internal web client urls. + */ + InternalWebClientUrls, + + // The distinguished name of the mailbox database of the user's mailbox. + /** + * The Mailbox dn. + */ + MailboxDN, + + // The name of the Public Folders server. + /** + * The Public folder server. + */ + PublicFolderServer, + + // The name of the Active Directory server. + /** + * The Active directory server. + */ + ActiveDirectoryServer, + + // The name of the RPC over HTTP server. + /** + * The External mailbox server. + */ + ExternalMailboxServer, + + // Indicates whether the RPC over HTTP server requires SSL. + /** + * The External mailbox server requires ssl. + */ + ExternalMailboxServerRequiresSSL, + + // The authentication methods supported by the RPC over HTTP server. + /** + * The External mailbox server authentication methods. + */ + ExternalMailboxServerAuthenticationMethods, + + // The URL fragment of the Exchange Control Panel for VoiceMail + // Customization. + /** + * The Ecp voicemail url fragment. + */ + EcpVoicemailUrlFragment, + + // The URL fragment of the Exchange Control Panel for Email Subscriptions. + /** + * The Ecp email subscriptions url fragment. + */ + EcpEmailSubscriptionsUrlFragment, + + // The URL fragment of the Exchange Control Panel for Text Messaging. + /** + * The Ecp text messaging url fragment. + */ + EcpTextMessagingUrlFragment, + + // The URL fragment of the Exchange Control Panel for Delivery Reports. + /** + * The Ecp delivery report url fragment. + */ + EcpDeliveryReportUrlFragment, + + /// The URL fragment of the Exchange Control Panel for RetentionPolicy Tags. + /** + * The Ecp retention policy tags url fragment. + */ + EcpRetentionPolicyTagsUrlFragment, + + /// The URL fragment of the Exchange Control Panel for Publishing. + /** + * The Ecp publishing url fragment. + */ + EcpPublishingUrlFragment, + + // The external URL of the Exchange Control Panel. + /** + * The External ecp url. + */ + ExternalEcpUrl, + + // The external URL of the Exchange Control Panel for VoiceMail + // Customization. + /** + * The External ecp voicemail url. + */ + ExternalEcpVoicemailUrl, + + // The external URL of the Exchange Control Panel for Email Subscriptions. + /** + * The External ecp email subscriptions url. + */ + ExternalEcpEmailSubscriptionsUrl, + + // The external URL of the Exchange Control Panel for Text Messaging. + /** + * The External ecp text messaging url. + */ + ExternalEcpTextMessagingUrl, + + // The external URL of the Exchange Control Panel for Delivery Reports. + /** + * The External ecp delivery report url. + */ + ExternalEcpDeliveryReportUrl, + + /// The external URL of the Exchange Control Panel for RetentionPolicy Tags. + /** + * The External ecp retention policy tags url. + */ + ExternalEcpRetentionPolicyTagsUrl, + + /// The external URL of the Exchange Control Panel for Publishing. + /** + * The External ecp publishing url. + */ + ExternalEcpPublishingUrl, + + // The external URL of the Exchange Web Services. + /** + * The External ews url. + */ + ExternalEwsUrl, + + // The external URL of the Offline Address Book. + /** + * The External oab url. + */ + ExternalOABUrl, + + // The external URL of the Unified Messaging services. + /** + * The External um url. + */ + ExternalUMUrl, + + // The external URLs of the Exchange web client. + /** + * The External web client urls. + */ + ExternalWebClientUrls, + + // Indicates that cross-organization sharing is enabled. + /** + * The Cross organization sharing enabled. + */ + CrossOrganizationSharingEnabled, + + // Collection of alternate mailboxes. + /** + * The Alternate mailboxes. + */ + AlternateMailboxes, + + // The version of the Client Access Server serving the request (e.g. + // 14.XX.YYY.ZZZ) + /** + * The Cas version. + */ + CasVersion, + + // Comma-separated list of schema versions supported by Exchange Web + // Services. The schema version values + // will be the same as the values of the ExchangeServerVersion enumeration. + /** + * The Ews supported schemas. + */ + EwsSupportedSchemas, + + // The internal connection settings list for pop protocol + /** + * The Internal pop3 connections. + */ + InternalPop3Connections, + + // The external connection settings list for pop protocol + /** + * The External pop3 connections. + */ + ExternalPop3Connections, + + // The internal connection settings list for imap4 protocol + /** + * The Internal imap4 connections. + */ + InternalImap4Connections, + + // The external connection settings list for imap4 protocol + /** + * The External imap4 connections. + */ + ExternalImap4Connections, + + // The internal connection settings list for smtp protocol + /** + * The Internal smtp connections. + */ + InternalSmtpConnections, + + // The external connection settings list for smtp protocol + /** + * The External smtp connections. + */ + ExternalSmtpConnections, + + /// If set, then clients can call the server via XTC + /** + * The Exchange Rpc Url. + */ + ExchangeRpcUrl, + + /// The version of the Exchange Web Services + ///server ExternalEwsUrl is pointing to. + /** + * The External Ews Version. + */ + ExternalEwsVersion, + + /** + * Mobile Mailbox policy settings. + */ + + MobileMailboxPolicy, } diff --git a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java index d4b83d19c..d8dfab975 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java @@ -18,173 +18,156 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @EditorBrowsable(state = EditorBrowsableState.Never) public abstract class ViewBase { - /** The property set. */ - private PropertySet propertySet; - - /** - * Initializes a new instance of the "ViewBase" class. - */ - ViewBase() { - } - - /** - * Validates this view. - * - * @param request - * The request using this view. - * @throws ServiceValidationException - * the service validation exception - * @throws ServiceVersionException - * the service version exception - */ - protected void internalValidate(ServiceRequestBase request) - throws ServiceValidationException, ServiceVersionException { - if (this.getPropertySet() != null) { - this.getPropertySet().internalValidate(); - this.getPropertySet().validateForRequest( - request, - true /* summaryPropertiesOnly */); - } - } - - /** - * Writes this view to XML. - * - * @param writer - * The writer - * @throws ServiceXmlSerializationException - * the service xml serialization exception - * @throws Exception - * the exception - */ - protected void internalWriteViewToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException, Exception { - Integer maxEntriesReturned = this.getMaxEntriesReturned(); - - if (maxEntriesReturned != null) { - writer.writeAttributeValue(XmlAttributeNames.MaxEntriesReturned, - maxEntriesReturned); - } - } - - /** - * Writes the search settings to XML. - * - * @param writer - * The Writer - * @param groupBy - * The group by clause. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void internalWriteSearchSettingsToXml( - EwsServiceXmlWriter writer, Grouping groupBy) - throws XMLStreamException, ServiceXmlSerializationException; - - /** - * Writes OrderBy property to XML. - * - * @param writer - * The Writer - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void writeOrderByToXml(EwsServiceXmlWriter writer) - throws XMLStreamException, ServiceXmlSerializationException; - - /** - * Gets the name of the view XML element. - * - * @return TheXml Element name - */ - protected abstract String getViewXmlElementName(); - - /** - * Gets the maximum number of items or folders the search operation should - * return. - * - * @return The maximum number of items or folders that should be returned by - * the search operation. - */ - protected abstract Integer getMaxEntriesReturned(); - - /** - * Gets the type of service object this view applies to. - * - * @return A ServiceObjectType value. - */ - protected abstract ServiceObjectType getServiceObjectType(); - - /** - * Writes the attributes to XML. - * - * @param writer - * The writer. - * @throws ServiceXmlSerializationException - * the service xml serialization exception - */ - protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) - throws ServiceXmlSerializationException; - - /** - * Writes to XML. - * - * @param writer - * The writer. - * @param groupBy - * The group by clause. - * @throws Exception - * the exception - */ - protected void writeToXml(EwsServiceXmlWriter writer, Grouping groupBy) - throws Exception { - this.getPropertySetOrDefault().writeToXml(writer, - this.getServiceObjectType()); - writer.writeStartElement(XmlNamespace.Messages, this - .getViewXmlElementName()); - this.internalWriteViewToXml(writer); - writer.writeEndElement(); // this.GetViewXmlElementName() - this.internalWriteSearchSettingsToXml(writer, groupBy); - } - - /** - * Gets the property set or the default. - * - * @return PropertySet - */ - protected PropertySet getPropertySetOrDefault() { - if (this.getPropertySet() == null) { - return PropertySet.getFirstClassProperties(); - } else { - return this.getPropertySet(); - } - } - - /** - * Gets the property set. PropertySet determines which properties will be - * loaded on found items. If PropertySet is null, all first class properties - * are loaded on found items. - * - * @return the property set - */ - public PropertySet getPropertySet() { - return propertySet; - } - - /** - * Sets the property set. PropertySet determines which properties will be - * loaded on found items. If PropertySet is null, all first class properties - * are loaded on found items. - * - * @param propertySet - * The property set - */ - public void setPropertySet(PropertySet propertySet) { - this.propertySet = propertySet; - } + /** + * The property set. + */ + private PropertySet propertySet; + + /** + * Initializes a new instance of the "ViewBase" class. + */ + ViewBase() { + } + + /** + * Validates this view. + * + * @param request The request using this view. + * @throws ServiceValidationException the service validation exception + * @throws ServiceVersionException the service version exception + */ + protected void internalValidate(ServiceRequestBase request) + throws ServiceValidationException, ServiceVersionException { + if (this.getPropertySet() != null) { + this.getPropertySet().internalValidate(); + this.getPropertySet().validateForRequest( + request, + true /* summaryPropertiesOnly */); + } + } + + /** + * Writes this view to XML. + * + * @param writer The writer + * @throws ServiceXmlSerializationException the service xml serialization exception + * @throws Exception the exception + */ + protected void internalWriteViewToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException, Exception { + Integer maxEntriesReturned = this.getMaxEntriesReturned(); + + if (maxEntriesReturned != null) { + writer.writeAttributeValue(XmlAttributeNames.MaxEntriesReturned, + maxEntriesReturned); + } + } + + /** + * Writes the search settings to XML. + * + * @param writer The Writer + * @param groupBy The group by clause. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void internalWriteSearchSettingsToXml( + EwsServiceXmlWriter writer, Grouping groupBy) + throws XMLStreamException, ServiceXmlSerializationException; + + /** + * Writes OrderBy property to XML. + * + * @param writer The Writer + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void writeOrderByToXml(EwsServiceXmlWriter writer) + throws XMLStreamException, ServiceXmlSerializationException; + + /** + * Gets the name of the view XML element. + * + * @return TheXml Element name + */ + protected abstract String getViewXmlElementName(); + + /** + * Gets the maximum number of items or folders the search operation should + * return. + * + * @return The maximum number of items or folders that should be returned by + * the search operation. + */ + protected abstract Integer getMaxEntriesReturned(); + + /** + * Gets the type of service object this view applies to. + * + * @return A ServiceObjectType value. + */ + protected abstract ServiceObjectType getServiceObjectType(); + + /** + * Writes the attributes to XML. + * + * @param writer The writer. + * @throws ServiceXmlSerializationException the service xml serialization exception + */ + protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) + throws ServiceXmlSerializationException; + + /** + * Writes to XML. + * + * @param writer The writer. + * @param groupBy The group by clause. + * @throws Exception the exception + */ + protected void writeToXml(EwsServiceXmlWriter writer, Grouping groupBy) + throws Exception { + this.getPropertySetOrDefault().writeToXml(writer, + this.getServiceObjectType()); + writer.writeStartElement(XmlNamespace.Messages, this + .getViewXmlElementName()); + this.internalWriteViewToXml(writer); + writer.writeEndElement(); // this.GetViewXmlElementName() + this.internalWriteSearchSettingsToXml(writer, groupBy); + } + + /** + * Gets the property set or the default. + * + * @return PropertySet + */ + protected PropertySet getPropertySetOrDefault() { + if (this.getPropertySet() == null) { + return PropertySet.getFirstClassProperties(); + } else { + return this.getPropertySet(); + } + } + + /** + * Gets the property set. PropertySet determines which properties will be + * loaded on found items. If PropertySet is null, all first class properties + * are loaded on found items. + * + * @return the property set + */ + public PropertySet getPropertySet() { + return propertySet; + } + + /** + * Sets the property set. PropertySet determines which properties will be + * loaded on found items. If PropertySet is null, all first class properties + * are loaded on found items. + * + * @param propertySet The property set + */ + public void setPropertySet(PropertySet propertySet) { + this.propertySet = propertySet; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java index 5ec5b97e7..f7dbff9e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java @@ -10,14 +10,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; import java.net.URI; import java.net.URISyntaxException; import java.util.Calendar; -import java.util.Date; - -import javax.swing.text.DateFormatter; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; /** * WSSecurityBasedCredentials is the base class for all credential classes using @@ -25,251 +22,247 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public abstract class WSSecurityBasedCredentials extends ExchangeCredentials { - /** The security token. */ - private String securityToken; - - /** The ews url. */ - private URI ewsUrl; - - protected static final String wsuTimeStampFormat = - "" + - "{0:yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'}" + - "{1:yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'}" + - ""; -//kavi-start - // WS-Security SecExt 1.0 Namespace (and the namespace prefix we will use - // for it). - /** The Constant WSSecuritySecExt10NamespacePrefix. */ - //protected static final String WSSecuritySecExt10NamespacePrefix = "wsse"; - - /** The Constant WSSecuritySecExt10Namespace. */ - //protected static final String WSSecuritySecExt10Namespace = - // "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; - - // WS-Addressing 1.0 Namespace (and the namespace prefix we will use for - // it). - - - /** The Constant WSAddressing10NamespacePrefix. */ - //protected static final String WSAddressing10NamespacePrefix = "wsa"; - - /** The Constant WSAddressing10Namespace. */ - //protected static final String WSAddressing10Namespace = - // "http://www.w3.org/2005/08/addressing"; - - //kavi end - - // The WS-Addressing headers format string to use for adding the - // WS-Addressing headers. - // Fill-Ins: %s = Web method name; %s = EWS URL - /** The Constant WsAddressingHeadersFormat. */ - protected static final String wsAddressingHeadersFormat = - "http://schemas.microsoft.com/exchange/services/2006/messages/%s" + - "http://www.w3.org/2005/08/addressing/anonymous" + - "" + - "%s"; - - // The WS-Security header format string to use for adding the WS-Security - // header. - // Fill-Ins: - // %s = EncryptedData block (the token) - /** The Constant WsSecurityHeaderFormat. */ - protected static final String wsSecurityHeaderFormat = - "" + - " %s" + // EncryptedData (token) - ""; - - private boolean addTimestamp; - - // / Path suffix for WS-Security endpoint. - /** The Constant WsSecurityPathSuffix. */ - protected static final String wsSecurityPathSuffix = "/wssecurity"; - - /** - * Initializes a new instance of the WSSecurityBasedCredentials class. - */ - protected WSSecurityBasedCredentials() { - } - - /** - * Initializes a new instance of the WSSecurityBasedCredentials class. - * @param securityToken - * The security token. - */ - protected WSSecurityBasedCredentials(String securityToken) { - this.securityToken = securityToken; - } - - /** - * Initializes a new instance of the WSSecurityBasedCredentials class. - * @param securityToken - * The security token. - * @param addTimestamp - * Timestamp should be added. - */ - protected WSSecurityBasedCredentials(String securityToken, boolean addTimestamp) - { - this.securityToken = securityToken; - this.addTimestamp = addTimestamp; + /** + * The security token. + */ + private String securityToken; + + /** + * The ews url. + */ + private URI ewsUrl; + + protected static final String wsuTimeStampFormat = + "" + + "{0:yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'}" + + "{1:yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'}" + + ""; + //kavi-start + // WS-Security SecExt 1.0 Namespace (and the namespace prefix we will use + // for it). + /** The Constant WSSecuritySecExt10NamespacePrefix. */ + //protected static final String WSSecuritySecExt10NamespacePrefix = "wsse"; + + /** The Constant WSSecuritySecExt10Namespace. */ + //protected static final String WSSecuritySecExt10Namespace = + // "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; + + // WS-Addressing 1.0 Namespace (and the namespace prefix we will use for + // it). + + + /** The Constant WSAddressing10NamespacePrefix. */ + //protected static final String WSAddressing10NamespacePrefix = "wsa"; + + /** The Constant WSAddressing10Namespace. */ + //protected static final String WSAddressing10Namespace = + // "http://www.w3.org/2005/08/addressing"; + + //kavi end + + // The WS-Addressing headers format string to use for adding the + // WS-Addressing headers. + // Fill-Ins: %s = Web method name; %s = EWS URL + /** + * The Constant WsAddressingHeadersFormat. + */ + protected static final String wsAddressingHeadersFormat = + "http://schemas.microsoft.com/exchange/services/2006/messages/%s" + + + "http://www.w3.org/2005/08/addressing/anonymous" + + "" + + "%s"; + + // The WS-Security header format string to use for adding the WS-Security + // header. + // Fill-Ins: + // %s = EncryptedData block (the token) + /** + * The Constant WsSecurityHeaderFormat. + */ + protected static final String wsSecurityHeaderFormat = + "" + + " %s" + // EncryptedData (token) + ""; + + private boolean addTimestamp; + + // / Path suffix for WS-Security endpoint. + /** + * The Constant WsSecurityPathSuffix. + */ + protected static final String wsSecurityPathSuffix = "/wssecurity"; + + /** + * Initializes a new instance of the WSSecurityBasedCredentials class. + */ + protected WSSecurityBasedCredentials() { + } + + /** + * Initializes a new instance of the WSSecurityBasedCredentials class. + * + * @param securityToken The security token. + */ + protected WSSecurityBasedCredentials(String securityToken) { + this.securityToken = securityToken; + } + + /** + * Initializes a new instance of the WSSecurityBasedCredentials class. + * + * @param securityToken The security token. + * @param addTimestamp Timestamp should be added. + */ + protected WSSecurityBasedCredentials(String securityToken, boolean addTimestamp) { + this.securityToken = securityToken; + this.addTimestamp = addTimestamp; + } + + /** + * This method is called to pre-authenticate credentials before a service + * request is made. + */ + @Override + protected void preAuthenticate() { + // Nothing special to do here. + } + + /** + * Emit the extra namespace aliases used for WS-Security and WS-Addressing. + * + * @param writer The writer. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer) + throws XMLStreamException { + writer.writeAttribute( + "xmlns", + EwsUtilities.WSSecuritySecExtNamespacePrefix, + null, + EwsUtilities.WSSecuritySecExtNamespace); + writer.writeAttribute( + "xmlns", + EwsUtilities.WSAddressingNamespacePrefix, + null, + EwsUtilities.WSAddressingNamespace); + } + + /** + * Serialize the WS-Security and WS-Addressing SOAP headers. + * + * @param writer The writer. + * @param webMethodName The Web method being called. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void serializeExtraSoapHeaders(XMLStreamWriter writer, + String webMethodName) throws XMLStreamException { + this.serializeWSAddressingHeaders(writer, webMethodName); + this.serializeWSSecurityHeaders(writer); + } + + /** + * Creates the WS-Addressing headers necessary to send with an outgoing + * request. + * + * @param xmlWriter The XML writer to serialize the headers to. + * @param webMethodName The Web method being called. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + private void serializeWSAddressingHeaders(XMLStreamWriter xmlWriter, + String webMethodName) throws XMLStreamException { + EwsUtilities.EwsAssert(webMethodName != null, + "WSSecurityBasedCredentials.SerializeWSAddressingHeaders", + "Web method name cannot be null!"); + + EwsUtilities.EwsAssert(this.ewsUrl != null, + "WSSecurityBasedCredentials.SerializeWSAddressingHeaders", + "EWS Url cannot be null!"); + + // Format the WS-Addressing headers. + String wsAddressingHeaders = String.format( + WSSecurityBasedCredentials.wsAddressingHeadersFormat, + webMethodName, this.ewsUrl); + + // And write them out... + xmlWriter.writeCharacters(wsAddressingHeaders); + } + + /** + * Creates the WS-Security header necessary to send with an outgoing + * request. + * + * @param xmlWriter The XML writer to serialize the headers to. + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + @Override + protected void serializeWSSecurityHeaders(XMLStreamWriter xmlWriter) + throws XMLStreamException { + EwsUtilities.EwsAssert(this.securityToken != null, + "WSSecurityBasedCredentials.SerializeWSSecurityHeaders", + "Security token cannot be null!"); + + // + // 2007-09-20T01:13:10.468Z + // 2007-09-20T01:18:10.468Z + // + // + String timestamp = null; + if (this.addTimestamp) { + Calendar utcNow = Calendar.getInstance(); + utcNow.add(Calendar.MINUTE, 5); + timestamp = String.format(WSSecurityBasedCredentials.wsuTimeStampFormat, utcNow, utcNow); + } - /** - * This method is called to pre-authenticate credentials before a service - * request is made. - */ - @Override - protected void preAuthenticate() { - // Nothing special to do here. - } - - /** - * Emit the extra namespace aliases used for WS-Security and WS-Addressing. - * - * @param writer - * The writer. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer) - throws XMLStreamException { - writer.writeAttribute( - "xmlns", - EwsUtilities.WSSecuritySecExtNamespacePrefix, - null, - EwsUtilities.WSSecuritySecExtNamespace); - writer.writeAttribute( - "xmlns", - EwsUtilities.WSAddressingNamespacePrefix, - null, - EwsUtilities.WSAddressingNamespace); - } - - /** - * Serialize the WS-Security and WS-Addressing SOAP headers. - * - * @param writer - * The writer. - * @param webMethodName - * The Web method being called. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void serializeExtraSoapHeaders(XMLStreamWriter writer, - String webMethodName) throws XMLStreamException { - this.serializeWSAddressingHeaders(writer, webMethodName); - this.serializeWSSecurityHeaders(writer); - } - - /** - * Creates the WS-Addressing headers necessary to send with an outgoing - * request. - * - * @param xmlWriter - * The XML writer to serialize the headers to. - * @param webMethodName - * The Web method being called. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - private void serializeWSAddressingHeaders(XMLStreamWriter xmlWriter, - String webMethodName) throws XMLStreamException { - EwsUtilities.EwsAssert(webMethodName != null, - "WSSecurityBasedCredentials.SerializeWSAddressingHeaders", - "Web method name cannot be null!"); - - EwsUtilities.EwsAssert(this.ewsUrl != null, - "WSSecurityBasedCredentials.SerializeWSAddressingHeaders", - "EWS Url cannot be null!"); - - // Format the WS-Addressing headers. - String wsAddressingHeaders = String.format( - WSSecurityBasedCredentials.wsAddressingHeadersFormat, - webMethodName, this.ewsUrl); - - // And write them out... - xmlWriter.writeCharacters(wsAddressingHeaders); - } - - /** - * Creates the WS-Security header necessary to send with an outgoing - * request. - * - * @param xmlWriter - * The XML writer to serialize the headers to. - * @throws javax.xml.stream.XMLStreamException - * the xML stream exception - */ - @Override - protected void serializeWSSecurityHeaders(XMLStreamWriter xmlWriter) - throws XMLStreamException { - EwsUtilities.EwsAssert(this.securityToken != null, - "WSSecurityBasedCredentials.SerializeWSSecurityHeaders", - "Security token cannot be null!"); - - // - // 2007-09-20T01:13:10.468Z - // 2007-09-20T01:18:10.468Z - // - // - String timestamp = null; - if (this.addTimestamp) - { - Calendar utcNow=Calendar.getInstance(); - utcNow.add(Calendar.MINUTE, 5); - timestamp=String.format(WSSecurityBasedCredentials.wsuTimeStampFormat,utcNow,utcNow); - - } - - // Format the WS-Security header based on all the information we have. - String wsSecurityHeader = String.format( - WSSecurityBasedCredentials.wsSecurityHeaderFormat, - timestamp + this.securityToken); - - // And write the header out... - xmlWriter.writeCharacters(wsSecurityHeader); - } - - /** - * Adjusts the URL based on the credentials. - * - * @param url - * The URL. - * @return Adjust URL. - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - @Override - protected URI adjustUrl(URI url) throws URISyntaxException { - return new URI(getUriWithoutWSSecurity(url) + WSSecurityBasedCredentials.wsSecurityPathSuffix); - } - - /** - * Gets the security token. - */ - protected String getSecurityToken() { - return this.securityToken; - } - - /** - * Sets the security token. - */ - protected void setSecurityToken(String value) { - securityToken = value; - } - - /** - * Gets the EWS URL. - */ - protected URI getEwsUrl() { - return this.ewsUrl; - } - - /** - * Sets the EWS URL. - */ - protected void setEwsUrl(URI value) { - ewsUrl = value; - } + // Format the WS-Security header based on all the information we have. + String wsSecurityHeader = String.format( + WSSecurityBasedCredentials.wsSecurityHeaderFormat, + timestamp + this.securityToken); + + // And write the header out... + xmlWriter.writeCharacters(wsSecurityHeader); + } + + /** + * Adjusts the URL based on the credentials. + * + * @param url The URL. + * @return Adjust URL. + * @throws java.net.URISyntaxException the uRI syntax exception + */ + @Override + protected URI adjustUrl(URI url) throws URISyntaxException { + return new URI(getUriWithoutWSSecurity(url) + WSSecurityBasedCredentials.wsSecurityPathSuffix); + } + + /** + * Gets the security token. + */ + protected String getSecurityToken() { + return this.securityToken; + } + + /** + * Sets the security token. + */ + protected void setSecurityToken(String value) { + securityToken = value; + } + + /** + * Gets the EWS URL. + */ + protected URI getEwsUrl() { + return this.ewsUrl; + } + + /** + * Sets the EWS URL. + */ + protected void setEwsUrl(URI value) { + ewsUrl = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java index c0c629c15..712d86ed7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java @@ -11,57 +11,57 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; public class WebAsyncCallStateAnchor { - - ServiceRequestBase serviceRequest; - HttpWebRequest webRequest; - AsyncCallback asyncCallback; - Object asyncState; - - /** - * Construtctor - */ - public WebAsyncCallStateAnchor(ServiceRequestBase serviceRequest, - HttpWebRequest webRequest, - AsyncCallback asyncCallback, - Object asyncState) - throws Exception { - EwsUtilities.validateParam(serviceRequest, "serviceRequest"); - EwsUtilities.validateParam(webRequest, "webRequest"); - this.serviceRequest = serviceRequest; - this.webRequest = webRequest; - this.asyncCallback = asyncCallback; - this.asyncState = asyncState; - } - public ServiceRequestBase getServiceRequest() { - return this.serviceRequest; - } - - public void setAsyncCallback(AsyncCallback asyncCallback){ - this.asyncCallback = asyncCallback; - } - - public AsyncCallback getAsyncCallback(){ - return this.asyncCallback; - } + ServiceRequestBase serviceRequest; + HttpWebRequest webRequest; + AsyncCallback asyncCallback; + Object asyncState; - public void setServiceRequest(ServiceRequestBase wasserviceRequest) { - serviceRequest = wasserviceRequest; - } + /** + * Construtctor + */ + public WebAsyncCallStateAnchor(ServiceRequestBase serviceRequest, + HttpWebRequest webRequest, + AsyncCallback asyncCallback, + Object asyncState) + throws Exception { + EwsUtilities.validateParam(serviceRequest, "serviceRequest"); + EwsUtilities.validateParam(webRequest, "webRequest"); + this.serviceRequest = serviceRequest; + this.webRequest = webRequest; + this.asyncCallback = asyncCallback; + this.asyncState = asyncState; + } - public void setHttpWebRequest(HttpWebRequest waswebRequest) { - webRequest = waswebRequest; - } + public ServiceRequestBase getServiceRequest() { + return this.serviceRequest; + } - public HttpWebRequest getHttpWebRequest() { - return this.webRequest; - } + public void setAsyncCallback(AsyncCallback asyncCallback) { + this.asyncCallback = asyncCallback; + } - public void setAsynncState(Object wasasyncState) { - asyncState = wasasyncState; - } + public AsyncCallback getAsyncCallback() { + return this.asyncCallback; + } - public Object getAsyncState() { - return this.asyncState; - } -} \ No newline at end of file + public void setServiceRequest(ServiceRequestBase wasserviceRequest) { + serviceRequest = wasserviceRequest; + } + + public void setHttpWebRequest(HttpWebRequest waswebRequest) { + webRequest = waswebRequest; + } + + public HttpWebRequest getHttpWebRequest() { + return this.webRequest; + } + + public void setAsynncState(Object wasasyncState) { + asyncState = wasasyncState; + } + + public Object getAsyncState() { + return this.asyncState; + } +} diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index 784895ecd..8ab2135e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -15,98 +15,97 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class WebClientUrl { - /** The authentication methods. */ - private String authenticationMethods; - - /** The url. */ - private String url; - - /** - * Initializes a new instance of the class. - */ - private WebClientUrl() { - } - - /** - * Initializes a new instance of the WebClientUrl class. - * @param authenticationMethods - * The authentication methods. - * @param url - * The URL. - */ - protected WebClientUrl(String authenticationMethods,String url){ - this.authenticationMethods = authenticationMethods; - this.url = url; - } - - - /** - * Loads WebClientUrl instance from XML. - * - * @param reader - * The reader. - * @return WebClientUrl. - * @throws Exception - * the exception - */ - protected static WebClientUrl loadFromXml(EwsXmlReader reader) - throws Exception { - WebClientUrl webClientUrl = new WebClientUrl(); - - do { - reader.read(); - - if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { - if (reader.getLocalName().equals( - XmlElementNames.AuthenticationMethods)) { - webClientUrl.setAuthenticationMethods(reader - .readElementValue(String.class)); - } else if (reader.getLocalName().equals(XmlElementNames.Url)) { - webClientUrl.setUrl(reader.readElementValue(String.class)); - } - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.WebClientUrl)); - - return webClientUrl; - } - - /** - * Gets the authentication methods. - * - * @return the authentication methods - */ - public String getAuthenticationMethods() { - return this.authenticationMethods; - } - - /** - * Sets the authentication methods. - * - * @param value - * the new authentication methods - */ - protected void setAuthenticationMethods(String value) { - this.authenticationMethods = value; - } - - /** - * Gets the URL. - * - * @return the url - */ - public String getUrl() { - return this.url; - } - - /** - * Sets the url. - * - * @param value - * the new url - */ - protected void setUrl(String value) { - this.url = value; - } + /** + * The authentication methods. + */ + private String authenticationMethods; + + /** + * The url. + */ + private String url; + + /** + * Initializes a new instance of the class. + */ + private WebClientUrl() { + } + + /** + * Initializes a new instance of the WebClientUrl class. + * + * @param authenticationMethods The authentication methods. + * @param url The URL. + */ + protected WebClientUrl(String authenticationMethods, String url) { + this.authenticationMethods = authenticationMethods; + this.url = url; + } + + + /** + * Loads WebClientUrl instance from XML. + * + * @param reader The reader. + * @return WebClientUrl. + * @throws Exception the exception + */ + protected static WebClientUrl loadFromXml(EwsXmlReader reader) + throws Exception { + WebClientUrl webClientUrl = new WebClientUrl(); + + do { + reader.read(); + + if (reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) { + if (reader.getLocalName().equals( + XmlElementNames.AuthenticationMethods)) { + webClientUrl.setAuthenticationMethods(reader + .readElementValue(String.class)); + } else if (reader.getLocalName().equals(XmlElementNames.Url)) { + webClientUrl.setUrl(reader.readElementValue(String.class)); + } + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.WebClientUrl)); + + return webClientUrl; + } + + /** + * Gets the authentication methods. + * + * @return the authentication methods + */ + public String getAuthenticationMethods() { + return this.authenticationMethods; + } + + /** + * Sets the authentication methods. + * + * @param value the new authentication methods + */ + protected void setAuthenticationMethods(String value) { + this.authenticationMethods = value; + } + + /** + * Gets the URL. + * + * @return the url + */ + public String getUrl() { + return this.url; + } + + /** + * Sets the url. + * + * @param value the new url + */ + protected void setUrl(String value) { + this.url = value; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index b9ca94a3b..7004c2d16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -17,51 +17,51 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class WebClientUrlCollection { - /** The urls. */ - private ArrayList urls; + /** + * The urls. + */ + private ArrayList urls; - /** - * Initializes a new instance of the - * class. - */ - protected WebClientUrlCollection() { - this.urls = new ArrayList(); - } + /** + * Initializes a new instance of the + * class. + */ + protected WebClientUrlCollection() { + this.urls = new ArrayList(); + } - /** - * Loads instance of WebClientUrlCollection from XML. - * - * @param reader - * The reader. - * @return the web client url collection - * @throws Exception - * the exception - */ - protected static WebClientUrlCollection loadFromXml(EwsXmlReader reader) - throws Exception { - WebClientUrlCollection instance = new WebClientUrlCollection(); + /** + * Loads instance of WebClientUrlCollection from XML. + * + * @param reader The reader. + * @return the web client url collection + * @throws Exception the exception + */ + protected static WebClientUrlCollection loadFromXml(EwsXmlReader reader) + throws Exception { + WebClientUrlCollection instance = new WebClientUrlCollection(); - do { - reader.read(); + do { + reader.read(); - if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && - (reader.getLocalName() - .equals(XmlElementNames.WebClientUrl))) { - instance.getUrls().add(WebClientUrl.loadFromXml(reader)); - } - } while (!reader.isEndElement(XmlNamespace.Autodiscover, - XmlElementNames.WebClientUrls)); + if ((reader.getNodeType().getNodeType() == XmlNodeType.START_ELEMENT) && + (reader.getLocalName() + .equals(XmlElementNames.WebClientUrl))) { + instance.getUrls().add(WebClientUrl.loadFromXml(reader)); + } + } while (!reader.isEndElement(XmlNamespace.Autodiscover, + XmlElementNames.WebClientUrls)); - return instance; - } + return instance; + } - /** - * Gets the URLs. - * - * @return the urls - */ - public ArrayList getUrls() { - return this.urls; + /** + * Gets the URLs. + * + * @return the urls + */ + public ArrayList getUrls() { + return this.urls; - } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index b88408934..c2d1647c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -16,112 +16,114 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class WebCredentials extends ExchangeCredentials { - /** The domain. */ - private String domain; - - /** The user. */ - private String user; - - /** The pwd. */ - private String pwd; - - /** The use default credentials. */ - private boolean useDefaultCredentials = true; - - /** - * Gets the domain. - * - * @return the domain - */ - public String getDomain() { - return domain; - } - - /** - * Gets the user. - * - * @return the user - */ - public String getUser() { - return user; - } - - /** - * Gets the pwd. - * - * @return the pwd - */ - public String getPwd() { - return pwd; - } - - /** - * Checks if is use default credentials. - * - * @return true, if is use default credentials - */ - public boolean isUseDefaultCredentials() { - return useDefaultCredentials; - } - - /** - * Initializes a new instance to use default network credentials. - */ - public WebCredentials() { - useDefaultCredentials = true; - this.user = null; - this.pwd = null; - this.domain = null; - } - - /** - * Initializes a new instance to use specified credentials. - * - * @param userName - * Account user name. - * @param password - * Account password. - * @param domain - * Account domain. - */ - public WebCredentials(String userName, String password, String domain) { - if (userName == null || password == null) { - throw new IllegalArgumentException( - "User name or password can not be null"); - } - - this.domain = domain; - this.user = userName; - this.pwd = password; - useDefaultCredentials = false; - } - - /** - * Initializes a new instance to use specified credentials. - * - * @param username - * The user name. - * @param password - * The password. - */ - public WebCredentials(String username, String password) { - this(username, password, ""); - } - - /** - * This method is called to apply credentials to a service request before - * the request is made. - * - * @param client - * The request. - */ - @Override - protected void prepareWebRequest(HttpWebRequest client) { - if (useDefaultCredentials) { - client.setUseDefaultCredentials(true); - } else { - client.setCredentials(domain, user, pwd); - } - } + /** + * The domain. + */ + private String domain; + + /** + * The user. + */ + private String user; + + /** + * The pwd. + */ + private String pwd; + + /** + * The use default credentials. + */ + private boolean useDefaultCredentials = true; + + /** + * Gets the domain. + * + * @return the domain + */ + public String getDomain() { + return domain; + } + + /** + * Gets the user. + * + * @return the user + */ + public String getUser() { + return user; + } + + /** + * Gets the pwd. + * + * @return the pwd + */ + public String getPwd() { + return pwd; + } + + /** + * Checks if is use default credentials. + * + * @return true, if is use default credentials + */ + public boolean isUseDefaultCredentials() { + return useDefaultCredentials; + } + + /** + * Initializes a new instance to use default network credentials. + */ + public WebCredentials() { + useDefaultCredentials = true; + this.user = null; + this.pwd = null; + this.domain = null; + } + + /** + * Initializes a new instance to use specified credentials. + * + * @param userName Account user name. + * @param password Account password. + * @param domain Account domain. + */ + public WebCredentials(String userName, String password, String domain) { + if (userName == null || password == null) { + throw new IllegalArgumentException( + "User name or password can not be null"); + } + + this.domain = domain; + this.user = userName; + this.pwd = password; + useDefaultCredentials = false; + } + + /** + * Initializes a new instance to use specified credentials. + * + * @param username The user name. + * @param password The password. + */ + public WebCredentials(String username, String password) { + this(username, password, ""); + } + + /** + * This method is called to apply credentials to a service request before + * the request is made. + * + * @param client The request. + */ + @Override + protected void prepareWebRequest(HttpWebRequest client) { + if (useDefaultCredentials) { + client.setUseDefaultCredentials(true); + } else { + client.setCredentials(domain, user, pwd); + } + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java index cba43d9ca..ee4c02a28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java @@ -10,102 +10,101 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -public enum WebExceptionStatus -{ - // Summary: - // No error was encountered. - Success , - // - // Summary: - // The name resolver service could not resolve the host name. - NameResolutionFailure , - // - // Summary: - // The remote service point could not be contacted at the transport level. - ConnectFailure , - // - // Summary: - // A complete response was not received from the remote server. - ReceiveFailure , - // - // Summary: - // A complete request could not be sent to the remote server. - SendFailure , - // - // Summary: - // The request was a piplined request and the connection was closed before the - // response was received. - PipelineFailure , - // - // Summary: - // The request was canceled, the System.Net.WebRequest.Abort() method was called, - // or an unclassifiable error occurred. This is the default value for System.Net.WebException.Status. - RequestCanceled , - // - // Summary: - // The response received from the server was complete but indicated a protocol-level - // error. For example, an HTTP protocol error such as 401 Access Denied would - // use this status. - ProtocolError , - // - // Summary: - // The connection was prematurely closed. - ConnectionClosed , - // - // Summary: - // A server certificate could not be validated. - TrustFailure , - // - // Summary: - // An error occurred while establishing a connection using SSL. - SecureChannelFailure , - // - // Summary: - // The server response was not a valid HTTP response. - ServerProtocolViolation , - // - // Summary: - // The connection for a request that specifies the Keep-alive header was closed - // unexpectedly. - KeepAliveFailure , - // - // Summary: - // An internal asynchronous request is pending. - Pending , - // - // Summary: - // No response was received during the time-out period for a request. - Timeout , - // - // Summary: - // The name resolver service could not resolve the proxy host name. - ProxyNameResolutionFailure , - // - // Summary: - // An exception of unknown type has occurred. - UnknownError , - // - // Summary: - // A message was received that exceeded the specified limit when sending a request - // or receiving a response from the server. - MessageLengthLimitExceeded , - // - // Summary: - // The specified cache entry was not found. - CacheEntryNotFound , - // - // Summary: - // The request was not permitted by the cache policy. In general, this occurs - // when a request is not cacheable and the effective policy prohibits sending - // the request to the server. You might receive this status if a request method - // implies the presence of a request body, a request method requires direct - // interaction with the server, or a request contains a conditional header. - RequestProhibitedByCachePolicy , - // - // Summary: - // This request was not permitted by the proxy. - RequestProhibitedByProxy , - - +public enum WebExceptionStatus { + // Summary: + // No error was encountered. + Success, + // + // Summary: + // The name resolver service could not resolve the host name. + NameResolutionFailure, + // + // Summary: + // The remote service point could not be contacted at the transport level. + ConnectFailure, + // + // Summary: + // A complete response was not received from the remote server. + ReceiveFailure, + // + // Summary: + // A complete request could not be sent to the remote server. + SendFailure, + // + // Summary: + // The request was a piplined request and the connection was closed before the + // response was received. + PipelineFailure, + // + // Summary: + // The request was canceled, the System.Net.WebRequest.Abort() method was called, + // or an unclassifiable error occurred. This is the default value for System.Net.WebException.Status. + RequestCanceled, + // + // Summary: + // The response received from the server was complete but indicated a protocol-level + // error. For example, an HTTP protocol error such as 401 Access Denied would + // use this status. + ProtocolError, + // + // Summary: + // The connection was prematurely closed. + ConnectionClosed, + // + // Summary: + // A server certificate could not be validated. + TrustFailure, + // + // Summary: + // An error occurred while establishing a connection using SSL. + SecureChannelFailure, + // + // Summary: + // The server response was not a valid HTTP response. + ServerProtocolViolation, + // + // Summary: + // The connection for a request that specifies the Keep-alive header was closed + // unexpectedly. + KeepAliveFailure, + // + // Summary: + // An internal asynchronous request is pending. + Pending, + // + // Summary: + // No response was received during the time-out period for a request. + Timeout, + // + // Summary: + // The name resolver service could not resolve the proxy host name. + ProxyNameResolutionFailure, + // + // Summary: + // An exception of unknown type has occurred. + UnknownError, + // + // Summary: + // A message was received that exceeded the specified limit when sending a request + // or receiving a response from the server. + MessageLengthLimitExceeded, + // + // Summary: + // The specified cache entry was not found. + CacheEntryNotFound, + // + // Summary: + // The request was not permitted by the cache policy. In general, this occurs + // when a request is not cacheable and the effective policy prohibits sending + // the request to the server. You might receive this status if a request method + // implies the presence of a request body, a request method requires direct + // interaction with the server, or a request contains a conditional header. + RequestProhibitedByCachePolicy, + // + // Summary: + // This request was not permitted by the proxy. + RequestProhibitedByProxy, + + } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index 2434cce16..290697b5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -16,72 +16,70 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class WebProxy { - /** proxy host. */ - private String host; - - /** proxy post. */ - private int port; + /** + * proxy host. + */ + private String host; + + /** + * proxy post. + */ + private int port; + + /** + * Initializes a new instance to use specified proxy details. + * + * @param host proxy host. + * @param port proxy port. + */ + public WebProxy(String host, int port) { + this.host = host; + this.port = port; + } + + /** + * Initializes a new instance to use specified proxy with default port 80. + * + * @param host proxy host. + */ + public WebProxy(String host) { + this.host = host; + this.port = 80; + } - /** - * Initializes a new instance to use specified proxy details. - * - * @param host - * proxy host. - * @param port - * proxy port. - */ - public WebProxy(String host, int port) { - this.host = host; - this.port = port; - } - - /** - * Initializes a new instance to use specified proxy with default port 80. - * - * @param host - * proxy host. - */ - public WebProxy(String host) { - this.host = host; - this.port = 80; - } - /*public WebProxy(ProxyHost httpproxy) throws UnknownHostException { this.host = httpproxy.getHostName(); this.port = httpproxy.getPort(); } */ - - /** - * Gets the Proxy Host. - * - * @return the host - */ - protected String getHost() { - return this.host; - } - - /** - * Gets the Proxy Port. - * - * @return the port - */ - protected int getPort() { - return this.port; - } - /** - * This method is used to set proxy credentials to a Web Request before - * the request is made. - * - * @param user - * The proxy username. - * @param pwd - * The proxy password. - * @param domain - * The proxy domain. - */ - public void setCredentials(String user, String pwd, String domain) { - HttpProxyCredentials.setCredentials(user, pwd, domain); - HttpProxyCredentials.isProxySet(); - } + /** + * Gets the Proxy Host. + * + * @return the host + */ + protected String getHost() { + return this.host; + } + + /** + * Gets the Proxy Port. + * + * @return the port + */ + protected int getPort() { + return this.port; + } + + /** + * This method is used to set proxy credentials to a Web Request before + * the request is made. + * + * @param user The proxy username. + * @param pwd The proxy password. + * @param domain The proxy domain. + */ + public void setCredentials(String user, String pwd, String domain) { + HttpProxyCredentials.setCredentials(user, pwd, domain); + HttpProxyCredentials.isProxySet(); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java index 34b8033a3..e93cf1978 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java +++ b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java @@ -14,115 +14,169 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines well known folder names. */ public enum WellKnownFolderName { - // The Calendar folder. - /** The Calendar. */ - Calendar, - - // The Contacts folder. - /** The Contacts. */ - Contacts, - - // The Deleted Items folder - /** The Deleted items. */ - DeletedItems, - - // The Drafts folder. - /** The Drafts. */ - Drafts, - - // The Inbox folder. - /** The Inbox. */ - Inbox, - - // The Journal folder. - /** The Journal. */ - Journal, - - // The Notes folder. - /** The Notes. */ - Notes, - - // The Outbox folder. - /** The Outbox. */ - Outbox, - - // The Sent Items folder. - /** The Sent items. */ - SentItems, - - // The Tasks folder. - /** The Tasks. */ - Tasks, - - // The message folder root. - /** The Msg folder root. */ - MsgFolderRoot, - - // The root of the Public Folders hierarchy. - /** The Public folders root. */ - @RequiredServerVersion(version = ExchangeVersion.Exchange2007_SP1) - PublicFoldersRoot, - - // The root of the mailbox. - /** The Root. */ - Root, - - // The Junk E-mail folder. - /** The Junk email. */ - JunkEmail, - - // The Search Folders folder, also known as the Finder folder. - /** The Search folders. */ - SearchFolders, - - // The Voicemail folder. - /** The Voice mail. */ - VoiceMail, - - /** The Dumpster 2.0 root folder.*/ - - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - RecoverableItemsRoot, - - /** The Dumpster 2.0 soft deletions folder.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - RecoverableItemsDeletions, - - /** The Dumpster 2.0 versions folder.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - RecoverableItemsVersions, - - /** The Dumpster 2.0 hard deletions folder.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - RecoverableItemsPurges, - - /** The root of the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveRoot, - - /** The message folder root in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveMsgFolderRoot, - - /** The Deleted Items folder in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveDeletedItems, - - /** The Dumpster 2.0 root folder in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveRecoverableItemsRoot, - - /** The Dumpster 2.0 soft deletions folder in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveRecoverableItemsDeletions, - - /** The Dumpster 2.0 versions folder in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveRecoverableItemsVersions, - - /** The Dumpster 2.0 hard deletions folder in the archive mailbox.*/ - @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) - ArchiveRecoverableItemsPurges, + // The Calendar folder. + /** + * The Calendar. + */ + Calendar, + + // The Contacts folder. + /** + * The Contacts. + */ + Contacts, + + // The Deleted Items folder + /** + * The Deleted items. + */ + DeletedItems, + + // The Drafts folder. + /** + * The Drafts. + */ + Drafts, + + // The Inbox folder. + /** + * The Inbox. + */ + Inbox, + + // The Journal folder. + /** + * The Journal. + */ + Journal, + + // The Notes folder. + /** + * The Notes. + */ + Notes, + + // The Outbox folder. + /** + * The Outbox. + */ + Outbox, + + // The Sent Items folder. + /** + * The Sent items. + */ + SentItems, + + // The Tasks folder. + /** + * The Tasks. + */ + Tasks, + + // The message folder root. + /** + * The Msg folder root. + */ + MsgFolderRoot, + + // The root of the Public Folders hierarchy. + /** + * The Public folders root. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2007_SP1) + PublicFoldersRoot, + + // The root of the mailbox. + /** + * The Root. + */ + Root, + + // The Junk E-mail folder. + /** + * The Junk email. + */ + JunkEmail, + + // The Search Folders folder, also known as the Finder folder. + /** + * The Search folders. + */ + SearchFolders, + + // The Voicemail folder. + /** + * The Voice mail. + */ + VoiceMail, + + /** + * The Dumpster 2.0 root folder. + */ + + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + RecoverableItemsRoot, + + /** + * The Dumpster 2.0 soft deletions folder. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + RecoverableItemsDeletions, + + /** + * The Dumpster 2.0 versions folder. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + RecoverableItemsVersions, + + /** + * The Dumpster 2.0 hard deletions folder. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + RecoverableItemsPurges, + + /** + * The root of the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveRoot, + + /** + * The message folder root in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveMsgFolderRoot, + + /** + * The Deleted Items folder in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveDeletedItems, + + /** + * The Dumpster 2.0 root folder in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveRecoverableItemsRoot, + + /** + * The Dumpster 2.0 soft deletions folder in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveRecoverableItemsDeletions, + + /** + * The Dumpster 2.0 versions folder in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveRecoverableItemsVersions, + + /** + * The Dumpster 2.0 hard deletions folder in the archive mailbox. + */ + @RequiredServerVersion(version = ExchangeVersion.Exchange2010_SP1) + ArchiveRecoverableItemsPurges, } diff --git a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java index a90b3728a..ddfd03ef5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java @@ -10,6 +10,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -public class WindowsLiveCredentials extends WSSecurityBasedCredentials{ +public class WindowsLiveCredentials extends WSSecurityBasedCredentials { } diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java index 8ffc806fd..e8f583b21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java @@ -19,133 +19,139 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class WorkingHours extends ComplexProperty { - /** The time zone. */ - private TimeZoneDefinition timeZone; - - /** The days of the week. */ - private Collection daysOfTheWeek = - new ArrayList(); - - /** The start time. */ - private long startTime; - - /** The end time. */ - private long endTime; - - /** - * Instantiates a new working hours. - */ - protected WorkingHours() { - super(); - } - - /** - * Tries to read element from XML. - * - * @param reader - * accepts EwsServiceXmlReader - * @return True if element was read - * @throws Exception - * throws Exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.TimeZone)) { - LegacyAvailabilityTimeZone legacyTimeZone = - new LegacyAvailabilityTimeZone(); - legacyTimeZone.loadFromXml(reader, reader.getLocalName()); - - this.timeZone = legacyTimeZone.toTimeZoneInfo(); - - return true; - } - if (reader.getLocalName().equals(XmlElementNames.WorkingPeriodArray)) { - List workingPeriods = new ArrayList(); - - do { - reader.read(); - - if (reader.isStartElement(XmlNamespace.Types, - XmlElementNames.WorkingPeriod)) { - WorkingPeriod workingPeriod = new WorkingPeriod(); - - workingPeriod.loadFromXml(reader, reader.getLocalName()); - - workingPeriods.add(workingPeriod); - } - } while (!reader.isEndElement(XmlNamespace.Types, - XmlElementNames.WorkingPeriodArray)); - - // Availability supports a structure that can technically represent - // different working - // times for each day of the week. This is apparently how the - // information is stored in - // Exchange. However, no client (Outlook, OWA) either will let you - // specify different - // working times for each day of the week, and Outlook won't either - // honor that complex - // structure if it happens to be in Exchange (OWA goes through XSO - // which doesn't either - // honor the structure). - // So here we'll do what Outlook and OWA do: we'll use the start and - // end times of the - // first working period, but we'll use the week days of all the - // periods. - - this.startTime = workingPeriods.get(0).getStartTime(); - this.endTime = workingPeriods.get(0).getEndTime(); - - for (WorkingPeriod workingPeriod : workingPeriods) { - for (DayOfTheWeek dayOfWeek : workingPeriods.get(0) - .getDaysOfWeek()) { - if (!this.daysOfTheWeek.contains(dayOfWeek)) { - this.daysOfTheWeek.add(dayOfWeek); - } - } - } - - return true; - } else { - return false; - } - - } - - /** - * Gets the time zone to which the working hours apply. - * - * @return the time zone - */ - public TimeZoneDefinition getTimeZone() { - return timeZone; - } - - /** - * Gets the working days of the attendees. - * - * @return the days of the week - */ - public Collection getDaysOfTheWeek() { - return daysOfTheWeek; - } - - /** - * Gets the time of the day the attendee starts working. - * - * @return the start time - */ - public long getStartTime() { - return startTime; - } - - /** - * Gets the time of the day the attendee stops working. - * - * @return the end time - */ - public long getEndTime() { - return endTime; - } + /** + * The time zone. + */ + private TimeZoneDefinition timeZone; + + /** + * The days of the week. + */ + private Collection daysOfTheWeek = + new ArrayList(); + + /** + * The start time. + */ + private long startTime; + + /** + * The end time. + */ + private long endTime; + + /** + * Instantiates a new working hours. + */ + protected WorkingHours() { + super(); + } + + /** + * Tries to read element from XML. + * + * @param reader accepts EwsServiceXmlReader + * @return True if element was read + * @throws Exception throws Exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.TimeZone)) { + LegacyAvailabilityTimeZone legacyTimeZone = + new LegacyAvailabilityTimeZone(); + legacyTimeZone.loadFromXml(reader, reader.getLocalName()); + + this.timeZone = legacyTimeZone.toTimeZoneInfo(); + + return true; + } + if (reader.getLocalName().equals(XmlElementNames.WorkingPeriodArray)) { + List workingPeriods = new ArrayList(); + + do { + reader.read(); + + if (reader.isStartElement(XmlNamespace.Types, + XmlElementNames.WorkingPeriod)) { + WorkingPeriod workingPeriod = new WorkingPeriod(); + + workingPeriod.loadFromXml(reader, reader.getLocalName()); + + workingPeriods.add(workingPeriod); + } + } while (!reader.isEndElement(XmlNamespace.Types, + XmlElementNames.WorkingPeriodArray)); + + // Availability supports a structure that can technically represent + // different working + // times for each day of the week. This is apparently how the + // information is stored in + // Exchange. However, no client (Outlook, OWA) either will let you + // specify different + // working times for each day of the week, and Outlook won't either + // honor that complex + // structure if it happens to be in Exchange (OWA goes through XSO + // which doesn't either + // honor the structure). + // So here we'll do what Outlook and OWA do: we'll use the start and + // end times of the + // first working period, but we'll use the week days of all the + // periods. + + this.startTime = workingPeriods.get(0).getStartTime(); + this.endTime = workingPeriods.get(0).getEndTime(); + + for (WorkingPeriod workingPeriod : workingPeriods) { + for (DayOfTheWeek dayOfWeek : workingPeriods.get(0) + .getDaysOfWeek()) { + if (!this.daysOfTheWeek.contains(dayOfWeek)) { + this.daysOfTheWeek.add(dayOfWeek); + } + } + } + + return true; + } else { + return false; + } + + } + + /** + * Gets the time zone to which the working hours apply. + * + * @return the time zone + */ + public TimeZoneDefinition getTimeZone() { + return timeZone; + } + + /** + * Gets the working days of the attendees. + * + * @return the days of the week + */ + public Collection getDaysOfTheWeek() { + return daysOfTheWeek; + } + + /** + * Gets the time of the day the attendee starts working. + * + * @return the start time + */ + public long getStartTime() { + return startTime; + } + + /** + * Gets the time of the day the attendee stops working. + * + * @return the end time + */ + public long getEndTime() { + return endTime; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java index 0243422ce..d608142fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java @@ -18,77 +18,81 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ final class WorkingPeriod extends ComplexProperty { - /** The days of week. */ - private List daysOfWeek = new ArrayList(); + /** + * The days of week. + */ + private List daysOfWeek = new ArrayList(); - /** The start time. */ - private long startTime; + /** + * The start time. + */ + private long startTime; - /** The end time. */ - private long endTime; + /** + * The end time. + */ + private long endTime; - /** - * Initializes a new instance of the WorkingPeriod class. - */ - protected WorkingPeriod() { - super(); - } + /** + * Initializes a new instance of the WorkingPeriod class. + */ + protected WorkingPeriod() { + super(); + } - /** - * Tries to read element from XML. - * - * @param reader - * the reader - * @return true, if successful - * @throws Exception - * the exception - */ - @Override - protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) - throws Exception { - if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { - EwsUtilities.parseEnumValueList(DayOfTheWeek.class, - this.daysOfWeek, reader.readElementValue(), ' '); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.StartTimeInMinutes)) { - this.startTime = reader.readElementValue(Integer.class); - return true; - } else if (reader.getLocalName().equals( - XmlElementNames.EndTimeInMinutes)) { - this.endTime = reader.readElementValue(Integer.class); - return true; - } else { - return false; - } + /** + * Tries to read element from XML. + * + * @param reader the reader + * @return true, if successful + * @throws Exception the exception + */ + @Override + protected boolean tryReadElementFromXml(EwsServiceXmlReader reader) + throws Exception { + if (reader.getLocalName().equals(XmlElementNames.DayOfWeek)) { + EwsUtilities.parseEnumValueList(DayOfTheWeek.class, + this.daysOfWeek, reader.readElementValue(), ' '); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.StartTimeInMinutes)) { + this.startTime = reader.readElementValue(Integer.class); + return true; + } else if (reader.getLocalName().equals( + XmlElementNames.EndTimeInMinutes)) { + this.endTime = reader.readElementValue(Integer.class); + return true; + } else { + return false; + } - } + } - /** - * Gets a collection of work days. - * - * @return the days of week - */ - protected List getDaysOfWeek() { - return daysOfWeek; - } + /** + * Gets a collection of work days. + * + * @return the days of week + */ + protected List getDaysOfWeek() { + return daysOfWeek; + } - /** - * Gets the start time of the period. - * - * @return the start time - */ - protected long getStartTime() { - return startTime; - } + /** + * Gets the start time of the period. + * + * @return the start time + */ + protected long getStartTime() { + return startTime; + } - /** - * Gets the end time of the period. - * - * @return the end time - */ - protected long getEndTime() { - return endTime; - } + /** + * Gets the end time of the period. + * + * @return the end time + */ + protected long getEndTime() { + return endTime; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java index 539d87f7d..bc763a6c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java @@ -15,219 +15,359 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class XmlAttributeNames { - /** The Constant XmlNs. */ - public static final String XmlNs = "xmlns"; - - /** The Constant Id. */ - public static final String Id = "Id"; - - /** The Constant ChangeKey. */ - public static final String ChangeKey = "ChangeKey"; - - /** The Constant RecurringMasterId. */ - public static final String RecurringMasterId = "RecurringMasterId"; - - /** The Constant InstanceIndex. */ - public static final String InstanceIndex = "InstanceIndex"; - - /** The Constant OccurrenceId. */ - public static final String OccurrenceId = "OccurrenceId"; - - /** The Constant Traversal. */ - public static final String Traversal = "Traversal"; - - /** The Constant Offset. */ - public static final String Offset = "Offset"; - - /** The Constant MaxEntriesReturned. */ - public static final String MaxEntriesReturned = "MaxEntriesReturned"; - - /** The Constant BasePoint. */ - public static final String BasePoint = "BasePoint"; - - /** The Constant ResponseClass. */ - public static final String ResponseClass = "ResponseClass"; - - /** The Constant IndexedPagingOffset. */ - public static final String IndexedPagingOffset = "IndexedPagingOffset"; - - /** The Constant TotalItemsInView. */ - public static final String TotalItemsInView = "TotalItemsInView"; - - /** The Constant IncludesLastItemInRange. */ - public static final String IncludesLastItemInRange = - "IncludesLastItemInRange"; - - /** The Constant BodyType. */ - public static final String BodyType = "BodyType"; - - /** The Constant MessageDisposition. */ - public static final String MessageDisposition = "MessageDisposition"; - - /** The Constant SaveItemToFolder. */ - public static final String SaveItemToFolder = "SaveItemToFolder"; - - /** The Constant RootItemChangeKey. */ - public static final String RootItemChangeKey = "RootItemChangeKey"; - - /** The Constant DeleteType. */ - public static final String DeleteType = "DeleteType"; - - /** The Constant DeleteSubFolders. */ - public static final String DeleteSubFolders = "DeleteSubFolders"; - - /** The Constant AffectedTaskOccurrences. */ - public static final String AffectedTaskOccurrences = - "AffectedTaskOccurrences"; - - /** The Constant SendMeetingCancellations. */ - public static final String SendMeetingCancellations = - "SendMeetingCancellations"; - - /** The Constant FieldURI. */ - public static final String FieldURI = "FieldURI"; - - /** The Constant FieldIndex. */ - public static final String FieldIndex = "FieldIndex"; - - /** The Constant ConflictResolution. */ - public static final String ConflictResolution = "ConflictResolution"; - - /** The Constant SendMeetingInvitationsOrCancellations. */ - public static final String SendMeetingInvitationsOrCancellations = - "SendMeetingInvitationsOrCancellations"; - - /** The Constant CharacterSet. */ - public static final String CharacterSet = "CharacterSet"; - - /** The Constant HeaderName. */ - public static final String HeaderName = "HeaderName"; - - /** The Constant SendMeetingInvitations. */ - public static final String SendMeetingInvitations = - "SendMeetingInvitations"; - - /** The Constant Key. */ - public static final String Key = "Key"; - - /** The Constant RoutingType. */ - public static final String RoutingType = "RoutingType"; - - /** The Constant MailboxType. */ - public static final String MailboxType = "MailboxType"; - - /** The Constant DistinguishedPropertySetId. */ - public static final String DistinguishedPropertySetId = - "DistinguishedPropertySetId"; - - /** The Constant PropertySetId. */ - public static final String PropertySetId = "PropertySetId"; - - /** The Constant PropertyTag. */ - public static final String PropertyTag = "PropertyTag"; - - /** The Constant PropertyName. */ - public static final String PropertyName = "PropertyName"; - - /** The Constant PropertyId. */ - public static final String PropertyId = "PropertyId"; - - /** The Constant PropertyType. */ - public static final String PropertyType = "PropertyType"; - - /** The Constant TimeZoneName. */ - public static final String TimeZoneName = "TimeZoneName"; - - /** The Constant ReturnFullContactData. */ - public static final String ReturnFullContactData = "ReturnFullContactData"; - - /** The Constant ContactDataShape. */ - public static final String ContactDataShape = "ContactDataShape"; - - /** The Constant Numerator. */ - public static final String Numerator = "Numerator"; - - /** The Constant Denominator. */ - public static final String Denominator = "Numerator"; - - /** The Constant Value. */ - public static final String Value = "Value"; - - /** The Constant ContainmentMode. */ - public static final String ContainmentMode = "ContainmentMode"; - - /** The Constant ContainmentComparison. */ - public static final String ContainmentComparison = "ContainmentComparison"; - - /** The Constant Order. */ - public static final String Order = "Order"; - - /** The Constant StartDate. */ - public static final String StartDate = "StartDate"; - - /** The Constant EndDate. */ - public static final String EndDate = "EndDate"; - - /** The Constant Version. */ - public static final String Version = "Version"; - - /** The Constant Aggregate. */ - public static final String Aggregate = "Aggregate"; - - /** The Constant SearchScope. */ - public static final String SearchScope = "SearchScope"; - - /** The Constant Format. */ - public static final String Format = "Format"; - - /** The Constant Mailbox. */ - public static final String Mailbox = "Mailbox"; - - /** The Constant DestinationFormat. */ - public static final String DestinationFormat = "DestinationFormat"; - - /** The Constant FolderId. */ - public static final String FolderId = "FolderId"; - - /** The Constant ItemId. */ - public static final String ItemId = "ItemId"; - - /** The Constant IncludePermissions. */ - public static final String IncludePermissions = "IncludePermissions"; - - /** The Constant InitialName. */ - public static final String InitialName = "InitialName"; - - /** The Constant FinalName. */ - public static final String FinalName = "FinalName"; - - /** The Constant AuthenticationMethod. */ - public static final String AuthenticationMethod = "AuthenticationMethod"; - - /** The Constant Time. */ - public static final String Time = "Time"; - - /** The Constant Name. */ - public static final String Name = "Name"; - - /** The Constant Bias. */ - public static final String Bias = "Bias"; - - /** The Constant Kind. */ - public static final String Kind = "Kind"; - - /** The Constant SubscribeToAllFolders. */ - public static final String SubscribeToAllFolders = "SubscribeToAllFolders"; - - /** The Constant PublicFolderServer. */ - public static final String PublicFolderServer = "PublicFolderServer"; - - /** The Constant IsArchive. */ - public static final String IsArchive = "IsArchive"; - // xsi attributes - /** The Constant Nil. */ - public static final String Nil = "nil"; - - /** The Constant Type. */ - public static final String Type = "type"; + /** + * The Constant XmlNs. + */ + public static final String XmlNs = "xmlns"; + + /** + * The Constant Id. + */ + public static final String Id = "Id"; + + /** + * The Constant ChangeKey. + */ + public static final String ChangeKey = "ChangeKey"; + + /** + * The Constant RecurringMasterId. + */ + public static final String RecurringMasterId = "RecurringMasterId"; + + /** + * The Constant InstanceIndex. + */ + public static final String InstanceIndex = "InstanceIndex"; + + /** + * The Constant OccurrenceId. + */ + public static final String OccurrenceId = "OccurrenceId"; + + /** + * The Constant Traversal. + */ + public static final String Traversal = "Traversal"; + + /** + * The Constant Offset. + */ + public static final String Offset = "Offset"; + + /** + * The Constant MaxEntriesReturned. + */ + public static final String MaxEntriesReturned = "MaxEntriesReturned"; + + /** + * The Constant BasePoint. + */ + public static final String BasePoint = "BasePoint"; + + /** + * The Constant ResponseClass. + */ + public static final String ResponseClass = "ResponseClass"; + + /** + * The Constant IndexedPagingOffset. + */ + public static final String IndexedPagingOffset = "IndexedPagingOffset"; + + /** + * The Constant TotalItemsInView. + */ + public static final String TotalItemsInView = "TotalItemsInView"; + + /** + * The Constant IncludesLastItemInRange. + */ + public static final String IncludesLastItemInRange = + "IncludesLastItemInRange"; + + /** + * The Constant BodyType. + */ + public static final String BodyType = "BodyType"; + + /** + * The Constant MessageDisposition. + */ + public static final String MessageDisposition = "MessageDisposition"; + + /** + * The Constant SaveItemToFolder. + */ + public static final String SaveItemToFolder = "SaveItemToFolder"; + + /** + * The Constant RootItemChangeKey. + */ + public static final String RootItemChangeKey = "RootItemChangeKey"; + + /** + * The Constant DeleteType. + */ + public static final String DeleteType = "DeleteType"; + + /** + * The Constant DeleteSubFolders. + */ + public static final String DeleteSubFolders = "DeleteSubFolders"; + + /** + * The Constant AffectedTaskOccurrences. + */ + public static final String AffectedTaskOccurrences = + "AffectedTaskOccurrences"; + + /** + * The Constant SendMeetingCancellations. + */ + public static final String SendMeetingCancellations = + "SendMeetingCancellations"; + + /** + * The Constant FieldURI. + */ + public static final String FieldURI = "FieldURI"; + + /** + * The Constant FieldIndex. + */ + public static final String FieldIndex = "FieldIndex"; + + /** + * The Constant ConflictResolution. + */ + public static final String ConflictResolution = "ConflictResolution"; + + /** + * The Constant SendMeetingInvitationsOrCancellations. + */ + public static final String SendMeetingInvitationsOrCancellations = + "SendMeetingInvitationsOrCancellations"; + + /** + * The Constant CharacterSet. + */ + public static final String CharacterSet = "CharacterSet"; + + /** + * The Constant HeaderName. + */ + public static final String HeaderName = "HeaderName"; + + /** + * The Constant SendMeetingInvitations. + */ + public static final String SendMeetingInvitations = + "SendMeetingInvitations"; + + /** + * The Constant Key. + */ + public static final String Key = "Key"; + + /** + * The Constant RoutingType. + */ + public static final String RoutingType = "RoutingType"; + + /** + * The Constant MailboxType. + */ + public static final String MailboxType = "MailboxType"; + + /** + * The Constant DistinguishedPropertySetId. + */ + public static final String DistinguishedPropertySetId = + "DistinguishedPropertySetId"; + + /** + * The Constant PropertySetId. + */ + public static final String PropertySetId = "PropertySetId"; + + /** + * The Constant PropertyTag. + */ + public static final String PropertyTag = "PropertyTag"; + + /** + * The Constant PropertyName. + */ + public static final String PropertyName = "PropertyName"; + + /** + * The Constant PropertyId. + */ + public static final String PropertyId = "PropertyId"; + + /** + * The Constant PropertyType. + */ + public static final String PropertyType = "PropertyType"; + + /** + * The Constant TimeZoneName. + */ + public static final String TimeZoneName = "TimeZoneName"; + + /** + * The Constant ReturnFullContactData. + */ + public static final String ReturnFullContactData = "ReturnFullContactData"; + + /** + * The Constant ContactDataShape. + */ + public static final String ContactDataShape = "ContactDataShape"; + + /** + * The Constant Numerator. + */ + public static final String Numerator = "Numerator"; + + /** + * The Constant Denominator. + */ + public static final String Denominator = "Numerator"; + + /** + * The Constant Value. + */ + public static final String Value = "Value"; + + /** + * The Constant ContainmentMode. + */ + public static final String ContainmentMode = "ContainmentMode"; + + /** + * The Constant ContainmentComparison. + */ + public static final String ContainmentComparison = "ContainmentComparison"; + + /** + * The Constant Order. + */ + public static final String Order = "Order"; + + /** + * The Constant StartDate. + */ + public static final String StartDate = "StartDate"; + + /** + * The Constant EndDate. + */ + public static final String EndDate = "EndDate"; + + /** + * The Constant Version. + */ + public static final String Version = "Version"; + + /** + * The Constant Aggregate. + */ + public static final String Aggregate = "Aggregate"; + + /** + * The Constant SearchScope. + */ + public static final String SearchScope = "SearchScope"; + + /** + * The Constant Format. + */ + public static final String Format = "Format"; + + /** + * The Constant Mailbox. + */ + public static final String Mailbox = "Mailbox"; + + /** + * The Constant DestinationFormat. + */ + public static final String DestinationFormat = "DestinationFormat"; + + /** + * The Constant FolderId. + */ + public static final String FolderId = "FolderId"; + + /** + * The Constant ItemId. + */ + public static final String ItemId = "ItemId"; + + /** + * The Constant IncludePermissions. + */ + public static final String IncludePermissions = "IncludePermissions"; + + /** + * The Constant InitialName. + */ + public static final String InitialName = "InitialName"; + + /** + * The Constant FinalName. + */ + public static final String FinalName = "FinalName"; + + /** + * The Constant AuthenticationMethod. + */ + public static final String AuthenticationMethod = "AuthenticationMethod"; + + /** + * The Constant Time. + */ + public static final String Time = "Time"; + + /** + * The Constant Name. + */ + public static final String Name = "Name"; + + /** + * The Constant Bias. + */ + public static final String Bias = "Bias"; + + /** + * The Constant Kind. + */ + public static final String Kind = "Kind"; + + /** + * The Constant SubscribeToAllFolders. + */ + public static final String SubscribeToAllFolders = "SubscribeToAllFolders"; + + /** + * The Constant PublicFolderServer. + */ + public static final String PublicFolderServer = "PublicFolderServer"; + + /** + * The Constant IsArchive. + */ + public static final String IsArchive = "IsArchive"; + // xsi attributes + /** + * The Constant Nil. + */ + public static final String Nil = "nil"; + + /** + * The Constant Type. + */ + public static final String Type = "type"; } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index 79263ef7a..5f1c04e04 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -14,13 +14,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Exception class for banned xml parsing */ class XmlDtdException extends XmlException { - /** - * Gets the xml exception message. - */ + /** + * Gets the xml exception message. + */ -@Override - public String getMessage() - { - return "For security reasons DTD is prohibited in this XML document."; - } + @Override + public String getMessage() { + return "For security reasons DTD is prohibited in this XML document."; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java index fcea91c83..13976e811 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java @@ -15,2945 +15,4765 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class XmlElementNames { - /** The Constant AllProperties. */ - public static final String AllProperties = "AllProperties"; - - /** The Constant ParentFolderIds. */ - public static final String ParentFolderIds = "ParentFolderIds"; - - /** The Constant DistinguishedFolderId. */ - public static final String DistinguishedFolderId = "DistinguishedFolderId"; - - /** The Constant ItemId. */ - public static final String ItemId = "ItemId"; - - /** The Constant ItemIds. */ - public static final String ItemIds = "ItemIds"; - - /** The Constant FolderId. */ - public static final String FolderId = "FolderId"; - - /** The Constant FolderIds. */ - public static final String FolderIds = "FolderIds"; - - /** The Constant OccurrenceItemId. */ - public static final String OccurrenceItemId = "OccurrenceItemId"; - - /** The Constant RecurringMasterItemId. */ - public static final String RecurringMasterItemId = "RecurringMasterItemId"; - - /** The Constant ItemShape. */ - public static final String ItemShape = "ItemShape"; - - /** The Constant FolderShape. */ - public static final String FolderShape = "FolderShape"; - - /** The Constant BaseShape. */ - public static final String BaseShape = "BaseShape"; - - /** The Constant IndexedPageItemView. */ - public static final String IndexedPageItemView = "IndexedPageItemView"; - - /** The Constant IndexedPageFolderView. */ - public static final String IndexedPageFolderView = "IndexedPageFolderView"; - - /** The Constant FractionalPageItemView. */ - public static final String FractionalPageItemView = - "FractionalPageItemView"; - - /** The Constant FractionalPageFolderView. */ - public static final String FractionalPageFolderView = - "FractionalPageFolderView"; - - /** The Constant ResponseCode. */ - public static final String ResponseCode = "ResponseCode"; - - /** The Constant RootFolder. */ - public static final String RootFolder = "RootFolder"; - - /** The Constant Folder. */ - public static final String Folder = "Folder"; - - /** The Constant ContactsFolder. */ - public static final String ContactsFolder = "ContactsFolder"; - - /** The Constant TasksFolder. */ - public static final String TasksFolder = "TasksFolder"; - - /** The Constant SearchFolder. */ - public static final String SearchFolder = "SearchFolder"; - - /** The Constant Folders. */ - public static final String Folders = "Folders"; - - /** The Constant Item. */ - public static final String Item = "Item"; - - /** The Constant Items. */ - public static final String Items = "Items"; - - /** The Constant Message. */ - public static final String Message = "Message"; - - /** The Constant Mailbox. */ - public static final String Mailbox = "Mailbox"; - - /** The Constant Body. */ - public static final String Body = "Body"; - - /** The Constant From. */ - public static final String From = "From"; - - /** The Constant Sender. */ - public static final String Sender = "Sender"; - - /** The Constant Name. */ - public static final String Name = "Name"; - - /** The Constant Address. */ - public static final String Address = "Address"; - - /** The Constant EmailAddress. */ - public static final String EmailAddress = "EmailAddress"; - - /** The Constant RoutingType. */ - public static final String RoutingType = "RoutingType"; - - /** The Constant MailboxType. */ - public static final String MailboxType = "MailboxType"; - - /** The Constant ToRecipients. */ - public static final String ToRecipients = "ToRecipients"; - - /** The Constant CcRecipients. */ - public static final String CcRecipients = "CcRecipients"; - - /** The Constant BccRecipients. */ - public static final String BccRecipients = "BccRecipients"; - - /** The Constant ReplyTo. */ - public static final String ReplyTo = "ReplyTo"; - - /** The Constant ConversationTopic. */ - public static final String ConversationTopic = "ConversationTopic"; - - /** The Constant ConversationIndex. */ - public static final String ConversationIndex = "ConversationIndex"; - - /** The Constant IsDeliveryReceiptRequested. */ - public static final String IsDeliveryReceiptRequested = - "IsDeliveryReceiptRequested"; - - /** The Constant IsRead. */ - public static final String IsRead = "IsRead"; - - /** The Constant IsReadReceiptRequested. */ - public static final String IsReadReceiptRequested = - "IsReadReceiptRequested"; - - /** The Constant IsResponseRequested. */ - public static final String IsResponseRequested = "IsResponseRequested"; - - /** The Constant InternetMessageId. */ - public static final String InternetMessageId = "InternetMessageId"; - - /** The Constant References. */ - public static final String References = "References"; - - /** The Constant ParentItemId. */ - public static final String ParentItemId = "ParentItemId"; - - /** The Constant ParentFolderId. */ - public static final String ParentFolderId = "ParentFolderId"; - - /** The Constant ChildFolderCount. */ - public static final String ChildFolderCount = "ChildFolderCount"; - - /** The Constant DisplayName. */ - public static final String DisplayName = "DisplayName"; - - /** The Constant TotalCount. */ - public static final String TotalCount = "TotalCount"; - - /** The Constant ItemClass. */ - public static final String ItemClass = "ItemClass"; - - /** The Constant FolderClass. */ - public static final String FolderClass = "FolderClass"; - - /** The Constant Subject. */ - public static final String Subject = "Subject"; - - /** The Constant MimeContent. */ - public static final String MimeContent = "MimeContent"; - - /** The Constant Sensitivity. */ - public static final String Sensitivity = "Sensitivity"; - - /** The Constant Attachments. */ - public static final String Attachments = "Attachments"; - - /** The Constant DateTimeReceived. */ - public static final String DateTimeReceived = "DateTimeReceived"; - - /** The Constant Size. */ - public static final String Size = "Size"; - - /** The Constant Categories. */ - public static final String Categories = "Categories"; - - /** The Constant Importance. */ - public static final String Importance = "Importance"; - - /** The Constant InReplyTo. */ - public static final String InReplyTo = "InReplyTo"; - - /** The Constant IsSubmitted. */ - public static final String IsSubmitted = "IsSubmitted"; - - /** The Constant IsAssociated. */ - public static final String IsAssociated = "IsAssociated"; - - /** The Constant IsDraft. */ - public static final String IsDraft = "IsDraft"; - - /** The Constant IsFromMe. */ - public static final String IsFromMe = "IsFromMe"; - - /** The Constant IsResend. */ - public static final String IsResend = "IsResend"; - - /** The Constant IsUnmodified. */ - public static final String IsUnmodified = "IsUnmodified"; - - /** The Constant InternetMessageHeader. */ - public static final String InternetMessageHeader = "InternetMessageHeader"; - - /** The Constant InternetMessageHeaders. */ - public static final String InternetMessageHeaders = - "InternetMessageHeaders"; - - /** The Constant DateTimeSent. */ - public static final String DateTimeSent = "DateTimeSent"; - - /** The Constant DateTimeCreated. */ - public static final String DateTimeCreated = "DateTimeCreated"; - - /** The Constant ResponseObjects. */ - public static final String ResponseObjects = "ResponseObjects"; - - /** The Constant ReminderDueBy. */ - public static final String ReminderDueBy = "ReminderDueBy"; - - /** The Constant ReminderIsSet. */ - public static final String ReminderIsSet = "ReminderIsSet"; - - /** The Constant ReminderMinutesBeforeStart. */ - public static final String ReminderMinutesBeforeStart = - "ReminderMinutesBeforeStart"; - - /** The Constant DisplayCc. */ - public static final String DisplayCc = "DisplayCc"; - - /** The Constant DisplayTo. */ - public static final String DisplayTo = "DisplayTo"; - - /** The Constant HasAttachments. */ - public static final String HasAttachments = "HasAttachments"; - - /** The Constant ExtendedProperty. */ - public static final String ExtendedProperty = "ExtendedProperty"; - - /** The Constant Culture. */ - public static final String Culture = "Culture"; - - /** The Constant FileAttachment. */ - public static final String FileAttachment = "FileAttachment"; - - /** The Constant ItemAttachment. */ - public static final String ItemAttachment = "ItemAttachment"; - - /** The Constant AttachmentIds. */ - public static final String AttachmentIds = "AttachmentIds"; - - /** The Constant AttachmentId. */ - public static final String AttachmentId = "AttachmentId"; - - /** The Constant ContentType. */ - public static final String ContentType = "ContentType"; - - /** The Constant ContentLocation. */ - public static final String ContentLocation = "ContentLocation"; - - /** The Constant ContentId. */ - public static final String ContentId = "ContentId"; - - /** The Constant Content. */ - public static final String Content = "Content"; - - /** The Constant SavedItemFolderId. */ - public static final String SavedItemFolderId = "SavedItemFolderId"; - - /** The Constant MessageText. */ - public static final String MessageText = "MessageText"; - - /** The Constant DescriptiveLinkKey. */ - public static final String DescriptiveLinkKey = "DescriptiveLinkKey"; - - /** The Constant ItemChange. */ - public static final String ItemChange = "ItemChange"; - - /** The Constant ItemChanges. */ - public static final String ItemChanges = "ItemChanges"; - - /** The Constant FolderChange. */ - public static final String FolderChange = "FolderChange"; - - /** The Constant FolderChanges. */ - public static final String FolderChanges = "FolderChanges"; - - /** The Constant Updates. */ - public static final String Updates = "Updates"; - - /** The Constant AppendToItemField. */ - public static final String AppendToItemField = "AppendToItemField"; - - /** The Constant SetItemField. */ - public static final String SetItemField = "SetItemField"; - - /** The Constant DeleteItemField. */ - public static final String DeleteItemField = "DeleteItemField"; - - /** The Constant SetFolderField. */ - public static final String SetFolderField = "SetFolderField"; - - /** The Constant DeleteFolderField. */ - public static final String DeleteFolderField = "DeleteFolderField"; - - /** The Constant FieldURI. */ - public static final String FieldURI = "FieldURI"; - - /** The Constant RootItemId. */ - public static final String RootItemId = "RootItemId"; - - /** The Constant ReferenceItemId. */ - public static final String ReferenceItemId = "ReferenceItemId"; - - /** The Constant NewBodyContent. */ - public static final String NewBodyContent = "NewBodyContent"; - - /** The Constant ReplyToItem. */ - public static final String ReplyToItem = "ReplyToItem"; - - /** The Constant ReplyAllToItem. */ - public static final String ReplyAllToItem = "ReplyAllToItem"; - - /** The Constant ForwardItem. */ - public static final String ForwardItem = "ForwardItem"; - - /** The Constant AcceptItem. */ - public static final String AcceptItem = "AcceptItem"; - - /** The Constant TentativelyAcceptItem. */ - public static final String TentativelyAcceptItem = "TentativelyAcceptItem"; - - /** The Constant DeclineItem. */ - public static final String DeclineItem = "DeclineItem"; - - /** The Constant CancelCalendarItem. */ - public static final String CancelCalendarItem = "CancelCalendarItem"; - - /** The Constant RemoveItem. */ - public static final String RemoveItem = "RemoveItem"; - - /** The Constant SuppressReadReceipt. */ - public static final String SuppressReadReceipt = "SuppressReadReceipt"; - - /** The Constant String. */ - public static final String String = "String"; - - /** The Constant Start. */ - public static final String Start = "Start"; - - /** The Constant End. */ - public static final String End = "End"; - - /** The Constant OriginalStart. */ - public static final String OriginalStart = "OriginalStart"; - - /** The Constant IsAllDayEvent. */ - public static final String IsAllDayEvent = "IsAllDayEvent"; - - /** The Constant LegacyFreeBusyStatus. */ - public static final String LegacyFreeBusyStatus = "LegacyFreeBusyStatus"; - - /** The Constant Location. */ - public static final String Location = "Location"; - - /** The Constant When. */ - public static final String When = "When"; - - /** The Constant IsMeeting. */ - public static final String IsMeeting = "IsMeeting"; - - /** The Constant IsCancelled. */ - public static final String IsCancelled = "IsCancelled"; - - /** The Constant IsRecurring. */ - public static final String IsRecurring = "IsRecurring"; - - /** The Constant MeetingRequestWasSent. */ - public static final String MeetingRequestWasSent = "MeetingRequestWasSent"; - - /** The Constant CalendarItemType. */ - public static final String CalendarItemType = "CalendarItemType"; - - /** The Constant MyResponseType. */ - public static final String MyResponseType = "MyResponseType"; - - /** The Constant Organizer. */ - public static final String Organizer = "Organizer"; - - /** The Constant RequiredAttendees. */ - public static final String RequiredAttendees = "RequiredAttendees"; - - /** The Constant OptionalAttendees. */ - public static final String OptionalAttendees = "OptionalAttendees"; - - /** The Constant Resources. */ - public static final String Resources = "Resources"; - - /** The Constant ConflictingMeetingCount. */ - public static final String ConflictingMeetingCount = - "ConflictingMeetingCount"; - - /** The Constant AdjacentMeetingCount. */ - public static final String AdjacentMeetingCount = "AdjacentMeetingCount"; - - /** The Constant ConflictingMeetings. */ - public static final String ConflictingMeetings = "ConflictingMeetings"; - - /** The Constant AdjacentMeetings. */ - public static final String AdjacentMeetings = "AdjacentMeetings"; - - /** The Constant Duration. */ - public static final String Duration = "Duration"; - - /** The Constant TimeZone. */ - public static final String TimeZone = "TimeZone"; - - /** The Constant AppointmentReplyTime. */ - public static final String AppointmentReplyTime = "AppointmentReplyTime"; - - /** The Constant AppointmentSequenceNumber. */ - public static final String AppointmentSequenceNumber = - "AppointmentSequenceNumber"; - - /** The Constant AppointmentState. */ - public static final String AppointmentState = "AppointmentState"; - - /** The Constant Recurrence. */ - public static final String Recurrence = "Recurrence"; - - /** The Constant FirstOccurrence. */ - public static final String FirstOccurrence = "FirstOccurrence"; - - /** The Constant LastOccurrence. */ - public static final String LastOccurrence = "LastOccurrence"; - - /** The Constant ModifiedOccurrences. */ - public static final String ModifiedOccurrences = "ModifiedOccurrences"; - - /** The Constant DeletedOccurrences. */ - public static final String DeletedOccurrences = "DeletedOccurrences"; - - /** The Constant MeetingTimeZone. */ - public static final String MeetingTimeZone = "MeetingTimeZone"; - - /** The Constant ConferenceType. */ - public static final String ConferenceType = "ConferenceType"; - - /** The Constant AllowNewTimeProposal. */ - public static final String AllowNewTimeProposal = "AllowNewTimeProposal"; - - /** The Constant IsOnlineMeeting. */ - public static final String IsOnlineMeeting = "IsOnlineMeeting"; - - /** The Constant MeetingWorkspaceUrl. */ - public static final String MeetingWorkspaceUrl = "MeetingWorkspaceUrl"; - - /** The Constant NetShowUrl. */ - public static final String NetShowUrl = "NetShowUrl"; - - /** The Constant CalendarItem. */ - public static final String CalendarItem = "CalendarItem"; - - /** The Constant CalendarFolder. */ - public static final String CalendarFolder = "CalendarFolder"; - - /** The Constant Attendee. */ - public static final String Attendee = "Attendee"; - - /** The Constant ResponseType. */ - public static final String ResponseType = "ResponseType"; - - /** The Constant LastResponseTime. */ - public static final String LastResponseTime = "LastResponseTime"; - - /** The Constant Occurrence. */ - public static final String Occurrence = "Occurrence"; - - /** The Constant DeletedOccurrence. */ - public static final String DeletedOccurrence = "DeletedOccurrence"; - - /** The Constant RelativeYearlyRecurrence. */ - public static final String RelativeYearlyRecurrence = - "RelativeYearlyRecurrence"; - - /** The Constant AbsoluteYearlyRecurrence. */ - public static final String AbsoluteYearlyRecurrence = - "AbsoluteYearlyRecurrence"; - - /** The Constant RelativeMonthlyRecurrence. */ - public static final String RelativeMonthlyRecurrence = - "RelativeMonthlyRecurrence"; - - /** The Constant AbsoluteMonthlyRecurrence. */ - public static final String AbsoluteMonthlyRecurrence = - "AbsoluteMonthlyRecurrence"; - - /** The Constant WeeklyRecurrence. */ - public static final String WeeklyRecurrence = "WeeklyRecurrence"; - - /** The Constant DailyRecurrence. */ - public static final String DailyRecurrence = "DailyRecurrence"; - - /** The Constant DailyRegeneration. */ - public static final String DailyRegeneration = "DailyRegeneration"; - - /** The Constant WeeklyRegeneration. */ - public static final String WeeklyRegeneration = "WeeklyRegeneration"; - - /** The Constant MonthlyRegeneration. */ - public static final String MonthlyRegeneration = "MonthlyRegeneration"; - - /** The Constant YearlyRegeneration. */ - public static final String YearlyRegeneration = "YearlyRegeneration"; - - /** The Constant NoEndRecurrence. */ - public static final String NoEndRecurrence = "NoEndRecurrence"; - - /** The Constant EndDateRecurrence. */ - public static final String EndDateRecurrence = "EndDateRecurrence"; - - /** The Constant NumberedRecurrence. */ - public static final String NumberedRecurrence = "NumberedRecurrence"; - - /** The Constant Interval. */ - public static final String Interval = "Interval"; - - /** The Constant DayOfMonth. */ - public static final String DayOfMonth = "DayOfMonth"; - - /** The Constant DayOfWeek. */ - public static final String DayOfWeek = "DayOfWeek"; - - /** The Constant DaysOfWeek. */ - public static final String DaysOfWeek = "DaysOfWeek"; - - /** The Constant DayOfWeekIndex. */ - public static final String DayOfWeekIndex = "DayOfWeekIndex"; - - /** The Constant Month. */ - public static final String Month = "Month"; - - /** The Constant StartDate. */ - public static final String StartDate = "StartDate"; - - /** The Constant EndDate. */ - public static final String EndDate = "EndDate"; - - /** The Constant StartTime. */ - public static final String StartTime = "StartTime"; - - /** The Constant EndTime. */ - public static final String EndTime = "EndTime"; - - /** The Constant NumberOfOccurrences. */ - public static final String NumberOfOccurrences = "NumberOfOccurrences"; - - /** The Constant AssociatedCalendarItemId. */ - public static final String AssociatedCalendarItemId = - "AssociatedCalendarItemId"; - - /** The Constant IsDelegated. */ - public static final String IsDelegated = "IsDelegated"; - - /** The Constant IsOutOfDate. */ - public static final String IsOutOfDate = "IsOutOfDate"; - - /** The Constant HasBeenProcessed. */ - public static final String HasBeenProcessed = "HasBeenProcessed"; - - /** The Constant MeetingMessage. */ - public static final String MeetingMessage = "MeetingMessage"; - - /** The Constant FileAs. */ - public static final String FileAs = "FileAs"; - - /** The Constant FileAsMapping. */ - public static final String FileAsMapping = "FileAsMapping"; - - /** The Constant GivenName. */ - public static final String GivenName = "GivenName"; - - /** The Constant Initials. */ - public static final String Initials = "Initials"; - - /** The Constant MiddleName. */ - public static final String MiddleName = "MiddleName"; - - /** The Constant NickName. */ - public static final String NickName = "Nickname"; - - /** The Constant CompleteName. */ - public static final String CompleteName = "CompleteName"; - - /** The Constant CompanyName. */ - public static final String CompanyName = "CompanyName"; - - /** The Constant EmailAddresses. */ - public static final String EmailAddresses = "EmailAddresses"; - - /** The Constant PhysicalAddresses. */ - public static final String PhysicalAddresses = "PhysicalAddresses"; - - /** The Constant PhoneNumbers. */ - public static final String PhoneNumbers = "PhoneNumbers"; - - /** The Constant PhoneNumber. */ - public static final String PhoneNumber = "PhoneNumber"; - - /** The Constant AssistantName. */ - public static final String AssistantName = "AssistantName"; - - /** The Constant Birthday. */ - public static final String Birthday = "Birthday"; - - /** The Constant BusinessHomePage. */ - public static final String BusinessHomePage = "BusinessHomePage"; - - /** The Constant Children. */ - public static final String Children = "Children"; - - /** The Constant Companies. */ - public static final String Companies = "Companies"; - - /** The Constant ContactSource. */ - public static final String ContactSource = "ContactSource"; - - /** The Constant Department. */ - public static final String Department = "Department"; - - /** The Constant Generation. */ - public static final String Generation = "Generation"; - - /** The Constant ImAddresses. */ - public static final String ImAddresses = "ImAddresses"; - - /** The Constant ImAddress. */ - public static final String ImAddress = "ImAddress"; - - /** The Constant JobTitle. */ - public static final String JobTitle = "JobTitle"; - - /** The Constant Manager. */ - public static final String Manager = "Manager"; - - /** The Constant Mileage. */ - public static final String Mileage = "Mileage"; - - /** The Constant OfficeLocation. */ - public static final String OfficeLocation = "OfficeLocation"; - - /** The Constant PostalAddressIndex. */ - public static final String PostalAddressIndex = "PostalAddressIndex"; - - /** The Constant Profession. */ - public static final String Profession = "Profession"; - - /** The Constant SpouseName. */ - public static final String SpouseName = "SpouseName"; - - /** The Constant Surname. */ - public static final String Surname = "Surname"; - - /** The Constant WeddingAnniversary. */ - public static final String WeddingAnniversary = "WeddingAnniversary"; - - /** The Constant HasPicture. */ - public static final String HasPicture = "HasPicture"; - - /** The Constant Title. */ - public static final String Title = "Title"; - - /** The Constant FirstName. */ - public static final String FirstName = "FirstName"; - - /** The Constant LastName. */ - public static final String LastName = "LastName"; - - /** The Constant Suffix. */ - public static final String Suffix = "Suffix"; - - /** The Constant FullName. */ - public static final String FullName = "FullName"; - - /** The Constant YomiFirstName. */ - public static final String YomiFirstName = "YomiFirstName"; - - /** The Constant YomiLastName. */ - public static final String YomiLastName = "YomiLastName"; - - /** The Constant Contact. */ - public static final String Contact = "Contact"; - - /** The Constant Entry. */ - public static final String Entry = "Entry"; - - /** The Constant Street. */ - public static final String Street = "Street"; - - /** The Constant City. */ - public static final String City = "City"; - - /** The Constant State. */ - public static final String State = "State"; - - /** The Constant CountryOrRegion. */ - public static final String CountryOrRegion = "CountryOrRegion"; - - /** The Constant PostalCode. */ - public static final String PostalCode = "PostalCode"; - - /** The Constant Members. */ - public static final String Members = "Members"; - - /** The Constant Member. */ - public static final String Member = "Member"; - - /** The Constant AdditionalProperties. */ - public static final String AdditionalProperties = "AdditionalProperties"; - - /** The Constant ExtendedFieldURI. */ - public static final String ExtendedFieldURI = "ExtendedFieldURI"; - - /** The Constant Value. */ - public static final String Value = "Value"; - - /** The Constant Values. */ - public static final String Values = "Values"; - - /** The Constant ToFolderId. */ - public static final String ToFolderId = "ToFolderId"; - - /** The Constant ActualWork. */ - public static final String ActualWork = "ActualWork"; - - /** The Constant AssignedTime. */ - public static final String AssignedTime = "AssignedTime"; - - /** The Constant BillingInformation. */ - public static final String BillingInformation = "BillingInformation"; - - /** The Constant ChangeCount. */ - public static final String ChangeCount = "ChangeCount"; - - /** The Constant CompleteDate. */ - public static final String CompleteDate = "CompleteDate"; - - /** The Constant Contacts. */ - public static final String Contacts = "Contacts"; - - /** The Constant DelegationState. */ - public static final String DelegationState = "DelegationState"; - - /** The Constant Delegator. */ - public static final String Delegator = "Delegator"; - - /** The Constant DueDate. */ - public static final String DueDate = "DueDate"; - - /** The Constant IsAssignmentEditable. */ - public static final String IsAssignmentEditable = "IsAssignmentEditable"; - - /** The Constant IsComplete. */ - public static final String IsComplete = "IsComplete"; - - /** The Constant IsTeamTask. */ - public static final String IsTeamTask = "IsTeamTask"; - - /** The Constant Owner. */ - public static final String Owner = "Owner"; - - /** The Constant PercentComplete. */ - public static final String PercentComplete = "PercentComplete"; - - /** The Constant Status. */ - public static final String Status = "Status"; - - /** The Constant StatusDescription. */ - public static final String StatusDescription = "StatusDescription"; - - /** The Constant TotalWork. */ - public static final String TotalWork = "TotalWork"; - - /** The Constant Task. */ - public static final String Task = "Task"; - - /** The Constant MailboxCulture. */ - public static final String MailboxCulture = "MailboxCulture"; - - /** The Constant MeetingRequestType. */ - public static final String MeetingRequestType = "MeetingRequestType"; - - /** The Constant IntendedFreeBusyStatus. */ - public static final String IntendedFreeBusyStatus = - "IntendedFreeBusyStatus"; - - /** The Constant MeetingRequest. */ - public static final String MeetingRequest = "MeetingRequest"; - - /** The Constant MeetingResponse. */ - public static final String MeetingResponse = "MeetingResponse"; - - /** The Constant MeetingCancellation. */ - public static final String MeetingCancellation = "MeetingCancellation"; - - /** The Constant BaseOffset. */ - public static final String BaseOffset = "BaseOffset"; - - /** The Constant Offset. */ - public static final String Offset = "Offset"; - - /** The Constant Standard. */ - public static final String Standard = "Standard"; - - /** The Constant Daylight. */ - public static final String Daylight = "Daylight"; - - /** The Constant Time. */ - public static final String Time = "Time"; - - /** The Constant AbsoluteDate. */ - public static final String AbsoluteDate = "AbsoluteDate"; - - /** The Constant UnresolvedEntry. */ - public static final String UnresolvedEntry = "UnresolvedEntry"; - - /** The Constant ResolutionSet. */ - public static final String ResolutionSet = "ResolutionSet"; - - /** The Constant Resolution. */ - public static final String Resolution = "Resolution"; - - /** The Constant DistributionList. */ - public static final String DistributionList = "DistributionList"; - - /** The Constant DLExpansion. */ - public static final String DLExpansion = "DLExpansion"; - - /** The Constant IndexedFieldURI. */ - public static final String IndexedFieldURI = "IndexedFieldURI"; - - /** The Constant PullSubscriptionRequest. */ - public static final String PullSubscriptionRequest = - "PullSubscriptionRequest"; - - /** The Constant PushSubscriptionRequest. */ - public static final String PushSubscriptionRequest = - "PushSubscriptionRequest"; - - /** The Constant StreamingSubscriptionRequest. */ - public static final String StreamingSubscriptionRequest = - "StreamingSubscriptionRequest"; - /** The Constant EventTypes. */ - public static final String EventTypes = "EventTypes"; - - /** The Constant EventType. */ - public static final String EventType = "EventType"; - - /** The Constant Timeout. */ - public static final String Timeout = "Timeout"; - - /** The Constant Watermark. */ - public static final String Watermark = "Watermark"; - - /** The Constant SubscriptionId. */ - public static final String SubscriptionId = "SubscriptionId"; - - /** The Constant SubscriptionId. */ - public static final String SubscriptionIds = "SubscriptionIds"; - - /** The Constant StatusFrequency. */ - public static final String StatusFrequency = "StatusFrequency"; - - /** The Constant URL. */ - public static final String URL = "URL"; - - /** The Constant Notification. */ - public static final String Notification = "Notification"; - - /** The Constant Notifications. */ - public static final String Notifications = "Notifications"; - - /** The Constant PreviousWatermark. */ - public static final String PreviousWatermark = "PreviousWatermark"; - - /** The Constant MoreEvents. */ - public static final String MoreEvents = "MoreEvents"; - - /** The Constant TimeStamp. */ - public static final String TimeStamp = "TimeStamp"; - - /** The Constant UnreadCount. */ - public static final String UnreadCount = "UnreadCount"; - - /** The Constant OldParentFolderId. */ - public static final String OldParentFolderId = "OldParentFolderId"; - - /** The Constant CopiedEvent. */ - public static final String CopiedEvent = "CopiedEvent"; - - /** The Constant CreatedEvent. */ - public static final String CreatedEvent = "CreatedEvent"; - - /** The Constant DeletedEvent. */ - public static final String DeletedEvent = "DeletedEvent"; - - /** The Constant ModifiedEvent. */ - public static final String ModifiedEvent = "ModifiedEvent"; - - /** The Constant MovedEvent. */ - public static final String MovedEvent = "MovedEvent"; - - /** The Constant NewMailEvent. */ - public static final String NewMailEvent = "NewMailEvent"; - - /** The Constant StatusEvent. */ - public static final String StatusEvent = "StatusEvent"; - - /** The Constant FreeBusyChangedEvent. */ - public static final String FreeBusyChangedEvent = "FreeBusyChangedEvent"; - - /** The Constant ExchangeImpersonation. */ - public static final String ExchangeImpersonation = "ExchangeImpersonation"; - - /** The Constant ConnectingSID. */ - public static final String ConnectingSID = "ConnectingSID"; - - /** The Constant SyncFolderId. */ - public static final String SyncFolderId = "SyncFolderId"; - - /** The Constant SyncScope. */ - public static final String SyncScope = "SyncScope"; - - /** The Constant SyncState. */ - public static final String SyncState = "SyncState"; - - /** The Constant Ignore. */ - public static final String Ignore = "Ignore"; - - /** The Constant MaxChangesReturned. */ - public static final String MaxChangesReturned = "MaxChangesReturned"; - - /** The Constant Changes. */ - public static final String Changes = "Changes"; - - /** The Constant IncludesLastItemInRange. */ - public static final String IncludesLastItemInRange = - "IncludesLastItemInRange"; - - /** The Constant IncludesLastFolderInRange. */ - public static final String IncludesLastFolderInRange = - "IncludesLastFolderInRange"; - - /** The Constant Create. */ - public static final String Create = "Create"; - - /** The Constant Update. */ - public static final String Update = "Update"; - - /** The Constant Delete. */ - public static final String Delete = "Delete"; - - /** The Constant ReadFlagChange. */ - public static final String ReadFlagChange = "ReadFlagChange"; - - /** The Constant SearchParameters. */ - public static final String SearchParameters = "SearchParameters"; - - /** The Constant SoftDeleted. */ - public static final String SoftDeleted = "SoftDeleted"; - - /** The Constant Shallow. */ - public static final String Shallow = "Shallow"; - - /** The Constant Associated. */ - public static final String Associated = "Associated"; - - /** The Constant BaseFolderIds. */ - public static final String BaseFolderIds = "BaseFolderIds"; - - /** The Constant SortOrder. */ - public static final String SortOrder = "SortOrder"; - - /** The Constant FieldOrder. */ - public static final String FieldOrder = "FieldOrder"; - - /** The Constant CanDelete. */ - public static final String CanDelete = "CanDelete"; - - /** The Constant CanRenameOrMove. */ - public static final String CanRenameOrMove = "CanRenameOrMove"; - - /** The Constant MustDisplayComment. */ - public static final String MustDisplayComment = "MustDisplayComment"; - - /** The Constant HasQuota. */ - public static final String HasQuota = "HasQuota"; - - /** The Constant IsManagedFoldersRoot. */ - public static final String IsManagedFoldersRoot = "IsManagedFoldersRoot"; - - /** The Constant ManagedFolderId. */ - public static final String ManagedFolderId = "ManagedFolderId"; - - /** The Constant Comment. */ - public static final String Comment = "Comment"; - - /** The Constant StorageQuota. */ - public static final String StorageQuota = "StorageQuota"; - - /** The Constant FolderSize. */ - public static final String FolderSize = "FolderSize"; - - /** The Constant HomePage. */ - public static final String HomePage = "HomePage"; - - /** The Constant ManagedFolderInformation. */ - public static final String ManagedFolderInformation = - "ManagedFolderInformation"; - - /** The Constant CalendarView. */ - public static final String CalendarView = "CalendarView"; - - /** The Constant PostedTime. */ - public static final String PostedTime = "PostedTime"; - - /** The Constant PostItem. */ - public static final String PostItem = "PostItem"; - - /** The Constant RequestServerVersion. */ - public static final String RequestServerVersion = "RequestServerVersion"; - - /** The Constant PostReplyItem. */ - public static final String PostReplyItem = "PostReplyItem"; - - /** The Constant CreateAssociated. */ - public static final String CreateAssociated = "CreateAssociated"; - - /** The Constant CreateContents. */ - public static final String CreateContents = "CreateContents"; - - /** The Constant CreateHierarchy. */ - public static final String CreateHierarchy = "CreateHierarchy"; - - /** The Constant Modify. */ - public static final String Modify = "Modify"; - - /** The Constant Read. */ - public static final String Read = "Read"; - - /** The Constant EffectiveRights. */ - public static final String EffectiveRights = "EffectiveRights"; - - /** The Constant LastModifiedName. */ - public static final String LastModifiedName = "LastModifiedName"; - - /** The Constant LastModifiedTime. */ - public static final String LastModifiedTime = "LastModifiedTime"; - - /** The Constant ConversationId. */ - public static final String ConversationId = "ConversationId"; - - /** The Constant UniqueBody. */ - public static final String UniqueBody = "UniqueBody"; - - /** The Constant BodyType. */ - public static final String BodyType = "BodyType"; - - /** The Constant AttachmentShape. */ - public static final String AttachmentShape = "AttachmentShape"; - - /** The Constant UserId. */ - public static final String UserId = "UserId"; - - /** The Constant UserIds. */ - public static final String UserIds = "UserIds"; - - /** The Constant CanCreateItems. */ - public static final String CanCreateItems = "CanCreateItems"; - - /** The Constant CanCreateSubFolders. */ - public static final String CanCreateSubFolders = "CanCreateSubFolders"; - - /** The Constant IsFolderOwner. */ - public static final String IsFolderOwner = "IsFolderOwner"; - - /** The Constant IsFolderVisible. */ - public static final String IsFolderVisible = "IsFolderVisible"; - - /** The Constant IsFolderContact. */ - public static final String IsFolderContact = "IsFolderContact"; - - /** The Constant EditItems. */ - public static final String EditItems = "EditItems"; - - /** The Constant DeleteItems. */ - public static final String DeleteItems = "DeleteItems"; - - /** The Constant ReadItems. */ - public static final String ReadItems = "ReadItems"; - - /** The Constant PermissionLevel. */ - public static final String PermissionLevel = "PermissionLevel"; - - /** The Constant CalendarPermissionLevel. */ - public static final String CalendarPermissionLevel = - "CalendarPermissionLevel"; - - /** The Constant SID. */ - public static final String SID = "SID"; - - /** The Constant PrimarySmtpAddress. */ - public static final String PrimarySmtpAddress = "PrimarySmtpAddress"; - - /** The Constant DistinguishedUser. */ - public static final String DistinguishedUser = "DistinguishedUser"; - - /** The Constant PermissionSet. */ - public static final String PermissionSet = "PermissionSet"; - - /** The Constant Permissions. */ - public static final String Permissions = "Permissions"; - - /** The Constant Permission. */ - public static final String Permission = "Permission"; - - /** The Constant CalendarPermissions. */ - public static final String CalendarPermissions = "CalendarPermissions"; - - /** The Constant CalendarPermission. */ - public static final String CalendarPermission = "CalendarPermission"; - - /** The Constant GroupBy. */ - public static final String GroupBy = "GroupBy"; - - /** The Constant AggregateOn. */ - public static final String AggregateOn = "AggregateOn"; - - /** The Constant Groups. */ - public static final String Groups = "Groups"; - - /** The Constant GroupedItems. */ - public static final String GroupedItems = "GroupedItems"; - - /** The Constant GroupIndex. */ - public static final String GroupIndex = "GroupIndex"; - - /** The Constant ConflictResults. */ - public static final String ConflictResults = "ConflictResults"; - - /** The Constant Count. */ - public static final String Count = "Count"; - - /** The Constant OofSettings. */ - public static final String OofSettings = "OofSettings"; - - /** The Constant UserOofSettings. */ - public static final String UserOofSettings = "UserOofSettings"; - - /** The Constant OofState. */ - public static final String OofState = "OofState"; - - /** The Constant ExternalAudience. */ - public static final String ExternalAudience = "ExternalAudience"; - - /** The Constant AllowExternalOof. */ - public static final String AllowExternalOof = "AllowExternalOof"; - - /** The Constant InternalReply. */ - public static final String InternalReply = "InternalReply"; - - /** The Constant ExternalReply. */ - public static final String ExternalReply = "ExternalReply"; - - /** The Constant Bias. */ - public static final String Bias = "Bias"; - - /** The Constant DayOrder. */ - public static final String DayOrder = "DayOrder"; - - /** The Constant Year. */ - public static final String Year = "Year"; - - /** The Constant StandardTime. */ - public static final String StandardTime = "StandardTime"; - - /** The Constant DaylightTime. */ - public static final String DaylightTime = "DaylightTime"; - - /** The Constant MailboxData. */ - public static final String MailboxData = "MailboxData"; - - /** The Constant MailboxDataArray. */ - public static final String MailboxDataArray = "MailboxDataArray"; - - /** The Constant Email. */ - public static final String Email = "Email"; - - /** The Constant AttendeeType. */ - public static final String AttendeeType = "AttendeeType"; - - /** The Constant ExcludeConflicts. */ - public static final String ExcludeConflicts = "ExcludeConflicts"; - - /** The Constant FreeBusyViewOptions. */ - public static final String FreeBusyViewOptions = "FreeBusyViewOptions"; - - /** The Constant SuggestionsViewOptions. */ - public static final String SuggestionsViewOptions = - "SuggestionsViewOptions"; - - /** The Constant FreeBusyView. */ - public static final String FreeBusyView = "FreeBusyView"; - - /** The Constant TimeWindow. */ - public static final String TimeWindow = "TimeWindow"; - - /** The Constant MergedFreeBusyIntervalInMinutes. */ - public static final String MergedFreeBusyIntervalInMinutes = - "MergedFreeBusyIntervalInMinutes"; - - /** The Constant RequestedView. */ - public static final String RequestedView = "RequestedView"; - - /** The Constant FreeBusyViewType. */ - public static final String FreeBusyViewType = "FreeBusyViewType"; - - /** The Constant CalendarEventArray. */ - public static final String CalendarEventArray = "CalendarEventArray"; - - /** The Constant CalendarEvent. */ - public static final String CalendarEvent = "CalendarEvent"; - - /** The Constant BusyType. */ - public static final String BusyType = "BusyType"; - - /** The Constant MergedFreeBusy. */ - public static final String MergedFreeBusy = "MergedFreeBusy"; - - /** The Constant WorkingHours. */ - public static final String WorkingHours = "WorkingHours"; - - /** The Constant WorkingPeriodArray. */ - public static final String WorkingPeriodArray = "WorkingPeriodArray"; - - /** The Constant WorkingPeriod. */ - public static final String WorkingPeriod = "WorkingPeriod"; - - /** The Constant StartTimeInMinutes. */ - public static final String StartTimeInMinutes = "StartTimeInMinutes"; - - /** The Constant EndTimeInMinutes. */ - public static final String EndTimeInMinutes = "EndTimeInMinutes"; - - /** The Constant GoodThreshold. */ - public static final String GoodThreshold = "GoodThreshold"; - - /** The Constant MaximumResultsByDay. */ - public static final String MaximumResultsByDay = "MaximumResultsByDay"; - - /** The Constant MaximumNonWorkHourResultsByDay. */ - public static final String MaximumNonWorkHourResultsByDay = - "MaximumNonWorkHourResultsByDay"; - - /** The Constant MeetingDurationInMinutes. */ - public static final String MeetingDurationInMinutes = - "MeetingDurationInMinutes"; - - /** The Constant MinimumSuggestionQuality. */ - public static final String MinimumSuggestionQuality = - "MinimumSuggestionQuality"; - - /** The Constant DetailedSuggestionsWindow. */ - public static final String DetailedSuggestionsWindow = - "DetailedSuggestionsWindow"; - - /** The Constant CurrentMeetingTime. */ - public static final String CurrentMeetingTime = "CurrentMeetingTime"; - - /** The Constant GlobalObjectId. */ - public static final String GlobalObjectId = "GlobalObjectId"; - - /** The Constant SuggestionDayResultArray. */ - public static final String SuggestionDayResultArray = - "SuggestionDayResultArray"; - - /** The Constant SuggestionDayResult. */ - public static final String SuggestionDayResult = "SuggestionDayResult"; - - /** The Constant Date. */ - public static final String Date = "Date"; - - /** The Constant DayQuality. */ - public static final String DayQuality = "DayQuality"; - - /** The Constant SuggestionArray. */ - public static final String SuggestionArray = "SuggestionArray"; - - /** The Constant Suggestion. */ - public static final String Suggestion = "Suggestion"; - - /** The Constant MeetingTime. */ - public static final String MeetingTime = "MeetingTime"; - - /** The Constant IsWorkTime. */ - public static final String IsWorkTime = "IsWorkTime"; - - /** The Constant SuggestionQuality. */ - public static final String SuggestionQuality = "SuggestionQuality"; - - /** The Constant AttendeeConflictDataArray. */ - public static final String AttendeeConflictDataArray = - "AttendeeConflictDataArray"; - - /** The Constant UnknownAttendeeConflictData. */ - public static final String UnknownAttendeeConflictData = - "UnknownAttendeeConflictData"; - - /** The Constant TooBigGroupAttendeeConflictData. */ - public static final String TooBigGroupAttendeeConflictData = - "TooBigGroupAttendeeConflictData"; - - /** The Constant IndividualAttendeeConflictData. */ - public static final String IndividualAttendeeConflictData = - "IndividualAttendeeConflictData"; - - /** The Constant GroupAttendeeConflictData. */ - public static final String GroupAttendeeConflictData = - "GroupAttendeeConflictData"; - - /** The Constant NumberOfMembers. */ - public static final String NumberOfMembers = "NumberOfMembers"; - - /** The Constant NumberOfMembersAvailable. */ - public static final String NumberOfMembersAvailable = - "NumberOfMembersAvailable"; - - /** The Constant NumberOfMembersWithConflict. */ - public static final String NumberOfMembersWithConflict = - "NumberOfMembersWithConflict"; - - /** The Constant NumberOfMembersWithNoData. */ - public static final String NumberOfMembersWithNoData = - "NumberOfMembersWithNoData"; - - /** The Constant SourceIds. */ - public static final String SourceIds = "SourceIds"; - - /** The Constant AlternateId. */ - public static final String AlternateId = "AlternateId"; - - /** The Constant AlternatePublicFolderId. */ - public static final String AlternatePublicFolderId = - "AlternatePublicFolderId"; - - /** The Constant AlternatePublicFolderItemId. */ - public static final String AlternatePublicFolderItemId = - "AlternatePublicFolderItemId"; - - /** The Constant DelegatePermissions. */ - public static final String DelegatePermissions = "DelegatePermissions"; - - /** The Constant ReceiveCopiesOfMeetingMessages. */ - public static final String ReceiveCopiesOfMeetingMessages = - "ReceiveCopiesOfMeetingMessages"; - - /** The Constant ViewPrivateItems. */ - public static final String ViewPrivateItems = "ViewPrivateItems"; - - /** The Constant CalendarFolderPermissionLevel. */ - public static final String CalendarFolderPermissionLevel = - "CalendarFolderPermissionLevel"; - - /** The Constant TasksFolderPermissionLevel. */ - public static final String TasksFolderPermissionLevel = - "TasksFolderPermissionLevel"; - - /** The Constant InboxFolderPermissionLevel. */ - public static final String InboxFolderPermissionLevel = - "InboxFolderPermissionLevel"; - - /** The Constant ContactsFolderPermissionLevel. */ - public static final String ContactsFolderPermissionLevel = - "ContactsFolderPermissionLevel"; - - /** The Constant NotesFolderPermissionLevel. */ - public static final String NotesFolderPermissionLevel = - "NotesFolderPermissionLevel"; - - /** The Constant JournalFolderPermissionLevel. */ - public static final String JournalFolderPermissionLevel = - "JournalFolderPermissionLevel"; - - /** The Constant DelegateUser. */ - public static final String DelegateUser = "DelegateUser"; - - /** The Constant DelegateUsers. */ - public static final String DelegateUsers = "DelegateUsers"; - - /** The Constant DeliverMeetingRequests. */ - public static final String DeliverMeetingRequests = - "DeliverMeetingRequests"; - - /** The Constant MessageXml. */ - public static final String MessageXml = "MessageXml"; - - /** The Constant UserConfiguration. */ - public static final String UserConfiguration = "UserConfiguration"; - - /** The Constant UserConfigurationName. */ - public static final String UserConfigurationName = "UserConfigurationName"; - - /** The Constant UserConfigurationProperties. */ - public static final String UserConfigurationProperties = - "UserConfigurationProperties"; - - /** The Constant Dictionary. */ - public static final String Dictionary = "Dictionary"; - - /** The Constant DictionaryEntry. */ - public static final String DictionaryEntry = "DictionaryEntry"; - - /** The Constant DictionaryKey. */ - public static final String DictionaryKey = "DictionaryKey"; - - /** The Constant DictionaryValue. */ - public static final String DictionaryValue = "DictionaryValue"; - - /** The Constant XmlData. */ - public static final String XmlData = "XmlData"; - - /** The Constant BinaryData. */ - public static final String BinaryData = "BinaryData"; - - /** The Constant FilterHtmlContent. */ - public static final String FilterHtmlContent = "FilterHtmlContent"; - - /** The Constant ConvertHtmlCodePageToUTF8. */ - public static final String ConvertHtmlCodePageToUTF8 = - "ConvertHtmlCodePageToUTF8"; - - /** The Constant UnknownEntries. */ - public static final String UnknownEntries = "UnknownEntries"; - - /** The Constant UnknownEntry. */ - public static final String UnknownEntry = "UnknownEntry"; - - /** The Constant PhoneCallId. */ - public static final String PhoneCallId = "PhoneCallId"; - - /** The Constant DialString. */ - public static final String DialString = "DialString"; - - /** The Constant PhoneCallInformation. */ - public static final String PhoneCallInformation = "PhoneCallInformation"; - - /** The Constant PhoneCallState. */ - public static final String PhoneCallState = "PhoneCallState"; - - /** The Constant ConnectionFailureCause. */ - public static final String ConnectionFailureCause = - "ConnectionFailureCause"; - - /** The Constant SIPResponseCode. */ - public static final String SIPResponseCode = "SIPResponseCode"; - - /** The Constant SIPResponseText. */ - public static final String SIPResponseText = "SIPResponseText"; - - /** The Constant WebClientReadFormQueryString. */ - public static final String WebClientReadFormQueryString = - "WebClientReadFormQueryString"; - - /** The Constant WebClientEditFormQueryString. */ - public static final String WebClientEditFormQueryString = - "WebClientEditFormQueryString"; - - /** The Constant Ids. */ - public static final String Ids = "Ids"; - - /** The Constant Id. */ - public static final String Id = "Id"; - - /** The Constant TimeZoneDefinitions. */ - public static final String TimeZoneDefinitions = "TimeZoneDefinitions"; - - /** The Constant TimeZoneDefinition. */ - public static final String TimeZoneDefinition = "TimeZoneDefinition"; - - /** The Constant Periods. */ - public static final String Periods = "Periods"; - - /** The Constant Period. */ - public static final String Period = "Period"; - - /** The Constant TransitionsGroups. */ - public static final String TransitionsGroups = "TransitionsGroups"; - - /** The Constant TransitionsGroup. */ - public static final String TransitionsGroup = "TransitionsGroup"; - - /** The Constant Transitions. */ - public static final String Transitions = "Transitions"; - - /** The Constant Transition. */ - public static final String Transition = "Transition"; - - /** The Constant AbsoluteDateTransition. */ - public static final String AbsoluteDateTransition = - "AbsoluteDateTransition"; - - /** The Constant RecurringDayTransition. */ - public static final String RecurringDayTransition = - "RecurringDayTransition"; - - /** The Constant RecurringDateTransition. */ - public static final String RecurringDateTransition = - "RecurringDateTransition"; - - /** The Constant DateTime. */ - public static final String DateTime = "DateTime"; - - /** The Constant TimeOffset. */ - public static final String TimeOffset = "TimeOffset"; - - /** The Constant Day. */ - public static final String Day = "Day"; - - /** The Constant TimeZoneContext. */ - public static final String TimeZoneContext = "TimeZoneContext"; - - /** The Constant StartTimeZone. */ - public static final String StartTimeZone = "StartTimeZone"; - - /** The Constant EndTimeZone. */ - public static final String EndTimeZone = "EndTimeZone"; - - /** The Constant ReceivedBy. */ - public static final String ReceivedBy = "ReceivedBy"; - - /** The Constant ReceivedRepresenting. */ - public static final String ReceivedRepresenting = "ReceivedRepresenting"; - - /** The Constant Uid. */ - public static final String Uid = "UID"; - - /** The Constant RecurrenceId. */ - public static final String RecurrenceId = "RecurrenceId"; - - /** The Constant DateTimeStamp. */ - public static final String DateTimeStamp = "DateTimeStamp"; - - /** The Constant IsInline. */ - public static final String IsInline = "IsInline"; - - /** The Constant IsContactPhoto. */ - public static final String IsContactPhoto = "IsContactPhoto"; - - /** The Constant QueryString. */ - public static final String QueryString = "QueryString"; - - /** The Constant CalendarEventDetails. */ - public static final String CalendarEventDetails = "CalendarEventDetails"; - - /** The Constant ID. */ - public static final String ID = "ID"; - - /** The Constant IsException. */ - public static final String IsException = "IsException"; - - /** The Constant IsReminderSet. */ - public static final String IsReminderSet = "IsReminderSet"; - - /** The Constant IsPrivate. */ - public static final String IsPrivate = "IsPrivate"; - - /** The Constant FirstDayOfWeek. */ - public static final String FirstDayOfWeek = "FirstDayOfWeek"; - - /** The Constant Verb. */ - public static final String Verb = "Verb"; - - /** The Constant Parameter. */ - public static final String Parameter = "Parameter"; - - /** The Constant ReturnValue. */ - public static final String ReturnValue = "ReturnValue"; - - /** The Constant ReturnNewItemIds. */ - public static final String ReturnNewItemIds = "ReturnNewItemIds"; - - /** The Constant DateTimePrecision. */ - public static final String DateTimePrecision = "DateTimePrecision"; - - /** The Constant PasswordExpirationDate. */ - public static final String PasswordExpirationDate = "PasswordExpirationDate"; - - /** The Constant StoreEntryId. */ - public static final String StoreEntryId = "StoreEntryId"; - - // Conversations - /** The Constant Conversations. */ - public static final String Conversations = "Conversations"; - - /** The Constant Conversation. */ - public static final String Conversation = "Conversation"; - - /** The Constant UniqueRecipients. */ - public static final String UniqueRecipients = "UniqueRecipients"; - - /** The Constant GlobalUniqueRecipients. */ - public static final String GlobalUniqueRecipients = - "GlobalUniqueRecipients"; - - /** The Constant UniqueUnreadSenders. */ - public static final String UniqueUnreadSenders = "UniqueUnreadSenders"; - - /** The Constant GlobalUniqueUnreadSenders. */ - public static final String GlobalUniqueUnreadSenders = - "GlobalUniqueUnreadSenders"; - - /** The Constant UniqueSenders. */ - public static final String UniqueSenders = "UniqueSenders"; - - /** The Constant GlobalUniqueSenders. */ - public static final String GlobalUniqueSenders = "GlobalUniqueSenders"; - - /** The Constant LastDeliveryTime. */ - public static final String LastDeliveryTime = "LastDeliveryTime"; - - /** The Constant GlobalLastDeliveryTime. */ - public static final String GlobalLastDeliveryTime = - "GlobalLastDeliveryTime"; - - /** The Constant GlobalCategories. */ - public static final String GlobalCategories = "GlobalCategories"; - - /** The Constant FlagStatus. */ - public static final String FlagStatus = "FlagStatus"; - - /** The Constant GlobalFlagStatus. */ - public static final String GlobalFlagStatus = "GlobalFlagStatus"; - - /** The Constant GlobalHasAttachments. */ - public static final String GlobalHasAttachments = "GlobalHasAttachments"; - - /** The Constant MessageCount. */ - public static final String MessageCount = "MessageCount"; - - /** The Constant GlobalMessageCount. */ - public static final String GlobalMessageCount = "GlobalMessageCount"; - - /** The Constant GlobalUnreadCount. */ - public static final String GlobalUnreadCount = "GlobalUnreadCount"; - - /** The Constant GlobalSize. */ - public static final String GlobalSize = "GlobalSize"; - - /** The Constant ItemClasses. */ - public static final String ItemClasses = "ItemClasses"; - - /** The Constant GlobalItemClasses. */ - public static final String GlobalItemClasses = "GlobalItemClasses"; - - /** The Constant GlobalImportance. */ - public static final String GlobalImportance = "GlobalImportance"; - - /** The Constant GlobalItemIds. */ - public static final String GlobalItemIds = "GlobalItemIds"; - - // ApplyConversationAction - - /** The Constant ApplyConversationAction. */ - public static final String ApplyConversationAction = - "ApplyConversationAction"; - - /** The Constant ConversationActions. */ - public static final String ConversationActions = "ConversationActions"; - - /** The Constant ConversationAction. */ - public static final String ConversationAction = "ConversationAction"; - - /** The Constant ApplyConversationActionResponse. */ - public static final String ApplyConversationActionResponse = - "ApplyConversationActionResponse"; - - /** The Constant ApplyConversationActionResponseMessage. */ - public static final String ApplyConversationActionResponseMessage = - "ApplyConversationActionResponseMessage"; - - /** The Constant EnableAlwaysDelete. */ - public static final String EnableAlwaysDelete = "EnableAlwaysDelete"; - - /** The Constant ProcessRightAway. */ - public static final String ProcessRightAway = "ProcessRightAway"; - - /** The Constant DestinationFolderId. */ - public static final String DestinationFolderId = "DestinationFolderId"; - - /** The Constant ContextFolderId. */ - public static final String ContextFolderId = "ContextFolderId"; - - /** The Constant ConversationLastSyncTime. */ - public static final String ConversationLastSyncTime = - "ConversationLastSyncTime"; - - /** The Constant AlwaysCategorize. */ - public static final String AlwaysCategorize = "AlwaysCategorize"; - - /** The Constant AlwaysDelete. */ - public static final String AlwaysDelete = "AlwaysDelete"; - - /** The Constant AlwaysMove. */ - public static final String AlwaysMove = "AlwaysMove"; - - /** The Constant Move. */ - public static final String Move = "Move"; - - /** The Constant Copy. */ - public static final String Copy = "Copy"; - - /** The Constant SetReadState. */ - public static final String SetReadState = "SetReadState"; - - /** The Constant DeleteType. */ - public static final String DeleteType = "DeleteType"; - // RoomList & Room - - /** The Constant RoomLists. */ - public static final String RoomLists = "RoomLists"; - - /** The Constant Rooms. */ - public static final String Rooms = "Rooms"; - - /** The Constant Room. */ - public static final String Room = "Room"; - - /** The Constant RoomList. */ - public static final String RoomList = "RoomList"; - - /** The Constant RoomId. */ - public static final String RoomId = "Id"; - - // Autodiscover - - /** The Constant Autodiscover. */ - public static final String Autodiscover = "Autodiscover"; - - /** The Constant BinarySecret. */ - public static final String BinarySecret = "BinarySecret"; - - /** The Constant Response. */ - public static final String Response = "Response"; - - /** The Constant User. */ - public static final String User = "User"; - - /** The Constant LegacyDN. */ - public static final String LegacyDN = "LegacyDN"; - - /** The Constant DeploymentId. */ - public static final String DeploymentId = "DeploymentId"; - - /** The Constant Account. */ - public static final String Account = "Account"; - - /** The Constant AccountType. */ - public static final String AccountType = "AccountType"; - - /** The Constant Action. */ - public static final String Action = "Action"; - - /** The Constant To. */ - public static final String To = "To"; - - /** The Constant RedirectAddr. */ - public static final String RedirectAddr = "RedirectAddr"; - - /** The Constant RedirectUrl. */ - public static final String RedirectUrl = "RedirectUrl"; - - /** The Constant Protocol. */ - public static final String Protocol = "Protocol"; - - /** The Constant Type. */ - public static final String Type = "Type"; - - /** The Constant Server. */ - public static final String Server = "Server"; - - /** The Constant ServerDN. */ - public static final String ServerDN = "ServerDN"; - - /** The Constant ServerVersion. */ - public static final String ServerVersion = "ServerVersion"; - - /** The Constant ServerVersionInfo. */ - public static final String ServerVersionInfo = "ServerVersionInfo"; - - /** The Constant AD. */ - public static final String AD = "AD"; - - /** The Constant AuthPackage. */ - public static final String AuthPackage = "AuthPackage"; - - /** The Constant MdbDN. */ - public static final String MdbDN = "MdbDN"; - - /** The Constant EWSUrl. */ - public static final String EWSUrl = "EWSUrl"; - - /** The Constant ASUrl. */ - public static final String ASUrl = "ASUrl"; - - /** The Constant OOFUrl. */ - public static final String OOFUrl = "OOFUrl"; - - /** The Constant UMUrl. */ - public static final String UMUrl = "UMUrl"; - - /** The Constant OABUrl. */ - public static final String OABUrl = "OABUrl"; - - /** The Constant Internal. */ - public static final String Internal = "Internal"; - - /** The Constant External. */ - public static final String External = "External"; - - /** The Constant OWAUrl. */ - public static final String OWAUrl = "OWAUrl"; - - /** The Constant Error. */ - public static final String Error = "Error"; - - /** The Constant ErrorCode. */ - public static final String ErrorCode = "ErrorCode"; - - /** The Constant DebugData. */ - public static final String DebugData = "DebugData"; - - /** The Constant Users. */ - public static final String Users = "Users"; - - /** The Constant RequestedSettings. */ - public static final String RequestedSettings = "RequestedSettings"; - - /** The Constant Setting. */ - public static final String Setting = "Setting"; - - /** The Constant GetUserSettingsRequestMessage. */ - public static final String GetUserSettingsRequestMessage = - "GetUserSettingsRequestMessage"; - - /** The Constant RequestedServerVersion. */ - public static final String RequestedServerVersion = - "RequestedServerVersion"; - - /** The Constant Request. */ - public static final String Request = "Request"; - - /** The Constant RedirectTarget. */ - public static final String RedirectTarget = "RedirectTarget"; - - /** The Constant UserSettings. */ - public static final String UserSettings = "UserSettings"; - - /** The Constant UserSettingErrors. */ - public static final String UserSettingErrors = "UserSettingErrors"; - - /** The Constant GetUserSettingsResponseMessage. */ - public static final String GetUserSettingsResponseMessage = - "GetUserSettingsResponseMessage"; - - /** The Constant ErrorMessage. */ - public static final String ErrorMessage = "ErrorMessage"; - - /** The Constant UserResponse. */ - public static final String UserResponse = "UserResponse"; - - /** The Constant UserResponses. */ - public static final String UserResponses = "UserResponses"; - - /** The Constant UserSettingError. */ - public static final String UserSettingError = "UserSettingError"; - - /** The Constant Domain. */ - public static final String Domain = "Domain"; - - /** The Constant Domains. */ - public static final String Domains = "Domains"; - - /** The Constant DomainResponse. */ - public static final String DomainResponse = "DomainResponse"; - - /** The Constant DomainResponses. */ - public static final String DomainResponses = "DomainResponses"; - - /** The Constant DomainSetting. */ - public static final String DomainSetting = "DomainSetting"; - - /** The Constant DomainSettings. */ - public static final String DomainSettings = "DomainSettings"; - - /** The Constant DomainStringSetting. */ - public static final String DomainStringSetting = "DomainStringSetting"; - - /** The Constant DomainSettingError. */ - public static final String DomainSettingError = "DomainSettingError"; - - /** The Constant DomainSettingErrors. */ - public static final String DomainSettingErrors = "DomainSettingErrors"; - - /** The Constant GetDomainSettingsRequestMessage. */ - public static final String GetDomainSettingsRequestMessage = - "GetDomainSettingsRequestMessage"; - - /** The Constant GetDomainSettingsResponseMessage. */ - public static final String GetDomainSettingsResponseMessage = - "GetDomainSettingsResponseMessage"; - - /** The Constant SettingName. */ - public static final String SettingName = "SettingName"; - - /** The Constant UserSetting. */ - public static final String UserSetting = "UserSetting"; - - /** The Constant StringSetting. */ - public static final String StringSetting = "StringSetting"; - - /** The Constant WebClientUrlCollectionSetting. */ - public static final String WebClientUrlCollectionSetting = - "WebClientUrlCollectionSetting"; - - /** The Constant WebClientUrls. */ - public static final String WebClientUrls = "WebClientUrls"; - - /** The Constant WebClientUrl. */ - public static final String WebClientUrl = "WebClientUrl"; - - /** The Constant AuthenticationMethods. */ - public static final String AuthenticationMethods = "AuthenticationMethods"; - - /** The Constant Url. */ - public static final String Url = "Url"; - - /** The Constant AlternateMailboxCollectionSetting. */ - public static final String AlternateMailboxCollectionSetting = - "AlternateMailboxCollectionSetting"; - - /** The Constant AlternateMailboxes. */ - public static final String AlternateMailboxes = "AlternateMailboxes"; - - /** The Constant AlternateMailbox. */ - public static final String AlternateMailbox = "AlternateMailbox"; - - /** The Constant ProtocolConnectionCollectionSetting. */ - public static final String ProtocolConnectionCollectionSetting = - "ProtocolConnectionCollectionSetting"; - - /** The Constant ProtocolConnections. */ - public static final String ProtocolConnections = "ProtocolConnections"; - - /** The Constant ProtocolConnection. */ - public static final String ProtocolConnection = "ProtocolConnection"; - - /** The Constant EncryptionMethod. */ - public static final String EncryptionMethod = "EncryptionMethod"; - - /** The Constant Hostname. */ - public static final String Hostname = "Hostname"; - - /** The Constant Port. */ - public static final String Port = "Port"; - - /** The Constant Version. */ - public static final String Version = "Version"; - - /** The Constant MajorVersion. */ - public static final String MajorVersion = "MajorVersion"; - - /** The Constant MinorVersion. */ - public static final String MinorVersion = "MinorVersion"; - - /** The Constant MajorBuildNumber. */ - public static final String MajorBuildNumber = "MajorBuildNumber"; - - /** The Constant MinorBuildNumber. */ - public static final String MinorBuildNumber = "MinorBuildNumber"; - - /** The Constant RequestedVersion. */ - public static final String RequestedVersion = "RequestedVersion"; - - /** The Constant PublicFolderServer. */ - public static final String PublicFolderServer = "PublicFolderServer"; - - /** The Constant Ssl. */ - public static final String Ssl = "SSL"; - - /** The Constant SharingUrl. */ - public static final String SharingUrl = "SharingUrl"; - - /** The Constant EcpUrl. */ - public static final String EcpUrl = "EcpUrl"; - - /** The Constant EcpUrl_um. */ - public static final String EcpUrl_um = "EcpUrl-um"; - - /** The Constant EcpUrl_aggr. */ - public static final String EcpUrl_aggr = "EcpUrl-aggr"; - - /** The Constant EcpUrl_sms. */ - public static final String EcpUrl_sms = "EcpUrl-sms"; - - /** The Constant EcpUrl_mt. */ - public static final String EcpUrl_mt = "EcpUrl-mt"; - - /** The Constant EcpUrl_ret. */ - public static final String EcpUrl_ret = "EcpUrl-ret"; - - /** The Constant EcpUrl_publish. */ - public static final String EcpUrl_publish = "EcpUrl-publish"; - - /** The Constant ExchangeRpcUrl. */ - public static final String ExchangeRpcUrl = "ExchangeRpcUrl"; - - /** The Constant PartnerToken. */ - public static final String PartnerToken = "PartnerToken"; - - /** The Constant PartnerTokenReference. */ - public static final String PartnerTokenReference = "PartnerTokenReference"; - - // InboxRule - /** The Constant MinorBuildNumber. */ - public static final String MailboxSmtpAddress = "MailboxSmtpAddress"; - - /** The Constant RuleId. */ - public static final String RuleId = "RuleId"; - - /** The Constant Priority. */ - public static final String Priority = "Priority"; - - /** The Constant IsEnabled. */ - public static final String IsEnabled = "IsEnabled"; - - /** The Constant IsNotSupported. */ - public static final String IsNotSupported = "IsNotSupported"; - - /** The Constant IsInError. */ - public static final String IsInError = "IsInError"; - - /** The Constant Conditions. */ - public static final String Conditions = "Conditions"; - - /** The Constant Exceptions. */ - public static final String Exceptions = "Exceptions"; - - /** The Constant Actions. */ - public static final String Actions = "Actions"; - - /** The Constant InboxRules. */ - public static final String InboxRules = "InboxRules"; - - /** The Constant Rule. */ - public static final String Rule = "Rule"; - - /** The Constant OutlookRuleBlobExists. */ - public static final String OutlookRuleBlobExists = "OutlookRuleBlobExists"; - - /** The Constant RemoveOutlookRuleBlob. */ - public static final String RemoveOutlookRuleBlob = "RemoveOutlookRuleBlob"; - - /** The Constant ContainsBodyStrings. */ - public static final String ContainsBodyStrings = "ContainsBodyStrings"; - - /** The Constant ContainsHeaderStrings. */ - public static final String ContainsHeaderStrings = "ContainsHeaderStrings"; - - /** The Constant ContainsRecipientStrings. */ - public static final String ContainsRecipientStrings = - "ContainsRecipientStrings"; - - /** The Constant ContainsSenderStrings. */ - public static final String ContainsSenderStrings = "ContainsSenderStrings"; - - /** The Constant ContainsSubjectOrBodyStrings. */ - public static final String ContainsSubjectOrBodyStrings = - "ContainsSubjectOrBodyStrings"; - - /** The Constant ContainsSubjectStrings. */ - public static final String ContainsSubjectStrings = - "ContainsSubjectStrings"; - - /** The Constant FlaggedForAction. */ - public static final String FlaggedForAction = "FlaggedForAction"; - - /** The Constant FromAddresses. */ - public static final String FromAddresses = "FromAddresses"; - - /** The Constant FromConnectedAccounts. */ - public static final String FromConnectedAccounts = "FromConnectedAccounts"; - - /** The Constant IsApprovalRequest. */ - public static final String IsApprovalRequest = "IsApprovalRequest"; - - /** The Constant IsAutomaticForward. */ - public static final String IsAutomaticForward = "IsAutomaticForward"; - - /** The Constant IsAutomaticReply. */ - public static final String IsAutomaticReply = "IsAutomaticReply"; - - /** The Constant IsEncrypted. */ - public static final String IsEncrypted = "IsEncrypted"; - - /** The Constant IsMeetingRequest. */ - public static final String IsMeetingRequest = "IsMeetingRequest"; - - /** The Constant IsMeetingResponse. */ - public static final String IsMeetingResponse = "IsMeetingResponse"; - - /** The Constant IsNDR. */ - public static final String IsNDR = "IsNDR"; - - /** The Constant IsPermissionControlled. */ - public static final String IsPermissionControlled = - "IsPermissionControlled"; - - /** The Constant IsSigned. */ - public static final String IsSigned = "IsSigned"; - - /** The Constant IsVoicemail. */ - public static final String IsVoicemail = "IsVoicemail"; - - /** The Constant IsReadReceipt. */ - public static final String IsReadReceipt = "IsReadReceipt"; - - /** The Constant MessageClassifications. */ - public static final String MessageClassifications = - "MessageClassifications"; - - /** The Constant NotSentToMe. */ - public static final String NotSentToMe = "NotSentToMe"; - - /** The Constant SentCcMe. */ - public static final String SentCcMe = "SentCcMe"; - - /** The Constant SentOnlyToMe. */ - public static final String SentOnlyToMe = "SentOnlyToMe"; - - /** The Constant SentToAddresses. */ - public static final String SentToAddresses = "SentToAddresses"; - - /** The Constant SentToMe. */ - public static final String SentToMe = "SentToMe"; - - /** The Constant SentToOrCcMe. */ - public static final String SentToOrCcMe = "SentToOrCcMe"; - - /** The Constant WithinDateRange. */ - public static final String WithinDateRange = "WithinDateRange"; - - /** The Constant WithinSizeRange. */ - public static final String WithinSizeRange = "WithinSizeRange"; - - /** The Constant MinimumSize. */ - public static final String MinimumSize = "MinimumSize"; - - /** The Constant MaximumSize. */ - public static final String MaximumSize = "MaximumSize"; - - /** The Constant StartDateTime. */ - public static final String StartDateTime = "StartDateTime"; - - /** The Constant EndDateTime. */ - public static final String EndDateTime = "EndDateTime"; - - /** The Constant AssignCategories. */ - public static final String AssignCategories = "AssignCategories"; - - /** The Constant CopyToFolder. */ - public static final String CopyToFolder = "CopyToFolder"; - - /** The Constant FlagMessage. */ - public static final String FlagMessage = "FlagMessage"; - - /** The Constant ForwardAsAttachmentToRecipients. */ - public static final String ForwardAsAttachmentToRecipients = - "ForwardAsAttachmentToRecipients"; - - /** The Constant ForwardToRecipients. */ - public static final String ForwardToRecipients = "ForwardToRecipients"; - - /** The Constant MarkImportance. */ - public static final String MarkImportance = "MarkImportance"; - - /** The Constant MarkAsRead. */ - public static final String MarkAsRead = "MarkAsRead"; - - /** The Constant MoveToFolder. */ - public static final String MoveToFolder = "MoveToFolder"; - - /** The Constant PermanentDelete. */ - public static final String PermanentDelete = "PermanentDelete"; - - /** The Constant RedirectToRecipients. */ - public static final String RedirectToRecipients = "RedirectToRecipients"; - - /** The Constant SendSMSAlertToRecipients. */ - public static final String SendSMSAlertToRecipients = - "SendSMSAlertToRecipients"; - - /** The Constant ServerReplyWithMessage. */ - public static final String ServerReplyWithMessage = - "ServerReplyWithMessage"; - - /** The Constant StopProcessingRules. */ - public static final String StopProcessingRules = "StopProcessingRules"; - - /** The Constant CreateRuleOperation. */ - public static final String CreateRuleOperation = "CreateRuleOperation"; - - /** The Constant SetRuleOperation. */ - public static final String SetRuleOperation = "SetRuleOperation"; - - /** The Constant DeleteRuleOperation. */ - public static final String DeleteRuleOperation = "DeleteRuleOperation"; - - /** The Constant Operations. */ - public static final String Operations = "Operations"; - - /** The Constant RuleOperationErrors. */ - public static final String RuleOperationErrors = "RuleOperationErrors"; - - /** The Constant RuleOperationError. */ - public static final String RuleOperationError = "RuleOperationError"; - - /** The Constant OperationIndex. */ - public static final String OperationIndex = "OperationIndex"; - - /** The Constant ValidationErrors. */ - public static final String ValidationErrors = "ValidationErrors"; - - /** The Constant FieldValue. */ - public static final String FieldValue = "FieldValue"; - - // Restrictions - /** The Constant Not. */ - public static final String Not = "Not"; - - /** The Constant Bitmask. */ - public static final String Bitmask = "Bitmask"; - - /** The Constant Constant. */ - public static final String Constant = "Constant"; - - /** The Constant Restriction. */ - public static final String Restriction = "Restriction"; - - /** The Constant Contains. */ - public static final String Contains = "Contains"; - - /** The Constant Excludes. */ - public static final String Excludes = "Excludes"; - - /** The Constant Exists. */ - public static final String Exists = "Exists"; - - /** The Constant FieldURIOrConstant. */ - public static final String FieldURIOrConstant = "FieldURIOrConstant"; - - /** The Constant And. */ - public static final String And = "And"; - - /** The Constant Or. */ - public static final String Or = "Or"; - - /** The Constant IsEqualTo. */ - public static final String IsEqualTo = "IsEqualTo"; - - /** The Constant IsNotEqualTo. */ - public static final String IsNotEqualTo = "IsNotEqualTo"; - - /** The Constant IsGreaterThan. */ - public static final String IsGreaterThan = "IsGreaterThan"; - - /** The Constant IsGreaterThanOrEqualTo. */ - public static final String IsGreaterThanOrEqualTo = - "IsGreaterThanOrEqualTo"; - - /** The Constant IsLessThan. */ - public static final String IsLessThan = "IsLessThan"; - - /** The Constant IsLessThanOrEqualTo. */ - public static final String IsLessThanOrEqualTo = "IsLessThanOrEqualTo"; - - //Directory only contact properties - /** The Constant PhoneticFullName. */ - public static final String PhoneticFullName = "PhoneticFullName"; - - /** The Constant PhoneticFirstName. */ - public static final String PhoneticFirstName = "PhoneticFirstName"; - - /** The Constant PhoneticLastName. */ - public static final String PhoneticLastName = "PhoneticLastName"; - - /** The Constant Alias. */ - public static final String Alias = "Alias"; - - /** The Constant Notes. */ - public static final String Notes = "Notes"; - - /** The Constant Photo. */ - public static final String Photo = "Photo"; - - /** The Constant UserSMIMECertificate. */ - public static final String UserSMIMECertificate = "UserSMIMECertificate"; - - /** The Constant MSExchangeCertificate. */ - public static final String MSExchangeCertificate = "MSExchangeCertificate"; - - /** The Constant DirectoryId. */ - public static final String DirectoryId = "DirectoryId"; - - /** The Constant ManagerMailbox. */ - public static final String ManagerMailbox = "ManagerMailbox"; - - /** The Constant DirectReports. */ - public static final String DirectReports = "DirectReports"; - - // Request/response element names - /** The Constant ResponseMessage. */ - public static final String ResponseMessage = "ResponseMessage"; - - /** The Constant ResponseMessages. */ - public static final String ResponseMessages = "ResponseMessages"; - - // FindConversation - /** The Constant FindConversation. */ - public static final String FindConversation = "FindConversation"; - - /** The Constant FindConversationResponse. */ - public static final String FindConversationResponse = - "FindConversationResponse"; - - /** The Constant FindConversationResponseMessage. */ - public static final String FindConversationResponseMessage = - "FindConversationResponseMessage"; - - // FindItem - /** The Constant FindItem. */ - public static final String FindItem = "FindItem"; - - /** The Constant FindItemResponse. */ - public static final String FindItemResponse = "FindItemResponse"; - - /** The Constant FindItemResponseMessage. */ - public static final String FindItemResponseMessage = - "FindItemResponseMessage"; - - // GetItem - /** The Constant GetItem. */ - public static final String GetItem = "GetItem"; - - /** The Constant GetItemResponse. */ - public static final String GetItemResponse = "GetItemResponse"; - - /** The Constant GetItemResponseMessage. */ - public static final String GetItemResponseMessage = - "GetItemResponseMessage"; - - // CreateItem - /** The Constant CreateItem. */ - public static final String CreateItem = "CreateItem"; - - /** The Constant CreateItemResponse. */ - public static final String CreateItemResponse = "CreateItemResponse"; - - /** The Constant CreateItemResponseMessage. */ - public static final String CreateItemResponseMessage = - "CreateItemResponseMessage"; - - // SendItem - /** The Constant SendItem. */ - public static final String SendItem = "SendItem"; - - /** The Constant SendItemResponse. */ - public static final String SendItemResponse = "SendItemResponse"; - - /** The Constant SendItemResponseMessage. */ - public static final String SendItemResponseMessage = - "SendItemResponseMessage"; - - // DeleteItem - /** The Constant DeleteItem. */ - public static final String DeleteItem = "DeleteItem"; - - /** The Constant DeleteItemResponse. */ - public static final String DeleteItemResponse = "DeleteItemResponse"; - - /** The Constant DeleteItemResponseMessage. */ - public static final String DeleteItemResponseMessage = - "DeleteItemResponseMessage"; - - // UpdateItem - /** The Constant UpdateItem. */ - public static final String UpdateItem = "UpdateItem"; - - /** The Constant UpdateItemResponse. */ - public static final String UpdateItemResponse = "UpdateItemResponse"; - - /** The Constant UpdateItemResponseMessage. */ - public static final String UpdateItemResponseMessage = - "UpdateItemResponseMessage"; - - // CopyItem - /** The Constant CopyItem. */ - public static final String CopyItem = "CopyItem"; - - /** The Constant CopyItemResponse. */ - public static final String CopyItemResponse = "CopyItemResponse"; - - /** The Constant CopyItemResponseMessage. */ - public static final String CopyItemResponseMessage = - "CopyItemResponseMessage"; - - // MoveItem - /** The Constant MoveItem. */ - public static final String MoveItem = "MoveItem"; - - /** The Constant MoveItemResponse. */ - public static final String MoveItemResponse = "MoveItemResponse"; - - /** The Constant MoveItemResponseMessage. */ - public static final String MoveItemResponseMessage = - "MoveItemResponseMessage"; - - // FindFolder - /** The Constant FindFolder. */ - public static final String FindFolder = "FindFolder"; - - /** The Constant FindFolderResponse. */ - public static final String FindFolderResponse = "FindFolderResponse"; - - /** The Constant FindFolderResponseMessage. */ - public static final String FindFolderResponseMessage = - "FindFolderResponseMessage"; - - // GetFolder - /** The Constant GetFolder. */ - public static final String GetFolder = "GetFolder"; - - /** The Constant GetFolderResponse. */ - public static final String GetFolderResponse = "GetFolderResponse"; - - /** The Constant GetFolderResponseMessage. */ - public static final String GetFolderResponseMessage = - "GetFolderResponseMessage"; - - // CreateFolder - /** The Constant CreateFolder. */ - public static final String CreateFolder = "CreateFolder"; - - /** The Constant CreateFolderResponse. */ - public static final String CreateFolderResponse = "CreateFolderResponse"; - - /** The Constant CreateFolderResponseMessage. */ - public static final String CreateFolderResponseMessage = - "CreateFolderResponseMessage"; - - // DeleteFolder - /** The Constant DeleteFolder. */ - public static final String DeleteFolder = "DeleteFolder"; - - /** The Constant DeleteFolderResponse. */ - public static final String DeleteFolderResponse = "DeleteFolderResponse"; - - /** The Constant DeleteFolderResponseMessage. */ - public static final String DeleteFolderResponseMessage = - "DeleteFolderResponseMessage"; - - //EmptyFolder - /** The Constant EmptyFolder. */ - public static final String EmptyFolder = "EmptyFolder"; - - /** The Constant EmptyFolderResponse. */ - public static final String EmptyFolderResponse = "EmptyFolderResponse"; - - /** The Constant EmptyFolderResponseMessage. */ - public static final String EmptyFolderResponseMessage = - "EmptyFolderResponseMessage"; - - // UpdateFolder - /** The Constant UpdateFolder. */ - public static final String UpdateFolder = "UpdateFolder"; - - /** The Constant UpdateFolderResponse. */ - public static final String UpdateFolderResponse = "UpdateFolderResponse"; - - /** The Constant UpdateFolderResponseMessage. */ - public static final String UpdateFolderResponseMessage = - "UpdateFolderResponseMessage"; - - // CopyFolder - /** The Constant CopyFolder. */ - public static final String CopyFolder = "CopyFolder"; - - /** The Constant CopyFolderResponse. */ - public static final String CopyFolderResponse = "CopyFolderResponse"; - - /** The Constant CopyFolderResponseMessage. */ - public static final String CopyFolderResponseMessage = - "CopyFolderResponseMessage"; - - // MoveFolder - /** The Constant MoveFolder. */ - public static final String MoveFolder = "MoveFolder"; - - /** The Constant MoveFolderResponse. */ - public static final String MoveFolderResponse = "MoveFolderResponse"; - - /** The Constant MoveFolderResponseMessage. */ - public static final String MoveFolderResponseMessage = - "MoveFolderResponseMessage"; - - // GetAttachment - /** The Constant GetAttachment. */ - public static final String GetAttachment = "GetAttachment"; - - /** The Constant GetAttachmentResponse. */ - public static final String GetAttachmentResponse = "GetAttachmentResponse"; - - /** The Constant GetAttachmentResponseMessage. */ - public static final String GetAttachmentResponseMessage = - "GetAttachmentResponseMessage"; - - // CreateAttachment - /** The Constant CreateAttachment. */ - public static final String CreateAttachment = "CreateAttachment"; - - /** The Constant CreateAttachmentResponse. */ - public static final String - CreateAttachmentResponse = "CreateAttachmentResponse"; - - /** The Constant CreateAttachmentResponseMessage. */ - public static final String CreateAttachmentResponseMessage = - "CreateAttachmentResponseMessage"; - - // DeleteAttachment - /** The Constant DeleteAttachment. */ - public static final String DeleteAttachment = "DeleteAttachment"; - - /** The Constant DeleteAttachmentResponse. */ - public static final String DeleteAttachmentResponse = - "DeleteAttachmentResponse"; - - /** The Constant DeleteAttachmentResponseMessage. */ - public static final String DeleteAttachmentResponseMessage = - "DeleteAttachmentResponseMessage"; - - // ResolveNames - /** The Constant ResolveNames. */ - public static final String ResolveNames = "ResolveNames"; - - /** The Constant ResolveNamesResponse. */ - public static final String ResolveNamesResponse = "ResolveNamesResponse"; - - /** The Constant ResolveNamesResponseMessage. */ - public static final String ResolveNamesResponseMessage = - "ResolveNamesResponseMessage"; - - // ExpandDL - /** The Constant ExpandDL. */ - public static final String ExpandDL = "ExpandDL"; - - /** The Constant ExpandDLResponse. */ - public static final String ExpandDLResponse = "ExpandDLResponse"; - - /** The Constant ExpandDLResponseMessage. */ - public static final String ExpandDLResponseMessage = - "ExpandDLResponseMessage"; - - // Subscribe - /** The Constant Subscribe. */ - public static final String Subscribe = "Subscribe"; - - /** The Constant SubscribeResponse. */ - public static final String SubscribeResponse = "SubscribeResponse"; - - /** The Constant SubscribeResponseMessage. */ - public static final String SubscribeResponseMessage = - "SubscribeResponseMessage"; - - // Unsubscribe - /** The Constant Unsubscribe. */ - public static final String Unsubscribe = "Unsubscribe"; - - /** The Constant UnsubscribeResponse. */ - public static final String UnsubscribeResponse = "UnsubscribeResponse"; - - /** The Constant UnsubscribeResponseMessage. */ - public static final String UnsubscribeResponseMessage = - "UnsubscribeResponseMessage"; - - // GetEvents - /** The Constant GetEvents. */ - public static final String GetEvents = "GetEvents"; - - /** The Constant GetEventsResponse. */ - public static final String GetEventsResponse = "GetEventsResponse"; - - /** The Constant GetEventsResponseMessage. */ - public static final String GetEventsResponseMessage = - "GetEventsResponseMessage"; - - // GetStreamingEvents - /** The Constant GetStreamingEvents. */ - public static final String GetStreamingEvents = "GetStreamingEvents"; - - /** The Constant GetStreamingEventsResponse. */ - public static final String GetStreamingEventsResponse = - "GetStreamingEventsResponse"; - - /** The Constant GetStreamingEventsResponseMessage. */ - public static final String GetStreamingEventsResponseMessage = - "GetStreamingEventsResponseMessage"; - - /** The Constant ConnectionStatus. */ - public static final String ConnectionStatus = "ConnectionStatus"; - - /** The Constant ErrorSubscriptionIds. */ - public static final String ErrorSubscriptionIds = "ErrorSubscriptionIds"; - - /** The Constant ConnectionTimeout. */ - public static final String ConnectionTimeout = "ConnectionTimeout"; - - /** The Constant HeartbeatFrequency. */ - public static final String HeartbeatFrequency = "HeartbeatFrequency"; - - - // SyncFolderItems - /** The Constant SyncFolderItems. */ - public static final String SyncFolderItems = "SyncFolderItems"; - - /** The Constant SyncFolderItemsResponse. */ - public static final String SyncFolderItemsResponse = - "SyncFolderItemsResponse"; - - /** The Constant SyncFolderItemsResponseMessage. */ - public static final String SyncFolderItemsResponseMessage = - "SyncFolderItemsResponseMessage"; - - // SyncFolderHierarchy - /** The Constant SyncFolderHierarchy. */ - public static final String SyncFolderHierarchy = "SyncFolderHierarchy"; - - /** The Constant SyncFolderHierarchyResponse. */ - public static final String SyncFolderHierarchyResponse = - "SyncFolderHierarchyResponse"; - - /** The Constant SyncFolderHierarchyResponseMessage. */ - public static final String SyncFolderHierarchyResponseMessage = - "SyncFolderHierarchyResponseMessage"; - - // GetUserOofSettings - /** The Constant GetUserOofSettingsRequest. */ - public static final String GetUserOofSettingsRequest = - "GetUserOofSettingsRequest"; - - /** The Constant GetUserOofSettingsResponse. */ - public static final String GetUserOofSettingsResponse = - "GetUserOofSettingsResponse"; - - // SetUserOofSettings - /** The Constant SetUserOofSettingsRequest. */ - public static final String SetUserOofSettingsRequest = - "SetUserOofSettingsRequest"; - - /** The Constant SetUserOofSettingsResponse. */ - public static final String SetUserOofSettingsResponse = - "SetUserOofSettingsResponse"; - - // GetUserAvailability - /** The Constant GetUserAvailabilityRequest. */ - public static final String GetUserAvailabilityRequest = - "GetUserAvailabilityRequest"; - - /** The Constant GetUserAvailabilityResponse. */ - public static final String GetUserAvailabilityResponse = - "GetUserAvailabilityResponse"; - - /** The Constant FreeBusyResponseArray. */ - public static final String FreeBusyResponseArray = "FreeBusyResponseArray"; - - /** The Constant FreeBusyResponse. */ - public static final String FreeBusyResponse = "FreeBusyResponse"; - - /** The Constant SuggestionsResponse. */ - public static final String SuggestionsResponse = "SuggestionsResponse"; - - // GetRoomLists - /** The Constant GetRoomListsRequest. */ - public static final String GetRoomListsRequest = "GetRoomLists"; - - /** The Constant GetRoomListsResponse. */ - public static final String GetRoomListsResponse = "GetRoomListsResponse"; - - // GetRooms - /** The Constant GetRoomsRequest. */ - public static final String GetRoomsRequest = "GetRooms"; - - /** The Constant GetRoomsResponse. */ - public static final String GetRoomsResponse = "GetRoomsResponse"; - - // ConvertId - /** The Constant ConvertId. */ - public static final String ConvertId = "ConvertId"; - - /** The Constant ConvertIdResponse. */ - public static final String ConvertIdResponse = "ConvertIdResponse"; - - /** The Constant ConvertIdResponseMessage. */ - public static final String ConvertIdResponseMessage = - "ConvertIdResponseMessage"; - - // AddDelegate - /** The Constant AddDelegate. */ - public static final String AddDelegate = "AddDelegate"; - - /** The Constant AddDelegateResponse. */ - public static final String AddDelegateResponse = "AddDelegateResponse"; - - /** The Constant DelegateUserResponseMessageType. */ - public static final String DelegateUserResponseMessageType = - "DelegateUserResponseMessageType"; - - // RemoveDelegte - /** The Constant RemoveDelegate. */ - public static final String RemoveDelegate = "RemoveDelegate"; - - /** The Constant RemoveDelegateResponse. */ - public static final String RemoveDelegateResponse = - "RemoveDelegateResponse"; - - // GetDelegate - /** The Constant GetDelegate. */ - public static final String GetDelegate = "GetDelegate"; - - /** The Constant GetDelegateResponse. */ - public static final String GetDelegateResponse = "GetDelegateResponse"; - - // UpdateDelegate - /** The Constant UpdateDelegate. */ - public static final String UpdateDelegate = "UpdateDelegate"; - - /** The Constant UpdateDelegateResponse. */ - public static final String UpdateDelegateResponse = - "UpdateDelegateResponse"; - - // CreateUserConfiguration - /** The Constant CreateUserConfiguration. */ - public static final String CreateUserConfiguration = - "CreateUserConfiguration"; - - /** The Constant CreateUserConfigurationResponse. */ - public static final String CreateUserConfigurationResponse = - "CreateUserConfigurationResponse"; - - /** The Constant CreateUserConfigurationResponseMessage. */ - public static final String CreateUserConfigurationResponseMessage = - "CreateUserConfigurationResponseMessage"; - - // DeleteUserConfiguration - /** The Constant DeleteUserConfiguration. */ - public static final String DeleteUserConfiguration = - "DeleteUserConfiguration"; - - /** The Constant DeleteUserConfigurationResponse. */ - public static final String DeleteUserConfigurationResponse = - "DeleteUserConfigurationResponse"; - - /** The Constant DeleteUserConfigurationResponseMessage. */ - public static final String DeleteUserConfigurationResponseMessage = - "DeleteUserConfigurationResponseMessage"; - - // GetUserConfiguration - /** The Constant GetUserConfiguration. */ - public static final String GetUserConfiguration = "GetUserConfiguration"; - - /** The Constant GetUserConfigurationResponse. */ - public static final String GetUserConfigurationResponse = - "GetUserConfigurationResponse"; - - /** The Constant GetUserConfigurationResponseMessage. */ - public static final String GetUserConfigurationResponseMessage = - "GetUserConfigurationResponseMessage"; - - // UpdateUserConfiguration - /** The Constant UpdateUserConfiguration. */ - public static final String UpdateUserConfiguration = - "UpdateUserConfiguration"; - - /** The Constant UpdateUserConfigurationResponse. */ - public static final String UpdateUserConfigurationResponse = - "UpdateUserConfigurationResponse"; - - /** The Constant UpdateUserConfigurationResponseMessage. */ - public static final String UpdateUserConfigurationResponseMessage = - "UpdateUserConfigurationResponseMessage"; - - // PlayOnPhone - /** The Constant PlayOnPhone. */ - public static final String PlayOnPhone = "PlayOnPhone"; - - /** The Constant PlayOnPhoneResponse. */ - public static final String PlayOnPhoneResponse = "PlayOnPhoneResponse"; - - // GetPhoneCallInformation - /** The Constant GetPhoneCall. */ - public static final String GetPhoneCall = "GetPhoneCallInformation"; - - /** The Constant GetPhoneCallResponse. */ - public static final String GetPhoneCallResponse = - "GetPhoneCallInformationResponse"; - - // DisconnectCall - /** The Constant DisconnectPhoneCall. */ - public static final String DisconnectPhoneCall = "DisconnectPhoneCall"; - - /** The Constant DisconnectPhoneCallResponse. */ - public static final String DisconnectPhoneCallResponse = - "DisconnectPhoneCallResponse"; - - // GetServerTimeZones - /** The Constant GetServerTimeZones. */ - public static final String GetServerTimeZones = "GetServerTimeZones"; - - /** The Constant GetServerTimeZonesResponse. */ - public static final String GetServerTimeZonesResponse = - "GetServerTimeZonesResponse"; - - /** The Constant GetServerTimeZonesResponseMessage. */ - public static final String GetServerTimeZonesResponseMessage = - "GetServerTimeZonesResponseMessage"; - - // GetInboxRules - /** The Constant GetInboxRules. */ - public static final String GetInboxRules = "GetInboxRules"; - - /** The Constant GetInboxRulesResponse. */ - public static final String GetInboxRulesResponse = "GetInboxRulesResponse"; - - // UpdateInboxRules - /** The Constant UpdateInboxRules. */ - public static final String UpdateInboxRules = "UpdateInboxRules"; - - /** The Constant UpdateInboxRulesResponse. */ - public static final String UpdateInboxRulesResponse = - "UpdateInboxRulesResponse"; - - // ExecuteDiagnosticMethod - /** The Constant ExecuteDiagnosticMethod. */ - public static final String ExecuteDiagnosticMethod = - "ExecuteDiagnosticMethod"; - - /** The Constant ExecuteDiagnosticMethodResponse. */ - public static final String ExecuteDiagnosticMethodResponse = - "ExecuteDiagnosticMethodResponse"; - - /** The Constant ExecuteDiagnosticMethodResponseMEssage. */ - public static final String ExecuteDiagnosticMethodResponseMEssage = - "ExecuteDiagnosticMethodResponseMessage"; - - //GetPasswordExpirationDate - /** The Constant GetPasswordExpirationDate. */ - public static final String GetPasswordExpirationDateRequest = "GetPasswordExpirationDate"; - - /** The Constant GetPasswordExpirationDateResponse. */ - public static final String GetPasswordExpirationDateResponse = "GetPasswordExpirationDateResponse"; - - // SOAP element names - - /** The Constant SOAPEnvelopeElementName. */ - public static final String SOAPEnvelopeElementName = "Envelope"; - - /** The Constant SOAPHeaderElementName. */ - public static final String SOAPHeaderElementName = "Header"; - - /** The Constant SOAPBodyElementName. */ - public static final String SOAPBodyElementName = "Body"; - - /** The Constant SOAPFaultElementName. */ - public static final String SOAPFaultElementName = "Fault"; - - /** The Constant SOAPFaultCodeElementName. */ - public static final String SOAPFaultCodeElementName = "faultcode"; - - /** The Constant SOAPFaultStringElementName. */ - public static final String SOAPFaultStringElementName = "faultstring"; - - /** The Constant SOAPFaultActorElementName. */ - public static final String SOAPFaultActorElementName = "faultactor"; - - /** The Constant SOAPDetailElementName. */ - public static final String SOAPDetailElementName = "detail"; - - /** The Constant EwsResponseCodeElementName. */ - public static final String EwsResponseCodeElementName = "ResponseCode"; - - /** The Constant EwsMessageElementName. */ - public static final String EwsMessageElementName = "Message"; - - /** The Constant EwsLineElementName. */ - public static final String EwsLineElementName = "Line"; - - /** The Constant EwsPositionElementName. */ - public static final String EwsPositionElementName = "Position"; - - /** The Constant EwsErrorCodeElementName. */ - public static final String EwsErrorCodeElementName = - "ErrorCode"; // Generated - - - // by - // Availability - /** The Constant EwsExceptionTypeElementName. */ - public static final String EwsExceptionTypeElementName = - "ExceptionType"; // Generated - - // by - // UM + /** + * The Constant AllProperties. + */ + public static final String AllProperties = "AllProperties"; + + /** + * The Constant ParentFolderIds. + */ + public static final String ParentFolderIds = "ParentFolderIds"; + + /** + * The Constant DistinguishedFolderId. + */ + public static final String DistinguishedFolderId = "DistinguishedFolderId"; + + /** + * The Constant ItemId. + */ + public static final String ItemId = "ItemId"; + + /** + * The Constant ItemIds. + */ + public static final String ItemIds = "ItemIds"; + + /** + * The Constant FolderId. + */ + public static final String FolderId = "FolderId"; + + /** + * The Constant FolderIds. + */ + public static final String FolderIds = "FolderIds"; + + /** + * The Constant OccurrenceItemId. + */ + public static final String OccurrenceItemId = "OccurrenceItemId"; + + /** + * The Constant RecurringMasterItemId. + */ + public static final String RecurringMasterItemId = "RecurringMasterItemId"; + + /** + * The Constant ItemShape. + */ + public static final String ItemShape = "ItemShape"; + + /** + * The Constant FolderShape. + */ + public static final String FolderShape = "FolderShape"; + + /** + * The Constant BaseShape. + */ + public static final String BaseShape = "BaseShape"; + + /** + * The Constant IndexedPageItemView. + */ + public static final String IndexedPageItemView = "IndexedPageItemView"; + + /** + * The Constant IndexedPageFolderView. + */ + public static final String IndexedPageFolderView = "IndexedPageFolderView"; + + /** + * The Constant FractionalPageItemView. + */ + public static final String FractionalPageItemView = + "FractionalPageItemView"; + + /** + * The Constant FractionalPageFolderView. + */ + public static final String FractionalPageFolderView = + "FractionalPageFolderView"; + + /** + * The Constant ResponseCode. + */ + public static final String ResponseCode = "ResponseCode"; + + /** + * The Constant RootFolder. + */ + public static final String RootFolder = "RootFolder"; + + /** + * The Constant Folder. + */ + public static final String Folder = "Folder"; + + /** + * The Constant ContactsFolder. + */ + public static final String ContactsFolder = "ContactsFolder"; + + /** + * The Constant TasksFolder. + */ + public static final String TasksFolder = "TasksFolder"; + + /** + * The Constant SearchFolder. + */ + public static final String SearchFolder = "SearchFolder"; + + /** + * The Constant Folders. + */ + public static final String Folders = "Folders"; + + /** + * The Constant Item. + */ + public static final String Item = "Item"; + + /** + * The Constant Items. + */ + public static final String Items = "Items"; + + /** + * The Constant Message. + */ + public static final String Message = "Message"; + + /** + * The Constant Mailbox. + */ + public static final String Mailbox = "Mailbox"; + + /** + * The Constant Body. + */ + public static final String Body = "Body"; + + /** + * The Constant From. + */ + public static final String From = "From"; + + /** + * The Constant Sender. + */ + public static final String Sender = "Sender"; + + /** + * The Constant Name. + */ + public static final String Name = "Name"; + + /** + * The Constant Address. + */ + public static final String Address = "Address"; + + /** + * The Constant EmailAddress. + */ + public static final String EmailAddress = "EmailAddress"; + + /** + * The Constant RoutingType. + */ + public static final String RoutingType = "RoutingType"; + + /** + * The Constant MailboxType. + */ + public static final String MailboxType = "MailboxType"; + + /** + * The Constant ToRecipients. + */ + public static final String ToRecipients = "ToRecipients"; + + /** + * The Constant CcRecipients. + */ + public static final String CcRecipients = "CcRecipients"; + + /** + * The Constant BccRecipients. + */ + public static final String BccRecipients = "BccRecipients"; + + /** + * The Constant ReplyTo. + */ + public static final String ReplyTo = "ReplyTo"; + + /** + * The Constant ConversationTopic. + */ + public static final String ConversationTopic = "ConversationTopic"; + + /** + * The Constant ConversationIndex. + */ + public static final String ConversationIndex = "ConversationIndex"; + + /** + * The Constant IsDeliveryReceiptRequested. + */ + public static final String IsDeliveryReceiptRequested = + "IsDeliveryReceiptRequested"; + + /** + * The Constant IsRead. + */ + public static final String IsRead = "IsRead"; + + /** + * The Constant IsReadReceiptRequested. + */ + public static final String IsReadReceiptRequested = + "IsReadReceiptRequested"; + + /** + * The Constant IsResponseRequested. + */ + public static final String IsResponseRequested = "IsResponseRequested"; + + /** + * The Constant InternetMessageId. + */ + public static final String InternetMessageId = "InternetMessageId"; + + /** + * The Constant References. + */ + public static final String References = "References"; + + /** + * The Constant ParentItemId. + */ + public static final String ParentItemId = "ParentItemId"; + + /** + * The Constant ParentFolderId. + */ + public static final String ParentFolderId = "ParentFolderId"; + + /** + * The Constant ChildFolderCount. + */ + public static final String ChildFolderCount = "ChildFolderCount"; + + /** + * The Constant DisplayName. + */ + public static final String DisplayName = "DisplayName"; + + /** + * The Constant TotalCount. + */ + public static final String TotalCount = "TotalCount"; + + /** + * The Constant ItemClass. + */ + public static final String ItemClass = "ItemClass"; + + /** + * The Constant FolderClass. + */ + public static final String FolderClass = "FolderClass"; + + /** + * The Constant Subject. + */ + public static final String Subject = "Subject"; + + /** + * The Constant MimeContent. + */ + public static final String MimeContent = "MimeContent"; + + /** + * The Constant Sensitivity. + */ + public static final String Sensitivity = "Sensitivity"; + + /** + * The Constant Attachments. + */ + public static final String Attachments = "Attachments"; + + /** + * The Constant DateTimeReceived. + */ + public static final String DateTimeReceived = "DateTimeReceived"; + + /** + * The Constant Size. + */ + public static final String Size = "Size"; + + /** + * The Constant Categories. + */ + public static final String Categories = "Categories"; + + /** + * The Constant Importance. + */ + public static final String Importance = "Importance"; + + /** + * The Constant InReplyTo. + */ + public static final String InReplyTo = "InReplyTo"; + + /** + * The Constant IsSubmitted. + */ + public static final String IsSubmitted = "IsSubmitted"; + + /** + * The Constant IsAssociated. + */ + public static final String IsAssociated = "IsAssociated"; + + /** + * The Constant IsDraft. + */ + public static final String IsDraft = "IsDraft"; + + /** + * The Constant IsFromMe. + */ + public static final String IsFromMe = "IsFromMe"; + + /** + * The Constant IsResend. + */ + public static final String IsResend = "IsResend"; + + /** + * The Constant IsUnmodified. + */ + public static final String IsUnmodified = "IsUnmodified"; + + /** + * The Constant InternetMessageHeader. + */ + public static final String InternetMessageHeader = "InternetMessageHeader"; + + /** + * The Constant InternetMessageHeaders. + */ + public static final String InternetMessageHeaders = + "InternetMessageHeaders"; + + /** + * The Constant DateTimeSent. + */ + public static final String DateTimeSent = "DateTimeSent"; + + /** + * The Constant DateTimeCreated. + */ + public static final String DateTimeCreated = "DateTimeCreated"; + + /** + * The Constant ResponseObjects. + */ + public static final String ResponseObjects = "ResponseObjects"; + + /** + * The Constant ReminderDueBy. + */ + public static final String ReminderDueBy = "ReminderDueBy"; + + /** + * The Constant ReminderIsSet. + */ + public static final String ReminderIsSet = "ReminderIsSet"; + + /** + * The Constant ReminderMinutesBeforeStart. + */ + public static final String ReminderMinutesBeforeStart = + "ReminderMinutesBeforeStart"; + + /** + * The Constant DisplayCc. + */ + public static final String DisplayCc = "DisplayCc"; + + /** + * The Constant DisplayTo. + */ + public static final String DisplayTo = "DisplayTo"; + + /** + * The Constant HasAttachments. + */ + public static final String HasAttachments = "HasAttachments"; + + /** + * The Constant ExtendedProperty. + */ + public static final String ExtendedProperty = "ExtendedProperty"; + + /** + * The Constant Culture. + */ + public static final String Culture = "Culture"; + + /** + * The Constant FileAttachment. + */ + public static final String FileAttachment = "FileAttachment"; + + /** + * The Constant ItemAttachment. + */ + public static final String ItemAttachment = "ItemAttachment"; + + /** + * The Constant AttachmentIds. + */ + public static final String AttachmentIds = "AttachmentIds"; + + /** + * The Constant AttachmentId. + */ + public static final String AttachmentId = "AttachmentId"; + + /** + * The Constant ContentType. + */ + public static final String ContentType = "ContentType"; + + /** + * The Constant ContentLocation. + */ + public static final String ContentLocation = "ContentLocation"; + + /** + * The Constant ContentId. + */ + public static final String ContentId = "ContentId"; + + /** + * The Constant Content. + */ + public static final String Content = "Content"; + + /** + * The Constant SavedItemFolderId. + */ + public static final String SavedItemFolderId = "SavedItemFolderId"; + + /** + * The Constant MessageText. + */ + public static final String MessageText = "MessageText"; + + /** + * The Constant DescriptiveLinkKey. + */ + public static final String DescriptiveLinkKey = "DescriptiveLinkKey"; + + /** + * The Constant ItemChange. + */ + public static final String ItemChange = "ItemChange"; + + /** + * The Constant ItemChanges. + */ + public static final String ItemChanges = "ItemChanges"; + + /** + * The Constant FolderChange. + */ + public static final String FolderChange = "FolderChange"; + + /** + * The Constant FolderChanges. + */ + public static final String FolderChanges = "FolderChanges"; + + /** + * The Constant Updates. + */ + public static final String Updates = "Updates"; + + /** + * The Constant AppendToItemField. + */ + public static final String AppendToItemField = "AppendToItemField"; + + /** + * The Constant SetItemField. + */ + public static final String SetItemField = "SetItemField"; + + /** + * The Constant DeleteItemField. + */ + public static final String DeleteItemField = "DeleteItemField"; + + /** + * The Constant SetFolderField. + */ + public static final String SetFolderField = "SetFolderField"; + + /** + * The Constant DeleteFolderField. + */ + public static final String DeleteFolderField = "DeleteFolderField"; + + /** + * The Constant FieldURI. + */ + public static final String FieldURI = "FieldURI"; + + /** + * The Constant RootItemId. + */ + public static final String RootItemId = "RootItemId"; + + /** + * The Constant ReferenceItemId. + */ + public static final String ReferenceItemId = "ReferenceItemId"; + + /** + * The Constant NewBodyContent. + */ + public static final String NewBodyContent = "NewBodyContent"; + + /** + * The Constant ReplyToItem. + */ + public static final String ReplyToItem = "ReplyToItem"; + + /** + * The Constant ReplyAllToItem. + */ + public static final String ReplyAllToItem = "ReplyAllToItem"; + + /** + * The Constant ForwardItem. + */ + public static final String ForwardItem = "ForwardItem"; + + /** + * The Constant AcceptItem. + */ + public static final String AcceptItem = "AcceptItem"; + + /** + * The Constant TentativelyAcceptItem. + */ + public static final String TentativelyAcceptItem = "TentativelyAcceptItem"; + + /** + * The Constant DeclineItem. + */ + public static final String DeclineItem = "DeclineItem"; + + /** + * The Constant CancelCalendarItem. + */ + public static final String CancelCalendarItem = "CancelCalendarItem"; + + /** + * The Constant RemoveItem. + */ + public static final String RemoveItem = "RemoveItem"; + + /** + * The Constant SuppressReadReceipt. + */ + public static final String SuppressReadReceipt = "SuppressReadReceipt"; + + /** + * The Constant String. + */ + public static final String String = "String"; + + /** + * The Constant Start. + */ + public static final String Start = "Start"; + + /** + * The Constant End. + */ + public static final String End = "End"; + + /** + * The Constant OriginalStart. + */ + public static final String OriginalStart = "OriginalStart"; + + /** + * The Constant IsAllDayEvent. + */ + public static final String IsAllDayEvent = "IsAllDayEvent"; + + /** + * The Constant LegacyFreeBusyStatus. + */ + public static final String LegacyFreeBusyStatus = "LegacyFreeBusyStatus"; + + /** + * The Constant Location. + */ + public static final String Location = "Location"; + + /** + * The Constant When. + */ + public static final String When = "When"; + + /** + * The Constant IsMeeting. + */ + public static final String IsMeeting = "IsMeeting"; + + /** + * The Constant IsCancelled. + */ + public static final String IsCancelled = "IsCancelled"; + + /** + * The Constant IsRecurring. + */ + public static final String IsRecurring = "IsRecurring"; + + /** + * The Constant MeetingRequestWasSent. + */ + public static final String MeetingRequestWasSent = "MeetingRequestWasSent"; + + /** + * The Constant CalendarItemType. + */ + public static final String CalendarItemType = "CalendarItemType"; + + /** + * The Constant MyResponseType. + */ + public static final String MyResponseType = "MyResponseType"; + + /** + * The Constant Organizer. + */ + public static final String Organizer = "Organizer"; + + /** + * The Constant RequiredAttendees. + */ + public static final String RequiredAttendees = "RequiredAttendees"; + + /** + * The Constant OptionalAttendees. + */ + public static final String OptionalAttendees = "OptionalAttendees"; + + /** + * The Constant Resources. + */ + public static final String Resources = "Resources"; + + /** + * The Constant ConflictingMeetingCount. + */ + public static final String ConflictingMeetingCount = + "ConflictingMeetingCount"; + + /** + * The Constant AdjacentMeetingCount. + */ + public static final String AdjacentMeetingCount = "AdjacentMeetingCount"; + + /** + * The Constant ConflictingMeetings. + */ + public static final String ConflictingMeetings = "ConflictingMeetings"; + + /** + * The Constant AdjacentMeetings. + */ + public static final String AdjacentMeetings = "AdjacentMeetings"; + + /** + * The Constant Duration. + */ + public static final String Duration = "Duration"; + + /** + * The Constant TimeZone. + */ + public static final String TimeZone = "TimeZone"; + + /** + * The Constant AppointmentReplyTime. + */ + public static final String AppointmentReplyTime = "AppointmentReplyTime"; + + /** + * The Constant AppointmentSequenceNumber. + */ + public static final String AppointmentSequenceNumber = + "AppointmentSequenceNumber"; + + /** + * The Constant AppointmentState. + */ + public static final String AppointmentState = "AppointmentState"; + + /** + * The Constant Recurrence. + */ + public static final String Recurrence = "Recurrence"; + + /** + * The Constant FirstOccurrence. + */ + public static final String FirstOccurrence = "FirstOccurrence"; + + /** + * The Constant LastOccurrence. + */ + public static final String LastOccurrence = "LastOccurrence"; + + /** + * The Constant ModifiedOccurrences. + */ + public static final String ModifiedOccurrences = "ModifiedOccurrences"; + + /** + * The Constant DeletedOccurrences. + */ + public static final String DeletedOccurrences = "DeletedOccurrences"; + + /** + * The Constant MeetingTimeZone. + */ + public static final String MeetingTimeZone = "MeetingTimeZone"; + + /** + * The Constant ConferenceType. + */ + public static final String ConferenceType = "ConferenceType"; + + /** + * The Constant AllowNewTimeProposal. + */ + public static final String AllowNewTimeProposal = "AllowNewTimeProposal"; + + /** + * The Constant IsOnlineMeeting. + */ + public static final String IsOnlineMeeting = "IsOnlineMeeting"; + + /** + * The Constant MeetingWorkspaceUrl. + */ + public static final String MeetingWorkspaceUrl = "MeetingWorkspaceUrl"; + + /** + * The Constant NetShowUrl. + */ + public static final String NetShowUrl = "NetShowUrl"; + + /** + * The Constant CalendarItem. + */ + public static final String CalendarItem = "CalendarItem"; + + /** + * The Constant CalendarFolder. + */ + public static final String CalendarFolder = "CalendarFolder"; + + /** + * The Constant Attendee. + */ + public static final String Attendee = "Attendee"; + + /** + * The Constant ResponseType. + */ + public static final String ResponseType = "ResponseType"; + + /** + * The Constant LastResponseTime. + */ + public static final String LastResponseTime = "LastResponseTime"; + + /** + * The Constant Occurrence. + */ + public static final String Occurrence = "Occurrence"; + + /** + * The Constant DeletedOccurrence. + */ + public static final String DeletedOccurrence = "DeletedOccurrence"; + + /** + * The Constant RelativeYearlyRecurrence. + */ + public static final String RelativeYearlyRecurrence = + "RelativeYearlyRecurrence"; + + /** + * The Constant AbsoluteYearlyRecurrence. + */ + public static final String AbsoluteYearlyRecurrence = + "AbsoluteYearlyRecurrence"; + + /** + * The Constant RelativeMonthlyRecurrence. + */ + public static final String RelativeMonthlyRecurrence = + "RelativeMonthlyRecurrence"; + + /** + * The Constant AbsoluteMonthlyRecurrence. + */ + public static final String AbsoluteMonthlyRecurrence = + "AbsoluteMonthlyRecurrence"; + + /** + * The Constant WeeklyRecurrence. + */ + public static final String WeeklyRecurrence = "WeeklyRecurrence"; + + /** + * The Constant DailyRecurrence. + */ + public static final String DailyRecurrence = "DailyRecurrence"; + + /** + * The Constant DailyRegeneration. + */ + public static final String DailyRegeneration = "DailyRegeneration"; + + /** + * The Constant WeeklyRegeneration. + */ + public static final String WeeklyRegeneration = "WeeklyRegeneration"; + + /** + * The Constant MonthlyRegeneration. + */ + public static final String MonthlyRegeneration = "MonthlyRegeneration"; + + /** + * The Constant YearlyRegeneration. + */ + public static final String YearlyRegeneration = "YearlyRegeneration"; + + /** + * The Constant NoEndRecurrence. + */ + public static final String NoEndRecurrence = "NoEndRecurrence"; + + /** + * The Constant EndDateRecurrence. + */ + public static final String EndDateRecurrence = "EndDateRecurrence"; + + /** + * The Constant NumberedRecurrence. + */ + public static final String NumberedRecurrence = "NumberedRecurrence"; + + /** + * The Constant Interval. + */ + public static final String Interval = "Interval"; + + /** + * The Constant DayOfMonth. + */ + public static final String DayOfMonth = "DayOfMonth"; + + /** + * The Constant DayOfWeek. + */ + public static final String DayOfWeek = "DayOfWeek"; + + /** + * The Constant DaysOfWeek. + */ + public static final String DaysOfWeek = "DaysOfWeek"; + + /** + * The Constant DayOfWeekIndex. + */ + public static final String DayOfWeekIndex = "DayOfWeekIndex"; + + /** + * The Constant Month. + */ + public static final String Month = "Month"; + + /** + * The Constant StartDate. + */ + public static final String StartDate = "StartDate"; + + /** + * The Constant EndDate. + */ + public static final String EndDate = "EndDate"; + + /** + * The Constant StartTime. + */ + public static final String StartTime = "StartTime"; + + /** + * The Constant EndTime. + */ + public static final String EndTime = "EndTime"; + + /** + * The Constant NumberOfOccurrences. + */ + public static final String NumberOfOccurrences = "NumberOfOccurrences"; + + /** + * The Constant AssociatedCalendarItemId. + */ + public static final String AssociatedCalendarItemId = + "AssociatedCalendarItemId"; + + /** + * The Constant IsDelegated. + */ + public static final String IsDelegated = "IsDelegated"; + + /** + * The Constant IsOutOfDate. + */ + public static final String IsOutOfDate = "IsOutOfDate"; + + /** + * The Constant HasBeenProcessed. + */ + public static final String HasBeenProcessed = "HasBeenProcessed"; + + /** + * The Constant MeetingMessage. + */ + public static final String MeetingMessage = "MeetingMessage"; + + /** + * The Constant FileAs. + */ + public static final String FileAs = "FileAs"; + + /** + * The Constant FileAsMapping. + */ + public static final String FileAsMapping = "FileAsMapping"; + + /** + * The Constant GivenName. + */ + public static final String GivenName = "GivenName"; + + /** + * The Constant Initials. + */ + public static final String Initials = "Initials"; + + /** + * The Constant MiddleName. + */ + public static final String MiddleName = "MiddleName"; + + /** + * The Constant NickName. + */ + public static final String NickName = "Nickname"; + + /** + * The Constant CompleteName. + */ + public static final String CompleteName = "CompleteName"; + + /** + * The Constant CompanyName. + */ + public static final String CompanyName = "CompanyName"; + + /** + * The Constant EmailAddresses. + */ + public static final String EmailAddresses = "EmailAddresses"; + + /** + * The Constant PhysicalAddresses. + */ + public static final String PhysicalAddresses = "PhysicalAddresses"; + + /** + * The Constant PhoneNumbers. + */ + public static final String PhoneNumbers = "PhoneNumbers"; + + /** + * The Constant PhoneNumber. + */ + public static final String PhoneNumber = "PhoneNumber"; + + /** + * The Constant AssistantName. + */ + public static final String AssistantName = "AssistantName"; + + /** + * The Constant Birthday. + */ + public static final String Birthday = "Birthday"; + + /** + * The Constant BusinessHomePage. + */ + public static final String BusinessHomePage = "BusinessHomePage"; + + /** + * The Constant Children. + */ + public static final String Children = "Children"; + + /** + * The Constant Companies. + */ + public static final String Companies = "Companies"; + + /** + * The Constant ContactSource. + */ + public static final String ContactSource = "ContactSource"; + + /** + * The Constant Department. + */ + public static final String Department = "Department"; + + /** + * The Constant Generation. + */ + public static final String Generation = "Generation"; + + /** + * The Constant ImAddresses. + */ + public static final String ImAddresses = "ImAddresses"; + + /** + * The Constant ImAddress. + */ + public static final String ImAddress = "ImAddress"; + + /** + * The Constant JobTitle. + */ + public static final String JobTitle = "JobTitle"; + + /** + * The Constant Manager. + */ + public static final String Manager = "Manager"; + + /** + * The Constant Mileage. + */ + public static final String Mileage = "Mileage"; + + /** + * The Constant OfficeLocation. + */ + public static final String OfficeLocation = "OfficeLocation"; + + /** + * The Constant PostalAddressIndex. + */ + public static final String PostalAddressIndex = "PostalAddressIndex"; + + /** + * The Constant Profession. + */ + public static final String Profession = "Profession"; + + /** + * The Constant SpouseName. + */ + public static final String SpouseName = "SpouseName"; + + /** + * The Constant Surname. + */ + public static final String Surname = "Surname"; + + /** + * The Constant WeddingAnniversary. + */ + public static final String WeddingAnniversary = "WeddingAnniversary"; + + /** + * The Constant HasPicture. + */ + public static final String HasPicture = "HasPicture"; + + /** + * The Constant Title. + */ + public static final String Title = "Title"; + + /** + * The Constant FirstName. + */ + public static final String FirstName = "FirstName"; + + /** + * The Constant LastName. + */ + public static final String LastName = "LastName"; + + /** + * The Constant Suffix. + */ + public static final String Suffix = "Suffix"; + + /** + * The Constant FullName. + */ + public static final String FullName = "FullName"; + + /** + * The Constant YomiFirstName. + */ + public static final String YomiFirstName = "YomiFirstName"; + + /** + * The Constant YomiLastName. + */ + public static final String YomiLastName = "YomiLastName"; + + /** + * The Constant Contact. + */ + public static final String Contact = "Contact"; + + /** + * The Constant Entry. + */ + public static final String Entry = "Entry"; + + /** + * The Constant Street. + */ + public static final String Street = "Street"; + + /** + * The Constant City. + */ + public static final String City = "City"; + + /** + * The Constant State. + */ + public static final String State = "State"; + + /** + * The Constant CountryOrRegion. + */ + public static final String CountryOrRegion = "CountryOrRegion"; + + /** + * The Constant PostalCode. + */ + public static final String PostalCode = "PostalCode"; + + /** + * The Constant Members. + */ + public static final String Members = "Members"; + + /** + * The Constant Member. + */ + public static final String Member = "Member"; + + /** + * The Constant AdditionalProperties. + */ + public static final String AdditionalProperties = "AdditionalProperties"; + + /** + * The Constant ExtendedFieldURI. + */ + public static final String ExtendedFieldURI = "ExtendedFieldURI"; + + /** + * The Constant Value. + */ + public static final String Value = "Value"; + + /** + * The Constant Values. + */ + public static final String Values = "Values"; + + /** + * The Constant ToFolderId. + */ + public static final String ToFolderId = "ToFolderId"; + + /** + * The Constant ActualWork. + */ + public static final String ActualWork = "ActualWork"; + + /** + * The Constant AssignedTime. + */ + public static final String AssignedTime = "AssignedTime"; + + /** + * The Constant BillingInformation. + */ + public static final String BillingInformation = "BillingInformation"; + + /** + * The Constant ChangeCount. + */ + public static final String ChangeCount = "ChangeCount"; + + /** + * The Constant CompleteDate. + */ + public static final String CompleteDate = "CompleteDate"; + + /** + * The Constant Contacts. + */ + public static final String Contacts = "Contacts"; + + /** + * The Constant DelegationState. + */ + public static final String DelegationState = "DelegationState"; + + /** + * The Constant Delegator. + */ + public static final String Delegator = "Delegator"; + + /** + * The Constant DueDate. + */ + public static final String DueDate = "DueDate"; + + /** + * The Constant IsAssignmentEditable. + */ + public static final String IsAssignmentEditable = "IsAssignmentEditable"; + + /** + * The Constant IsComplete. + */ + public static final String IsComplete = "IsComplete"; + + /** + * The Constant IsTeamTask. + */ + public static final String IsTeamTask = "IsTeamTask"; + + /** + * The Constant Owner. + */ + public static final String Owner = "Owner"; + + /** + * The Constant PercentComplete. + */ + public static final String PercentComplete = "PercentComplete"; + + /** + * The Constant Status. + */ + public static final String Status = "Status"; + + /** + * The Constant StatusDescription. + */ + public static final String StatusDescription = "StatusDescription"; + + /** + * The Constant TotalWork. + */ + public static final String TotalWork = "TotalWork"; + + /** + * The Constant Task. + */ + public static final String Task = "Task"; + + /** + * The Constant MailboxCulture. + */ + public static final String MailboxCulture = "MailboxCulture"; + + /** + * The Constant MeetingRequestType. + */ + public static final String MeetingRequestType = "MeetingRequestType"; + + /** + * The Constant IntendedFreeBusyStatus. + */ + public static final String IntendedFreeBusyStatus = + "IntendedFreeBusyStatus"; + + /** + * The Constant MeetingRequest. + */ + public static final String MeetingRequest = "MeetingRequest"; + + /** + * The Constant MeetingResponse. + */ + public static final String MeetingResponse = "MeetingResponse"; + + /** + * The Constant MeetingCancellation. + */ + public static final String MeetingCancellation = "MeetingCancellation"; + + /** + * The Constant BaseOffset. + */ + public static final String BaseOffset = "BaseOffset"; + + /** + * The Constant Offset. + */ + public static final String Offset = "Offset"; + + /** + * The Constant Standard. + */ + public static final String Standard = "Standard"; + + /** + * The Constant Daylight. + */ + public static final String Daylight = "Daylight"; + + /** + * The Constant Time. + */ + public static final String Time = "Time"; + + /** + * The Constant AbsoluteDate. + */ + public static final String AbsoluteDate = "AbsoluteDate"; + + /** + * The Constant UnresolvedEntry. + */ + public static final String UnresolvedEntry = "UnresolvedEntry"; + + /** + * The Constant ResolutionSet. + */ + public static final String ResolutionSet = "ResolutionSet"; + + /** + * The Constant Resolution. + */ + public static final String Resolution = "Resolution"; + + /** + * The Constant DistributionList. + */ + public static final String DistributionList = "DistributionList"; + + /** + * The Constant DLExpansion. + */ + public static final String DLExpansion = "DLExpansion"; + + /** + * The Constant IndexedFieldURI. + */ + public static final String IndexedFieldURI = "IndexedFieldURI"; + + /** + * The Constant PullSubscriptionRequest. + */ + public static final String PullSubscriptionRequest = + "PullSubscriptionRequest"; + + /** + * The Constant PushSubscriptionRequest. + */ + public static final String PushSubscriptionRequest = + "PushSubscriptionRequest"; + + /** + * The Constant StreamingSubscriptionRequest. + */ + public static final String StreamingSubscriptionRequest = + "StreamingSubscriptionRequest"; + /** + * The Constant EventTypes. + */ + public static final String EventTypes = "EventTypes"; + + /** + * The Constant EventType. + */ + public static final String EventType = "EventType"; + + /** + * The Constant Timeout. + */ + public static final String Timeout = "Timeout"; + + /** + * The Constant Watermark. + */ + public static final String Watermark = "Watermark"; + + /** + * The Constant SubscriptionId. + */ + public static final String SubscriptionId = "SubscriptionId"; + + /** + * The Constant SubscriptionId. + */ + public static final String SubscriptionIds = "SubscriptionIds"; + + /** + * The Constant StatusFrequency. + */ + public static final String StatusFrequency = "StatusFrequency"; + + /** + * The Constant URL. + */ + public static final String URL = "URL"; + + /** + * The Constant Notification. + */ + public static final String Notification = "Notification"; + + /** + * The Constant Notifications. + */ + public static final String Notifications = "Notifications"; + + /** + * The Constant PreviousWatermark. + */ + public static final String PreviousWatermark = "PreviousWatermark"; + + /** + * The Constant MoreEvents. + */ + public static final String MoreEvents = "MoreEvents"; + + /** + * The Constant TimeStamp. + */ + public static final String TimeStamp = "TimeStamp"; + + /** + * The Constant UnreadCount. + */ + public static final String UnreadCount = "UnreadCount"; + + /** + * The Constant OldParentFolderId. + */ + public static final String OldParentFolderId = "OldParentFolderId"; + + /** + * The Constant CopiedEvent. + */ + public static final String CopiedEvent = "CopiedEvent"; + + /** + * The Constant CreatedEvent. + */ + public static final String CreatedEvent = "CreatedEvent"; + + /** + * The Constant DeletedEvent. + */ + public static final String DeletedEvent = "DeletedEvent"; + + /** + * The Constant ModifiedEvent. + */ + public static final String ModifiedEvent = "ModifiedEvent"; + + /** + * The Constant MovedEvent. + */ + public static final String MovedEvent = "MovedEvent"; + + /** + * The Constant NewMailEvent. + */ + public static final String NewMailEvent = "NewMailEvent"; + + /** + * The Constant StatusEvent. + */ + public static final String StatusEvent = "StatusEvent"; + + /** + * The Constant FreeBusyChangedEvent. + */ + public static final String FreeBusyChangedEvent = "FreeBusyChangedEvent"; + + /** + * The Constant ExchangeImpersonation. + */ + public static final String ExchangeImpersonation = "ExchangeImpersonation"; + + /** + * The Constant ConnectingSID. + */ + public static final String ConnectingSID = "ConnectingSID"; + + /** + * The Constant SyncFolderId. + */ + public static final String SyncFolderId = "SyncFolderId"; + + /** + * The Constant SyncScope. + */ + public static final String SyncScope = "SyncScope"; + + /** + * The Constant SyncState. + */ + public static final String SyncState = "SyncState"; + + /** + * The Constant Ignore. + */ + public static final String Ignore = "Ignore"; + + /** + * The Constant MaxChangesReturned. + */ + public static final String MaxChangesReturned = "MaxChangesReturned"; + + /** + * The Constant Changes. + */ + public static final String Changes = "Changes"; + + /** + * The Constant IncludesLastItemInRange. + */ + public static final String IncludesLastItemInRange = + "IncludesLastItemInRange"; + + /** + * The Constant IncludesLastFolderInRange. + */ + public static final String IncludesLastFolderInRange = + "IncludesLastFolderInRange"; + + /** + * The Constant Create. + */ + public static final String Create = "Create"; + + /** + * The Constant Update. + */ + public static final String Update = "Update"; + + /** + * The Constant Delete. + */ + public static final String Delete = "Delete"; + + /** + * The Constant ReadFlagChange. + */ + public static final String ReadFlagChange = "ReadFlagChange"; + + /** + * The Constant SearchParameters. + */ + public static final String SearchParameters = "SearchParameters"; + + /** + * The Constant SoftDeleted. + */ + public static final String SoftDeleted = "SoftDeleted"; + + /** + * The Constant Shallow. + */ + public static final String Shallow = "Shallow"; + + /** + * The Constant Associated. + */ + public static final String Associated = "Associated"; + + /** + * The Constant BaseFolderIds. + */ + public static final String BaseFolderIds = "BaseFolderIds"; + + /** + * The Constant SortOrder. + */ + public static final String SortOrder = "SortOrder"; + + /** + * The Constant FieldOrder. + */ + public static final String FieldOrder = "FieldOrder"; + + /** + * The Constant CanDelete. + */ + public static final String CanDelete = "CanDelete"; + + /** + * The Constant CanRenameOrMove. + */ + public static final String CanRenameOrMove = "CanRenameOrMove"; + + /** + * The Constant MustDisplayComment. + */ + public static final String MustDisplayComment = "MustDisplayComment"; + + /** + * The Constant HasQuota. + */ + public static final String HasQuota = "HasQuota"; + + /** + * The Constant IsManagedFoldersRoot. + */ + public static final String IsManagedFoldersRoot = "IsManagedFoldersRoot"; + + /** + * The Constant ManagedFolderId. + */ + public static final String ManagedFolderId = "ManagedFolderId"; + + /** + * The Constant Comment. + */ + public static final String Comment = "Comment"; + + /** + * The Constant StorageQuota. + */ + public static final String StorageQuota = "StorageQuota"; + + /** + * The Constant FolderSize. + */ + public static final String FolderSize = "FolderSize"; + + /** + * The Constant HomePage. + */ + public static final String HomePage = "HomePage"; + + /** + * The Constant ManagedFolderInformation. + */ + public static final String ManagedFolderInformation = + "ManagedFolderInformation"; + + /** + * The Constant CalendarView. + */ + public static final String CalendarView = "CalendarView"; + + /** + * The Constant PostedTime. + */ + public static final String PostedTime = "PostedTime"; + + /** + * The Constant PostItem. + */ + public static final String PostItem = "PostItem"; + + /** + * The Constant RequestServerVersion. + */ + public static final String RequestServerVersion = "RequestServerVersion"; + + /** + * The Constant PostReplyItem. + */ + public static final String PostReplyItem = "PostReplyItem"; + + /** + * The Constant CreateAssociated. + */ + public static final String CreateAssociated = "CreateAssociated"; + + /** + * The Constant CreateContents. + */ + public static final String CreateContents = "CreateContents"; + + /** + * The Constant CreateHierarchy. + */ + public static final String CreateHierarchy = "CreateHierarchy"; + + /** + * The Constant Modify. + */ + public static final String Modify = "Modify"; + + /** + * The Constant Read. + */ + public static final String Read = "Read"; + + /** + * The Constant EffectiveRights. + */ + public static final String EffectiveRights = "EffectiveRights"; + + /** + * The Constant LastModifiedName. + */ + public static final String LastModifiedName = "LastModifiedName"; + + /** + * The Constant LastModifiedTime. + */ + public static final String LastModifiedTime = "LastModifiedTime"; + + /** + * The Constant ConversationId. + */ + public static final String ConversationId = "ConversationId"; + + /** + * The Constant UniqueBody. + */ + public static final String UniqueBody = "UniqueBody"; + + /** + * The Constant BodyType. + */ + public static final String BodyType = "BodyType"; + + /** + * The Constant AttachmentShape. + */ + public static final String AttachmentShape = "AttachmentShape"; + + /** + * The Constant UserId. + */ + public static final String UserId = "UserId"; + + /** + * The Constant UserIds. + */ + public static final String UserIds = "UserIds"; + + /** + * The Constant CanCreateItems. + */ + public static final String CanCreateItems = "CanCreateItems"; + + /** + * The Constant CanCreateSubFolders. + */ + public static final String CanCreateSubFolders = "CanCreateSubFolders"; + + /** + * The Constant IsFolderOwner. + */ + public static final String IsFolderOwner = "IsFolderOwner"; + + /** + * The Constant IsFolderVisible. + */ + public static final String IsFolderVisible = "IsFolderVisible"; + + /** + * The Constant IsFolderContact. + */ + public static final String IsFolderContact = "IsFolderContact"; + + /** + * The Constant EditItems. + */ + public static final String EditItems = "EditItems"; + + /** + * The Constant DeleteItems. + */ + public static final String DeleteItems = "DeleteItems"; + + /** + * The Constant ReadItems. + */ + public static final String ReadItems = "ReadItems"; + + /** + * The Constant PermissionLevel. + */ + public static final String PermissionLevel = "PermissionLevel"; + + /** + * The Constant CalendarPermissionLevel. + */ + public static final String CalendarPermissionLevel = + "CalendarPermissionLevel"; + + /** + * The Constant SID. + */ + public static final String SID = "SID"; + + /** + * The Constant PrimarySmtpAddress. + */ + public static final String PrimarySmtpAddress = "PrimarySmtpAddress"; + + /** + * The Constant DistinguishedUser. + */ + public static final String DistinguishedUser = "DistinguishedUser"; + + /** + * The Constant PermissionSet. + */ + public static final String PermissionSet = "PermissionSet"; + + /** + * The Constant Permissions. + */ + public static final String Permissions = "Permissions"; + + /** + * The Constant Permission. + */ + public static final String Permission = "Permission"; + + /** + * The Constant CalendarPermissions. + */ + public static final String CalendarPermissions = "CalendarPermissions"; + + /** + * The Constant CalendarPermission. + */ + public static final String CalendarPermission = "CalendarPermission"; + + /** + * The Constant GroupBy. + */ + public static final String GroupBy = "GroupBy"; + + /** + * The Constant AggregateOn. + */ + public static final String AggregateOn = "AggregateOn"; + + /** + * The Constant Groups. + */ + public static final String Groups = "Groups"; + + /** + * The Constant GroupedItems. + */ + public static final String GroupedItems = "GroupedItems"; + + /** + * The Constant GroupIndex. + */ + public static final String GroupIndex = "GroupIndex"; + + /** + * The Constant ConflictResults. + */ + public static final String ConflictResults = "ConflictResults"; + + /** + * The Constant Count. + */ + public static final String Count = "Count"; + + /** + * The Constant OofSettings. + */ + public static final String OofSettings = "OofSettings"; + + /** + * The Constant UserOofSettings. + */ + public static final String UserOofSettings = "UserOofSettings"; + + /** + * The Constant OofState. + */ + public static final String OofState = "OofState"; + + /** + * The Constant ExternalAudience. + */ + public static final String ExternalAudience = "ExternalAudience"; + + /** + * The Constant AllowExternalOof. + */ + public static final String AllowExternalOof = "AllowExternalOof"; + + /** + * The Constant InternalReply. + */ + public static final String InternalReply = "InternalReply"; + + /** + * The Constant ExternalReply. + */ + public static final String ExternalReply = "ExternalReply"; + + /** + * The Constant Bias. + */ + public static final String Bias = "Bias"; + + /** + * The Constant DayOrder. + */ + public static final String DayOrder = "DayOrder"; + + /** + * The Constant Year. + */ + public static final String Year = "Year"; + + /** + * The Constant StandardTime. + */ + public static final String StandardTime = "StandardTime"; + + /** + * The Constant DaylightTime. + */ + public static final String DaylightTime = "DaylightTime"; + + /** + * The Constant MailboxData. + */ + public static final String MailboxData = "MailboxData"; + + /** + * The Constant MailboxDataArray. + */ + public static final String MailboxDataArray = "MailboxDataArray"; + + /** + * The Constant Email. + */ + public static final String Email = "Email"; + + /** + * The Constant AttendeeType. + */ + public static final String AttendeeType = "AttendeeType"; + + /** + * The Constant ExcludeConflicts. + */ + public static final String ExcludeConflicts = "ExcludeConflicts"; + + /** + * The Constant FreeBusyViewOptions. + */ + public static final String FreeBusyViewOptions = "FreeBusyViewOptions"; + + /** + * The Constant SuggestionsViewOptions. + */ + public static final String SuggestionsViewOptions = + "SuggestionsViewOptions"; + + /** + * The Constant FreeBusyView. + */ + public static final String FreeBusyView = "FreeBusyView"; + + /** + * The Constant TimeWindow. + */ + public static final String TimeWindow = "TimeWindow"; + + /** + * The Constant MergedFreeBusyIntervalInMinutes. + */ + public static final String MergedFreeBusyIntervalInMinutes = + "MergedFreeBusyIntervalInMinutes"; + + /** + * The Constant RequestedView. + */ + public static final String RequestedView = "RequestedView"; + + /** + * The Constant FreeBusyViewType. + */ + public static final String FreeBusyViewType = "FreeBusyViewType"; + + /** + * The Constant CalendarEventArray. + */ + public static final String CalendarEventArray = "CalendarEventArray"; + + /** + * The Constant CalendarEvent. + */ + public static final String CalendarEvent = "CalendarEvent"; + + /** + * The Constant BusyType. + */ + public static final String BusyType = "BusyType"; + + /** + * The Constant MergedFreeBusy. + */ + public static final String MergedFreeBusy = "MergedFreeBusy"; + + /** + * The Constant WorkingHours. + */ + public static final String WorkingHours = "WorkingHours"; + + /** + * The Constant WorkingPeriodArray. + */ + public static final String WorkingPeriodArray = "WorkingPeriodArray"; + + /** + * The Constant WorkingPeriod. + */ + public static final String WorkingPeriod = "WorkingPeriod"; + + /** + * The Constant StartTimeInMinutes. + */ + public static final String StartTimeInMinutes = "StartTimeInMinutes"; + + /** + * The Constant EndTimeInMinutes. + */ + public static final String EndTimeInMinutes = "EndTimeInMinutes"; + + /** + * The Constant GoodThreshold. + */ + public static final String GoodThreshold = "GoodThreshold"; + + /** + * The Constant MaximumResultsByDay. + */ + public static final String MaximumResultsByDay = "MaximumResultsByDay"; + + /** + * The Constant MaximumNonWorkHourResultsByDay. + */ + public static final String MaximumNonWorkHourResultsByDay = + "MaximumNonWorkHourResultsByDay"; + + /** + * The Constant MeetingDurationInMinutes. + */ + public static final String MeetingDurationInMinutes = + "MeetingDurationInMinutes"; + + /** + * The Constant MinimumSuggestionQuality. + */ + public static final String MinimumSuggestionQuality = + "MinimumSuggestionQuality"; + + /** + * The Constant DetailedSuggestionsWindow. + */ + public static final String DetailedSuggestionsWindow = + "DetailedSuggestionsWindow"; + + /** + * The Constant CurrentMeetingTime. + */ + public static final String CurrentMeetingTime = "CurrentMeetingTime"; + + /** + * The Constant GlobalObjectId. + */ + public static final String GlobalObjectId = "GlobalObjectId"; + + /** + * The Constant SuggestionDayResultArray. + */ + public static final String SuggestionDayResultArray = + "SuggestionDayResultArray"; + + /** + * The Constant SuggestionDayResult. + */ + public static final String SuggestionDayResult = "SuggestionDayResult"; + + /** + * The Constant Date. + */ + public static final String Date = "Date"; + + /** + * The Constant DayQuality. + */ + public static final String DayQuality = "DayQuality"; + + /** + * The Constant SuggestionArray. + */ + public static final String SuggestionArray = "SuggestionArray"; + + /** + * The Constant Suggestion. + */ + public static final String Suggestion = "Suggestion"; + + /** + * The Constant MeetingTime. + */ + public static final String MeetingTime = "MeetingTime"; + + /** + * The Constant IsWorkTime. + */ + public static final String IsWorkTime = "IsWorkTime"; + + /** + * The Constant SuggestionQuality. + */ + public static final String SuggestionQuality = "SuggestionQuality"; + + /** + * The Constant AttendeeConflictDataArray. + */ + public static final String AttendeeConflictDataArray = + "AttendeeConflictDataArray"; + + /** + * The Constant UnknownAttendeeConflictData. + */ + public static final String UnknownAttendeeConflictData = + "UnknownAttendeeConflictData"; + + /** + * The Constant TooBigGroupAttendeeConflictData. + */ + public static final String TooBigGroupAttendeeConflictData = + "TooBigGroupAttendeeConflictData"; + + /** + * The Constant IndividualAttendeeConflictData. + */ + public static final String IndividualAttendeeConflictData = + "IndividualAttendeeConflictData"; + + /** + * The Constant GroupAttendeeConflictData. + */ + public static final String GroupAttendeeConflictData = + "GroupAttendeeConflictData"; + + /** + * The Constant NumberOfMembers. + */ + public static final String NumberOfMembers = "NumberOfMembers"; + + /** + * The Constant NumberOfMembersAvailable. + */ + public static final String NumberOfMembersAvailable = + "NumberOfMembersAvailable"; + + /** + * The Constant NumberOfMembersWithConflict. + */ + public static final String NumberOfMembersWithConflict = + "NumberOfMembersWithConflict"; + + /** + * The Constant NumberOfMembersWithNoData. + */ + public static final String NumberOfMembersWithNoData = + "NumberOfMembersWithNoData"; + + /** + * The Constant SourceIds. + */ + public static final String SourceIds = "SourceIds"; + + /** + * The Constant AlternateId. + */ + public static final String AlternateId = "AlternateId"; + + /** + * The Constant AlternatePublicFolderId. + */ + public static final String AlternatePublicFolderId = + "AlternatePublicFolderId"; + + /** + * The Constant AlternatePublicFolderItemId. + */ + public static final String AlternatePublicFolderItemId = + "AlternatePublicFolderItemId"; + + /** + * The Constant DelegatePermissions. + */ + public static final String DelegatePermissions = "DelegatePermissions"; + + /** + * The Constant ReceiveCopiesOfMeetingMessages. + */ + public static final String ReceiveCopiesOfMeetingMessages = + "ReceiveCopiesOfMeetingMessages"; + + /** + * The Constant ViewPrivateItems. + */ + public static final String ViewPrivateItems = "ViewPrivateItems"; + + /** + * The Constant CalendarFolderPermissionLevel. + */ + public static final String CalendarFolderPermissionLevel = + "CalendarFolderPermissionLevel"; + + /** + * The Constant TasksFolderPermissionLevel. + */ + public static final String TasksFolderPermissionLevel = + "TasksFolderPermissionLevel"; + + /** + * The Constant InboxFolderPermissionLevel. + */ + public static final String InboxFolderPermissionLevel = + "InboxFolderPermissionLevel"; + + /** + * The Constant ContactsFolderPermissionLevel. + */ + public static final String ContactsFolderPermissionLevel = + "ContactsFolderPermissionLevel"; + + /** + * The Constant NotesFolderPermissionLevel. + */ + public static final String NotesFolderPermissionLevel = + "NotesFolderPermissionLevel"; + + /** + * The Constant JournalFolderPermissionLevel. + */ + public static final String JournalFolderPermissionLevel = + "JournalFolderPermissionLevel"; + + /** + * The Constant DelegateUser. + */ + public static final String DelegateUser = "DelegateUser"; + + /** + * The Constant DelegateUsers. + */ + public static final String DelegateUsers = "DelegateUsers"; + + /** + * The Constant DeliverMeetingRequests. + */ + public static final String DeliverMeetingRequests = + "DeliverMeetingRequests"; + + /** + * The Constant MessageXml. + */ + public static final String MessageXml = "MessageXml"; + + /** + * The Constant UserConfiguration. + */ + public static final String UserConfiguration = "UserConfiguration"; + + /** + * The Constant UserConfigurationName. + */ + public static final String UserConfigurationName = "UserConfigurationName"; + + /** + * The Constant UserConfigurationProperties. + */ + public static final String UserConfigurationProperties = + "UserConfigurationProperties"; + + /** + * The Constant Dictionary. + */ + public static final String Dictionary = "Dictionary"; + + /** + * The Constant DictionaryEntry. + */ + public static final String DictionaryEntry = "DictionaryEntry"; + + /** + * The Constant DictionaryKey. + */ + public static final String DictionaryKey = "DictionaryKey"; + + /** + * The Constant DictionaryValue. + */ + public static final String DictionaryValue = "DictionaryValue"; + + /** + * The Constant XmlData. + */ + public static final String XmlData = "XmlData"; + + /** + * The Constant BinaryData. + */ + public static final String BinaryData = "BinaryData"; + + /** + * The Constant FilterHtmlContent. + */ + public static final String FilterHtmlContent = "FilterHtmlContent"; + + /** + * The Constant ConvertHtmlCodePageToUTF8. + */ + public static final String ConvertHtmlCodePageToUTF8 = + "ConvertHtmlCodePageToUTF8"; + + /** + * The Constant UnknownEntries. + */ + public static final String UnknownEntries = "UnknownEntries"; + + /** + * The Constant UnknownEntry. + */ + public static final String UnknownEntry = "UnknownEntry"; + + /** + * The Constant PhoneCallId. + */ + public static final String PhoneCallId = "PhoneCallId"; + + /** + * The Constant DialString. + */ + public static final String DialString = "DialString"; + + /** + * The Constant PhoneCallInformation. + */ + public static final String PhoneCallInformation = "PhoneCallInformation"; + + /** + * The Constant PhoneCallState. + */ + public static final String PhoneCallState = "PhoneCallState"; + + /** + * The Constant ConnectionFailureCause. + */ + public static final String ConnectionFailureCause = + "ConnectionFailureCause"; + + /** + * The Constant SIPResponseCode. + */ + public static final String SIPResponseCode = "SIPResponseCode"; + + /** + * The Constant SIPResponseText. + */ + public static final String SIPResponseText = "SIPResponseText"; + + /** + * The Constant WebClientReadFormQueryString. + */ + public static final String WebClientReadFormQueryString = + "WebClientReadFormQueryString"; + + /** + * The Constant WebClientEditFormQueryString. + */ + public static final String WebClientEditFormQueryString = + "WebClientEditFormQueryString"; + + /** + * The Constant Ids. + */ + public static final String Ids = "Ids"; + + /** + * The Constant Id. + */ + public static final String Id = "Id"; + + /** + * The Constant TimeZoneDefinitions. + */ + public static final String TimeZoneDefinitions = "TimeZoneDefinitions"; + + /** + * The Constant TimeZoneDefinition. + */ + public static final String TimeZoneDefinition = "TimeZoneDefinition"; + + /** + * The Constant Periods. + */ + public static final String Periods = "Periods"; + + /** + * The Constant Period. + */ + public static final String Period = "Period"; + + /** + * The Constant TransitionsGroups. + */ + public static final String TransitionsGroups = "TransitionsGroups"; + + /** + * The Constant TransitionsGroup. + */ + public static final String TransitionsGroup = "TransitionsGroup"; + + /** + * The Constant Transitions. + */ + public static final String Transitions = "Transitions"; + + /** + * The Constant Transition. + */ + public static final String Transition = "Transition"; + + /** + * The Constant AbsoluteDateTransition. + */ + public static final String AbsoluteDateTransition = + "AbsoluteDateTransition"; + + /** + * The Constant RecurringDayTransition. + */ + public static final String RecurringDayTransition = + "RecurringDayTransition"; + + /** + * The Constant RecurringDateTransition. + */ + public static final String RecurringDateTransition = + "RecurringDateTransition"; + + /** + * The Constant DateTime. + */ + public static final String DateTime = "DateTime"; + + /** + * The Constant TimeOffset. + */ + public static final String TimeOffset = "TimeOffset"; + + /** + * The Constant Day. + */ + public static final String Day = "Day"; + + /** + * The Constant TimeZoneContext. + */ + public static final String TimeZoneContext = "TimeZoneContext"; + + /** + * The Constant StartTimeZone. + */ + public static final String StartTimeZone = "StartTimeZone"; + + /** + * The Constant EndTimeZone. + */ + public static final String EndTimeZone = "EndTimeZone"; + + /** + * The Constant ReceivedBy. + */ + public static final String ReceivedBy = "ReceivedBy"; + + /** + * The Constant ReceivedRepresenting. + */ + public static final String ReceivedRepresenting = "ReceivedRepresenting"; + + /** + * The Constant Uid. + */ + public static final String Uid = "UID"; + + /** + * The Constant RecurrenceId. + */ + public static final String RecurrenceId = "RecurrenceId"; + + /** + * The Constant DateTimeStamp. + */ + public static final String DateTimeStamp = "DateTimeStamp"; + + /** + * The Constant IsInline. + */ + public static final String IsInline = "IsInline"; + + /** + * The Constant IsContactPhoto. + */ + public static final String IsContactPhoto = "IsContactPhoto"; + + /** + * The Constant QueryString. + */ + public static final String QueryString = "QueryString"; + + /** + * The Constant CalendarEventDetails. + */ + public static final String CalendarEventDetails = "CalendarEventDetails"; + + /** + * The Constant ID. + */ + public static final String ID = "ID"; + + /** + * The Constant IsException. + */ + public static final String IsException = "IsException"; + + /** + * The Constant IsReminderSet. + */ + public static final String IsReminderSet = "IsReminderSet"; + + /** + * The Constant IsPrivate. + */ + public static final String IsPrivate = "IsPrivate"; + + /** + * The Constant FirstDayOfWeek. + */ + public static final String FirstDayOfWeek = "FirstDayOfWeek"; + + /** + * The Constant Verb. + */ + public static final String Verb = "Verb"; + + /** + * The Constant Parameter. + */ + public static final String Parameter = "Parameter"; + + /** + * The Constant ReturnValue. + */ + public static final String ReturnValue = "ReturnValue"; + + /** + * The Constant ReturnNewItemIds. + */ + public static final String ReturnNewItemIds = "ReturnNewItemIds"; + + /** + * The Constant DateTimePrecision. + */ + public static final String DateTimePrecision = "DateTimePrecision"; + + /** + * The Constant PasswordExpirationDate. + */ + public static final String PasswordExpirationDate = "PasswordExpirationDate"; + + /** + * The Constant StoreEntryId. + */ + public static final String StoreEntryId = "StoreEntryId"; + + // Conversations + /** + * The Constant Conversations. + */ + public static final String Conversations = "Conversations"; + + /** + * The Constant Conversation. + */ + public static final String Conversation = "Conversation"; + + /** + * The Constant UniqueRecipients. + */ + public static final String UniqueRecipients = "UniqueRecipients"; + + /** + * The Constant GlobalUniqueRecipients. + */ + public static final String GlobalUniqueRecipients = + "GlobalUniqueRecipients"; + + /** + * The Constant UniqueUnreadSenders. + */ + public static final String UniqueUnreadSenders = "UniqueUnreadSenders"; + + /** + * The Constant GlobalUniqueUnreadSenders. + */ + public static final String GlobalUniqueUnreadSenders = + "GlobalUniqueUnreadSenders"; + + /** + * The Constant UniqueSenders. + */ + public static final String UniqueSenders = "UniqueSenders"; + + /** + * The Constant GlobalUniqueSenders. + */ + public static final String GlobalUniqueSenders = "GlobalUniqueSenders"; + + /** + * The Constant LastDeliveryTime. + */ + public static final String LastDeliveryTime = "LastDeliveryTime"; + + /** + * The Constant GlobalLastDeliveryTime. + */ + public static final String GlobalLastDeliveryTime = + "GlobalLastDeliveryTime"; + + /** + * The Constant GlobalCategories. + */ + public static final String GlobalCategories = "GlobalCategories"; + + /** + * The Constant FlagStatus. + */ + public static final String FlagStatus = "FlagStatus"; + + /** + * The Constant GlobalFlagStatus. + */ + public static final String GlobalFlagStatus = "GlobalFlagStatus"; + + /** + * The Constant GlobalHasAttachments. + */ + public static final String GlobalHasAttachments = "GlobalHasAttachments"; + + /** + * The Constant MessageCount. + */ + public static final String MessageCount = "MessageCount"; + + /** + * The Constant GlobalMessageCount. + */ + public static final String GlobalMessageCount = "GlobalMessageCount"; + + /** + * The Constant GlobalUnreadCount. + */ + public static final String GlobalUnreadCount = "GlobalUnreadCount"; + + /** + * The Constant GlobalSize. + */ + public static final String GlobalSize = "GlobalSize"; + + /** + * The Constant ItemClasses. + */ + public static final String ItemClasses = "ItemClasses"; + + /** + * The Constant GlobalItemClasses. + */ + public static final String GlobalItemClasses = "GlobalItemClasses"; + + /** + * The Constant GlobalImportance. + */ + public static final String GlobalImportance = "GlobalImportance"; + + /** + * The Constant GlobalItemIds. + */ + public static final String GlobalItemIds = "GlobalItemIds"; + + // ApplyConversationAction + + /** + * The Constant ApplyConversationAction. + */ + public static final String ApplyConversationAction = + "ApplyConversationAction"; + + /** + * The Constant ConversationActions. + */ + public static final String ConversationActions = "ConversationActions"; + + /** + * The Constant ConversationAction. + */ + public static final String ConversationAction = "ConversationAction"; + + /** + * The Constant ApplyConversationActionResponse. + */ + public static final String ApplyConversationActionResponse = + "ApplyConversationActionResponse"; + + /** + * The Constant ApplyConversationActionResponseMessage. + */ + public static final String ApplyConversationActionResponseMessage = + "ApplyConversationActionResponseMessage"; + + /** + * The Constant EnableAlwaysDelete. + */ + public static final String EnableAlwaysDelete = "EnableAlwaysDelete"; + + /** + * The Constant ProcessRightAway. + */ + public static final String ProcessRightAway = "ProcessRightAway"; + + /** + * The Constant DestinationFolderId. + */ + public static final String DestinationFolderId = "DestinationFolderId"; + + /** + * The Constant ContextFolderId. + */ + public static final String ContextFolderId = "ContextFolderId"; + + /** + * The Constant ConversationLastSyncTime. + */ + public static final String ConversationLastSyncTime = + "ConversationLastSyncTime"; + + /** + * The Constant AlwaysCategorize. + */ + public static final String AlwaysCategorize = "AlwaysCategorize"; + + /** + * The Constant AlwaysDelete. + */ + public static final String AlwaysDelete = "AlwaysDelete"; + + /** + * The Constant AlwaysMove. + */ + public static final String AlwaysMove = "AlwaysMove"; + + /** + * The Constant Move. + */ + public static final String Move = "Move"; + + /** + * The Constant Copy. + */ + public static final String Copy = "Copy"; + + /** + * The Constant SetReadState. + */ + public static final String SetReadState = "SetReadState"; + + /** + * The Constant DeleteType. + */ + public static final String DeleteType = "DeleteType"; + // RoomList & Room + + /** + * The Constant RoomLists. + */ + public static final String RoomLists = "RoomLists"; + + /** + * The Constant Rooms. + */ + public static final String Rooms = "Rooms"; + + /** + * The Constant Room. + */ + public static final String Room = "Room"; + + /** + * The Constant RoomList. + */ + public static final String RoomList = "RoomList"; + + /** + * The Constant RoomId. + */ + public static final String RoomId = "Id"; + + // Autodiscover + + /** + * The Constant Autodiscover. + */ + public static final String Autodiscover = "Autodiscover"; + + /** + * The Constant BinarySecret. + */ + public static final String BinarySecret = "BinarySecret"; + + /** + * The Constant Response. + */ + public static final String Response = "Response"; + + /** + * The Constant User. + */ + public static final String User = "User"; + + /** + * The Constant LegacyDN. + */ + public static final String LegacyDN = "LegacyDN"; + + /** + * The Constant DeploymentId. + */ + public static final String DeploymentId = "DeploymentId"; + + /** + * The Constant Account. + */ + public static final String Account = "Account"; + + /** + * The Constant AccountType. + */ + public static final String AccountType = "AccountType"; + + /** + * The Constant Action. + */ + public static final String Action = "Action"; + + /** + * The Constant To. + */ + public static final String To = "To"; + + /** + * The Constant RedirectAddr. + */ + public static final String RedirectAddr = "RedirectAddr"; + + /** + * The Constant RedirectUrl. + */ + public static final String RedirectUrl = "RedirectUrl"; + + /** + * The Constant Protocol. + */ + public static final String Protocol = "Protocol"; + + /** + * The Constant Type. + */ + public static final String Type = "Type"; + + /** + * The Constant Server. + */ + public static final String Server = "Server"; + + /** + * The Constant ServerDN. + */ + public static final String ServerDN = "ServerDN"; + + /** + * The Constant ServerVersion. + */ + public static final String ServerVersion = "ServerVersion"; + + /** + * The Constant ServerVersionInfo. + */ + public static final String ServerVersionInfo = "ServerVersionInfo"; + + /** + * The Constant AD. + */ + public static final String AD = "AD"; + + /** + * The Constant AuthPackage. + */ + public static final String AuthPackage = "AuthPackage"; + + /** + * The Constant MdbDN. + */ + public static final String MdbDN = "MdbDN"; + + /** + * The Constant EWSUrl. + */ + public static final String EWSUrl = "EWSUrl"; + + /** + * The Constant ASUrl. + */ + public static final String ASUrl = "ASUrl"; + + /** + * The Constant OOFUrl. + */ + public static final String OOFUrl = "OOFUrl"; + + /** + * The Constant UMUrl. + */ + public static final String UMUrl = "UMUrl"; + + /** + * The Constant OABUrl. + */ + public static final String OABUrl = "OABUrl"; + + /** + * The Constant Internal. + */ + public static final String Internal = "Internal"; + + /** + * The Constant External. + */ + public static final String External = "External"; + + /** + * The Constant OWAUrl. + */ + public static final String OWAUrl = "OWAUrl"; + + /** + * The Constant Error. + */ + public static final String Error = "Error"; + + /** + * The Constant ErrorCode. + */ + public static final String ErrorCode = "ErrorCode"; + + /** + * The Constant DebugData. + */ + public static final String DebugData = "DebugData"; + + /** + * The Constant Users. + */ + public static final String Users = "Users"; + + /** + * The Constant RequestedSettings. + */ + public static final String RequestedSettings = "RequestedSettings"; + + /** + * The Constant Setting. + */ + public static final String Setting = "Setting"; + + /** + * The Constant GetUserSettingsRequestMessage. + */ + public static final String GetUserSettingsRequestMessage = + "GetUserSettingsRequestMessage"; + + /** + * The Constant RequestedServerVersion. + */ + public static final String RequestedServerVersion = + "RequestedServerVersion"; + + /** + * The Constant Request. + */ + public static final String Request = "Request"; + + /** + * The Constant RedirectTarget. + */ + public static final String RedirectTarget = "RedirectTarget"; + + /** + * The Constant UserSettings. + */ + public static final String UserSettings = "UserSettings"; + + /** + * The Constant UserSettingErrors. + */ + public static final String UserSettingErrors = "UserSettingErrors"; + + /** + * The Constant GetUserSettingsResponseMessage. + */ + public static final String GetUserSettingsResponseMessage = + "GetUserSettingsResponseMessage"; + + /** + * The Constant ErrorMessage. + */ + public static final String ErrorMessage = "ErrorMessage"; + + /** + * The Constant UserResponse. + */ + public static final String UserResponse = "UserResponse"; + + /** + * The Constant UserResponses. + */ + public static final String UserResponses = "UserResponses"; + + /** + * The Constant UserSettingError. + */ + public static final String UserSettingError = "UserSettingError"; + + /** + * The Constant Domain. + */ + public static final String Domain = "Domain"; + + /** + * The Constant Domains. + */ + public static final String Domains = "Domains"; + + /** + * The Constant DomainResponse. + */ + public static final String DomainResponse = "DomainResponse"; + + /** + * The Constant DomainResponses. + */ + public static final String DomainResponses = "DomainResponses"; + + /** + * The Constant DomainSetting. + */ + public static final String DomainSetting = "DomainSetting"; + + /** + * The Constant DomainSettings. + */ + public static final String DomainSettings = "DomainSettings"; + + /** + * The Constant DomainStringSetting. + */ + public static final String DomainStringSetting = "DomainStringSetting"; + + /** + * The Constant DomainSettingError. + */ + public static final String DomainSettingError = "DomainSettingError"; + + /** + * The Constant DomainSettingErrors. + */ + public static final String DomainSettingErrors = "DomainSettingErrors"; + + /** + * The Constant GetDomainSettingsRequestMessage. + */ + public static final String GetDomainSettingsRequestMessage = + "GetDomainSettingsRequestMessage"; + + /** + * The Constant GetDomainSettingsResponseMessage. + */ + public static final String GetDomainSettingsResponseMessage = + "GetDomainSettingsResponseMessage"; + + /** + * The Constant SettingName. + */ + public static final String SettingName = "SettingName"; + + /** + * The Constant UserSetting. + */ + public static final String UserSetting = "UserSetting"; + + /** + * The Constant StringSetting. + */ + public static final String StringSetting = "StringSetting"; + + /** + * The Constant WebClientUrlCollectionSetting. + */ + public static final String WebClientUrlCollectionSetting = + "WebClientUrlCollectionSetting"; + + /** + * The Constant WebClientUrls. + */ + public static final String WebClientUrls = "WebClientUrls"; + + /** + * The Constant WebClientUrl. + */ + public static final String WebClientUrl = "WebClientUrl"; + + /** + * The Constant AuthenticationMethods. + */ + public static final String AuthenticationMethods = "AuthenticationMethods"; + + /** + * The Constant Url. + */ + public static final String Url = "Url"; + + /** + * The Constant AlternateMailboxCollectionSetting. + */ + public static final String AlternateMailboxCollectionSetting = + "AlternateMailboxCollectionSetting"; + + /** + * The Constant AlternateMailboxes. + */ + public static final String AlternateMailboxes = "AlternateMailboxes"; + + /** + * The Constant AlternateMailbox. + */ + public static final String AlternateMailbox = "AlternateMailbox"; + + /** + * The Constant ProtocolConnectionCollectionSetting. + */ + public static final String ProtocolConnectionCollectionSetting = + "ProtocolConnectionCollectionSetting"; + + /** + * The Constant ProtocolConnections. + */ + public static final String ProtocolConnections = "ProtocolConnections"; + + /** + * The Constant ProtocolConnection. + */ + public static final String ProtocolConnection = "ProtocolConnection"; + + /** + * The Constant EncryptionMethod. + */ + public static final String EncryptionMethod = "EncryptionMethod"; + + /** + * The Constant Hostname. + */ + public static final String Hostname = "Hostname"; + + /** + * The Constant Port. + */ + public static final String Port = "Port"; + + /** + * The Constant Version. + */ + public static final String Version = "Version"; + + /** + * The Constant MajorVersion. + */ + public static final String MajorVersion = "MajorVersion"; + + /** + * The Constant MinorVersion. + */ + public static final String MinorVersion = "MinorVersion"; + + /** + * The Constant MajorBuildNumber. + */ + public static final String MajorBuildNumber = "MajorBuildNumber"; + + /** + * The Constant MinorBuildNumber. + */ + public static final String MinorBuildNumber = "MinorBuildNumber"; + + /** + * The Constant RequestedVersion. + */ + public static final String RequestedVersion = "RequestedVersion"; + + /** + * The Constant PublicFolderServer. + */ + public static final String PublicFolderServer = "PublicFolderServer"; + + /** + * The Constant Ssl. + */ + public static final String Ssl = "SSL"; + + /** + * The Constant SharingUrl. + */ + public static final String SharingUrl = "SharingUrl"; + + /** + * The Constant EcpUrl. + */ + public static final String EcpUrl = "EcpUrl"; + + /** + * The Constant EcpUrl_um. + */ + public static final String EcpUrl_um = "EcpUrl-um"; + + /** + * The Constant EcpUrl_aggr. + */ + public static final String EcpUrl_aggr = "EcpUrl-aggr"; + + /** + * The Constant EcpUrl_sms. + */ + public static final String EcpUrl_sms = "EcpUrl-sms"; + + /** + * The Constant EcpUrl_mt. + */ + public static final String EcpUrl_mt = "EcpUrl-mt"; + + /** + * The Constant EcpUrl_ret. + */ + public static final String EcpUrl_ret = "EcpUrl-ret"; + + /** + * The Constant EcpUrl_publish. + */ + public static final String EcpUrl_publish = "EcpUrl-publish"; + + /** + * The Constant ExchangeRpcUrl. + */ + public static final String ExchangeRpcUrl = "ExchangeRpcUrl"; + + /** + * The Constant PartnerToken. + */ + public static final String PartnerToken = "PartnerToken"; + + /** + * The Constant PartnerTokenReference. + */ + public static final String PartnerTokenReference = "PartnerTokenReference"; + + // InboxRule + /** + * The Constant MinorBuildNumber. + */ + public static final String MailboxSmtpAddress = "MailboxSmtpAddress"; + + /** + * The Constant RuleId. + */ + public static final String RuleId = "RuleId"; + + /** + * The Constant Priority. + */ + public static final String Priority = "Priority"; + + /** + * The Constant IsEnabled. + */ + public static final String IsEnabled = "IsEnabled"; + + /** + * The Constant IsNotSupported. + */ + public static final String IsNotSupported = "IsNotSupported"; + + /** + * The Constant IsInError. + */ + public static final String IsInError = "IsInError"; + + /** + * The Constant Conditions. + */ + public static final String Conditions = "Conditions"; + + /** + * The Constant Exceptions. + */ + public static final String Exceptions = "Exceptions"; + + /** + * The Constant Actions. + */ + public static final String Actions = "Actions"; + + /** + * The Constant InboxRules. + */ + public static final String InboxRules = "InboxRules"; + + /** + * The Constant Rule. + */ + public static final String Rule = "Rule"; + + /** + * The Constant OutlookRuleBlobExists. + */ + public static final String OutlookRuleBlobExists = "OutlookRuleBlobExists"; + + /** + * The Constant RemoveOutlookRuleBlob. + */ + public static final String RemoveOutlookRuleBlob = "RemoveOutlookRuleBlob"; + + /** + * The Constant ContainsBodyStrings. + */ + public static final String ContainsBodyStrings = "ContainsBodyStrings"; + + /** + * The Constant ContainsHeaderStrings. + */ + public static final String ContainsHeaderStrings = "ContainsHeaderStrings"; + + /** + * The Constant ContainsRecipientStrings. + */ + public static final String ContainsRecipientStrings = + "ContainsRecipientStrings"; + + /** + * The Constant ContainsSenderStrings. + */ + public static final String ContainsSenderStrings = "ContainsSenderStrings"; + + /** + * The Constant ContainsSubjectOrBodyStrings. + */ + public static final String ContainsSubjectOrBodyStrings = + "ContainsSubjectOrBodyStrings"; + + /** + * The Constant ContainsSubjectStrings. + */ + public static final String ContainsSubjectStrings = + "ContainsSubjectStrings"; + + /** + * The Constant FlaggedForAction. + */ + public static final String FlaggedForAction = "FlaggedForAction"; + + /** + * The Constant FromAddresses. + */ + public static final String FromAddresses = "FromAddresses"; + + /** + * The Constant FromConnectedAccounts. + */ + public static final String FromConnectedAccounts = "FromConnectedAccounts"; + + /** + * The Constant IsApprovalRequest. + */ + public static final String IsApprovalRequest = "IsApprovalRequest"; + + /** + * The Constant IsAutomaticForward. + */ + public static final String IsAutomaticForward = "IsAutomaticForward"; + + /** + * The Constant IsAutomaticReply. + */ + public static final String IsAutomaticReply = "IsAutomaticReply"; + + /** + * The Constant IsEncrypted. + */ + public static final String IsEncrypted = "IsEncrypted"; + + /** + * The Constant IsMeetingRequest. + */ + public static final String IsMeetingRequest = "IsMeetingRequest"; + + /** + * The Constant IsMeetingResponse. + */ + public static final String IsMeetingResponse = "IsMeetingResponse"; + + /** + * The Constant IsNDR. + */ + public static final String IsNDR = "IsNDR"; + + /** + * The Constant IsPermissionControlled. + */ + public static final String IsPermissionControlled = + "IsPermissionControlled"; + + /** + * The Constant IsSigned. + */ + public static final String IsSigned = "IsSigned"; + + /** + * The Constant IsVoicemail. + */ + public static final String IsVoicemail = "IsVoicemail"; + + /** + * The Constant IsReadReceipt. + */ + public static final String IsReadReceipt = "IsReadReceipt"; + + /** + * The Constant MessageClassifications. + */ + public static final String MessageClassifications = + "MessageClassifications"; + + /** + * The Constant NotSentToMe. + */ + public static final String NotSentToMe = "NotSentToMe"; + + /** + * The Constant SentCcMe. + */ + public static final String SentCcMe = "SentCcMe"; + + /** + * The Constant SentOnlyToMe. + */ + public static final String SentOnlyToMe = "SentOnlyToMe"; + + /** + * The Constant SentToAddresses. + */ + public static final String SentToAddresses = "SentToAddresses"; + + /** + * The Constant SentToMe. + */ + public static final String SentToMe = "SentToMe"; + + /** + * The Constant SentToOrCcMe. + */ + public static final String SentToOrCcMe = "SentToOrCcMe"; + + /** + * The Constant WithinDateRange. + */ + public static final String WithinDateRange = "WithinDateRange"; + + /** + * The Constant WithinSizeRange. + */ + public static final String WithinSizeRange = "WithinSizeRange"; + + /** + * The Constant MinimumSize. + */ + public static final String MinimumSize = "MinimumSize"; + + /** + * The Constant MaximumSize. + */ + public static final String MaximumSize = "MaximumSize"; + + /** + * The Constant StartDateTime. + */ + public static final String StartDateTime = "StartDateTime"; + + /** + * The Constant EndDateTime. + */ + public static final String EndDateTime = "EndDateTime"; + + /** + * The Constant AssignCategories. + */ + public static final String AssignCategories = "AssignCategories"; + + /** + * The Constant CopyToFolder. + */ + public static final String CopyToFolder = "CopyToFolder"; + + /** + * The Constant FlagMessage. + */ + public static final String FlagMessage = "FlagMessage"; + + /** + * The Constant ForwardAsAttachmentToRecipients. + */ + public static final String ForwardAsAttachmentToRecipients = + "ForwardAsAttachmentToRecipients"; + + /** + * The Constant ForwardToRecipients. + */ + public static final String ForwardToRecipients = "ForwardToRecipients"; + + /** + * The Constant MarkImportance. + */ + public static final String MarkImportance = "MarkImportance"; + + /** + * The Constant MarkAsRead. + */ + public static final String MarkAsRead = "MarkAsRead"; + + /** + * The Constant MoveToFolder. + */ + public static final String MoveToFolder = "MoveToFolder"; + + /** + * The Constant PermanentDelete. + */ + public static final String PermanentDelete = "PermanentDelete"; + + /** + * The Constant RedirectToRecipients. + */ + public static final String RedirectToRecipients = "RedirectToRecipients"; + + /** + * The Constant SendSMSAlertToRecipients. + */ + public static final String SendSMSAlertToRecipients = + "SendSMSAlertToRecipients"; + + /** + * The Constant ServerReplyWithMessage. + */ + public static final String ServerReplyWithMessage = + "ServerReplyWithMessage"; + + /** + * The Constant StopProcessingRules. + */ + public static final String StopProcessingRules = "StopProcessingRules"; + + /** + * The Constant CreateRuleOperation. + */ + public static final String CreateRuleOperation = "CreateRuleOperation"; + + /** + * The Constant SetRuleOperation. + */ + public static final String SetRuleOperation = "SetRuleOperation"; + + /** + * The Constant DeleteRuleOperation. + */ + public static final String DeleteRuleOperation = "DeleteRuleOperation"; + + /** + * The Constant Operations. + */ + public static final String Operations = "Operations"; + + /** + * The Constant RuleOperationErrors. + */ + public static final String RuleOperationErrors = "RuleOperationErrors"; + + /** + * The Constant RuleOperationError. + */ + public static final String RuleOperationError = "RuleOperationError"; + + /** + * The Constant OperationIndex. + */ + public static final String OperationIndex = "OperationIndex"; + + /** + * The Constant ValidationErrors. + */ + public static final String ValidationErrors = "ValidationErrors"; + + /** + * The Constant FieldValue. + */ + public static final String FieldValue = "FieldValue"; + + // Restrictions + /** + * The Constant Not. + */ + public static final String Not = "Not"; + + /** + * The Constant Bitmask. + */ + public static final String Bitmask = "Bitmask"; + + /** + * The Constant Constant. + */ + public static final String Constant = "Constant"; + + /** + * The Constant Restriction. + */ + public static final String Restriction = "Restriction"; + + /** + * The Constant Contains. + */ + public static final String Contains = "Contains"; + + /** + * The Constant Excludes. + */ + public static final String Excludes = "Excludes"; + + /** + * The Constant Exists. + */ + public static final String Exists = "Exists"; + + /** + * The Constant FieldURIOrConstant. + */ + public static final String FieldURIOrConstant = "FieldURIOrConstant"; + + /** + * The Constant And. + */ + public static final String And = "And"; + + /** + * The Constant Or. + */ + public static final String Or = "Or"; + + /** + * The Constant IsEqualTo. + */ + public static final String IsEqualTo = "IsEqualTo"; + + /** + * The Constant IsNotEqualTo. + */ + public static final String IsNotEqualTo = "IsNotEqualTo"; + + /** + * The Constant IsGreaterThan. + */ + public static final String IsGreaterThan = "IsGreaterThan"; + + /** + * The Constant IsGreaterThanOrEqualTo. + */ + public static final String IsGreaterThanOrEqualTo = + "IsGreaterThanOrEqualTo"; + + /** + * The Constant IsLessThan. + */ + public static final String IsLessThan = "IsLessThan"; + + /** + * The Constant IsLessThanOrEqualTo. + */ + public static final String IsLessThanOrEqualTo = "IsLessThanOrEqualTo"; + + //Directory only contact properties + /** + * The Constant PhoneticFullName. + */ + public static final String PhoneticFullName = "PhoneticFullName"; + + /** + * The Constant PhoneticFirstName. + */ + public static final String PhoneticFirstName = "PhoneticFirstName"; + + /** + * The Constant PhoneticLastName. + */ + public static final String PhoneticLastName = "PhoneticLastName"; + + /** + * The Constant Alias. + */ + public static final String Alias = "Alias"; + + /** + * The Constant Notes. + */ + public static final String Notes = "Notes"; + + /** + * The Constant Photo. + */ + public static final String Photo = "Photo"; + + /** + * The Constant UserSMIMECertificate. + */ + public static final String UserSMIMECertificate = "UserSMIMECertificate"; + + /** + * The Constant MSExchangeCertificate. + */ + public static final String MSExchangeCertificate = "MSExchangeCertificate"; + + /** + * The Constant DirectoryId. + */ + public static final String DirectoryId = "DirectoryId"; + + /** + * The Constant ManagerMailbox. + */ + public static final String ManagerMailbox = "ManagerMailbox"; + + /** + * The Constant DirectReports. + */ + public static final String DirectReports = "DirectReports"; + + // Request/response element names + /** + * The Constant ResponseMessage. + */ + public static final String ResponseMessage = "ResponseMessage"; + + /** + * The Constant ResponseMessages. + */ + public static final String ResponseMessages = "ResponseMessages"; + + // FindConversation + /** + * The Constant FindConversation. + */ + public static final String FindConversation = "FindConversation"; + + /** + * The Constant FindConversationResponse. + */ + public static final String FindConversationResponse = + "FindConversationResponse"; + + /** + * The Constant FindConversationResponseMessage. + */ + public static final String FindConversationResponseMessage = + "FindConversationResponseMessage"; + + // FindItem + /** + * The Constant FindItem. + */ + public static final String FindItem = "FindItem"; + + /** + * The Constant FindItemResponse. + */ + public static final String FindItemResponse = "FindItemResponse"; + + /** + * The Constant FindItemResponseMessage. + */ + public static final String FindItemResponseMessage = + "FindItemResponseMessage"; + + // GetItem + /** + * The Constant GetItem. + */ + public static final String GetItem = "GetItem"; + + /** + * The Constant GetItemResponse. + */ + public static final String GetItemResponse = "GetItemResponse"; + + /** + * The Constant GetItemResponseMessage. + */ + public static final String GetItemResponseMessage = + "GetItemResponseMessage"; + + // CreateItem + /** + * The Constant CreateItem. + */ + public static final String CreateItem = "CreateItem"; + + /** + * The Constant CreateItemResponse. + */ + public static final String CreateItemResponse = "CreateItemResponse"; + + /** + * The Constant CreateItemResponseMessage. + */ + public static final String CreateItemResponseMessage = + "CreateItemResponseMessage"; + + // SendItem + /** + * The Constant SendItem. + */ + public static final String SendItem = "SendItem"; + + /** + * The Constant SendItemResponse. + */ + public static final String SendItemResponse = "SendItemResponse"; + + /** + * The Constant SendItemResponseMessage. + */ + public static final String SendItemResponseMessage = + "SendItemResponseMessage"; + + // DeleteItem + /** + * The Constant DeleteItem. + */ + public static final String DeleteItem = "DeleteItem"; + + /** + * The Constant DeleteItemResponse. + */ + public static final String DeleteItemResponse = "DeleteItemResponse"; + + /** + * The Constant DeleteItemResponseMessage. + */ + public static final String DeleteItemResponseMessage = + "DeleteItemResponseMessage"; + + // UpdateItem + /** + * The Constant UpdateItem. + */ + public static final String UpdateItem = "UpdateItem"; + + /** + * The Constant UpdateItemResponse. + */ + public static final String UpdateItemResponse = "UpdateItemResponse"; + + /** + * The Constant UpdateItemResponseMessage. + */ + public static final String UpdateItemResponseMessage = + "UpdateItemResponseMessage"; + + // CopyItem + /** + * The Constant CopyItem. + */ + public static final String CopyItem = "CopyItem"; + + /** + * The Constant CopyItemResponse. + */ + public static final String CopyItemResponse = "CopyItemResponse"; + + /** + * The Constant CopyItemResponseMessage. + */ + public static final String CopyItemResponseMessage = + "CopyItemResponseMessage"; + + // MoveItem + /** + * The Constant MoveItem. + */ + public static final String MoveItem = "MoveItem"; + + /** + * The Constant MoveItemResponse. + */ + public static final String MoveItemResponse = "MoveItemResponse"; + + /** + * The Constant MoveItemResponseMessage. + */ + public static final String MoveItemResponseMessage = + "MoveItemResponseMessage"; + + // FindFolder + /** + * The Constant FindFolder. + */ + public static final String FindFolder = "FindFolder"; + + /** + * The Constant FindFolderResponse. + */ + public static final String FindFolderResponse = "FindFolderResponse"; + + /** + * The Constant FindFolderResponseMessage. + */ + public static final String FindFolderResponseMessage = + "FindFolderResponseMessage"; + + // GetFolder + /** + * The Constant GetFolder. + */ + public static final String GetFolder = "GetFolder"; + + /** + * The Constant GetFolderResponse. + */ + public static final String GetFolderResponse = "GetFolderResponse"; + + /** + * The Constant GetFolderResponseMessage. + */ + public static final String GetFolderResponseMessage = + "GetFolderResponseMessage"; + + // CreateFolder + /** + * The Constant CreateFolder. + */ + public static final String CreateFolder = "CreateFolder"; + + /** + * The Constant CreateFolderResponse. + */ + public static final String CreateFolderResponse = "CreateFolderResponse"; + + /** + * The Constant CreateFolderResponseMessage. + */ + public static final String CreateFolderResponseMessage = + "CreateFolderResponseMessage"; + + // DeleteFolder + /** + * The Constant DeleteFolder. + */ + public static final String DeleteFolder = "DeleteFolder"; + + /** + * The Constant DeleteFolderResponse. + */ + public static final String DeleteFolderResponse = "DeleteFolderResponse"; + + /** + * The Constant DeleteFolderResponseMessage. + */ + public static final String DeleteFolderResponseMessage = + "DeleteFolderResponseMessage"; + + //EmptyFolder + /** + * The Constant EmptyFolder. + */ + public static final String EmptyFolder = "EmptyFolder"; + + /** + * The Constant EmptyFolderResponse. + */ + public static final String EmptyFolderResponse = "EmptyFolderResponse"; + + /** + * The Constant EmptyFolderResponseMessage. + */ + public static final String EmptyFolderResponseMessage = + "EmptyFolderResponseMessage"; + + // UpdateFolder + /** + * The Constant UpdateFolder. + */ + public static final String UpdateFolder = "UpdateFolder"; + + /** + * The Constant UpdateFolderResponse. + */ + public static final String UpdateFolderResponse = "UpdateFolderResponse"; + + /** + * The Constant UpdateFolderResponseMessage. + */ + public static final String UpdateFolderResponseMessage = + "UpdateFolderResponseMessage"; + + // CopyFolder + /** + * The Constant CopyFolder. + */ + public static final String CopyFolder = "CopyFolder"; + + /** + * The Constant CopyFolderResponse. + */ + public static final String CopyFolderResponse = "CopyFolderResponse"; + + /** + * The Constant CopyFolderResponseMessage. + */ + public static final String CopyFolderResponseMessage = + "CopyFolderResponseMessage"; + + // MoveFolder + /** + * The Constant MoveFolder. + */ + public static final String MoveFolder = "MoveFolder"; + + /** + * The Constant MoveFolderResponse. + */ + public static final String MoveFolderResponse = "MoveFolderResponse"; + + /** + * The Constant MoveFolderResponseMessage. + */ + public static final String MoveFolderResponseMessage = + "MoveFolderResponseMessage"; + + // GetAttachment + /** + * The Constant GetAttachment. + */ + public static final String GetAttachment = "GetAttachment"; + + /** + * The Constant GetAttachmentResponse. + */ + public static final String GetAttachmentResponse = "GetAttachmentResponse"; + + /** + * The Constant GetAttachmentResponseMessage. + */ + public static final String GetAttachmentResponseMessage = + "GetAttachmentResponseMessage"; + + // CreateAttachment + /** + * The Constant CreateAttachment. + */ + public static final String CreateAttachment = "CreateAttachment"; + + /** + * The Constant CreateAttachmentResponse. + */ + public static final String + CreateAttachmentResponse = "CreateAttachmentResponse"; + + /** + * The Constant CreateAttachmentResponseMessage. + */ + public static final String CreateAttachmentResponseMessage = + "CreateAttachmentResponseMessage"; + + // DeleteAttachment + /** + * The Constant DeleteAttachment. + */ + public static final String DeleteAttachment = "DeleteAttachment"; + + /** + * The Constant DeleteAttachmentResponse. + */ + public static final String DeleteAttachmentResponse = + "DeleteAttachmentResponse"; + + /** + * The Constant DeleteAttachmentResponseMessage. + */ + public static final String DeleteAttachmentResponseMessage = + "DeleteAttachmentResponseMessage"; + + // ResolveNames + /** + * The Constant ResolveNames. + */ + public static final String ResolveNames = "ResolveNames"; + + /** + * The Constant ResolveNamesResponse. + */ + public static final String ResolveNamesResponse = "ResolveNamesResponse"; + + /** + * The Constant ResolveNamesResponseMessage. + */ + public static final String ResolveNamesResponseMessage = + "ResolveNamesResponseMessage"; + + // ExpandDL + /** + * The Constant ExpandDL. + */ + public static final String ExpandDL = "ExpandDL"; + + /** + * The Constant ExpandDLResponse. + */ + public static final String ExpandDLResponse = "ExpandDLResponse"; + + /** + * The Constant ExpandDLResponseMessage. + */ + public static final String ExpandDLResponseMessage = + "ExpandDLResponseMessage"; + + // Subscribe + /** + * The Constant Subscribe. + */ + public static final String Subscribe = "Subscribe"; + + /** + * The Constant SubscribeResponse. + */ + public static final String SubscribeResponse = "SubscribeResponse"; + + /** + * The Constant SubscribeResponseMessage. + */ + public static final String SubscribeResponseMessage = + "SubscribeResponseMessage"; + + // Unsubscribe + /** + * The Constant Unsubscribe. + */ + public static final String Unsubscribe = "Unsubscribe"; + + /** + * The Constant UnsubscribeResponse. + */ + public static final String UnsubscribeResponse = "UnsubscribeResponse"; + + /** + * The Constant UnsubscribeResponseMessage. + */ + public static final String UnsubscribeResponseMessage = + "UnsubscribeResponseMessage"; + + // GetEvents + /** + * The Constant GetEvents. + */ + public static final String GetEvents = "GetEvents"; + + /** + * The Constant GetEventsResponse. + */ + public static final String GetEventsResponse = "GetEventsResponse"; + + /** + * The Constant GetEventsResponseMessage. + */ + public static final String GetEventsResponseMessage = + "GetEventsResponseMessage"; + + // GetStreamingEvents + /** + * The Constant GetStreamingEvents. + */ + public static final String GetStreamingEvents = "GetStreamingEvents"; + + /** + * The Constant GetStreamingEventsResponse. + */ + public static final String GetStreamingEventsResponse = + "GetStreamingEventsResponse"; + + /** + * The Constant GetStreamingEventsResponseMessage. + */ + public static final String GetStreamingEventsResponseMessage = + "GetStreamingEventsResponseMessage"; + + /** + * The Constant ConnectionStatus. + */ + public static final String ConnectionStatus = "ConnectionStatus"; + + /** + * The Constant ErrorSubscriptionIds. + */ + public static final String ErrorSubscriptionIds = "ErrorSubscriptionIds"; + + /** + * The Constant ConnectionTimeout. + */ + public static final String ConnectionTimeout = "ConnectionTimeout"; + + /** + * The Constant HeartbeatFrequency. + */ + public static final String HeartbeatFrequency = "HeartbeatFrequency"; + + + // SyncFolderItems + /** + * The Constant SyncFolderItems. + */ + public static final String SyncFolderItems = "SyncFolderItems"; + + /** + * The Constant SyncFolderItemsResponse. + */ + public static final String SyncFolderItemsResponse = + "SyncFolderItemsResponse"; + + /** + * The Constant SyncFolderItemsResponseMessage. + */ + public static final String SyncFolderItemsResponseMessage = + "SyncFolderItemsResponseMessage"; + + // SyncFolderHierarchy + /** + * The Constant SyncFolderHierarchy. + */ + public static final String SyncFolderHierarchy = "SyncFolderHierarchy"; + + /** + * The Constant SyncFolderHierarchyResponse. + */ + public static final String SyncFolderHierarchyResponse = + "SyncFolderHierarchyResponse"; + + /** + * The Constant SyncFolderHierarchyResponseMessage. + */ + public static final String SyncFolderHierarchyResponseMessage = + "SyncFolderHierarchyResponseMessage"; + + // GetUserOofSettings + /** + * The Constant GetUserOofSettingsRequest. + */ + public static final String GetUserOofSettingsRequest = + "GetUserOofSettingsRequest"; + + /** + * The Constant GetUserOofSettingsResponse. + */ + public static final String GetUserOofSettingsResponse = + "GetUserOofSettingsResponse"; + + // SetUserOofSettings + /** + * The Constant SetUserOofSettingsRequest. + */ + public static final String SetUserOofSettingsRequest = + "SetUserOofSettingsRequest"; + + /** + * The Constant SetUserOofSettingsResponse. + */ + public static final String SetUserOofSettingsResponse = + "SetUserOofSettingsResponse"; + + // GetUserAvailability + /** + * The Constant GetUserAvailabilityRequest. + */ + public static final String GetUserAvailabilityRequest = + "GetUserAvailabilityRequest"; + + /** + * The Constant GetUserAvailabilityResponse. + */ + public static final String GetUserAvailabilityResponse = + "GetUserAvailabilityResponse"; + + /** + * The Constant FreeBusyResponseArray. + */ + public static final String FreeBusyResponseArray = "FreeBusyResponseArray"; + + /** + * The Constant FreeBusyResponse. + */ + public static final String FreeBusyResponse = "FreeBusyResponse"; + + /** + * The Constant SuggestionsResponse. + */ + public static final String SuggestionsResponse = "SuggestionsResponse"; + + // GetRoomLists + /** + * The Constant GetRoomListsRequest. + */ + public static final String GetRoomListsRequest = "GetRoomLists"; + + /** + * The Constant GetRoomListsResponse. + */ + public static final String GetRoomListsResponse = "GetRoomListsResponse"; + + // GetRooms + /** + * The Constant GetRoomsRequest. + */ + public static final String GetRoomsRequest = "GetRooms"; + + /** + * The Constant GetRoomsResponse. + */ + public static final String GetRoomsResponse = "GetRoomsResponse"; + + // ConvertId + /** + * The Constant ConvertId. + */ + public static final String ConvertId = "ConvertId"; + + /** + * The Constant ConvertIdResponse. + */ + public static final String ConvertIdResponse = "ConvertIdResponse"; + + /** + * The Constant ConvertIdResponseMessage. + */ + public static final String ConvertIdResponseMessage = + "ConvertIdResponseMessage"; + + // AddDelegate + /** + * The Constant AddDelegate. + */ + public static final String AddDelegate = "AddDelegate"; + + /** + * The Constant AddDelegateResponse. + */ + public static final String AddDelegateResponse = "AddDelegateResponse"; + + /** + * The Constant DelegateUserResponseMessageType. + */ + public static final String DelegateUserResponseMessageType = + "DelegateUserResponseMessageType"; + + // RemoveDelegte + /** + * The Constant RemoveDelegate. + */ + public static final String RemoveDelegate = "RemoveDelegate"; + + /** + * The Constant RemoveDelegateResponse. + */ + public static final String RemoveDelegateResponse = + "RemoveDelegateResponse"; + + // GetDelegate + /** + * The Constant GetDelegate. + */ + public static final String GetDelegate = "GetDelegate"; + + /** + * The Constant GetDelegateResponse. + */ + public static final String GetDelegateResponse = "GetDelegateResponse"; + + // UpdateDelegate + /** + * The Constant UpdateDelegate. + */ + public static final String UpdateDelegate = "UpdateDelegate"; + + /** + * The Constant UpdateDelegateResponse. + */ + public static final String UpdateDelegateResponse = + "UpdateDelegateResponse"; + + // CreateUserConfiguration + /** + * The Constant CreateUserConfiguration. + */ + public static final String CreateUserConfiguration = + "CreateUserConfiguration"; + + /** + * The Constant CreateUserConfigurationResponse. + */ + public static final String CreateUserConfigurationResponse = + "CreateUserConfigurationResponse"; + + /** + * The Constant CreateUserConfigurationResponseMessage. + */ + public static final String CreateUserConfigurationResponseMessage = + "CreateUserConfigurationResponseMessage"; + + // DeleteUserConfiguration + /** + * The Constant DeleteUserConfiguration. + */ + public static final String DeleteUserConfiguration = + "DeleteUserConfiguration"; + + /** + * The Constant DeleteUserConfigurationResponse. + */ + public static final String DeleteUserConfigurationResponse = + "DeleteUserConfigurationResponse"; + + /** + * The Constant DeleteUserConfigurationResponseMessage. + */ + public static final String DeleteUserConfigurationResponseMessage = + "DeleteUserConfigurationResponseMessage"; + + // GetUserConfiguration + /** + * The Constant GetUserConfiguration. + */ + public static final String GetUserConfiguration = "GetUserConfiguration"; + + /** + * The Constant GetUserConfigurationResponse. + */ + public static final String GetUserConfigurationResponse = + "GetUserConfigurationResponse"; + + /** + * The Constant GetUserConfigurationResponseMessage. + */ + public static final String GetUserConfigurationResponseMessage = + "GetUserConfigurationResponseMessage"; + + // UpdateUserConfiguration + /** + * The Constant UpdateUserConfiguration. + */ + public static final String UpdateUserConfiguration = + "UpdateUserConfiguration"; + + /** + * The Constant UpdateUserConfigurationResponse. + */ + public static final String UpdateUserConfigurationResponse = + "UpdateUserConfigurationResponse"; + + /** + * The Constant UpdateUserConfigurationResponseMessage. + */ + public static final String UpdateUserConfigurationResponseMessage = + "UpdateUserConfigurationResponseMessage"; + + // PlayOnPhone + /** + * The Constant PlayOnPhone. + */ + public static final String PlayOnPhone = "PlayOnPhone"; + + /** + * The Constant PlayOnPhoneResponse. + */ + public static final String PlayOnPhoneResponse = "PlayOnPhoneResponse"; + + // GetPhoneCallInformation + /** + * The Constant GetPhoneCall. + */ + public static final String GetPhoneCall = "GetPhoneCallInformation"; + + /** + * The Constant GetPhoneCallResponse. + */ + public static final String GetPhoneCallResponse = + "GetPhoneCallInformationResponse"; + + // DisconnectCall + /** + * The Constant DisconnectPhoneCall. + */ + public static final String DisconnectPhoneCall = "DisconnectPhoneCall"; + + /** + * The Constant DisconnectPhoneCallResponse. + */ + public static final String DisconnectPhoneCallResponse = + "DisconnectPhoneCallResponse"; + + // GetServerTimeZones + /** + * The Constant GetServerTimeZones. + */ + public static final String GetServerTimeZones = "GetServerTimeZones"; + + /** + * The Constant GetServerTimeZonesResponse. + */ + public static final String GetServerTimeZonesResponse = + "GetServerTimeZonesResponse"; + + /** + * The Constant GetServerTimeZonesResponseMessage. + */ + public static final String GetServerTimeZonesResponseMessage = + "GetServerTimeZonesResponseMessage"; + + // GetInboxRules + /** + * The Constant GetInboxRules. + */ + public static final String GetInboxRules = "GetInboxRules"; + + /** + * The Constant GetInboxRulesResponse. + */ + public static final String GetInboxRulesResponse = "GetInboxRulesResponse"; + + // UpdateInboxRules + /** + * The Constant UpdateInboxRules. + */ + public static final String UpdateInboxRules = "UpdateInboxRules"; + + /** + * The Constant UpdateInboxRulesResponse. + */ + public static final String UpdateInboxRulesResponse = + "UpdateInboxRulesResponse"; + + // ExecuteDiagnosticMethod + /** + * The Constant ExecuteDiagnosticMethod. + */ + public static final String ExecuteDiagnosticMethod = + "ExecuteDiagnosticMethod"; + + /** + * The Constant ExecuteDiagnosticMethodResponse. + */ + public static final String ExecuteDiagnosticMethodResponse = + "ExecuteDiagnosticMethodResponse"; + + /** + * The Constant ExecuteDiagnosticMethodResponseMEssage. + */ + public static final String ExecuteDiagnosticMethodResponseMEssage = + "ExecuteDiagnosticMethodResponseMessage"; + + //GetPasswordExpirationDate + /** + * The Constant GetPasswordExpirationDate. + */ + public static final String GetPasswordExpirationDateRequest = "GetPasswordExpirationDate"; + + /** + * The Constant GetPasswordExpirationDateResponse. + */ + public static final String GetPasswordExpirationDateResponse = "GetPasswordExpirationDateResponse"; + + // SOAP element names + + /** + * The Constant SOAPEnvelopeElementName. + */ + public static final String SOAPEnvelopeElementName = "Envelope"; + + /** + * The Constant SOAPHeaderElementName. + */ + public static final String SOAPHeaderElementName = "Header"; + + /** + * The Constant SOAPBodyElementName. + */ + public static final String SOAPBodyElementName = "Body"; + + /** + * The Constant SOAPFaultElementName. + */ + public static final String SOAPFaultElementName = "Fault"; + + /** + * The Constant SOAPFaultCodeElementName. + */ + public static final String SOAPFaultCodeElementName = "faultcode"; + + /** + * The Constant SOAPFaultStringElementName. + */ + public static final String SOAPFaultStringElementName = "faultstring"; + + /** + * The Constant SOAPFaultActorElementName. + */ + public static final String SOAPFaultActorElementName = "faultactor"; + + /** + * The Constant SOAPDetailElementName. + */ + public static final String SOAPDetailElementName = "detail"; + + /** + * The Constant EwsResponseCodeElementName. + */ + public static final String EwsResponseCodeElementName = "ResponseCode"; + + /** + * The Constant EwsMessageElementName. + */ + public static final String EwsMessageElementName = "Message"; + + /** + * The Constant EwsLineElementName. + */ + public static final String EwsLineElementName = "Line"; + + /** + * The Constant EwsPositionElementName. + */ + public static final String EwsPositionElementName = "Position"; + + /** + * The Constant EwsErrorCodeElementName. + */ + public static final String EwsErrorCodeElementName = + "ErrorCode"; // Generated + + + // by + // Availability + /** + * The Constant EwsExceptionTypeElementName. + */ + public static final String EwsExceptionTypeElementName = + "ExceptionType"; // Generated + + // by + // UM } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index 0da0760d9..ad8429bba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -12,34 +12,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public class XmlException extends Exception { - /** - * Instantiates a new argument exception. - */ - public XmlException() { - super(); - - } + /** + * Instantiates a new argument exception. + */ + public XmlException() { + super(); - /** - * Instantiates a new argument exception. - * - * @param arg0 - * the arg0 - */ - public XmlException(final String arg0) { - super(arg0); - - } + } - /** - * ServiceXmlDeserializationException Constructor. - * - * @param message - * the message - * @param innerException - * the inner exception - */ - public XmlException(String message, Exception innerException) { - super(message, innerException); - } + /** + * Instantiates a new argument exception. + * + * @param arg0 the arg0 + */ + public XmlException(final String arg0) { + super(arg0); + + } + + /** + * ServiceXmlDeserializationException Constructor. + * + * @param message the message + * @param innerException the inner exception + */ + public XmlException(String message, Exception innerException) { + super(message, innerException); + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index 684d36fa1..6178bcacc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -15,78 +15,65 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public abstract class XmlNameTable { - /** - * Initializes a new instance of the XmlNameTable class. - */ - protected XmlNameTable() { - } + /** + * Initializes a new instance of the XmlNameTable class. + */ + protected XmlNameTable() { + } - /** - * When overridden in a derived class, atomizes the specified String and - * adds it to the XmlNameTable. - * - * @param array - * : The name to add. - * @return The new atomized String or the existing one if it already exists. - * @throws ArgumentNullException array is null. - */ - public abstract String Add(String array); + /** + * When overridden in a derived class, atomizes the specified String and + * adds it to the XmlNameTable. + * + * @param array : The name to add. + * @return The new atomized String or the existing one if it already exists. + * @throws ArgumentNullException array is null. + */ + public abstract String Add(String array); - /** - * Reads an XML Schema from the supplied stream. - * - * @param array - * The character array containing the name to add. - * @param offset - * Zero-based index into the array specifying the first character - * of the name. - * @param length - * The number of characters in the name. - * @return The new atomized String or the existing one if it already exists. - * If length is zero, String.Empty is returned - * @throws ArgumentOutOfRangeException - * 0 > offset -or- offset >= array.Length -or- length > - * array.Length The above conditions do not cause an exception - * to be thrown if length =0. - * @throws ArgumentOutOfRangeException - * length < 0. - */ - public abstract String Add(char[] array, int offset, int length); + /** + * Reads an XML Schema from the supplied stream. + * + * @param array The character array containing the name to add. + * @param offset Zero-based index into the array specifying the first character + * of the name. + * @param length The number of characters in the name. + * @return The new atomized String or the existing one if it already exists. + * If length is zero, String.Empty is returned + * @throws ArgumentOutOfRangeException 0 > offset -or- offset >= array.Length -or- length > + * array.Length The above conditions do not cause an exception + * to be thrown if length =0. + * @throws ArgumentOutOfRangeException length < 0. + */ + public abstract String Add(char[] array, int offset, int length); - /** - * When overridden in a derived class, gets the atomized String containing - * the same value as the specified String. - * - * @param array - * The name to look up. - * @return The atomized String or null if the String has not already been - * atomized. - * @throws ArgumentNullException - * : array is null. - */ - public abstract String Get(String array); + /** + * When overridden in a derived class, gets the atomized String containing + * the same value as the specified String. + * + * @param array The name to look up. + * @return The atomized String or null if the String has not already been + * atomized. + * @throws ArgumentNullException : array is null. + */ + public abstract String Get(String array); - /** - * When overridden in a derived class, gets the atomized String containing - * the same characters as the specified range of characters in the given - * array. - * - * @param array - * The character array containing the name to add. - * @param offset - * Zero-based index into the array specifying the first character - * of the name. - * @param length - * The number of characters in the name. - * @return The atomized String or null if the String has not already been - * atomized. If length is zero, String.Empty is returned - * @throws ArgumentOutOfRangeException - * 0 > offset -or- offset >= array.Length -or- length > - * array.Length The above conditions do not cause an exception - * to be thrown if length =0. - * @throws ArgumentOutOfRangeException - * length < 0. - */ - public abstract String Get(char[] array, int offset, int length); + /** + * When overridden in a derived class, gets the atomized String containing + * the same characters as the specified range of characters in the given + * array. + * + * @param array The character array containing the name to add. + * @param offset Zero-based index into the array specifying the first character + * of the name. + * @param length The number of characters in the name. + * @return The atomized String or null if the String has not already been + * atomized. If length is zero, String.Empty is returned + * @throws ArgumentOutOfRangeException 0 > offset -or- offset >= array.Length -or- length > + * array.Length The above conditions do not cause an exception + * to be thrown if length =0. + * @throws ArgumentOutOfRangeException length < 0. + */ + public abstract String Get(char[] array, int offset, int length); } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java index fde39d364..28a806bcc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java @@ -15,84 +15,108 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * EwsServiceXmlWriter classes. */ enum XmlNamespace { - /* + /* * The namespace is not specified. */ - /** The Not specified. */ - NotSpecified("", ""), - - /** The Messages. */ - Messages(EwsUtilities.EwsMessagesNamespacePrefix, - EwsUtilities.EwsMessagesNamespace), - - /** The Types. */ - Types(EwsUtilities.EwsTypesNamespacePrefix, EwsUtilities.EwsTypesNamespace), - - /** The Errors. */ - Errors(EwsUtilities.EwsErrorsNamespacePrefix, - EwsUtilities.EwsErrorsNamespace), - - /** The Soap. */ - Soap(EwsUtilities.EwsSoapNamespacePrefix, EwsUtilities.EwsSoapNamespace), - - /** The Soap12. */ - Soap12(EwsUtilities.EwsSoapNamespacePrefix, - EwsUtilities.EwsSoap12Namespace), - - /** The Xml schema instance. */ - XmlSchemaInstance(EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, - EwsUtilities.EwsXmlSchemaInstanceNamespace), - - /** The Passport soap fault. */ - PassportSoapFault(EwsUtilities.PassportSoapFaultNamespacePrefix, - EwsUtilities.PassportSoapFaultNamespace), - - /** The WS trust february2005. */ - WSTrustFebruary2005(EwsUtilities.WSTrustFebruary2005NamespacePrefix, - EwsUtilities.WSTrustFebruary2005Namespace), - - /** The WS addressing. */ - WSAddressing(EwsUtilities.WSAddressingNamespacePrefix, - EwsUtilities.WSAddressingNamespace), - - /** The Autodiscover. */ - Autodiscover(EwsUtilities.AutodiscoverSoapNamespacePrefix, - EwsUtilities.AutodiscoverSoapNamespace); - - /** The prefix. */ - private String prefix; - - /** The name space uri. */ - private String nameSpaceUri; - - /** - * Instantiates a new xml namespace. - * - * @param prefix - * the prefix - * @param nameSpaceUri - * the name space uri - */ - XmlNamespace(String prefix, String nameSpaceUri) { - this.prefix = prefix; - this.nameSpaceUri = nameSpaceUri; - } - - /** - * Gets the name space uri. - * - * @return the name space uri - */ - protected String getNameSpaceUri() { - return this.nameSpaceUri; - } - - /** - * Gets the name space prefix. - * - * @return the name space prefix - */ - protected String getNameSpacePrefix() { - return this.prefix; - } + /** + * The Not specified. + */ + NotSpecified("", ""), + + /** + * The Messages. + */ + Messages(EwsUtilities.EwsMessagesNamespacePrefix, + EwsUtilities.EwsMessagesNamespace), + + /** + * The Types. + */ + Types(EwsUtilities.EwsTypesNamespacePrefix, EwsUtilities.EwsTypesNamespace), + + /** + * The Errors. + */ + Errors(EwsUtilities.EwsErrorsNamespacePrefix, + EwsUtilities.EwsErrorsNamespace), + + /** + * The Soap. + */ + Soap(EwsUtilities.EwsSoapNamespacePrefix, EwsUtilities.EwsSoapNamespace), + + /** + * The Soap12. + */ + Soap12(EwsUtilities.EwsSoapNamespacePrefix, + EwsUtilities.EwsSoap12Namespace), + + /** + * The Xml schema instance. + */ + XmlSchemaInstance(EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, + EwsUtilities.EwsXmlSchemaInstanceNamespace), + + /** + * The Passport soap fault. + */ + PassportSoapFault(EwsUtilities.PassportSoapFaultNamespacePrefix, + EwsUtilities.PassportSoapFaultNamespace), + + /** + * The WS trust february2005. + */ + WSTrustFebruary2005(EwsUtilities.WSTrustFebruary2005NamespacePrefix, + EwsUtilities.WSTrustFebruary2005Namespace), + + /** + * The WS addressing. + */ + WSAddressing(EwsUtilities.WSAddressingNamespacePrefix, + EwsUtilities.WSAddressingNamespace), + + /** + * The Autodiscover. + */ + Autodiscover(EwsUtilities.AutodiscoverSoapNamespacePrefix, + EwsUtilities.AutodiscoverSoapNamespace); + + /** + * The prefix. + */ + private String prefix; + + /** + * The name space uri. + */ + private String nameSpaceUri; + + /** + * Instantiates a new xml namespace. + * + * @param prefix the prefix + * @param nameSpaceUri the name space uri + */ + XmlNamespace(String prefix, String nameSpaceUri) { + this.prefix = prefix; + this.nameSpaceUri = nameSpaceUri; + } + + /** + * Gets the name space uri. + * + * @return the name space uri + */ + protected String getNameSpaceUri() { + return this.nameSpaceUri; + } + + /** + * Gets the name space prefix. + * + * @return the name space prefix + */ + protected String getNameSpacePrefix() { + return this.prefix; + } } diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index ce93435cc..d1d13699c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -17,203 +17,202 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class XmlNodeType implements XMLStreamConstants { - /** The node type. */ - int nodeType; + /** + * The node type. + */ + int nodeType; - /** - * Instantiates a new Xml node type. - * - * @param nodeType The node type. - */ - XmlNodeType(int nodeType) { - this.nodeType = nodeType; - } + /** + * Instantiates a new Xml node type. + * + * @param nodeType The node type. + */ + XmlNodeType(int nodeType) { + this.nodeType = nodeType; + } - /** - * Returns a string representation of the object. In general, the - * toString method returns a string that "textually represents" - * this object. The result should be a concise but informative - * representation that is easy for a person to read. It is recommended that - * all subclasses override this method. - *

- * The toString method for class Object returns a - * string consisting of the name of the class of which the object is an - * instance, the at-sign character `@', and the unsigned - * hexadecimal representation of the hash code of the object. In other - * words, this method returns a string equal to the value of:

- * - *
-	 * getClass().getName() + '@' + Integer.toHexString(hashCode())
-	 * 
- * - *
- * - * @return a string representation of the object. - */ - @Override - public String toString() { - return getString(nodeType); - } + /** + * Returns a string representation of the object. In general, the + * toString method returns a string that "textually represents" + * this object. The result should be a concise but informative + * representation that is easy for a person to read. It is recommended that + * all subclasses override this method. + *

+ * The toString method for class Object returns a + * string consisting of the name of the class of which the object is an + * instance, the at-sign character `@', and the unsigned + * hexadecimal representation of the hash code of the object. In other + * words, this method returns a string equal to the value of:

+ *

+ *

+   * getClass().getName() + '@' + Integer.toHexString(hashCode())
+   * 
+ *

+ *

+ * + * @return a string representation of the object. + */ + @Override + public String toString() { + return getString(nodeType); + } - /** - * Sets the node type. - * - * @param nodeType - * the new node type - */ - public void setNodeType(int nodeType) { - this.nodeType = nodeType; - } + /** + * Sets the node type. + * + * @param nodeType the new node type + */ + public void setNodeType(int nodeType) { + this.nodeType = nodeType; + } - /** - * Gets the node type. - * - * @return the node type - */ - public int getNodeType() { - return nodeType; - } + /** + * Gets the node type. + * + * @return the node type + */ + public int getNodeType() { + return nodeType; + } - /** - * Gets the string. - * - * @param nodeType - * the node type - * @return the string - */ - public static String getString(int nodeType) { - switch (nodeType) { - case XMLStreamConstants.ATTRIBUTE: - return "ATTRIBUTE"; - case XMLStreamConstants.CDATA: - return "CDATA"; - case XMLStreamConstants.CHARACTERS: - return "CHARACTERS"; - case XMLStreamConstants.COMMENT: - return "COMMENT"; - case XMLStreamConstants.DTD: - return "DTD"; - case XMLStreamConstants.END_DOCUMENT: - return "END_DOCUMENT"; - case XMLStreamConstants.END_ELEMENT: - return "END_ELEMENT"; - case XMLStreamConstants.ENTITY_DECLARATION: - return "ENTITY_DECLARATION"; - case XMLStreamConstants.ENTITY_REFERENCE: - return "ENTITY_REFERENCE"; - case XMLStreamConstants.NAMESPACE: - return "NAMESPACE"; - case XMLStreamConstants.NOTATION_DECLARATION: - return "NOTATION_DECLARATION"; - case XMLStreamConstants.PROCESSING_INSTRUCTION: - return "PROCESSING_INSTRUCTION"; - case XMLStreamConstants.SPACE: - return "SPACE"; - case XMLStreamConstants.START_DOCUMENT: - return "START_DOCUMENT"; - case XMLStreamConstants.START_ELEMENT: - return "START_ELEMENT"; - case 0: - return "NONE"; - default: - return "UNKNOWN"; - } - } + /** + * Gets the string. + * + * @param nodeType the node type + * @return the string + */ + public static String getString(int nodeType) { + switch (nodeType) { + case XMLStreamConstants.ATTRIBUTE: + return "ATTRIBUTE"; + case XMLStreamConstants.CDATA: + return "CDATA"; + case XMLStreamConstants.CHARACTERS: + return "CHARACTERS"; + case XMLStreamConstants.COMMENT: + return "COMMENT"; + case XMLStreamConstants.DTD: + return "DTD"; + case XMLStreamConstants.END_DOCUMENT: + return "END_DOCUMENT"; + case XMLStreamConstants.END_ELEMENT: + return "END_ELEMENT"; + case XMLStreamConstants.ENTITY_DECLARATION: + return "ENTITY_DECLARATION"; + case XMLStreamConstants.ENTITY_REFERENCE: + return "ENTITY_REFERENCE"; + case XMLStreamConstants.NAMESPACE: + return "NAMESPACE"; + case XMLStreamConstants.NOTATION_DECLARATION: + return "NOTATION_DECLARATION"; + case XMLStreamConstants.PROCESSING_INSTRUCTION: + return "PROCESSING_INSTRUCTION"; + case XMLStreamConstants.SPACE: + return "SPACE"; + case XMLStreamConstants.START_DOCUMENT: + return "START_DOCUMENT"; + case XMLStreamConstants.START_ELEMENT: + return "START_ELEMENT"; + case 0: + return "NONE"; + default: + return "UNKNOWN"; + } + } - /** - * Indicates whether some other object is "equal to" this one. - *

- * The equals method implements an equivalence relation on - * non-null object references: - *

    - *
  • It is reflexive: for any non-null reference value - * x, x.equals(x) should return true. - *
  • It is symmetric: for any non-null reference values - * x and y, x.equals(y) should return - * true if and only if y.equals(x) returns - * true. - *
  • It is transitive: for any non-null reference values - * x, y, and z, if - * x.equals(y) returns true and - * y.equals(z) returns true, then - * x.equals(z) should return true. - *
  • It is consistent: for any non-null reference values - * x and y, multiple invocations of - * x.equals(y) consistently return true or - * consistently return false, provided no information used in - * equals comparisons on the objects is modified. - *
  • For any non-null reference value x, - * x.equals(null) should return false. - *
- *

- * The equals method for class Object implements the - * most discriminating possible equivalence relation on objects; that is, - * for any non-null reference values x and y, this - * method returns true if and only if x and - * y refer to the same object (x == y has the - * value true). - *

- * Note that it is generally necessary to override the hashCode - * method whenever this method is overridden, so as to maintain the general - * contract for the hashCode method, which states that equal - * objects must have equal hash codes. - * - * @param obj - * the reference object with which to compare. - * @return if this object is the same as the obj argument; otherwise. - * @see #hashCode() - * @see java.util.Hashtable - */ - @Override - public boolean equals(Object obj) { + /** + * Indicates whether some other object is "equal to" this one. + *

+ * The equals method implements an equivalence relation on + * non-null object references: + *

    + *
  • It is reflexive: for any non-null reference value + * x, x.equals(x) should return true. + *
  • It is symmetric: for any non-null reference values + * x and y, x.equals(y) should return + * true if and only if y.equals(x) returns + * true. + *
  • It is transitive: for any non-null reference values + * x, y, and z, if + * x.equals(y) returns true and + * y.equals(z) returns true, then + * x.equals(z) should return true. + *
  • It is consistent: for any non-null reference values + * x and y, multiple invocations of + * x.equals(y) consistently return true or + * consistently return false, provided no information used in + * equals comparisons on the objects is modified. + *
  • For any non-null reference value x, + * x.equals(null) should return false. + *
+ *

+ * The equals method for class Object implements the + * most discriminating possible equivalence relation on objects; that is, + * for any non-null reference values x and y, this + * method returns true if and only if x and + * y refer to the same object (x == y has the + * value true). + *

+ * Note that it is generally necessary to override the hashCode + * method whenever this method is overridden, so as to maintain the general + * contract for the hashCode method, which states that equal + * objects must have equal hash codes. + * + * @param obj the reference object with which to compare. + * @return if this object is the same as the obj argument; otherwise. + * @see #hashCode() + * @see java.util.Hashtable + */ + @Override + public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj instanceof XmlNodeType) { - XmlNodeType other = (XmlNodeType)obj; - return this.nodeType == other.nodeType; - } else { - return super.equals(obj); - } - } + if (this == obj) { + return true; + } + if (obj instanceof XmlNodeType) { + XmlNodeType other = (XmlNodeType) obj; + return this.nodeType == other.nodeType; + } else { + return super.equals(obj); + } + } - /** - * Returns a hash code value for the object. This method is supported for - * the benefit of hashtables such as those provided by - * java.util.Hashtable. - *

- * The general contract of hashCode is: - *

    - *
  • Whenever it is invoked on the same object more than once during an - * execution of a Java application, the hashCode method must - * consistently return the same integer, provided no information used in - * equals comparisons on the object is modified. This integer need - * not remain consistent from one execution of an application to another - * execution of the same application. - *
  • If two objects are equal according to the equals(Object) - * method, then calling the hashCode method on each of the two - * objects must produce the same integer result. - *
  • It is not required that if two objects are unequal according - * to the {@link Object#equals(Object)} method, then - * calling the hashCode method on each of the two objects must - * produce distinct integer results. However, the programmer should be aware - * that producing distinct integer results for unequal objects may improve - * the performance of hashtables. - *
- *

- * As much as is reasonably practical, the hashCode method defined by class - * Object does return distinct integers for distinct objects. (This - * is typically implemented by converting the internal address of the object - * into an integer, but this implementation technique is not required by the - * JavaTM programming language.) - * - * @return a hash code value for this object. - * @see Object#equals(Object) - * @see java.util.Hashtable - */ - @Override - public int hashCode() { - return this.nodeType; - } + /** + * Returns a hash code value for the object. This method is supported for + * the benefit of hashtables such as those provided by + * java.util.Hashtable. + *

+ * The general contract of hashCode is: + *

    + *
  • Whenever it is invoked on the same object more than once during an + * execution of a Java application, the hashCode method must + * consistently return the same integer, provided no information used in + * equals comparisons on the object is modified. This integer need + * not remain consistent from one execution of an application to another + * execution of the same application. + *
  • If two objects are equal according to the equals(Object) + * method, then calling the hashCode method on each of the two + * objects must produce the same integer result. + *
  • It is not required that if two objects are unequal according + * to the {@link Object#equals(Object)} method, then + * calling the hashCode method on each of the two objects must + * produce distinct integer results. However, the programmer should be aware + * that producing distinct integer results for unequal objects may improve + * the performance of hashtables. + *
+ *

+ * As much as is reasonably practical, the hashCode method defined by class + * Object does return distinct integers for distinct objects. (This + * is typically implemented by converting the internal address of the object + * into an integer, but this implementation technique is not required by the + * JavaTM programming language.) + * + * @return a hash code value for this object. + * @see Object#equals(Object) + * @see java.util.Hashtable + */ + @Override + public int hashCode() { + return this.nodeType; + } } diff --git a/src/site/site.xml b/src/site/site.xml index 9d252c90a..a3e3210cb 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -11,10 +11,10 @@

- + - \ No newline at end of file + diff --git a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java index c98edef88..8262b8f08 100644 --- a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java @@ -19,30 +19,31 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @RunWith(JUnit4.class) public abstract class BaseTest { - /** - * Mock for the ExchangeServiceBase - */ - protected static ExchangeServiceBase exchangeServiceBaseMock; + /** + * Mock for the ExchangeServiceBase + */ + protected static ExchangeServiceBase exchangeServiceBaseMock; - /** - * Mock for the ExchangeService - */ - protected static ExchangeService exchangeServiceMock; + /** + * Mock for the ExchangeService + */ + protected static ExchangeService exchangeServiceMock; - /** - * Setup Mocks - * - * @throws Exception - */ - @BeforeClass - public static final void setUpBaseClass() throws Exception { - // Mock up ExchangeServiceBase - exchangeServiceBaseMock = new ExchangeServiceBase() { - @Override - protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) throws Exception { - throw webException; - } - }; - exchangeServiceMock = new ExchangeService(); - } + /** + * Setup Mocks + * + * @throws Exception + */ + @BeforeClass + public static final void setUpBaseClass() throws Exception { + // Mock up ExchangeServiceBase + exchangeServiceBaseMock = new ExchangeServiceBase() { + @Override + protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) + throws Exception { + throw webException; + } + }; + exchangeServiceMock = new ExchangeService(); + } } diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index 74b76729a..24e28a332 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -11,24 +11,24 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; import org.junit.Assert; +import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import org.junit.Test; @RunWith(JUnit4.class) public class EwsUtilitiesTest { - @Test - public void testGetBuildVersion() { - Assert.assertEquals("Build version must be 0s", "0.0.0.0", EwsUtilities.getBuildVersion()); - } + @Test + public void testGetBuildVersion() { + Assert.assertEquals("Build version must be 0s", "0.0.0.0", EwsUtilities.getBuildVersion()); + } - @Test - public void testStringEquals() { - Assert.assertTrue(EwsUtilities.stringEquals(null, null)); - Assert.assertTrue(EwsUtilities.stringEquals("x", "x")); + @Test + public void testStringEquals() { + Assert.assertTrue(EwsUtilities.stringEquals(null, null)); + Assert.assertTrue(EwsUtilities.stringEquals("x", "x")); - Assert.assertFalse(EwsUtilities.stringEquals(null, "x")); - Assert.assertFalse(EwsUtilities.stringEquals("x", null)); - Assert.assertFalse(EwsUtilities.stringEquals("x", "X")); - } + Assert.assertFalse(EwsUtilities.stringEquals(null, "x")); + Assert.assertFalse(EwsUtilities.stringEquals("x", null)); + Assert.assertFalse(EwsUtilities.stringEquals("x", "X")); + } } diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java index ad5887700..d9e6a3178 100644 --- a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -11,8 +11,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import org.apache.commons.codec.binary.*; -import org.hamcrest.core.IsEqual; import org.hamcrest.core.IsNot; import org.hamcrest.core.IsNull; import org.junit.Assert; @@ -24,7 +22,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import javax.xml.stream.XMLStreamException; import java.io.ByteArrayOutputStream; import java.net.URI; -import java.util.*; +import java.util.ArrayList; +import java.util.List; /** * Testclass for methods of GetUserSettingsRequest @@ -32,121 +31,136 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @RunWith(Parameterized.class) public class GetUserSettingsRequestTest extends BaseTest { - /** - * The ExchangeVersion which is under test - */ - private final ExchangeVersion exchangeVersion; - - /** - * The AutodiscoverService which is under test - */ - private final AutodiscoverService autodiscoverService; - - /** - * A mocked URI via HTTPS - */ - private final URI uriMockHttps = URI.create("https://localhost"); - - /** - * A mocked URI via HTTP - */ - private final URI uriMockHttp = URI.create("http://localhost"); - - /** - * Returns the Parameters which where handled to the constructor - * @return the available Services - * @throws ArgumentException - */ - @Parameterized.Parameters - public static List getAutodiscoverServices() throws ArgumentException { - return new ArrayList() { - { - for (ExchangeVersion exchangeVersion : ExchangeVersion.values()) { - add(new Object[]{exchangeVersion, new AutodiscoverService(exchangeVersion)}); - } - } - }; - } - - /** - * Construct the Testobject with given Parameters - * @param exchangeVersion - * @param autodiscoverService - */ - public GetUserSettingsRequestTest(final ExchangeVersion exchangeVersion, final AutodiscoverService autodiscoverService) { - this.exchangeVersion = exchangeVersion; - this.autodiscoverService = autodiscoverService; - } - - /** - * setup - * - */ - @Before - public void setup() { - Assert.assertThat(this.exchangeVersion, IsNull.notNullValue()); - Assert.assertThat(this.autodiscoverService, IsNull.notNullValue()); - Assert.assertThat(uriMockHttp, IsNull.notNullValue()); - Assert.assertThat(uriMockHttps, IsNull.notNullValue()); - } - - /** - * Nothing should be writen to the Outputstream if expectPartnerToken is not set - * @throws ServiceValidationException - * @throws XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Test - public void testWriteExtraCustomSoapHeadersToXmlWithoutPartnertoken() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { - // HTTPS - GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttps); - - // Test without expected Partnertoken - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); - - // nothing should be writen to the outputstream - Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); - - // HTTP - getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttp); - - // Test without expected Partnertoken - byteArrayOutputStream = new ByteArrayOutputStream(); - getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); - - // nothing should be writen to the outputstream - Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); - } - - /** - * Test if content is added correctly if expectPartnerToken is set - * @throws ServiceValidationException - * @throws XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Test - public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { - GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttps, Boolean.TRUE); - - // Test without expected Partnertoken - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - getUserSettingsRequest.writeExtraCustomSoapHeadersToXml(new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); - - // data should be added the same way as mentioned - Assert.assertThat(byteArrayOutputStream.toByteArray(), IsNot.not(new ByteArrayOutputStream().toByteArray())); - - //TODO Test if the output is really correct - } - - /** - * Initialising a GetUserSettingsRequest with Http should lead to an ServiceValidationException - * @throws ServiceValidationException - * @throws XMLStreamException - * @throws ServiceXmlSerializationException - */ - @Test(expected = ServiceValidationException.class) - public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken2() throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { - GetUserSettingsRequest getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttp, Boolean.TRUE); - } + /** + * The ExchangeVersion which is under test + */ + private final ExchangeVersion exchangeVersion; + + /** + * The AutodiscoverService which is under test + */ + private final AutodiscoverService autodiscoverService; + + /** + * A mocked URI via HTTPS + */ + private final URI uriMockHttps = URI.create("https://localhost"); + + /** + * A mocked URI via HTTP + */ + private final URI uriMockHttp = URI.create("http://localhost"); + + /** + * Returns the Parameters which where handled to the constructor + * + * @return the available Services + * @throws ArgumentException + */ + @Parameterized.Parameters + public static List getAutodiscoverServices() throws ArgumentException { + return new ArrayList() { + { + for (ExchangeVersion exchangeVersion : ExchangeVersion.values()) { + add(new Object[] {exchangeVersion, new AutodiscoverService(exchangeVersion)}); + } + } + }; + } + + /** + * Construct the Testobject with given Parameters + * + * @param exchangeVersion + * @param autodiscoverService + */ + public GetUserSettingsRequestTest(final ExchangeVersion exchangeVersion, + final AutodiscoverService autodiscoverService) { + this.exchangeVersion = exchangeVersion; + this.autodiscoverService = autodiscoverService; + } + + /** + * setup + */ + @Before + public void setup() { + Assert.assertThat(this.exchangeVersion, IsNull.notNullValue()); + Assert.assertThat(this.autodiscoverService, IsNull.notNullValue()); + Assert.assertThat(uriMockHttp, IsNull.notNullValue()); + Assert.assertThat(uriMockHttps, IsNull.notNullValue()); + } + + /** + * Nothing should be writen to the Outputstream if expectPartnerToken is not set + * + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test + public void testWriteExtraCustomSoapHeadersToXmlWithoutPartnertoken() + throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + // HTTPS + GetUserSettingsRequest getUserSettingsRequest = + new GetUserSettingsRequest(autodiscoverService, uriMockHttps); + + // Test without expected Partnertoken + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml( + new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // nothing should be writen to the outputstream + Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); + + // HTTP + getUserSettingsRequest = new GetUserSettingsRequest(autodiscoverService, uriMockHttp); + + // Test without expected Partnertoken + byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml( + new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // nothing should be writen to the outputstream + Assert.assertArrayEquals(byteArrayOutputStream.toByteArray(), new ByteArrayOutputStream().toByteArray()); + } + + /** + * Test if content is added correctly if expectPartnerToken is set + * + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test + public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken() + throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + GetUserSettingsRequest getUserSettingsRequest = + new GetUserSettingsRequest(autodiscoverService, uriMockHttps, Boolean.TRUE); + + // Test without expected Partnertoken + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + getUserSettingsRequest.writeExtraCustomSoapHeadersToXml( + new EwsServiceXmlWriter(exchangeServiceBaseMock, byteArrayOutputStream)); + + // data should be added the same way as mentioned + Assert.assertThat(byteArrayOutputStream.toByteArray(), + IsNot.not(new ByteArrayOutputStream().toByteArray())); + + //TODO Test if the output is really correct + } + + /** + * Initialising a GetUserSettingsRequest with Http should lead to an ServiceValidationException + * + * @throws ServiceValidationException + * @throws XMLStreamException + * @throws ServiceXmlSerializationException + */ + @Test(expected = ServiceValidationException.class) + public void testWriteExtraCustomSoapHeadersToXmlWithPartnertoken2() + throws ServiceValidationException, XMLStreamException, ServiceXmlSerializationException { + GetUserSettingsRequest getUserSettingsRequest = + new GetUserSettingsRequest(autodiscoverService, uriMockHttp, Boolean.TRUE); + } } diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java index 628d683d8..f3a847bfd 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -26,129 +26,129 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of @RunWith(JUnit4.class) public class TaskTest extends BaseTest { - /** - * Mock for the Task - */ - private Task taskMock; - - /** - * Setup Mocks - * - * @throws Exception - */ - @Before - public void setup() throws Exception { - this.taskMock = new Task(this.exchangeServiceMock); + /** + * Mock for the Task + */ + private Task taskMock; + + /** + * Setup Mocks + * + * @throws Exception + */ + @Before + public void setup() throws Exception { + this.taskMock = new Task(this.exchangeServiceMock); + } + + /** + * Test for reading the value before it is assigned + * + * @throws Exception + */ + @Test(expected = ServiceObjectPropertyException.class) + public void testInitialValuePercent() throws Exception { + taskMock.getPercentComplete(); + } + + /** + * Test for adding 0.0 as percentCompleted + * + * @throws Exception + */ + @Test + public void testAddZeroPercent() throws Exception { + final Double targetValue = 0.0; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } + + /** + * Test for adding 100.0 as percentCompleted + * + * @throws Exception + */ + @Test + public void testAdd100Percent() throws Exception { + final Double targetValue = 100.0; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } + + /** + * Test for adding Double.MAX_VALUE as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddMaxDoublePercent() throws Exception { + final Double targetValue = Double.MAX_VALUE; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding -0.1 as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddInvalidPercent() throws Exception { + final Double targetValue = -0.1; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding +100.1 as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddInvalidPercent2() throws Exception { + final Double targetValue = +100.1; + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for adding Double.NaN as percentCompleted + * + * @throws Exception + */ + @Test(expected = IllegalArgumentException.class) + public void testAddNanDoublePercent() throws Exception { + final Double targetValue = Double.NaN; // closest Value to Zero + taskMock.setPercentComplete(targetValue); + } + + /** + * Test for checking if the value changes in case of a thrown exception + * + * @throws Exception + */ + @Test + public void testDontChangeValueOnException() throws Exception { + // set valid value + final Double targetValue = 50.5; + taskMock.setPercentComplete(targetValue); + + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + + final Double invalidValue = -0.1; + try { + taskMock.setPercentComplete(invalidValue); + } catch (IllegalArgumentException ex) { + // ignored } - /** - * Test for reading the value before it is assigned - * - * @throws Exception - */ - @Test(expected = ServiceObjectPropertyException.class) - public void testInitialValuePercent() throws Exception { - taskMock.getPercentComplete(); - } - - /** - * Test for adding 0.0 as percentCompleted - * - * @throws Exception - */ - @Test - public void testAddZeroPercent() throws Exception { - final Double targetValue = 0.0; - taskMock.setPercentComplete(targetValue); - - assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); - assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); - assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); - } - - /** - * Test for adding 100.0 as percentCompleted - * - * @throws Exception - */ - @Test - public void testAdd100Percent() throws Exception { - final Double targetValue = 100.0; - taskMock.setPercentComplete(targetValue); - - assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); - assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); - assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); - } - - /** - * Test for adding Double.MAX_VALUE as percentCompleted - * - * @throws Exception - */ - @Test(expected = IllegalArgumentException.class) - public void testAddMaxDoublePercent() throws Exception { - final Double targetValue = Double.MAX_VALUE; - taskMock.setPercentComplete(targetValue); - } - - /** - * Test for adding -0.1 as percentCompleted - * - * @throws Exception - */ - @Test(expected = IllegalArgumentException.class) - public void testAddInvalidPercent() throws Exception { - final Double targetValue = -0.1; - taskMock.setPercentComplete(targetValue); - } - - /** - * Test for adding +100.1 as percentCompleted - * - * @throws Exception - */ - @Test(expected = IllegalArgumentException.class) - public void testAddInvalidPercent2() throws Exception { - final Double targetValue = +100.1; - taskMock.setPercentComplete(targetValue); - } - - /** - * Test for adding Double.NaN as percentCompleted - * - * @throws Exception - */ - @Test(expected = IllegalArgumentException.class) - public void testAddNanDoublePercent() throws Exception { - final Double targetValue = Double.NaN; // closest Value to Zero - taskMock.setPercentComplete(targetValue); - } - - /** - * Test for checking if the value changes in case of a thrown exception - * - * @throws Exception - */ - @Test - public void testDontChangeValueOnException() throws Exception { - // set valid value - final Double targetValue = 50.5; - taskMock.setPercentComplete(targetValue); - - assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); - assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); - assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); - - final Double invalidValue = -0.1; - try { - taskMock.setPercentComplete(invalidValue); - } catch (IllegalArgumentException ex) { - // ignored - } - - assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); - assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); - assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); - } + assertThat(taskMock.getPercentComplete(), IsNot.not(IsNull.nullValue())); + assertThat(taskMock.getPercentComplete(), IsInstanceOf.instanceOf(Double.class)); + assertThat(taskMock.getPercentComplete(), IsEqual.equalTo(targetValue)); + } } diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index 1c736ddb4..e51211d6a 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -21,124 +21,123 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Testclass for methods of UserConfigurationDictionary - * */ @RunWith(JUnit4.class) public class UserConfigurationDictionaryTest extends BaseTest { - /** - * Mock for the UserConfigurationDictionary - */ - protected UserConfigurationDictionary userConfigurationDictionary; - - @Before - public void setup() throws Exception { - // Initialise a UserConfigurationDictionary Testobject - this.userConfigurationDictionary = new UserConfigurationDictionary(); - } - - /** - * Adding a Double Value to the Dictionary witch is not allowed - * - * @throws Exception - */ - @Test(expected = ServiceLocalException.class) - public void testAddUnsupportedElementsToDictionary() throws Exception { - this.userConfigurationDictionary.addElement("someDouble", (Double) 1.0); - } - - /** - * testAddSupportedElementsToDictionary - * - * @throws Exception - */ - @Test - public void testAddSupportedElementsToDictionary() throws Exception { - fillDictionaryWithValidEntries(); - } - - /** - * Fills the Dictionary with - * - * @throws Exception - */ - private void fillDictionaryWithValidEntries() throws Exception { - // Adding Test Values to the Object - final int testInt = 1; - final long testLong = 1l; - final String testString = "someVal"; - final String[] testStringArray = new String[]{"test1", "test2", "test3"}; - final Date testDate = new Date(); - final boolean testBoolean = true; - final byte testByte = Byte.decode("0x10"); - final byte[] testByteArray = testString.getBytes(); - final Byte[] testByteArray2 = new Byte[testByteArray.length]; - for (int currentIndex = 0; currentIndex < testByteArray.length; currentIndex++) { - testByteArray2[currentIndex] = testByteArray[currentIndex]; - } - - Assert.assertNotNull(this.userConfigurationDictionary); - - this.userConfigurationDictionary.addElement("someString", testString); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString")); - Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someString")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someString") instanceof String); - - this.userConfigurationDictionary.addElement("someLong", testLong); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someLong")); - Assert.assertEquals(testLong, this.userConfigurationDictionary.getElements("someLong")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someLong") instanceof Long); - - this.userConfigurationDictionary.addElement("someInteger", testInt); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someInteger")); - Assert.assertEquals(testInt, this.userConfigurationDictionary.getElements("someInteger")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someInteger") instanceof Integer); - - this.userConfigurationDictionary.addElement("someString[]", testStringArray); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString[]")); - Assert.assertEquals(testStringArray, this.userConfigurationDictionary.getElements("someString[]")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someString[]") instanceof String[]); - - this.userConfigurationDictionary.addElement("someDate", testDate); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someDate")); - Assert.assertEquals(testDate, this.userConfigurationDictionary.getElements("someDate")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someDate") instanceof Date); - - this.userConfigurationDictionary.addElement("someBoolean", testBoolean); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someBoolean")); - Assert.assertEquals(testBoolean, this.userConfigurationDictionary.getElements("someBoolean")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someBoolean") instanceof Boolean); - - this.userConfigurationDictionary.addElement("someByte", testByte); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte")); - Assert.assertEquals(testByte, this.userConfigurationDictionary.getElements("someByte")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte") instanceof Byte); - - this.userConfigurationDictionary.addElement("someByte[]", testByteArray); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte[]")); - Assert.assertEquals(testByteArray, this.userConfigurationDictionary.getElements("someByte[]")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte[]") instanceof byte[]); - - this.userConfigurationDictionary.addElement("someByte2[]", testByteArray2); - Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte2[]")); - Assert.assertEquals(testByteArray2, this.userConfigurationDictionary.getElements("someByte2[]")); - Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte2[]") instanceof Byte[]); + /** + * Mock for the UserConfigurationDictionary + */ + protected UserConfigurationDictionary userConfigurationDictionary; + + @Before + public void setup() throws Exception { + // Initialise a UserConfigurationDictionary Testobject + this.userConfigurationDictionary = new UserConfigurationDictionary(); + } + + /** + * Adding a Double Value to the Dictionary witch is not allowed + * + * @throws Exception + */ + @Test(expected = ServiceLocalException.class) + public void testAddUnsupportedElementsToDictionary() throws Exception { + this.userConfigurationDictionary.addElement("someDouble", (Double) 1.0); + } + + /** + * testAddSupportedElementsToDictionary + * + * @throws Exception + */ + @Test + public void testAddSupportedElementsToDictionary() throws Exception { + fillDictionaryWithValidEntries(); + } + + /** + * Fills the Dictionary with + * + * @throws Exception + */ + private void fillDictionaryWithValidEntries() throws Exception { + // Adding Test Values to the Object + final int testInt = 1; + final long testLong = 1l; + final String testString = "someVal"; + final String[] testStringArray = new String[] {"test1", "test2", "test3"}; + final Date testDate = new Date(); + final boolean testBoolean = true; + final byte testByte = Byte.decode("0x10"); + final byte[] testByteArray = testString.getBytes(); + final Byte[] testByteArray2 = new Byte[testByteArray.length]; + for (int currentIndex = 0; currentIndex < testByteArray.length; currentIndex++) { + testByteArray2[currentIndex] = testByteArray[currentIndex]; } - /** - * Tests the Method writeElementsToXml(...) - * with all valid Elements - */ - @Test - public void testWriteElementsToXml() throws Exception { - // Mock up needed Classes - OutputStream output = new ByteArrayOutputStream(); - EwsServiceXmlWriter testWriter = new EwsServiceXmlWriter(exchangeServiceBaseMock, output); - - // Adding Test Values to the Object - fillDictionaryWithValidEntries(); - - // Write the Elements - this.userConfigurationDictionary.writeElementsToXml(testWriter); - } + Assert.assertNotNull(this.userConfigurationDictionary); + + this.userConfigurationDictionary.addElement("someString", testString); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString")); + Assert.assertEquals(testString, this.userConfigurationDictionary.getElements("someString")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someString") instanceof String); + + this.userConfigurationDictionary.addElement("someLong", testLong); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someLong")); + Assert.assertEquals(testLong, this.userConfigurationDictionary.getElements("someLong")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someLong") instanceof Long); + + this.userConfigurationDictionary.addElement("someInteger", testInt); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someInteger")); + Assert.assertEquals(testInt, this.userConfigurationDictionary.getElements("someInteger")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someInteger") instanceof Integer); + + this.userConfigurationDictionary.addElement("someString[]", testStringArray); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someString[]")); + Assert.assertEquals(testStringArray, this.userConfigurationDictionary.getElements("someString[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someString[]") instanceof String[]); + + this.userConfigurationDictionary.addElement("someDate", testDate); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someDate")); + Assert.assertEquals(testDate, this.userConfigurationDictionary.getElements("someDate")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someDate") instanceof Date); + + this.userConfigurationDictionary.addElement("someBoolean", testBoolean); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someBoolean")); + Assert.assertEquals(testBoolean, this.userConfigurationDictionary.getElements("someBoolean")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someBoolean") instanceof Boolean); + + this.userConfigurationDictionary.addElement("someByte", testByte); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte")); + Assert.assertEquals(testByte, this.userConfigurationDictionary.getElements("someByte")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte") instanceof Byte); + + this.userConfigurationDictionary.addElement("someByte[]", testByteArray); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte[]")); + Assert.assertEquals(testByteArray, this.userConfigurationDictionary.getElements("someByte[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte[]") instanceof byte[]); + + this.userConfigurationDictionary.addElement("someByte2[]", testByteArray2); + Assert.assertTrue(this.userConfigurationDictionary.containsKey("someByte2[]")); + Assert.assertEquals(testByteArray2, this.userConfigurationDictionary.getElements("someByte2[]")); + Assert.assertTrue(this.userConfigurationDictionary.getElements("someByte2[]") instanceof Byte[]); + } + + /** + * Tests the Method writeElementsToXml(...) + * with all valid Elements + */ + @Test + public void testWriteElementsToXml() throws Exception { + // Mock up needed Classes + OutputStream output = new ByteArrayOutputStream(); + EwsServiceXmlWriter testWriter = new EwsServiceXmlWriter(exchangeServiceBaseMock, output); + + // Adding Test Values to the Object + fillDictionaryWithValidEntries(); + + // Write the Elements + this.userConfigurationDictionary.writeElementsToXml(testWriter); + } } From 83f166a50b4de333366595779a28ec3efa63dc0f Mon Sep 17 00:00:00 2001 From: serious6 Date: Thu, 11 Dec 2014 20:15:18 +0100 Subject: [PATCH 072/338] fix #141 misc.xml - set project-jdk to level 1.7 - set languageLevel to 1.7 because as in pom.xml defined the javaLanguage.version was intended to be 1.7. With this fix included project-jdk will be pointed to jdk 1.7 and intelliJ s editor will also support java7 specifics. --- .idea/misc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index ccf88d1b8..4c4c1de6f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -10,7 +10,7 @@ - + From 1168f6a555b58793317eecedc339e07fdc993aed Mon Sep 17 00:00:00 2001 From: icezmb Date: Mon, 22 Dec 2014 21:22:47 +0800 Subject: [PATCH 073/338] fix bug, the logic of transforming EmailAddress object to string is incorrect, fix it add the test --- .../webservices/data/EmailAddress.java | 2 +- .../webservices/data/EmailAddressTest.java | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 305860b39..3f1ca2308 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -353,7 +353,7 @@ public String toString() { addressPart = this.getAddress(); } - if (null != this.getName() && this.getName().isEmpty()) { + if (null != this.getName() && !this.getName().isEmpty()) { return this.getName() + " <" + addressPart + ">"; } else { return addressPart; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java new file mode 100644 index 000000000..b8ba484f5 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java @@ -0,0 +1,39 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ +package microsoft.exchange.webservices.data; + +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class EmailAddressTest { + + @Test + public void testEmailAddressToString() { + Assert.assertTrue(EwsUtilities.stringEquals(null, null)); + EmailAddress address = new EmailAddress(); + address.setAddress("ews@ews.com"); + Assert.assertEquals(address.toString(), "ews@ews.com"); + address.setName("ews"); + Assert.assertEquals(address.toString(), "ews "); + } + + @Test + public void testStringEquals() { + Assert.assertTrue(EwsUtilities.stringEquals(null, null)); + Assert.assertTrue(EwsUtilities.stringEquals("x", "x")); + + Assert.assertFalse(EwsUtilities.stringEquals(null, "x")); + Assert.assertFalse(EwsUtilities.stringEquals("x", null)); + Assert.assertFalse(EwsUtilities.stringEquals("x", "X")); + } +} From d28f21c794e2a8c203e11528f5e049e6e56c4b15 Mon Sep 17 00:00:00 2001 From: icezmb Date: Mon, 22 Dec 2014 21:37:19 +0800 Subject: [PATCH 074/338] roll back the code --- .../webservices/data/EmailAddress.java | 2 +- .../webservices/data/EmailAddressTest.java | 39 ------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 3f1ca2308..305860b39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -353,7 +353,7 @@ public String toString() { addressPart = this.getAddress(); } - if (null != this.getName() && !this.getName().isEmpty()) { + if (null != this.getName() && this.getName().isEmpty()) { return this.getName() + " <" + addressPart + ">"; } else { return addressPart; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java deleted file mode 100644 index b8ba484f5..000000000 --- a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ -package microsoft.exchange.webservices.data; - -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class EmailAddressTest { - - @Test - public void testEmailAddressToString() { - Assert.assertTrue(EwsUtilities.stringEquals(null, null)); - EmailAddress address = new EmailAddress(); - address.setAddress("ews@ews.com"); - Assert.assertEquals(address.toString(), "ews@ews.com"); - address.setName("ews"); - Assert.assertEquals(address.toString(), "ews "); - } - - @Test - public void testStringEquals() { - Assert.assertTrue(EwsUtilities.stringEquals(null, null)); - Assert.assertTrue(EwsUtilities.stringEquals("x", "x")); - - Assert.assertFalse(EwsUtilities.stringEquals(null, "x")); - Assert.assertFalse(EwsUtilities.stringEquals("x", null)); - Assert.assertFalse(EwsUtilities.stringEquals("x", "X")); - } -} From 299a8b695137ea10921f29ac0704ee2907737080 Mon Sep 17 00:00:00 2001 From: icezmb Date: Mon, 22 Dec 2014 21:41:25 +0800 Subject: [PATCH 075/338] fix bug, the logic of transforming EmailAddress object to string is incorrect fix it and add the test --- .../webservices/data/EmailAddress.java | 2 +- .../webservices/data/EmailAddressTest.java | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 305860b39..3f1ca2308 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -353,7 +353,7 @@ public String toString() { addressPart = this.getAddress(); } - if (null != this.getName() && this.getName().isEmpty()) { + if (null != this.getName() && !this.getName().isEmpty()) { return this.getName() + " <" + addressPart + ">"; } else { return addressPart; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java new file mode 100644 index 000000000..994a68fed --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java @@ -0,0 +1,30 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ +package microsoft.exchange.webservices.data; + +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class EmailAddressTest { + + @Test + public void testEmailAddressToString() { + Assert.assertTrue(EwsUtilities.stringEquals(null, null)); + EmailAddress address = new EmailAddress(); + address.setAddress("ews@ews.com"); + Assert.assertEquals(address.toString(), "ews@ews.com"); + address.setName("ews"); + Assert.assertEquals(address.toString(), "ews "); + } + +} From 27da8401b7f76d105f91d18f2af5ee2d14c07c95 Mon Sep 17 00:00:00 2001 From: Baris Aydinoglu Date: Wed, 24 Dec 2014 14:24:40 +0200 Subject: [PATCH 076/338] ExtendedPropertyDefinition.isEqualTo method fixed ExtendedPropertyDefinition.isEqualTo method causes not to update multiple extended properties of an item. (Caused by the changes at 695d30e83bd93a573aad49567dd44e0ecf7658df) Tag comparison of extended properties added to fix that problem. --- .../webservices/data/ExtendedPropertyDefinition.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 0bd85e6e3..879482604 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -206,6 +206,14 @@ protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, return false; } + if (extPropDef1.getTag() != null) { + if (!extPropDef1.getTag().equals(extPropDef2.getTag())) { + return false; + } + } else if (extPropDef2.getTag() != null) { + return false; + } + if (extPropDef1.getName() != null) { if (!extPropDef1.getName().equals(extPropDef2.getName())) { return false; From 734e1b2f7c93dbe243de1824baf8a50bbe6a5cd0 Mon Sep 17 00:00:00 2001 From: avromf Date: Tue, 6 Jan 2015 10:12:21 -0500 Subject: [PATCH 077/338] Fix #17 --- .../exchange/webservices/data/ExtendedPropertyDefinition.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 0bd85e6e3..828c2e0c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -308,8 +308,7 @@ protected void loadFromXml(EwsServiceXmlReader reader) throws Exception { .readAttributeValue(XmlAttributeNames.PropertyTag); if (null != attributeValue && !attributeValue.isEmpty()) { - this.tag = Integer.getInteger(attributeValue, 16); - // this.tag = Integer.parseInt(attributeValue, 16); + this.tag = Integer.decode(attributeValue); } this.name = reader.readAttributeValue(XmlAttributeNames.PropertyName); From 93fc9154d9283b151adba93c3dd57e6ecde126fa Mon Sep 17 00:00:00 2001 From: Baris Aydinoglu Date: Wed, 7 Jan 2015 10:20:43 +0200 Subject: [PATCH 078/338] Fix for AttachmentCollection validate In AttachmentCollection.validate(), type checking added to casting of Attachment to FileAttachment as fix for #18. --- .../webservices/data/AttachmentCollection.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index a9d2b7009..95ac37136 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -352,7 +352,7 @@ public void validate() throws Exception { for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems() .size(); attachmentIndex++) { Attachment attachment = this.getAddedItems().get(attachmentIndex); - if (attachment.isNew()) { + if (attachment != null && attachment.isNew()) { // At the server side, only the last attachment with // IsContactPhoto is kept, all other IsContactPhoto @@ -372,15 +372,17 @@ public void validate() throws Exception { && this.owner.getService().getRequestedServerVersion() .ordinal() >= ExchangeVersion.Exchange2010_SP2 .ordinal()) { - FileAttachment fileAttachment = (FileAttachment) attachment; + if (attachment instanceof FileAttachment) { + FileAttachment fileAttachment = (FileAttachment) attachment; - if (fileAttachment.isContactPhoto()) { - if (contactPhotoFound) { - throw new ServiceValidationException( - Strings.MultipleContactPhotosInAttachment); - } + if (fileAttachment.isContactPhoto()) { + if (contactPhotoFound) { + throw new ServiceValidationException( + Strings.MultipleContactPhotosInAttachment); + } - contactPhotoFound = true; + contactPhotoFound = true; + } } } From 5aeb2e7aaddb89138959f02b1a1d86fa796c0405 Mon Sep 17 00:00:00 2001 From: Baris Aydinoglu Date: Wed, 7 Jan 2015 09:29:49 +0100 Subject: [PATCH 079/338] Merge pull request #155 from barisaydinoglu/master Warnings cleaned: - {c} is a raw type. References to generic type {c}<{t}> should be parameterized. - The serializable class {c} does not declare a static final serialVersionUID field of type long. - The static field {c}.{t} should be accessed in a static way. - Type safety: Unchecked cast from Object to {t}. - Unnecessary @SuppressWarnings("{w}"). - TimeSpanTest moved to src/main/java to src/test/java, and rewritten as JUnit test. --- .../data/AbstractAsyncCallback.java | 6 +- .../data/AccountIsLockedException.java | 5 ++ .../webservices/data/ArgumentException.java | 5 ++ .../data/ArgumentNullException.java | 5 ++ .../data/ArgumentOutOfRangeException.java | 5 ++ .../webservices/data/AsyncCallback.java | 4 +- .../data/AsyncCallbackImplementation.java | 2 +- .../webservices/data/AsyncRequestResult.java | 12 +-- .../data/AutodiscoverEndpoints.java | 1 - .../data/AutodiscoverLocalException.java | 5 ++ .../data/AutodiscoverRemoteException.java | 5 ++ .../data/AutodiscoverResponseException.java | 5 ++ .../webservices/data/AutodiscoverService.java | 5 +- .../data/ByteArrayPropertyDefinition.java | 2 +- .../webservices/data/CallableMethod.java | 2 +- .../exchange/webservices/data/Callback.java | 2 +- .../webservices/data/ComplexProperty.java | 3 +- .../data/ComplexPropertyCollection.java | 2 +- .../data/ComplexPropertyDefinition.java | 6 +- .../data/ComplexPropertyDefinitionBase.java | 2 +- .../exchange/webservices/data/Contact.java | 2 +- .../data/ContainedPropertyDefinition.java | 1 - .../webservices/data/Conversation.java | 34 ++++---- .../webservices/data/ConversationSchema.java | 1 - .../data/CreateAttachmentException.java | 5 ++ .../data/DateTimePropertyDefinition.java | 2 +- .../webservices/data/DayOfTheWeek.java | 1 - .../data/DeleteAttachmentException.java | 4 + .../webservices/data/DnsException.java | 3 +- .../exchange/webservices/data/DnsRecord.java | 4 +- .../webservices/data/DnsRecordType.java | 1 - .../webservices/data/DnsSrvRecord.java | 4 +- .../webservices/data/EWSConstants.java | 4 +- .../webservices/data/EWSHttpException.java | 5 ++ .../webservices/data/EffectiveRights.java | 1 - .../EffectiveRightsPropertyDefinition.java | 2 +- .../webservices/data/EmailAddressEntry.java | 1 - .../webservices/data/EwsServiceXmlReader.java | 5 +- .../webservices/data/EwsUtilities.java | 77 ++++++------------- .../webservices/data/ExchangeService.java | 19 ++--- .../webservices/data/ExchangeServiceBase.java | 2 - .../data/ExecuteDiagnosticMethodResponse.java | 2 +- .../webservices/data/ExtendedProperty.java | 4 +- .../data/ExtendedPropertyDefinition.java | 2 +- .../webservices/data/FindItemResponse.java | 3 +- .../webservices/data/FindItemsResults.java | 6 +- .../exchange/webservices/data/Folder.java | 1 - .../webservices/data/FormatException.java | 5 ++ .../webservices/data/GetFolderResponse.java | 1 - .../webservices/data/GetItemResponse.java | 4 +- .../data/GroupMemberPropertyDefinition.java | 2 +- .../data/HangingServiceRequestBase.java | 2 - .../webservices/data/HttpErrorException.java | 6 ++ .../webservices/data/IAsyncResult.java | 2 +- .../webservices/data/IFunctionDelegate.java | 5 +- .../data/IndexedPropertyDefinition.java | 2 +- .../data/InvalidOperationException.java | 5 ++ .../webservices/data/ItemAttachment.java | 2 +- .../webservices/data/ItemCollection.java | 1 - .../data/LegacyFreeBusyStatus.java | 1 - .../webservices/data/MapiTypeConverter.java | 4 +- .../data/MapiTypeConverterMap.java | 5 ++ .../data/MapiTypeConverterMapEntry.java | 22 +++--- .../MeetingTimeZonePropertyDefinition.java | 2 +- .../exchange/webservices/data/Month.java | 1 - .../data/MoveCopyFolderResponse.java | 1 - .../data/MoveCopyItemResponse.java | 1 - .../data/MultiResponseServiceRequest.java | 1 - .../data/NotSupportedException.java | 6 ++ .../webservices/data/OrderByCollection.java | 8 +- ...ermissionCollectionPropertyDefinition.java | 2 +- .../data/PhysicalAddressEntry.java | 11 +-- .../data/PropertyDefinitionBase.java | 2 +- .../webservices/data/PropertyException.java | 5 ++ .../webservices/data/PropertySet.java | 2 +- .../data/RecurrencePropertyDefinition.java | 2 +- .../webservices/data/ResponseActions.java | 1 - .../ResponseObjectsPropertyDefinition.java | 2 +- .../webservices/data/RulePredicates.java | 2 +- .../data/ServiceLocalException.java | 5 ++ .../data/ServiceObjectPropertyException.java | 5 ++ .../data/ServiceRemoteException.java | 5 ++ .../data/ServiceRequestException.java | 5 ++ .../data/ServiceResponseException.java | 5 ++ .../data/ServiceValidationException.java | 5 ++ .../data/ServiceVersionException.java | 5 ++ .../ServiceXmlDeserializationException.java | 5 ++ .../ServiceXmlSerializationException.java | 5 ++ .../webservices/data/SimplePropertyBag.java | 16 ++-- .../data/SimpleServiceRequestBase.java | 4 +- .../data/StreamingSubscription.java | 2 - .../data/StreamingSubscriptionConnection.java | 1 - .../data/StringPropertyDefinition.java | 2 +- .../exchange/webservices/data/TaskMode.java | 1 - .../exchange/webservices/data/Time.java | 11 ++- .../exchange/webservices/data/TimeSpan.java | 41 +++++----- .../data/TimeZoneConversionException.java | 5 ++ .../webservices/data/TimeZoneDefinition.java | 3 +- .../data/TimeZonePropertyDefinition.java | 2 +- .../data/UpdateInboxRulesException.java | 5 ++ .../webservices/data/UpdateItemResponse.java | 3 +- .../webservices/data/UserConfiguration.java | 4 +- .../data/UserConfigurationDictionary.java | 8 +- .../data/UserConfigurationProperties.java | 1 - .../webservices/data/XmlDtdException.java | 6 ++ .../webservices/data/XmlException.java | 5 ++ .../data/GetUserSettingsRequestTest.java | 6 ++ .../exchange/webservices/data/TaskTest.java | 2 +- .../webservices/data/TimeSpanTest.java | 17 ++-- 109 files changed, 340 insertions(+), 248 deletions(-) rename src/{main => test}/java/microsoft/exchange/webservices/data/TimeSpanTest.java (87%) diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index 249dc996b..a0cd713c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -12,14 +12,14 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; -abstract class AbstractAsyncCallback implements Runnable, Callback { - Future task; +abstract class AbstractAsyncCallback implements Runnable, Callback { + Future task; static boolean callbackProcessed = false; AbstractAsyncCallback() { } - AbstractAsyncCallback(Future t) { + AbstractAsyncCallback(Future t) { this.task = t; } diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index f66ec0b5e..d4725eade 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -18,6 +18,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AccountIsLockedException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + private URI accountUnlockUrl; diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 9d3cb51b6..866279fea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new argument exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index dc879e3e8..8a5b31ea4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentNullException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new argument null exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index 9ff06a32a..a6c38725c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ArgumentOutOfRangeException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new argument out of range exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index 7a867de05..319e5b028 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -18,12 +18,12 @@ abstract class AsyncCallback extends AbstractAsyncCallback { } - void setTask(Future task) { + void setTask(Future task) { this.task = task; } - Future getTask() { + Future getTask() { return this.task; } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index 238f2171d..5ef52b33e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -15,7 +15,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public class AsyncCallbackImplementation extends AsyncCallback { @Override - public Object processMe(Future task) { + public Object processMe(Future task) { System.out.println("In Async Callback" + task.isDone()); return null; } diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index 7c196e284..7d3048107 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -19,15 +19,15 @@ public class AsyncRequestResult implements IAsyncResult { AsyncCallback wasasyncCallback; IAsyncResult webAsyncResult; Object asyncState; - Future task; + Future task; - AsyncRequestResult(Future task) { + AsyncRequestResult(Future task) { this.task = task; } public AsyncRequestResult(ServiceRequestBase serviceRequest, - HttpWebRequest webRequest, Future task, + HttpWebRequest webRequest, Future task, Object asyncState) throws Exception { EwsUtilities.validateParam(serviceRequest, "serviceRequest"); EwsUtilities.validateParam(webRequest, "webRequest"); @@ -55,12 +55,12 @@ public HttpWebRequest getHttpWebRequest() { return this.webRequest; } - public FutureTask getTask() { - return (FutureTask) this.task; + public FutureTask getTask() { + return (FutureTask) this.task; } public static T extractServiceRequest( - ExchangeService exchangeService, Future asyncResult) throws Exception { + ExchangeService exchangeService, Future asyncResult) throws Exception { EwsUtilities.validateParam(asyncResult, "asyncResult"); AsyncRequestResult asyncRequestResult = (AsyncRequestResult) asyncResult; if (asyncRequestResult == null) { diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index 80c91e5a9..e7007eefc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -48,7 +48,6 @@ enum AutodiscoverEndpoints { /** * The autodiscover end points. */ - @SuppressWarnings("unused") private final int autodiscoverEndPoints; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index 38a60b95d..8e056dda6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverLocalException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Initializes a new instance of the class. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 8c2d19c50..9eb2f060f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverRemoteException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * The error. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index 8a646aaf7..63d50514e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class AutodiscoverResponseException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Error code when Autodiscover service operation failed remotely. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index a244fc84b..23c6b04c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -229,7 +229,7 @@ TSettings getLegacyUserSettingsAtUrl( writer.flush(); urlOutStream.flush(); urlOutStream.close(); - /* Flush End */ + /* Flush End */ } request.executeRequest(); request.getResponseCode(); @@ -441,7 +441,7 @@ private boolean tryGetRedirectionResponse(HttpWebRequest request, protected TSettings getLegacyUserSettings( Class cls, String emailAddress) throws Exception { - /*int currentHop = 1; + /*int currentHop = 1; return this.internalGetConfigurationSettings(cls, emailAddress, currentHop);*/ @@ -1032,7 +1032,6 @@ TGetSettingsResponseCollection getSettings( List settings, ExchangeVersion requestedVersion, IFunctionDelegate, List, - ExchangeVersion, URI, TGetSettingsResponseCollection> getSettingsMethod, IFuncDelegate getDomainMethod) throws Exception { TGetSettingsResponseCollection response; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index 72d34363c..abaa927d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -68,7 +68,7 @@ protected boolean isNullable() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return Byte.class; } diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index b53d42990..10d0cab45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -13,7 +13,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.IOException; import java.util.concurrent.Callable; -public class CallableMethod implements Callable { +public class CallableMethod implements Callable { HttpWebRequest request; CallableMethod(HttpWebRequest request) { diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index f2cb3c540..952b14dce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -13,6 +13,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.concurrent.Future; interface Callback { - T processMe(Future task); + T processMe(Future task); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index e58b76f0b..72154fb21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -16,9 +16,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents a property that can be sent to or retrieved from EWS. */ -@SuppressWarnings("unchecked") @EditorBrowsable(state = EditorBrowsableState.Never) -public abstract class ComplexProperty implements ISelfValidate, ComplexFunctionDelegate { +public abstract class ComplexProperty implements ISelfValidate, ComplexFunctionDelegate { /** * The xml namespace. diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index f00d8814a..7ef6677b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -170,7 +170,7 @@ protected void updateFromXml( TComplexProperty complexProperty = this.createComplexProperty(reader.getLocalName()); TComplexProperty actualComplexProperty = this.getPropertyAtIndex(index++); - if (complexProperty == null || !complexProperty.getClass().equals(actualComplexProperty)) { + if (complexProperty == null || !complexProperty.equals(actualComplexProperty)) { throw new ServiceLocalException(Strings.PropertyTypeIncompatibleWhenUpdatingCollection); } diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index 3a84904e5..970c1ec30 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -145,15 +145,15 @@ protected ComplexProperty createPropertyInstance(ServiceObject owner) { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { /*ParameterizedType parameterizedType = - (ParameterizedType) getClass().getGenericSuperclass(); + (ParameterizedType) getClass().getGenericSuperclass(); return (Class) parameterizedType.getActualTypeArguments()[0]; instance = ((Class)((ParameterizedType)this.getClass(). getGenericSuperclass()).getActualTypeArguments()[0]). newInstance(); */ - /*return ((Class)((ParameterizedType)this.getClass(). + /*return ((Class)((ParameterizedType)this.getClass(). getGenericSuperclass()).getActualTypeArguments()[0]). newInstance();*/ //return ComplexProperty.class; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index 31b1980e0..a1dde8542 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -89,7 +89,7 @@ protected void internalLoadFromXml(EwsServiceXmlReader reader, c.loadFromXml(reader, reader.getLocalName()); } /*if (!propertyBag.tryGetValue(this, complexProperty) || - !this.hasFlag(PropertyDefinitionFlags.ReuseInstance)) { + !this.hasFlag(PropertyDefinitionFlags.ReuseInstance)) { complexProperty.setParam(this.createPropertyInstance(propertyBag .getOwner())); } diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index e97421a3e..7985fc58b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -220,7 +220,7 @@ protected void validate() throws ServiceVersionException, Exception { super.validate(); Object fileAsMapping; - OutParam outParam = new OutParam(); + OutParam outParam = new OutParam(); if (this.tryGetProperty(ContactSchema.FileAsMapping, outParam)) { fileAsMapping = outParam.getParam(); // FileAsMapping is extended by 5 new values in 2010 mode. Validate diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index 5a90ef1f3..6fa837059 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -20,7 +20,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of class ContainedPropertyDefinition extends ComplexPropertyDefinition { - private Class instance; /** * The contained xml element name. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index 57f5063fe..e1f4271e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -310,10 +310,10 @@ public void disableAlwaysMoveItemsInConversation(boolean processSynchronously) */ public void deleteItems(FolderId contextFolderId, DeleteMode deleteMode) throws ServiceResponseException, IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); + HashMap m = new HashMap(); m.put(this.getId(), this.getGlobalLastDeliveryTime()); - List f = new ArrayList>(); + List> f = new ArrayList>(); f.add(m); this.getService().deleteItemsInConversations( @@ -339,10 +339,10 @@ public void moveItemsInConversation( FolderId contextFolderId, FolderId destinationFolderId) throws ServiceResponseException, IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); + HashMap m = new HashMap(); m.put(this.getId(), this.getGlobalLastDeliveryTime()); - List f = new ArrayList>(); + List> f = new ArrayList>(); f.add(m); this.getService().moveItemsInConversations( @@ -366,10 +366,10 @@ public void copyItemsInConversation( FolderId contextFolderId, FolderId destinationFolderId) throws ServiceResponseException, IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); + HashMap m = new HashMap(); m.put(this.getId(), this.getGlobalLastDeliveryTime()); - List f = new ArrayList>(); + List> f = new ArrayList>(); f.add(m); this.getService().copyItemsInConversations( @@ -395,10 +395,10 @@ public void setReadStateForItemsInConversation( FolderId contextFolderId, boolean isRead) throws ServiceResponseException, IndexOutOfBoundsException, Exception { - HashMap m = new HashMap(); + HashMap m = new HashMap(); m.put(this.getId(), this.getGlobalLastDeliveryTime()); - List f = new ArrayList>(); + List> f = new ArrayList>(); f.add(m); this.getService().setReadStateForItemsInConversations( @@ -432,7 +432,7 @@ public String getTopic() throws ArgumentException { *Check for the presence of this property before accessing it. */ if (this.getPropertyBag().contains(ConversationSchema.Topic)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(String.class, ConversationSchema.Topic, out); @@ -484,7 +484,7 @@ public StringList getUniqueUnreadSenders() throws ArgumentException { *Check for the presence of this property before accessing it. */ if (this.getPropertyBag().contains(ConversationSchema.UniqueUnreadSenders)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(StringList.class, ConversationSchema.UniqueUnreadSenders, out); @@ -510,7 +510,7 @@ public StringList getGlobalUniqueUnreadSenders() throws ArgumentException { //the property bag may not contain it. // Check for the presence of this property before accessing it. if (this.getPropertyBag().contains(ConversationSchema.GlobalUniqueUnreadSenders)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(StringList.class, ConversationSchema.GlobalUniqueUnreadSenders, out); @@ -588,7 +588,7 @@ public StringList getCategories() throws ArgumentException { * Check for the presence of this property before accessing it. */ if (this.getPropertyBag().contains(ConversationSchema.Categories)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(StringList.class, ConversationSchema.Categories, out); @@ -611,7 +611,7 @@ public StringList getGlobalCategories() throws ArgumentException { //property bag may not contain it. // Check for the presence of this property before accessing it. if (this.getPropertyBag().contains(ConversationSchema.GlobalCategories)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(StringList.class, ConversationSchema.GlobalCategories, out); @@ -634,7 +634,7 @@ public ConversationFlagStatus getFlagStatus() throws ArgumentException { //property bag may not contain it. // Check for the presence of this property before accessing it. if (this.getPropertyBag().contains(ConversationSchema.FlagStatus)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType( ConversationFlagStatus.class, ConversationSchema.FlagStatus, @@ -660,7 +660,7 @@ public ConversationFlagStatus getGlobalFlagStatus() //property bag may not contain it. // Check for the presence of this property before accessing it. if (this.getPropertyBag().contains(ConversationSchema.GlobalFlagStatus)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType( ConversationFlagStatus.class, ConversationSchema.GlobalFlagStatus, @@ -742,7 +742,7 @@ public int getUnreadCount() throws ArgumentException { * Check for the presence of this property before accessing it. */ if (this.getPropertyBag().contains(ConversationSchema.UnreadCount)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(Integer.class, ConversationSchema.UnreadCount, out); @@ -763,7 +763,7 @@ public int getGlobalUnreadCount() throws ArgumentException { int returnValue = 0; if (this.getPropertyBag().contains(ConversationSchema.GlobalUnreadCount)) { - OutParam out = new OutParam(); + OutParam out = new OutParam(); this.getPropertyBag().tryGetPropertyType(Integer.class, ConversationSchema.GlobalUnreadCount, out); diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index ce3de7e9f..18abe1b43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -179,7 +179,6 @@ private static class FieldUris { */ public static final String GlobalItemIds = "conversation:GlobalItemIds"; - public static String ItemId; } diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index 87fc0ab3e..4e0626c44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -18,6 +18,11 @@ public final class CreateAttachmentException extends ServiceRemoteException {// extends // BatchServiceResponseException + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * The responses. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index 1eb8eb9ca..715ab4b15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -119,7 +119,7 @@ protected boolean isNullable() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return Date.class; } diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index 2e89ebcbc..3483d9042 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -84,7 +84,6 @@ public enum DayOfTheWeek { /** * The day of week. */ - @SuppressWarnings("unused") private int dayOfWeek = 0; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index fe23de4bf..d3124cbed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -18,6 +18,10 @@ public final class DeleteAttachmentException extends ServiceRemoteException {// extends // BatchServiceResponseException + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; /** * The responses. diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index e6b8edf98..b40973f3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -14,8 +14,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Defines DnsException class. */ class DnsException extends Exception { + /** - * The Constant serialVersionUID. + * Constant serialized ID used for compatibility. */ private static final long serialVersionUID = 1L; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index 35b44ff8b..c9d86a40f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -15,13 +15,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ abstract class DnsRecord { /* - * Name field of this DNS Record + * Name field of this DNS Record */ /** * The name. */ private String name; - /* + /* * The suggested time for this dnsRecord to be valid */ /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index 13650ba40..8285b2735 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -65,7 +65,6 @@ enum DnsRecordType { /** * The dns record. */ - @SuppressWarnings("unused") private final int dnsRecord; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index 90fa4dffb..dcd067e5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -18,7 +18,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class DnsSrvRecord extends DnsRecord { /* - * The string representing the target host + * The string representing the target host */ /** * The target. @@ -26,7 +26,7 @@ class DnsSrvRecord extends DnsRecord { private String target; /* - * priority of the target host specified in the owner name. + * priority of the target host specified in the owner name. */ /** * The priority. diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index eb728612d..8b2022e5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -15,13 +15,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class EWSConstants { /* - * Represents SRV record. + * Represents SRV record. */ /** * The Constant SRVRECORD. */ public static final String SRVRECORD = "SRV"; - /* + /* * Represents the name of the domain */ /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index eb9baf1df..47ce5ffb6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class EWSHttpException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new eWS http exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index 33bdf4211..8063e848f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -68,7 +68,6 @@ public enum EffectiveRights { /** * The effective rights. */ - @SuppressWarnings("unused") private final int effectiveRights; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index d3d3896ae..4f05fe91c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -117,7 +117,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return EffectiveRights.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index 80ce1f46b..dc475fc0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -149,7 +149,6 @@ public void setEmailAddress(Object value) { * * @param complexProperty the complex property */ - @SuppressWarnings("unused") private void emailAddressChanged(ComplexProperty complexProperty) { this.changed(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index 09ac82336..3cd9c7d16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -124,11 +124,11 @@ public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() // { /* - * calen.setTimeInMillis(calen.getTimeInMillis() - + * calen.setTimeInMillis(calen.getTimeInMillis() - * tz.getOffset(tempDate.getTime())); */ return tempDate; - /* + /* * } else if (EwsUtilities.isLocalTimeZone(this.service.getTimeZone())) * { calen.setTimeInMillis(calen.getTimeInMillis() + * tz.getOffset(tempDate.getTime())); return calen.getTime(); } else { @@ -162,7 +162,6 @@ public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, * @return the list * @throws Exception the exception */ - @SuppressWarnings("unchecked") public List readServiceObjectsCollectionFromXml( String collectionXmlElementName, diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index 71c1fdfbb..f178cc950 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -187,7 +187,7 @@ protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputSt /* InputStream inputStream = new FileInputStream ("D:\\EWS ManagedAPI sp2\\Rp\\xml\\useravailrequest.xml"); - + byte buf[]=new byte[1024]; int len; while((len=inputStream.read(buf))>0) @@ -195,7 +195,7 @@ protected static void copyStream(ByteArrayOutputStream source, ByteArrayOutputSt target.write(buf,0, len); } */ - + /*PrintWriter pw = new PrintWriter(source,true); PrintWriter pw1 = new PrintWriter(target,true); pw1.println(pw.toString());*/ @@ -457,7 +457,7 @@ TServiceObject createEwsObjectFromXmlElementName( * @throws Exception the exception */ protected static Item createItemFromItemClass( - ItemAttachment itemAttachment, Class itemClass, boolean isNew) + ItemAttachment itemAttachment, Class itemClass, boolean isNew) throws Exception { ICreateServiceObjectWithAttachmentParam creationDelegate; if (EwsUtilities.serviceObjectInfo.getMember() @@ -503,11 +503,9 @@ protected static Item createItemFromXmlElementName( /** * */ - protected static Class getItemTypeFromXmlElementName(String xmlElementName) { - + protected static Class getItemTypeFromXmlElementName(String xmlElementName) { return EwsUtilities.serviceObjectInfo.getMember().getXmlElementNameToServiceObjectClassMap() .get(xmlElementName).getClass(); - } /** @@ -519,7 +517,6 @@ protected static Class getItemTypeFromXmlElementName(String xmlElementName) { * @param items the items * @return A TItem instance or null if no instance of TItem could be found. */ - static TItem findFirstItemOfType(Class cls, Iterable items) { for (Item item : items) { @@ -679,7 +676,7 @@ protected static String boolToXSBool(Boolean value) { * @param value the value * @param separators the separators */ - protected static void parseEnumValueList(Class c, + protected static > void parseEnumValueList(Class c, List list, String value, char... separators) { EwsUtilities.EwsAssert(c.isEnum(), "EwsUtilities.ParseEnumValueList", "T is not an enum type."); @@ -779,7 +776,6 @@ protected static T parse(Class cls, String value) o = Integer.parseInt(value); return (T) o; } else if (cls.isInstance(new Date())) { - Object o = null; DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); df.setTimeZone(TimeZone.getTimeZone("UTC")); return (T) df.parse(value); @@ -1035,35 +1031,28 @@ protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { Pattern timeSpanParser = Pattern.compile("-P"); Matcher m = timeSpanParser.matcher(xsDuration); boolean negative = false; - //System.out.println(m.find()); if (m.find()) { negative = true; } - //System.out.println(m.find()); // Year - m = Pattern.compile("(\\d+)Y").matcher(xsDuration); - //System.out.println(m.find()); - int year = 0; - if (m.find()) { - year = Integer.parseInt(m.group().substring(0, - m.group().indexOf("Y"))); - } + // m = Pattern.compile("(\\d+)Y").matcher(xsDuration); + // int year = 0; + // if (m.find()) { + // year = Integer.parseInt(m.group().substring(0, + // m.group().indexOf("Y"))); + // } // Month - m = Pattern.compile("(\\d+)M").matcher(xsDuration); - //System.out.println(m.find()); - int month = 0; - if (m.find()) { - month = Integer.parseInt(m.group().substring(0, - m.group().indexOf("M"))); - } + // m = Pattern.compile("(\\d+)M").matcher(xsDuration); + // int month = 0; + // if (m.find()) { + // month = Integer.parseInt(m.group().substring(0, + // m.group().indexOf("M"))); + // } // Day m = Pattern.compile("(\\d+)D").matcher(xsDuration); - - //System.out.println(m.find()); - long day = 0; if (m.find()) { day = Integer.parseInt(m.group().substring(0, @@ -1072,9 +1061,6 @@ protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { // Hour m = Pattern.compile("(\\d+)H").matcher(xsDuration); - - //System.out.println(m.find()); - int hour = 0; if (m.find()) { hour = Integer.parseInt(m.group().substring(0, @@ -1083,9 +1069,6 @@ protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { // Minute m = Pattern.compile("(\\d+)M").matcher(xsDuration); - - //System.out.println(m.find()); - int minute = 0; if (m.find()) { minute = Integer.parseInt(m.group().substring(0, @@ -1094,28 +1077,15 @@ protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { // Seconds m = Pattern.compile("(\\d+).").matcher(xsDuration); - - //System.out.println(m.find()); - int seconds = 0; - - // if (m.find()) - // seconds = Integer.parseInt(m.group().substring(0, - // m.group().indexOf("."))); - - int milliseconds = 0; m = Pattern.compile("(\\d+)S").matcher(xsDuration); - - //System.out.println(m.find()); - if (m.find()) { // Only allowed 4 digits of precision if (m.group().length() > 5) { milliseconds = Integer.parseInt(m.group().substring(0, 4)); } else { - seconds = Integer.parseInt(m.group().substring(0, - m.group().indexOf("S"))); + seconds = Integer.parseInt(m.group().substring(0, m.group().indexOf("S"))); } } @@ -1126,9 +1096,9 @@ protected static TimeSpan getXSDurationToTimeSpanValue(String xsDuration) { //TimeSpan retval = new TimeSpan(day, hour, minute, seconds, // milliseconds); - long retval = ((((((((day * 24) + hour) * 60) + minute) * 60) + - seconds) * 1000) + milliseconds); - // long retval=1010010; + long retval = + day * TimeSpan.DAYS + hour * TimeSpan.HOURS + minute * TimeSpan.MINUTES + seconds * TimeSpan.SECONDS + + milliseconds * TimeSpan.MILLISECONDS; if (negative) { retval = -retval; } @@ -1155,7 +1125,7 @@ public static String timeSpanToXSTime(TimeSpan timeSpan) { * @param type The class. * @return Printable name. */ - public static String getPrintableTypeName(Class type) { + public static String getPrintableTypeName(Class type) { // Note: building array of generic parameters is //done recursively. Each parameter could be any type. Type[] genericArgs = type.getGenericInterfaces(); @@ -1230,7 +1200,7 @@ protected static String domainFromEmailAddress(String emailAddress) public static int getDim(Object array) { int dim = 0; - Class c = array.getClass(); + Class c = array.getClass(); while (c.isArray()) { c = c.getComponentType(); dim++; @@ -1559,7 +1529,6 @@ private static Map buildEnumToSchemaDict(Class c) { protected static int getEnumeratedObjectCount(Iterator objects) { int count = 0; while (objects != null && objects.hasNext()) { - @SuppressWarnings("unused") Object obj = objects.next(); count++; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index f270097f1..b9be9a2fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -73,7 +73,7 @@ protected List internalCreateResponseObject( MessageDisposition messageDisposition) throws Exception { CreateResponseObjectRequest request = new CreateResponseObjectRequest( this, ServiceErrorHandling.ThrowOnError); - Collection serviceList = new ArrayList(); + Collection serviceList = new ArrayList(); serviceList.add(responseObject); request.setParentFolderId(parentFolderId); request.setItems(serviceList); @@ -817,12 +817,11 @@ protected ServiceResponseCollection * @return An object representing the results of the search operation. * @throws Exception the exception */ - @SuppressWarnings("unchecked") public FindItemsResults findItems(FolderId parentFolderId, String queryString, ItemView view) throws Exception { EwsUtilities.validateParamAllowNull(queryString, "queryString"); - List folderIdArray = new ArrayList(); + List folderIdArray = new ArrayList(); folderIdArray.add(parentFolderId); ServiceResponseCollection> responses = this @@ -843,11 +842,10 @@ public FindItemsResults findItems(FolderId parentFolderId, * @return An object representing the results of the search operation. * @throws Exception the exception */ - @SuppressWarnings("unchecked") public FindItemsResults findItems(FolderId parentFolderId, SearchFilter searchFilter, ItemView view) throws Exception { EwsUtilities.validateParamAllowNull(searchFilter, "searchFilter"); - List folderIdArray = new ArrayList(); + List folderIdArray = new ArrayList(); folderIdArray.add(parentFolderId); ServiceResponseCollection> responses = this .findItems(folderIdArray, searchFilter, null, /* queryString */ @@ -866,10 +864,9 @@ public FindItemsResults findItems(FolderId parentFolderId, * @return An object representing the results of the search operation. * @throws Exception the exception */ - @SuppressWarnings("unchecked") public FindItemsResults findItems(FolderId parentFolderId, ItemView view) throws Exception { - List folderIdArray = new ArrayList(); + List folderIdArray = new ArrayList(); folderIdArray.add(parentFolderId); ServiceResponseCollection> responses = this .findItems(folderIdArray, null, /* searchFilter */ @@ -1320,15 +1317,15 @@ private ServiceResponseCollection internalGetAttachments( throws Exception { GetAttachmentRequest request = new GetAttachmentRequest(this, errorHandling); - Iterator it = attachments.iterator(); + Iterator it = attachments.iterator(); while (it.hasNext()) { - ((ArrayList) request.getAttachments()).add(it.next()); + ((ArrayList) request.getAttachments()).add(it.next()); } request.setBodyType(bodyType); if (additionalProperties != null) { - List propsArray = new ArrayList(); + List propsArray = new ArrayList(); for (PropertyDefinitionBase propertyDefinitionBase : additionalProperties) { propsArray.add(propertyDefinitionBase); } @@ -3023,7 +3020,7 @@ public AlternateIdBase convertId(AlternateIdBase id, IdFormat destinationFormat) throws Exception { EwsUtilities.validateParam(id, "id"); - List alternateIdBaseArray = new ArrayList(); + List alternateIdBaseArray = new ArrayList(); alternateIdBaseArray.add(id); ServiceResponseCollection responses = this diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 24c72d03b..e1a7bd59c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -458,8 +458,6 @@ private void traceHttpResponseHeaders(TraceFlags traceType, protected Date convertUniversalDateTimeStringToDate(String dateString) { String localTimeRegex = "^(.*)([+-]{1}\\d\\d:\\d\\d)$"; Pattern localTimePattern = Pattern.compile(localTimeRegex); - String timeRegex = "[0-9]{2,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{2}:[0-9]{1,2}:[0-9]{1,2}.[0-9]{1,7}"; - Pattern timePattern = Pattern.compile(timeRegex); String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; String utcPattern1 = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"; String localPattern = "yyyy-MM-dd'T'HH:mm:ssz"; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index 212a2231c..4f0a6807c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -98,7 +98,7 @@ public Document retriveDocument(XMLEventReader xmlEventReader) element = document.createElementNS(ele.getName() .getNamespaceURI(), ele.getName().getLocalPart()); - Iterator ite = ele.getAttributes(); + Iterator ite = ele.getAttributes(); while (ite.hasNext()) { Attribute attr = (Attribute) ite.next(); diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index 34700744d..a1838041a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -100,7 +100,7 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() .getMapiType())) { - ArrayList array = (ArrayList) this.getValue(); + ArrayList array = (ArrayList) this.getValue(); writer .writeStartElement(XmlNamespace.Types, XmlElementNames.Values); @@ -161,7 +161,7 @@ public void setValue(Object val) throws Exception { private String getStringValue() { if (MapiTypeConverter.isArrayType(this.getPropertyDefinition() .getMapiType())) { - ArrayList array = (ArrayList) this.getValue(); + ArrayList array = (ArrayList) this.getValue(); if (array == null) { return null; } else { diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index 879482604..2fe0b7b80 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -452,7 +452,7 @@ public MapiPropertyType getMapiType() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return MapiTypeConverter.getMapiTypeConverterMap(). get(getMapiType()).getType(); } diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index 1cb111007..e77b3c335 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -63,7 +63,6 @@ protected FindItemResponse(boolean isGrouped, PropertySet propertySet) { * @param reader ,The reader * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception { @@ -112,7 +111,7 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) XmlElementNames.GroupedItems); this.groupedFindResults.getItemGroups().add( - new ItemGroup(groupIndex, itemList)); + new ItemGroup(groupIndex, itemList)); } } while (!reader.isEndElement(XmlNamespace.Types, XmlElementNames.Groups)); diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index d8d08f805..44b828cd7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -19,7 +19,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * @param The type of item returned by the search operation. */ public final class FindItemsResults implements - Iterable { + Iterable { /** * The total count. @@ -123,8 +123,8 @@ public ArrayList getItems() { * @return the iterator */ @Override - public Iterator iterator() { - return (Iterator) this.items.iterator(); + public Iterator iterator() { + return (Iterator) this.items.iterator(); } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index bba6d9255..cca27a7cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -707,7 +707,6 @@ public ManagedFolderInformation getManagedFolderInformation() * @return the effective rights * @throws ServiceLocalException the service local exception */ - @SuppressWarnings("unchecked") public EnumSet getEffectiveRights() throws ServiceLocalException { return (EnumSet) this.getPropertyBag() .getObjectFromPropertyDefinition(FolderSchema.EffectiveRights); diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index e685ce270..7188707e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class FormatException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new format exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index 88409d99e..5534b3f76 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -48,7 +48,6 @@ protected GetFolderResponse(Folder folder, PropertySet propertySet) { * @param reader the reader * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index 52ff30450..f005cb635 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -16,7 +16,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a response to an individual item retrieval operation. */ public final class GetItemResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { /** * The item. @@ -50,7 +50,6 @@ protected GetItemResponse(Item item, PropertySet propertySet) { * @throws IllegalAccessException the illegal access exception * @throws Exception the exception */ - @SuppressWarnings("unchecked") protected void readElementsFromXml(EwsServiceXmlReader reader) throws InstantiationException, IllegalAccessException, Exception { super.readElementsFromXml(reader); @@ -72,7 +71,6 @@ protected void readElementsFromXml(EwsServiceXmlReader reader) * @return Item * @throws Exception the exception */ - @SuppressWarnings("unused") private Item getObjectInstance(ExchangeService service, String xmlElementName) throws Exception { if (this.getItem() != null) { diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index afd070d26..0f2d7275a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -101,7 +101,7 @@ protected String getPrintableName() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return String.class; } diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index 428a5eecd..af2a5b29e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -9,7 +9,6 @@ import java.net.UnknownServiceException; import java.util.ArrayList; import java.util.List; -import java.util.UUID; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; @@ -233,7 +232,6 @@ protected void internalExecute() throws ServiceLocalException, Exception { * @param state The state. */ private void parseResponses(Object state) { - UUID traceId = UUID.fromString("00000000-0000-0000-0000-000000000000"); HangingTraceStream tracingStream = null; ByteArrayOutputStream responseCopy = null; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index 74bcd0661..7b53d45bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -15,6 +15,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * User: nwoodham Date: 3/8/11 Time: 5:30 PM */ public class HttpErrorException extends Exception { + + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + private final int code; public HttpErrorException() { diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index 0c4db86d6..980102e4b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -16,7 +16,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents the stauts of Asynchronous operation. */ -public interface IAsyncResult extends Future { +public interface IAsyncResult extends Future { public Object getAsyncState(); diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index e0081fed3..b3748865b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -23,8 +23,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * @param the generic type * @param the generic type */ -interface IFunctionDelegate { +interface IFunctionDelegate, T2 extends List, TResult> { /** * Func. @@ -39,7 +38,7 @@ interface IFunctionDelegate getType() { return String.class; } diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index 916cdb920..c72daf176 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class InvalidOperationException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new invalid operation exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 38ff161f6..2361545c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -121,7 +121,7 @@ protected boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throw super.tryReadElementFromXml(reader); reader.read(); - Class itemClass = EwsUtilities.getItemTypeFromXmlElementName(reader + Class itemClass = EwsUtilities.getItemTypeFromXmlElementName(reader .getLocalName().toString()); if (itemClass != null) { diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index 589c6566f..77a2de73e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -42,7 +42,6 @@ protected ItemCollection() { * @param localElementName Name of the local element. * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 24101c2b7..2a07e7ca7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -48,7 +48,6 @@ public enum LegacyFreeBusyStatus { /** * The busy status. */ - @SuppressWarnings("unused") private final int busyStatus; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index bcc8c1e7a..ebb7ce0d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -330,13 +330,13 @@ public String func(Object o) { * @return Array of objects. * @throws Exception the exception */ - protected static List convertToValue(MapiPropertyType mapiPropType, + protected static List convertToValue(MapiPropertyType mapiPropType, Iterator strings) throws Exception { EwsUtilities.validateParam(strings, "strings"); MapiTypeConverterMapEntry typeConverter = getMapiTypeConverterMap() .get(mapiPropType); - List array = new ArrayList(); + List array = new ArrayList(); int index = 0; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index da462f3e7..27ebcb20d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -18,4 +18,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of class MapiTypeConverterMap extends HashMap { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + } diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index c5adcb5fb..4f5221126 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -23,12 +23,11 @@ class MapiTypeConverterMapEntry { /** * Map CLR types used for MAPI properties to matching default values. */ - private static LazyMember> defaultValueMap = new LazyMember>( - new ILazyMember>() { - @SuppressWarnings("deprecation") - public Map createInstance() { + private static LazyMember, Object>> defaultValueMap = new LazyMember, Object>>( + new ILazyMember, Object>>() { + public Map, Object> createInstance() { - Map map = new HashMap(); + Map, Object> map = new HashMap, Object>(); map.put(Boolean.class, false); map.put(Byte[].class, null); @@ -58,7 +57,7 @@ public Map createInstance() { /** * The type. */ - Class type; + Class type; /** * The convert to string. @@ -80,7 +79,7 @@ public Map createInstance() { * is done by calling Convert.ChangeType Instances may override * this behavior. */ - protected MapiTypeConverterMapEntry(Class type) { + protected MapiTypeConverterMapEntry(Class type) { EwsUtilities.EwsAssert( defaultValueMap.getMember().containsKey(type), "MapiTypeConverterMapEntry ctor", @@ -127,7 +126,6 @@ protected Object changeType(Object value) throws Exception { o = Integer.parseInt(value + ""); return o; } else if (this.getType().isInstance(new Date())) { - Object o = null; DateFormat df = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss'Z'"); return df.parse(value + ""); @@ -200,7 +198,7 @@ private void validateValueAsArray(Object value) throws ArgumentException, Argume } if (value instanceof ArrayList) { - ArrayList arrayList = (ArrayList) value; + ArrayList arrayList = (ArrayList) value; if (arrayList.isEmpty()) { throw new ArgumentException(Strings.ArrayMustHaveAtLeastOneElement); } @@ -221,7 +219,7 @@ private void validateValueAsArray(Object value) throws ArgumentException, Argume */ public static int getDim(Object array) { int dim = 0; - Class cls = array.getClass(); + Class cls = array.getClass(); while (cls.isArray()) { dim++; cls = cls.getComponentType(); @@ -235,7 +233,7 @@ public static int getDim(Object array) { * @return the type */ - protected Class getType() { + protected Class getType() { return this.type; } @@ -244,7 +242,7 @@ protected Class getType() { * * @param cls the new type */ - protected void setType(Class cls) { + protected void setType(Class cls) { type = cls; } diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index 34bb92bcb..c6b99d8c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -73,7 +73,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return MeetingTimeZone.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index 675ab0cbd..2f35331ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -90,7 +90,6 @@ public enum Month { /** * The month. */ - @SuppressWarnings("unused") private final int month; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index f8c7d97c1..474b798a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -51,7 +51,6 @@ private Folder getObjectInstance(ExchangeService service, * @param reader The reader. * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index 1e8ba4b72..f028c5309 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -50,7 +50,6 @@ private Item getObjectInstance(ExchangeService service, * @param reader the reader * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index d948a9d2c..13857c146 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -155,7 +155,6 @@ protected ServiceResponseCollection execute() throws Exception { * @param asyncResult The async result * @return Service response collection. */ - @SuppressWarnings("unchecked") protected ServiceResponseCollection endExecute(IAsyncResult asyncResult) throws Exception { ServiceResponseCollection serviceResponses = (ServiceResponseCollection) this.endInternalExecute(asyncResult); diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index c329d2bd9..da99457e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -11,6 +11,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { + + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new argument exception. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index 43a93856f..9380acc03 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -49,7 +49,7 @@ public void add(PropertyDefinitionBase propertyDefinition, Strings.PropertyAlreadyExistsInOrderByCollection, propertyDefinition.getPrintableName())); } - Map propertyDefinitionSortDirectionPair = new + Map propertyDefinitionSortDirectionPair = new HashMap(); propertyDefinitionSortDirectionPair.put(propertyDefinition, sortDirection); @@ -72,7 +72,7 @@ public void clear() { * definition; otherwise, false. */ protected boolean contains(PropertyDefinitionBase propertyDefinition) { - for (Map propDefSortOrderPair : propDefSortOrderPairList) { + for (Map propDefSortOrderPair : propDefSortOrderPairList) { return propDefSortOrderPair.containsKey(propertyDefinition); } return false; @@ -97,7 +97,7 @@ public int count() { public boolean remove(PropertyDefinitionBase propertyDefinition) { List> removeList = new ArrayList>(); - for (Map propDefSortOrderPair : propDefSortOrderPairList) { + for (Map propDefSortOrderPair : propDefSortOrderPairList) { if (propDefSortOrderPair.containsKey(propertyDefinition)) { removeList.add(propDefSortOrderPair); } @@ -123,7 +123,7 @@ public void removeAt(int index) { * @return True if collection contains property definition, otherwise false. */ public boolean tryGetValue(PropertyDefinitionBase propertyDefinition, - OutParam sortDirection) { + OutParam sortDirection) { for (Map pair : this.propDefSortOrderPairList) { if (pair.containsKey(propertyDefinition)) { diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java index 4fbfe99bb..0f47f1681 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java @@ -48,7 +48,7 @@ protected ComplexProperty createPropertyInstance(ServiceObject owner) { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return FolderPermissionCollection.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index 2df8307aa..6a942b64b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -19,7 +19,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class PhysicalAddressEntry extends DictionaryEntryProperty implements - IPropertyBagChangedDelegate { + IPropertyBagChangedDelegate { /** * The property bag. @@ -40,7 +40,7 @@ public PhysicalAddressEntry() { * * @param simplePropertyBag the simple property bag */ - public void propertyBagChanged(SimplePropertyBag simplePropertyBag) { + public void propertyBagChanged(SimplePropertyBag simplePropertyBag) { this.changed(); } @@ -284,13 +284,6 @@ private static String getFieldUri(String xmlElementName) { return "contacts:PhysicalAddress:" + xmlElementName; } - /** - * Property bag was changed. - */ - private void propertyBagChanged() { - this.changed(); - } - /** * Write field deletion to XML. * diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index 60b5c2332..42dc1abc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -89,7 +89,7 @@ protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) /** * Gets the type of the property. */ - public abstract Class getType(); + public abstract Class getType(); /** * Writes to XML. diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index 8f10335e5..f0ff324ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class PropertyException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * The name. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 55e43b1d3..999d559d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -33,7 +33,7 @@ public final class PropertySet implements ISelfValidate, * @return Returns a predefined property set that only includes the Id * property. */ - private static PropertySet getIdOnly() { + public static PropertySet getIdOnly() { return IdOnly; } diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index 0584cda4c..437a2144b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -152,7 +152,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return Recurrence.class; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index 027b6b435..f12dd80ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -86,7 +86,6 @@ public enum ResponseActions { /** * The response act. */ - @SuppressWarnings("unused") private final int responseAct; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index 86e044162..bdd7d3e72 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -129,7 +129,7 @@ protected boolean isNullable() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return ResponseActions.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 22b99dc10..396688ee5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -927,7 +927,7 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) this.getIsPermissionControlled()); } - if (this.isReadReceipt != false) { + if (this.getIsReadReceipt() != false) { writer.writeElementValue( XmlNamespace.Types, XmlElementNames.IsReadReceipt, diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index 1decc50a8..18df8aba8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceLocalException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceLocalException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index 70ccac564..b0c41fb15 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceObjectPropertyException extends PropertyException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * The property definition. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index 15231c8e8..cca17cc43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceRemoteException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceRemoteException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index 7940f367a..3681bd4d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceRequestException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceRequestException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index 14302f4b9..4d242e0e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceResponseException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Error details Value keys. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index 5d5f89b44..d463c1a8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -15,6 +15,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ServiceValidationException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceValidationException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index 6d9d256a8..d44a60c56 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class ServiceVersionException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Initializes a new instance of the class. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index fef3fd884..84bf8d6c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -17,6 +17,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public final class ServiceXmlDeserializationException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceXmlDeserializationException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index 6b0958a3a..7cc87c6d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class ServiceXmlSerializationException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceXmlSerializationException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index f40d354ea..bb1c42eda 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -45,7 +45,7 @@ class SimplePropertyBag implements Iterable> { * @param key the key * @param changeList the change list */ - private void internalAddItemToChangeList(TKey key, List changeList) { + private void internalAddItemToChangeList(TKey key, List changeList) { if (!changeList.contains(key)) { changeList.add(key); } @@ -56,7 +56,7 @@ private void internalAddItemToChangeList(TKey key, List changeList) { */ private void changed() { if (!onChange.isEmpty()) { - for (IPropertyBagChangedDelegate change : onChange) { + for (IPropertyBagChangedDelegate change : onChange) { change.propertyBagChanged(this); } } @@ -68,7 +68,7 @@ private void changed() { * @param key the key */ private void internalRemoveItem(TKey key) { - OutParam value = new OutParam(); + OutParam value = new OutParam(); if (this.tryGetValue(key, value)) { this.items.remove(key); this.removedItems.add(key); @@ -153,7 +153,7 @@ public boolean tryGetValue(TKey key, OutParam value) { * @return the simple property bag */ public Object getSimplePropertyBag(TKey key) { - OutParam value = new OutParam(); + OutParam value = new OutParam(); if (this.tryGetValue(key, value)) { return value.getParam(); } else { @@ -195,15 +195,15 @@ public void setSimplePropertyBag(TKey key, Object value) { /** * Occurs when Changed. */ - private List onChange = - new ArrayList(); + private List> onChange = + new ArrayList>(); /** * Set event to happen when property changed. * * @param change change event */ - public void addOnChangeEvent(IPropertyBagChangedDelegate change) { + public void addOnChangeEvent(IPropertyBagChangedDelegate change) { onChange.add(change); } @@ -212,7 +212,7 @@ public void addOnChangeEvent(IPropertyBagChangedDelegate change) { * * @param change change event */ - public void removeChangeEvent(IPropertyBagChangedDelegate change) { + public void removeChangeEvent(IPropertyBagChangedDelegate change) { onChange.remove(change); } diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index c62e7d7f1..084075936 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -94,8 +94,8 @@ protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) this, request, callback /* user callback */, state /*user state*/); AsyncExecutor es = new AsyncExecutor(); - Callable cl = new CallableMethod(request); - Future task = es.submit(cl, callback); + Callable cl = new CallableMethod(request); + Future task = es.submit(cl, callback); es.shutdown(); AsyncRequestResult ft = new AsyncRequestResult(this, request, task, null); diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index e600f33d9..71b2562e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -15,8 +15,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class StreamingSubscription extends SubscriptionBase { - private ExchangeService service; - protected StreamingSubscription(ExchangeService service) throws Exception { super(service); } diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index 63bf77f9b..37407aa75 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -522,7 +522,6 @@ public void dispose() { * @param suppressFinalizer Value indicating whether to suppress the garbage collector's * finalizer. */ - @SuppressWarnings("deprecation") private void dispose(boolean suppressFinalizer) { if (suppressFinalizer) { System.runFinalizersOnExit(false); diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index 416078b1e..755a2765c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -56,7 +56,7 @@ protected boolean isNullable() { * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return String.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index 9c6e91c82..c8d5b765d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -54,7 +54,6 @@ public enum TaskMode { /** * The task mode. */ - @SuppressWarnings("unused") private final int taskMode; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index c885b3463..8ef41de2d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -10,6 +10,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import java.util.Calendar; import java.util.Date; /** @@ -64,9 +65,13 @@ protected Time(int minutes) throws ArgumentException { * @throws ArgumentException the argument exception */ protected Time(Date dateTime) throws ArgumentException { - this.setHours(dateTime.getHours()); - this.setMinutes(dateTime.getMinutes()); - this.setSeconds(dateTime.getSeconds()); + if (dateTime != null) { + Calendar cal = Calendar.getInstance(); + cal.setTime(dateTime); + this.setHours(cal.get(Calendar.HOUR)); + this.setMinutes(cal.get(Calendar.MINUTE)); + this.setSeconds(cal.get(Calendar.SECOND)); + } } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index 6f8a56d8d..6bae2ba31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -13,7 +13,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * The Class TimeSpan. */ -public class TimeSpan implements Comparable, java.io.Serializable, Cloneable { +public class TimeSpan implements Comparable, java.io.Serializable, Cloneable { + + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; /** * The time. @@ -77,7 +82,7 @@ public TimeSpan(long time) { * @param value the number of units to use to create a TimeSpan instance. */ public TimeSpan(int units, long value) { - this.time = this.toMilliseconds(units, value); + this.time = TimeSpan.toMilliseconds(units, value); } /* @@ -108,7 +113,7 @@ public static TimeSpan subtract(java.util.Date date1, * @return a negative integer, zero, or a positive integer as this object is * less than, equal to, or greater than the specified object. */ - public int compareTo(Object o) { + public int compareTo(TimeSpan o) { TimeSpan compare = (TimeSpan) o; if (this.time == compare.time) { return 0; @@ -167,23 +172,23 @@ public String toString() { millis = -millis; } - long day = millis / this.DAYS; + long day = millis / TimeSpan.DAYS; if (day != 0) { sb.append(day); sb.append("d."); - millis = millis % this.DAYS; + millis = millis % TimeSpan.DAYS; } - sb.append(millis / this.HOURS); - millis = millis % this.HOURS; + sb.append(millis / TimeSpan.HOURS); + millis = millis % TimeSpan.HOURS; sb.append("h:"); - sb.append(millis / this.MINUTES); - millis = millis % this.MINUTES; + sb.append(millis / TimeSpan.MINUTES); + millis = millis % TimeSpan.MINUTES; sb.append("m:"); - sb.append(millis / this.SECONDS); + sb.append(millis / TimeSpan.SECONDS); sb.append("s"); - millis = millis % this.SECONDS; + millis = millis % TimeSpan.SECONDS; if (millis != 0) { sb.append("."); sb.append(millis); @@ -242,7 +247,8 @@ public boolean isZero() { * @return the number of milliseconds. */ public long getMilliseconds() { - return (((this.time % this.HOURS) % this.MINUTES) % this.MILLISECONDS) / this.MILLISECONDS; + return (((this.time % TimeSpan.HOURS) % TimeSpan.MINUTES) % TimeSpan.MILLISECONDS) + / TimeSpan.MILLISECONDS; } /** @@ -260,8 +266,7 @@ public long getTotalMilliseconds() { * @return the number of seconds. */ public long getSeconds() { - - return ((this.time % this.HOURS) % this.MINUTES) / this.SECONDS; + return ((this.time % TimeSpan.HOURS) % TimeSpan.MINUTES) / TimeSpan.SECONDS; } /** @@ -279,7 +284,7 @@ public double getTotalSeconds() { * @return the number of minutes. */ public long getMinutes() { - return (this.time % this.HOURS) / this.MINUTES;// (this.time/1000)/60; + return (this.time % TimeSpan.HOURS) / TimeSpan.MINUTES;// (this.time/1000)/60; } /** @@ -333,7 +338,7 @@ public double getTotalDays() { * @param timespan the TimeSpan to add to this TimeSpan. */ public void add(TimeSpan timespan) { - add(this.MILLISECONDS, timespan.time); + add(TimeSpan.MILLISECONDS, timespan.time); } /** @@ -343,7 +348,7 @@ public void add(TimeSpan timespan) { * @param value the number of units to add to this TimeSpan. */ public void add(int units, long value) { - this.time += this.toMilliseconds(units, value); + this.time += TimeSpan.toMilliseconds(units, value); } /** @@ -389,7 +394,7 @@ public TimeSpan negate() { * @param timespan the TimeSpan to subtract from this TimeSpan. */ public void subtract(TimeSpan timespan) { - subtract(this.MILLISECONDS, timespan.time); + subtract(TimeSpan.MILLISECONDS, timespan.time); } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index b366d2524..3c0afa571 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class TimeZoneConversionException extends ServiceLocalException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceLocalException Constructor. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index ec8746dfd..051464fe4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -16,6 +16,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Represents a time zone as defined by the EWS schema. */ public class TimeZoneDefinition extends ComplexProperty implements Comparator { + /** * Prefix for generated ids. */ @@ -247,7 +248,7 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Periods); - Iterator it = this.periods.values().iterator(); + Iterator it = this.periods.values().iterator(); while (it.hasNext()) { ((TimeZonePeriod) it.next()).writeToXml(writer); } diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index 2ba8a297d..e7ecd87b8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -82,7 +82,7 @@ protected void writePropertyValueToXml(EwsServiceXmlWriter writer, * Gets the property type. */ @Override - public Class getType() { + public Class getType() { return TimeZone.class; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index 7913bf595..6c3c421d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -16,6 +16,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class UpdateInboxRulesException extends ServiceRemoteException { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * ServiceResponse when service operation failed remotely. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index 52d568da3..b19cdcfb6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -16,7 +16,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * The Class UpdateItemResponse. */ public final class UpdateItemResponse extends ServiceResponse implements - IGetObjectInstanceDelegate { + IGetObjectInstanceDelegate { /** * Represents the response to an individual item update operation. @@ -55,7 +55,6 @@ protected UpdateItemResponse(Item item) { * @throws IllegalAccessException the illegal access exception * @throws Exception the exception */ - @SuppressWarnings("unchecked") @Override protected void readElementsFromXml(EwsServiceXmlReader reader) throws ServiceXmlDeserializationException, XMLStreamException, diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index bd0ab7b66..80ec2f9f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -176,10 +176,10 @@ protected UserConfiguration(ExchangeService service, throws Exception { EwsUtilities.validateParam(service, "service"); - if (service.getRequestedServerVersion().ordinal() < this.ObjectVersion.ordinal()) { + if (service.getRequestedServerVersion().ordinal() < UserConfiguration.ObjectVersion.ordinal()) { throw new ServiceVersionException(String.format( Strings.ObjectTypeIncompatibleWithRequestVersion, this - .getClass().getName(), this.ObjectVersion)); + .getClass().getName(), UserConfiguration.ObjectVersion)); } this.service = service; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 22d4a118a..0b65bc03e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -157,14 +157,15 @@ public void clear() { * * @return the enumerator */ - @SuppressWarnings("unchecked") + /** * Returns an enumerator that iterates through * the user configuration dictionary. + * * @return An IEnumerator that can be used * to iterate through the user configuration dictionary. */ - public Iterator getEnumerator() { + public Iterator getEnumerator() { return (this.dictionary.values().iterator()); } @@ -634,14 +635,13 @@ private void validateEntry(Object key, Object value) throws Exception { * @param dictionaryObject Object to validate. * @throws Exception the exception */ - @SuppressWarnings("unchecked") private void validateObject(Object dictionaryObject) throws Exception { // Keys may not be null but we rely on the internal dictionary to throw // if the key is null. if (dictionaryObject != null) { if (dictionaryObject.getClass().isArray()) { int length = Array.getLength(dictionaryObject); - Class wrapperType = Array.get(dictionaryObject, 0).getClass(); + Class wrapperType = Array.get(dictionaryObject, 0).getClass(); Object[] newArray = (Object[]) Array. newInstance(wrapperType, length); for (int i = 0; i < length; i++) { diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index 8dbf95697..b919ac3e2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -50,7 +50,6 @@ public enum UserConfigurationProperties { /** * The config properties. */ - @SuppressWarnings("unused") private int configProperties = 0; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index 5f1c04e04..7f1f57068 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -14,6 +14,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * Exception class for banned xml parsing */ class XmlDtdException extends XmlException { + + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Gets the xml exception message. */ diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index ad8429bba..20c032ce6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -12,6 +12,11 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public class XmlException extends Exception { + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + /** * Instantiates a new argument exception. */ diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java index d9e6a3178..d7de1f227 100644 --- a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -60,6 +60,12 @@ public class GetUserSettingsRequestTest extends BaseTest { @Parameterized.Parameters public static List getAutodiscoverServices() throws ArgumentException { return new ArrayList() { + + /** + * Constant serialized ID used for compatibility. + */ + private static final long serialVersionUID = 1L; + { for (ExchangeVersion exchangeVersion : ExchangeVersion.values()) { add(new Object[] {exchangeVersion, new AutodiscoverService(exchangeVersion)}); diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java index f3a847bfd..f0fac655e 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -38,7 +38,7 @@ public class TaskTest extends BaseTest { */ @Before public void setup() throws Exception { - this.taskMock = new Task(this.exchangeServiceMock); + this.taskMock = new Task(TaskTest.exchangeServiceMock); } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java similarity index 87% rename from src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java rename to src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java index f4bed1bf3..724a5a57d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -10,21 +10,24 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + import java.util.Calendar; import java.util.GregorianCalendar; /** * The Class TimeSpanTest. */ -public class TimeSpanTest { - // public sat; +@RunWith(JUnit4.class) +public class TimeSpanTest extends BaseTest { /** - * The main method. - * - * @param args the arguments + * testTimeSpanToXSDuration */ - public static void main(String[] args) { + @Test + public void testTimeSpanToXSDuration() { Calendar calendar = new GregorianCalendar(2008, Calendar.OCTOBER, 10); timeSpanToXSDuration(calendar); } @@ -35,7 +38,7 @@ public static void main(String[] args) { * @param timeSpan the time span * @return the string */ - public static String timeSpanToXSDuration(Calendar timeSpan) { + public String timeSpanToXSDuration(Calendar timeSpan) { String offsetStr = (timeSpan.SECOND < 0) ? "-" : ""; String obj = String.format("%s %s %s %s %s ", offsetStr, Math .abs(timeSpan.DAY_OF_MONTH), Math.abs(timeSpan.HOUR_OF_DAY), From 0a89d2e7e26bad860a07e3e5649f8fcd7118965d Mon Sep 17 00:00:00 2001 From: Baris Aydinoglu Date: Wed, 7 Jan 2015 14:08:55 +0200 Subject: [PATCH 080/338] Fix for AttachmentCollection.validate() if conditions --- .../data/AttachmentCollection.java | 63 +++++++++---------- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index 95ac37136..6703a7e23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -348,44 +348,37 @@ protected void clearChangeLog() { */ public void validate() throws Exception { // Validate all added attachments - boolean contactPhotoFound = false; - for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems() - .size(); attachmentIndex++) { - Attachment attachment = this.getAddedItems().get(attachmentIndex); - if (attachment != null && attachment.isNew()) { - - // At the server side, only the last attachment with - // IsContactPhoto is kept, all other IsContactPhoto - // attachments are removed. CreateAttachment will generate - // AttachmentId for each of such attachments (although - // only the last one is valid). - // - // With E14 SP2 CreateItemWithAttachment, such request will only - // return 1 AttachmentId; but the client - // expects to see all, so let us prevent such "invalid" request - // in the first place. - // - // The IsNew check is to still let CreateAttachmentRequest allow - // multiple IsContactPhoto attachments. - // - if (this.owner.isNew() - && this.owner.getService().getRequestedServerVersion() - .ordinal() >= ExchangeVersion.Exchange2010_SP2 - .ordinal()) { - if (attachment instanceof FileAttachment) { - FileAttachment fileAttachment = (FileAttachment) attachment; - - if (fileAttachment.isContactPhoto()) { - if (contactPhotoFound) { - throw new ServiceValidationException( - Strings.MultipleContactPhotosInAttachment); - } - - contactPhotoFound = true; + if (this.owner.isNew() + && this.owner.getService().getRequestedServerVersion() + .ordinal() >= ExchangeVersion.Exchange2010_SP2 + .ordinal()) { + boolean contactPhotoFound = false; + for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems() + .size(); attachmentIndex++) { + final Attachment attachment = this.getAddedItems().get(attachmentIndex); + if (attachment != null && attachment.isNew() && attachment instanceof FileAttachment) { + // At the server side, only the last attachment with + // IsContactPhoto is kept, all other IsContactPhoto + // attachments are removed. CreateAttachment will generate + // AttachmentId for each of such attachments (although + // only the last one is valid). + // + // With E14 SP2 CreateItemWithAttachment, such request will only + // return 1 AttachmentId; but the client + // expects to see all, so let us prevent such "invalid" request + // in the first place. + // + // The IsNew check is to still let CreateAttachmentRequest allow + // multiple IsContactPhoto attachments. + // + if (((FileAttachment) attachment).isContactPhoto()) { + if (contactPhotoFound) { + throw new ServiceValidationException( + Strings.MultipleContactPhotosInAttachment); } + contactPhotoFound = true; } } - attachment.validate(attachmentIndex); } } From dec0d7bdc078e3a2db878b442c20cba5e389ad7c Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Thu, 8 Jan 2015 14:18:36 +0100 Subject: [PATCH 081/338] Clean up useless code HttpClientWebRequest.close(). --- .../webservices/data/CallableSingleTon.java | 23 ------------------- .../data/HttpClientWebRequest.java | 3 --- 2 files changed, 26 deletions(-) delete mode 100644 src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java b/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java deleted file mode 100644 index cd91ebfbe..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/CallableSingleTon.java +++ /dev/null @@ -1,23 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - -public class CallableSingleTon { - static ExecutorService es; - - static ExecutorService getExecutor() { - es = Executors.newFixedThreadPool(3); - return es; - } -} diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 9ba527bc7..23a03d957 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -30,7 +30,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.concurrent.ExecutorService; /** @@ -71,8 +70,6 @@ public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { */ @Override public void close() { - ExecutorService es = CallableSingleTon.getExecutor(); - es.shutdown(); if (null != httpPostReq) { httpPostReq.releaseConnection(); //postMethod.abort(); From b7e8a656598f6d9cc6db6dc12d6e5720d76bc3ae Mon Sep 17 00:00:00 2001 From: serious6 Date: Sun, 11 Jan 2015 16:08:31 +0100 Subject: [PATCH 082/338] Merge pull request #153 eveoh/fix-autodiscoverservice-connection-leak - The tryGetEnabledEndpointsForHost(...) / getRedirectUrl(...) method do not correctly close the request. The method should always close the request. - AutodiscoverService: log exceptions thrown while preparing async connection. Fixes OfficeDev/ews-java-api#152. --- .../webservices/data/AutodiscoverService.java | 199 +++++++++--------- 1 file changed, 99 insertions(+), 100 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 23c6b04c9..5a1456dcb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -10,6 +10,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import javax.xml.stream.XMLStreamException; import java.io.*; import java.net.MalformedURLException; @@ -23,6 +26,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of public final class AutodiscoverService extends ExchangeServiceBase implements IAutodiscoverRedirectionUrl, IFunctionDelegate { + private static final Log log = LogFactory.getLog(AutodiscoverService.class); + // region Private members /** * The domain. @@ -318,64 +323,64 @@ private void writeLegacyAutodiscoverRequest(String emailAddress, * @throws ServiceLocalException the service local exception * @throws java.net.URISyntaxException the uRI syntax exception */ - private URI getRedirectUrl(String domainName) throws EWSHttpException, - XMLStreamException, IOException, ServiceLocalException, - URISyntaxException { - String url = String.format(AutodiscoverLegacyHttpUrl, "autodiscover." - + domainName); + private URI getRedirectUrl(String domainName) + throws EWSHttpException, XMLStreamException, IOException, ServiceLocalException, URISyntaxException { + String url = String.format(AutodiscoverLegacyHttpUrl, "autodiscover." + domainName); - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Trying to get Autodiscover redirection URL from %s.", url)); + traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("Trying to get Autodiscover redirection URL from %s.", url)); + + HttpWebRequest request = null; - HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); try { - request.setUrl(URI.create(url).toURL()); - } catch (MalformedURLException e) { - String strErr = String.format("Incorrect format : %s", url); - throw new ServiceLocalException(strErr); - } + request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); - request.setAllowAutoRedirect(false); - request.setPreAuthenticate(false); - request.setRequestMethod("GET"); - request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings.CredentialsRequired); + try { + request.setUrl(URI.create(url).toURL()); + } catch (MalformedURLException e) { + String strErr = String.format("Incorrect format : %s", url); + throw new ServiceLocalException(strErr); } - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - try { - request.prepareAsyncConnection(); - } catch (Exception ex) { - ex.getMessage(); - request = null; - } + request.setAllowAutoRedirect(false); + request.setPreAuthenticate(false); + request.setRequestMethod("GET"); + request.setUseDefaultCredentials(this.getUseDefaultCredentials()); + if (!this.getUseDefaultCredentials()) { + ExchangeCredentials serviceCredentials = this.getCredentials(); + if (null == serviceCredentials) { + throw new ServiceLocalException(Strings.CredentialsRequired); + } + // Make sure that credentials have been authenticated if required + serviceCredentials.preAuthenticate(); + + // Apply credentials to the request + serviceCredentials.prepareWebRequest(request); + } + + try { + request.prepareAsyncConnection(); + } catch (Exception e) { + log.warn("Error while preparing asynchronous connection.", e); + traceMessage(TraceFlags.AutodiscoverConfiguration, "No Autodiscover redirection URL was returned."); + return null; + } - if (request != null) { - URI redirectUrl; OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = outParam.getParam(); - return redirectUrl; + if (tryGetRedirectionResponse(request, outParam)) { + return outParam.getParam(); } - } - try { + } finally { if (request != null) { - request.close(); + try { + request.close(); + } catch (Exception e) { + // Ignore exceptions when closing the request + } } - } catch (Exception e2) { - // do nothing } - this.traceMessage(TraceFlags.AutodiscoverConfiguration, - "No Autodiscover redirection URL was returned."); - + traceMessage(TraceFlags.AutodiscoverConfiguration, "No Autodiscover redirection URL was returned."); return null; } @@ -1457,91 +1462,85 @@ protected List getAutodiscoverServiceHosts(String domainName, * @throws Exception the exception */ private boolean tryGetEnabledEndpointsForHost(String host, - OutParam> endpoints) - throws Exception { + OutParam> endpoints) throws Exception { this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( "Determining which endpoints are enabled for host %s", host)); - // We may get redirected to another host. And therefore need to limit - // the number - // of redirections we'll tolerate. + // We may get redirected to another host. And therefore need to limit the number of redirections we'll + // tolerate. for (int currentHop = 0; currentHop < AutodiscoverMaxRedirections; currentHop++) { - URI autoDiscoverUrl = new URI(String.format( - AutodiscoverLegacyHttpsUrl, host)); + URI autoDiscoverUrl = new URI(String.format(AutodiscoverLegacyHttpsUrl, host)); endpoints.setParam(EnumSet.of(AutodiscoverEndpoints.None)); - HttpWebRequest request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); + HttpWebRequest request = null; try { - request.setUrl(autoDiscoverUrl.toURL()); - } catch (MalformedURLException e) { - String strErr = String.format("Incorrect format : %s", url); - throw new ServiceLocalException(strErr); - } + request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); - request.setRequestMethod("GET"); - request.setAllowAutoRedirect(false); - request.setPreAuthenticate(false); - request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings. - CredentialsRequired); + try { + request.setUrl(autoDiscoverUrl.toURL()); + } catch (MalformedURLException e) { + String strErr = String.format("Incorrect format : %s", url); + throw new ServiceLocalException(strErr); } - // Make sure that credentials have been - // authenticated if required - serviceCredentials.preAuthenticate(); + request.setRequestMethod("GET"); + request.setAllowAutoRedirect(false); + request.setPreAuthenticate(false); + request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - try { - request.prepareAsyncConnection(); - } catch (Exception ex) { - ex.getMessage(); - request = null; - } + if (!this.getUseDefaultCredentials()) { + ExchangeCredentials serviceCredentials = this.getCredentials(); + if (null == serviceCredentials) { + throw new ServiceLocalException(Strings.CredentialsRequired); + } + + // Make sure that credentials have been authenticated if required + serviceCredentials.preAuthenticate(); + + // Apply credentials to the request + serviceCredentials.prepareWebRequest(request); + } + + try { + request.prepareAsyncConnection(); + } catch (Exception e) { + log.warn("Error while preparing asynchronous connection.", e); + return false; + } - if (request != null) { URI redirectUrl; OutParam outParam = new OutParam(); + if (this.tryGetRedirectionResponse(request, outParam)) { redirectUrl = outParam.getParam(); this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Host returned redirection to host '%s'", - redirectUrl.getHost())); + String.format("Host returned redirection to host '%s'", redirectUrl.getHost())); host = redirectUrl.getHost(); } else { - endpoints.setParam(this - .getEndpointsFromHttpWebResponse(request)); + endpoints.setParam(this.getEndpointsFromHttpWebResponse(request)); this.traceMessage(TraceFlags.AutodiscoverConfiguration, - String.format( - "Host returned enabled endpoint flags: %s", - endpoints.getParam().toString())); + String.format("Host returned enabled endpoint flags: %s", endpoints.getParam().toString())); return true; } - } else { - return false; - } - try { - request.close(); - } catch (Exception e2) { - // do nothing + } finally { + if (request != null) { + try { + request.close(); + } catch (Exception e) { + // Connection can't be closed. We'll ignore this... + } + } } } - this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format( - "Maximum number of redirection hops %d exceeded", - AutodiscoverMaxRedirections)); + this.traceMessage(TraceFlags.AutodiscoverConfiguration, + String.format("Maximum number of redirection hops %d exceeded", AutodiscoverMaxRedirections)); - throw new AutodiscoverLocalException( - Strings.MaximumRedirectionHopsExceeded); + throw new AutodiscoverLocalException(Strings.MaximumRedirectionHopsExceeded); } /** From 99bec6039f5ade4824c7132c872752c7b391f201 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 12 Jan 2015 11:59:17 +0100 Subject: [PATCH 083/338] Merge pull request #166 from eveoh/exchangeservicebase-cleanup - ExchangeServiceBase: rename getSimpleHttpConnectionManager() to getHttpConnectionManager(). - ExchangeServiceBase formatting. - remove unused protected constructor from ExchangeServiceBase. - remove unused timezone field from ExchangeServiceBase. --- .../webservices/data/AutodiscoverService.java | 4 +- .../webservices/data/ExchangeService.java | 21 -- .../webservices/data/ExchangeServiceBase.java | 250 +++++++----------- 3 files changed, 91 insertions(+), 184 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 5a1456dcb..eb879e110 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -333,7 +333,7 @@ private URI getRedirectUrl(String domainName) HttpWebRequest request = null; try { - request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); + request = new HttpClientWebRequest(this.getHttpConnectionManager()); try { request.setUrl(URI.create(url).toURL()); @@ -1475,7 +1475,7 @@ private boolean tryGetEnabledEndpointsForHost(String host, HttpWebRequest request = null; try { - request = new HttpClientWebRequest(this.getSimpleHttpConnectionManager()); + request = new HttpClientWebRequest(this.getHttpConnectionManager()); try { request.setUrl(autoDiscoverUrl.toURL()); diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index b9be9a2fc..ed454a9f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -3649,19 +3649,6 @@ public ExchangeService(ExchangeVersion requestedServerVersion) { super(requestedServerVersion); } - /** - * Initializes a new instance of the class, - * targeting the specified version of EWS and scoped to the to the specified - * time zone. - * - * @param requestedServerVersion The version of EWS that the service targets. - * @param timeZone The time zone to which the service is scoped. - */ - public ExchangeService(ExchangeVersion requestedServerVersion, - TimeZone timeZone) { - super(requestedServerVersion, timeZone); - } - // Utilities /** @@ -3799,14 +3786,6 @@ public void setFileAttachmentContentHandler( this.fileAttachmentContentHandler = fileAttachmentContentHandler; } - /* - * Gets the time zone this service is scoped to. - * - * @return the unified messaging - * - public TimeZone getTimeZone() { return super.getTimeZone(); } - */ - /** * Provides access to the Unified Messaging functionalities. * diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index e1a7bd59c..5b5dc5ed6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -38,8 +38,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public abstract class ExchangeServiceBase { - // Fields - /** * Prefix for "extended" headers. */ @@ -98,8 +96,7 @@ public abstract class ExchangeServiceBase { /** * The requested server version. */ - private ExchangeVersion requestedServerVersion = - ExchangeVersion.Exchange2010_SP2; + private ExchangeVersion requestedServerVersion = ExchangeVersion.Exchange2010_SP2; /** * The server info. @@ -110,8 +107,6 @@ public abstract class ExchangeServiceBase { private Map httpResponseHeaders = new HashMap(); - private TimeZone timeZone; - private WebProxy webProxy; private HttpClientConnectionManager httpConnectionManager; @@ -122,35 +117,22 @@ public abstract class ExchangeServiceBase { // protected static HttpStatusCode AccountIsLocked = (HttpStatusCode)456; - /** - * Static members - */ - - protected HttpClientConnectionManager getSimpleHttpConnectionManager() { - return httpConnectionManager; - } - /** * Default UserAgent. */ - private static String defaultUserAgent = "ExchangeServicesClient/" + - EwsUtilities.getBuildVersion(); + private static String defaultUserAgent = "ExchangeServicesClient/" + EwsUtilities.getBuildVersion(); - /** - * @return TimeZone - */ - private TimeZone getTimeZone() { - return this.timeZone; + protected HttpClientConnectionManager getHttpConnectionManager() { + return httpConnectionManager; } /** * Initializes a new instance. * - * @param requestedServerVersion The requested server version. + * This constructor performs the initialization of the HTTP connection manager, so it should be called by + * every other constructor. */ protected ExchangeServiceBase() { - //real init -- ONLY WAY TO BUILD AN OBJECT => each constructor must call this() to build properly the httpConnectionManager - this.timeZone = TimeZone.getDefault(); this.setUseDefaultCredentials(true); try { @@ -166,17 +148,10 @@ protected ExchangeServiceBase() { } protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { - // Removed because TimeZone class in Java doesn't maintaining the - //history of time change rules for a given time zone - //this(requestedServerVersion, TimeZone.getDefault()); this(); this.requestedServerVersion = requestedServerVersion; } - protected ExchangeServiceBase(ExchangeServiceBase service) { - this(service, service.getRequestedServerVersion()); - } - protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) { this(requestedServerVersion); this.useDefaultCredentials = service.getUseDefaultCredentials(); @@ -188,16 +163,9 @@ protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion reque this.preAuthenticate = service.isPreAuthenticate(); this.userAgent = service.getUserAgent(); this.acceptGzipEncoding = service.getAcceptGzipEncoding(); - this.timeZone = service.getTimeZone(); this.httpHeaders = service.getHttpHeaders(); } - - protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZone timezone) { - this(requestedServerVersion); - this.timeZone = timezone; - } - // Event handlers /** @@ -206,9 +174,9 @@ protected ExchangeServiceBase(ExchangeVersion requestedServerVersion, TimeZone t * @param writer The XmlWriter to which to write the custom SOAP headers. */ protected void doOnSerializeCustomSoapHeaders(XMLStreamWriter writer) { - EwsUtilities.EwsAssert(writer != null, - "ExchangeService.DoOnSerializeCustomSoapHeaders", - "writer is null"); + EwsUtilities + .EwsAssert(writer != null, "ExchangeService.DoOnSerializeCustomSoapHeaders", "writer is null"); + if (null != getOnSerializeCustomSoapHeaders() && !getOnSerializeCustomSoapHeaders().isEmpty()) { for (ICustomXmlSerialization customSerialization : getOnSerializeCustomSoapHeaders()) { @@ -231,9 +199,8 @@ protected void doOnSerializeCustomSoapHeaders(XMLStreamWriter writer) { * @throws ServiceLocalException the service local exception * @throws java.net.URISyntaxException the uRI syntax exception */ - protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, - boolean acceptGzipEncoding, boolean allowAutoRedirect) - throws ServiceLocalException, URISyntaxException { + protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, boolean acceptGzipEncoding, + boolean allowAutoRedirect) throws ServiceLocalException, URISyntaxException { // Verify that the protocol is something that we can handle if (!url.getScheme().equalsIgnoreCase("HTTP") && !url.getScheme().equalsIgnoreCase("HTTPS")) { @@ -306,24 +273,16 @@ protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, * * @throws Exception */ - protected void internalProcessHttpErrorResponse( - HttpWebRequest httpWebResponse, - Exception webException, - TraceFlags responseHeadersTraceFlag, - TraceFlags responseTraceFlag) throws Exception { - EwsUtilities.EwsAssert( - 500 != httpWebResponse.getResponseCode(), + protected void internalProcessHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException, + TraceFlags responseHeadersTraceFlag, TraceFlags responseTraceFlag) throws Exception { + EwsUtilities.EwsAssert(500 != httpWebResponse.getResponseCode(), "ExchangeServiceBase.InternalProcessHttpErrorResponse", - "InternalProcessHttpErrorResponse does not handle 500 ISE errors," + - " the caller is supposed to handle this."); + "InternalProcessHttpErrorResponse does not handle 500 ISE errors, the caller is supposed to handle this."); - this.processHttpResponseHeaders(responseHeadersTraceFlag, - httpWebResponse); + this.processHttpResponseHeaders(responseHeadersTraceFlag, httpWebResponse); - // E14:321785 -- Deal with new HTTP - // error code indicating that account is locked. - // The "unlock" URL is returned as - // the status description in the response. + // E14:321785 -- Deal with new HTTP error code indicating that account is locked. + // The "unlock" URL is returned as the status description in the response. if (httpWebResponse.getResponseCode() == 456) { String location = httpWebResponse.getResponseContentType(); @@ -332,13 +291,11 @@ protected void internalProcessHttpErrorResponse( accountUnlockUrl = new URI(location); } - this.traceMessage(responseTraceFlag, String.format("Account is locked." + - " Unlock URL is {0}", accountUnlockUrl)); + this.traceMessage(responseTraceFlag, + String.format("Account is locked. Unlock URL is {0}", accountUnlockUrl)); - throw new AccountIsLockedException( - String.format(Strings.AccountIsLocked, accountUnlockUrl), - accountUnlockUrl, - webException); + throw new AccountIsLockedException(String.format(Strings.AccountIsLocked, accountUnlockUrl), + accountUnlockUrl, webException); } } @@ -357,8 +314,7 @@ public static boolean checkURIPath(String location) { /** * @throws Exception */ - protected abstract void processHttpErrorResponse( - HttpWebRequest httpWebResponse, Exception webException) + protected abstract void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException) throws Exception; /** @@ -379,12 +335,10 @@ protected boolean isTraceEnabledFor(TraceFlags traceFlags) { * @throws javax.xml.stream.XMLStreamException the xML stream exception * @throws java.io.IOException Signals that an I/O exception has occurred. */ - protected void traceMessage(TraceFlags traceType, String logEntry) - throws XMLStreamException, IOException { + protected void traceMessage(TraceFlags traceType, String logEntry) throws XMLStreamException, IOException { if (this.isTraceEnabledFor(traceType)) { String traceTypeStr = traceType.toString(); - String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, - logEntry); + String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, logEntry); this.traceListener.trace(traceTypeStr, logMessage); } } @@ -395,12 +349,10 @@ protected void traceMessage(TraceFlags traceType, String logEntry) * @param traceType Kind of trace entry. * @param stream The stream containing XML. */ - protected void traceXml(TraceFlags traceType, - ByteArrayOutputStream stream) { + protected void traceXml(TraceFlags traceType, ByteArrayOutputStream stream) { if (this.isTraceEnabledFor(traceType)) { String traceTypeStr = traceType.toString(); - String logMessage = EwsUtilities.formatLogMessageWithXmlContent( - traceTypeStr, stream); + String logMessage = EwsUtilities.formatLogMessageWithXmlContent(traceTypeStr, stream); this.traceListener.trace(traceTypeStr, logMessage); } } @@ -415,15 +367,12 @@ protected void traceXml(TraceFlags traceType, * @throws java.io.IOException * @throws javax.xml.stream.XMLStreamException */ - protected void traceHttpRequestHeaders(TraceFlags traceType, - HttpWebRequest request) + protected void traceHttpRequestHeaders(TraceFlags traceType, HttpWebRequest request) throws URISyntaxException, EWSHttpException, XMLStreamException, IOException { if (this.isTraceEnabledFor(traceType)) { String traceTypeStr = traceType.toString(); - String headersAsString = EwsUtilities. - formatHttpRequestHeaders(request); - String logMessage = EwsUtilities. - formatLogMessage(traceTypeStr, headersAsString); + String headersAsString = EwsUtilities.formatHttpRequestHeaders(request); + String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, headersAsString); this.traceListener.trace(traceTypeStr, logMessage); } } @@ -437,14 +386,12 @@ protected void traceHttpRequestHeaders(TraceFlags traceType, * @throws java.io.IOException Signals that an I/O exception has occurred. * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception */ - private void traceHttpResponseHeaders(TraceFlags traceType, - HttpWebRequest request) throws XMLStreamException, IOException, - EWSHttpException { + private void traceHttpResponseHeaders(TraceFlags traceType, HttpWebRequest request) + throws XMLStreamException, IOException, EWSHttpException { if (this.isTraceEnabledFor(traceType)) { String traceTypeStr = traceType.toString(); String headersAsString = EwsUtilities.formatHttpResponseHeaders(request); - String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, - headersAsString); + String logMessage = EwsUtilities.formatLogMessage(traceTypeStr, headersAsString); this.traceListener.trace(traceTypeStr, logMessage); } } @@ -561,8 +508,7 @@ protected Date convertUniversalDateTimeStringToDate(String dateString) { * @param value The string value to parse. * @return The parsed DateTime value. */ - protected Date convertStartDateToUnspecifiedDateTime(String value) - throws ParseException { + protected Date convertStartDateToUnspecifiedDateTime(String value) throws ParseException { if (value == null || value.isEmpty()) { return null; } else { @@ -593,81 +539,69 @@ protected void setCustomUserAgent(String userAgent) { this.userAgent = userAgent; } - - // Abstract methods - /** * Validates this instance. * * @throws ServiceLocalException the service local exception */ protected void validate() throws ServiceLocalException { - - // E14:302056 -- Allow clients to add HTTP request - //headers with 'X-' prefix but no others. + // E14:302056 -- Allow clients to add HTTP request headers with 'X-' prefix but no others. for (Map.Entry key : this.httpHeaders.entrySet()) { if (!key.getKey().startsWith(ExtendedHeaderPrefix)) { - throw new ServiceValidationException(String.format(Strings. - CannotAddRequestHeader, key)); + throw new ServiceValidationException(String.format(Strings.CannotAddRequestHeader, key)); } } } - /** - * Gets the cookie container. The cookie container. - * - * @param url - * the url - * @param value - * the value - * @throws java.io.IOException - * , URISyntaxException - * @throws java.net.URISyntaxException - * the uRI syntax exception - */ - /*public void setCookie(URL url, String value) throws IOException, - URISyntaxException { - CookieHandler handler =CookieHandler.getDefault(); - if (handler != null) { - Map> headers = - new HashMap>(); - List values = new Vector(); - values.add(value); - headers.put("Cookie", values); - - handler.put(url.toURI(), headers); - } - }*/ - - /* - * Gets the cookie. - * - * @param url - * the url - * @return the cookie - * @throws java.io.IOException - * Signals that an I/O exception has occurred. - * @throws java.net.URISyntaxException - * the uRI syntax exception - public String getCookie(URL url) throws IOException, URISyntaxException { - String cookieValue = null; - - CookieHandler handler = CookieHandler.getDefault(); - if (handler != null) { - Map> headers = handler.get(url.toURI(), - new HashMap>()); - List values = headers.get("Cookie"); - for (Iterator iter = values.iterator(); iter.hasNext();) { - String v = iter.next(); - - if (cookieValue == null) - cookieValue = v; - else - cookieValue = cookieValue + ";" + v; - } - } - return cookieValue; - }*/ +// /** +// * Gets the cookie container. The cookie container. +// * +// * @param url the url +// * @param value the value +// * @throws java.io.IOException , URISyntaxException +// * @throws java.net.URISyntaxException the uRI syntax exception +// */ +// public void setCookie(URL url, String value) throws IOException, +// URISyntaxException { +// CookieHandler handler = CookieHandler.getDefault(); +// if (handler != null) { +// Map> headers = +// new HashMap>(); +// List values = new Vector(); +// values.add(value); +// headers.put("Cookie", values); +// +// handler.put(url.toURI(), headers); +// } +// } +// +// /** +// * Gets the cookie. +// * +// * @param url the url +// * @return the cookie +// * @throws java.io.IOException Signals that an I/O exception has occurred. +// * @throws java.net.URISyntaxException the uRI syntax exception +// */ +// public String getCookie(URL url) throws IOException, URISyntaxException { +// String cookieValue = null; +// +// CookieHandler handler = CookieHandler.getDefault(); +// if (handler != null) { +// Map> headers = handler.get(url.toURI(), +// new HashMap>()); +// List values = headers.get("Cookie"); +// for (Iterator iter = values.iterator(); iter.hasNext(); ) { +// String v = iter.next(); +// +// if (cookieValue == null) +// cookieValue = v; +// else +// cookieValue = cookieValue + ";" + v; +// } +// } +// return cookieValue; +// } /** * Gets a value indicating whether tracing is enabled. @@ -794,8 +728,7 @@ public int getTimeout() { */ public void setTimeout(int timeout) { if (timeout < 1) { - throw new IllegalArgumentException( - Strings.TimeoutMustBeGreaterThanZero); + throw new IllegalArgumentException(Strings.TimeoutMustBeGreaterThanZero); } this.timeout = timeout; } @@ -868,8 +801,7 @@ public String getUserAgent() { * @param userAgent The user agent */ public void setUserAgent(String userAgent) { - this.userAgent = userAgent + " (" - + ExchangeServiceBase.defaultUserAgent + ")"; + this.userAgent = userAgent + " (" + ExchangeServiceBase.defaultUserAgent + ")"; } /** @@ -935,8 +867,7 @@ public Map getHttpHeaders() { * * @return the on serialize custom soap headers */ - public List - getOnSerializeCustomSoapHeaders() { + public List getOnSerializeCustomSoapHeaders() { return OnSerializeCustomSoapHeaders; } @@ -945,9 +876,7 @@ public Map getHttpHeaders() { * * @param onSerializeCustomSoapHeaders the new on serialize custom soap headers */ - public void setOnSerializeCustomSoapHeaders( - List - onSerializeCustomSoapHeaders) { + public void setOnSerializeCustomSoapHeaders(List onSerializeCustomSoapHeaders) { OnSerializeCustomSoapHeaders = onSerializeCustomSoapHeaders; } @@ -963,7 +892,6 @@ public void setOnSerializeCustomSoapHeaders( protected void processHttpResponseHeaders(TraceFlags traceType, HttpWebRequest request) throws XMLStreamException, IOException, EWSHttpException { this.traceHttpResponseHeaders(traceType, request); - this.saveHttpResponseHeaders(request.getResponseHeaders()); } From 0b014d05595c6721b22361f4f7828ce8feb58015 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Wed, 7 Jan 2015 17:22:03 +0100 Subject: [PATCH 084/338] Fix Java language level in pom.xml and update IntelliJ IDEA project accordingly. Fixes OfficeDev/ews-java-api#167. --- .idea/compiler.xml | 6 ++++-- .idea/misc.xml | 5 ++--- ews-java-api.iml | 7 +++---- pom.xml | 11 ++++++++++- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 3036bfe59..be026393d 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -25,6 +25,8 @@ + + + - - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4c4c1de6f..d1297649f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -10,8 +10,7 @@ - + - - + \ No newline at end of file diff --git a/ews-java-api.iml b/ews-java-api.iml index f0862db2e..6ba8b2e4a 100644 --- a/ews-java-api.iml +++ b/ews-java-api.iml @@ -1,6 +1,6 @@ - + @@ -11,13 +11,12 @@ + - - - + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 91191ad43..7966b7dac 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ UTF-8 - 1.7 + 1.6 @@ -84,6 +84,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + ${project.build.sourceEncoding} + ${javaLanguage.version} + ${javaLanguage.version} + + org.apache.felix maven-bundle-plugin From 59dd4171d6c65acdc4ebc0ea28a1b7df3b2f6afc Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Thu, 15 Jan 2015 15:01:29 +0100 Subject: [PATCH 085/338] Rework DateTime parsing. Removed methods from ExchangeServiceBase as they don't belong there. Also fix parsing of recurring dates with a timezone. --- .../data/DateTimePropertyDefinition.java | 13 +- .../webservices/data/EwsServiceXmlReader.java | 38 ++---- .../webservices/data/ExchangeServiceBase.java | 121 ------------------ .../data/UserConfigurationDictionary.java | 5 +- .../webservices/data/util/DateTimeParser.java | 101 +++++++++++++++ 5 files changed, 119 insertions(+), 159 deletions(-) create mode 100644 src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index 715ab4b15..84d679306 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -10,6 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import microsoft.exchange.webservices.data.util.DateTimeParser; + import java.util.Date; import java.util.EnumSet; @@ -71,12 +73,11 @@ protected DateTimePropertyDefinition(String xmlElementName, String uri, * @param propertyBag the property bag * @throws Exception the exception */ - protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, - PropertyBag propertyBag) throws Exception { - String value = reader.readElementValue(XmlNamespace.Types, - getXmlElement()); - propertyBag.setObjectFromPropertyDefinition(this, reader.getService() - .convertUniversalDateTimeStringToDate(value)); + protected void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) + throws Exception { + String value = reader.readElementValue(XmlNamespace.Types, getXmlElement()); + propertyBag.setObjectFromPropertyDefinition(this, new DateTimeParser() + .convertDateTimeStringToDate(value)); } diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index 3cd9c7d16..b9562f368 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -10,6 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import microsoft.exchange.webservices.data.util.DateTimeParser; + import java.io.InputStream; import java.text.DateFormat; import java.text.ParseException; @@ -24,6 +26,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class EwsServiceXmlReader extends EwsXmlReader { + private DateTimeParser dateTimeParser = new DateTimeParser(); + /** * The service. */ @@ -42,30 +46,6 @@ protected EwsServiceXmlReader(InputStream stream, ExchangeService service) this.service = service; } - /** - * Converts the specified string into a DateTime objects. - * - * @param dateTimeString The date time string to convert. - * @return A DateTime representing the converted string. - */ - private Date convertStringToDateTime(String dateTimeString) { - return this.service - .convertUniversalDateTimeStringToDate(dateTimeString); - } - - /** - * Converts the specified string into a - * unspecified Date object, ignoring offset. - * - * @param dateTimeString The date time string to convert. - * @return A DateTime representing the converted string. - * @throws java.text.ParseException - */ - private Date convertStringToUnspecifiedDate(String dateTimeString) throws ParseException { - return this.getService(). - convertStartDateToUnspecifiedDateTime(dateTimeString); - } - /** * Reads the element value as date time. * @@ -73,7 +53,7 @@ private Date convertStringToUnspecifiedDate(String dateTimeString) throws ParseE * @throws Exception the exception */ public Date readElementValueAsDateTime() throws Exception { - return this.convertStringToDateTime(this.readElementValue()); + return dateTimeParser.convertDateTimeStringToDate(readElementValue()); } /** @@ -83,7 +63,7 @@ public Date readElementValueAsDateTime() throws Exception { * @throws Exception */ public Date readElementValueAsUnspecifiedDate() throws Exception { - return this.convertStringToUnspecifiedDate(this.readElementValue()); + return dateTimeParser.convertDateStringToDate(readElementValue()); } /** @@ -144,10 +124,8 @@ public Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() * @return the date * @throws Exception the exception */ - public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, - String localName) throws Exception { - return this.convertStringToDateTime(this.readElementValue(xmlNamespace, - localName)); + public Date readElementValueAsDateTime(XmlNamespace xmlNamespace, String localName) throws Exception { + return dateTimeParser.convertDateTimeStringToDate(readElementValue(xmlNamespace, localName)); } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 5b5dc5ed6..6c37330ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -396,127 +396,6 @@ private void traceHttpResponseHeaders(TraceFlags traceType, HttpWebRequest reque } } - /** - * Converts the universal date time string to local date time. - * - * @param dateString The value. - * @return DateTime Returned date is always in UTC date. - */ - protected Date convertUniversalDateTimeStringToDate(String dateString) { - String localTimeRegex = "^(.*)([+-]{1}\\d\\d:\\d\\d)$"; - Pattern localTimePattern = Pattern.compile(localTimeRegex); - String utcPattern = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - String utcPattern1 = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"; - String localPattern = "yyyy-MM-dd'T'HH:mm:ssz"; - String localPattern1 = "yyyy-MM-dd'Z'"; - String pattern = "yyyy-MM-ddz"; - String localPattern2 = "yyyy-MM-dd'T'HH:mm:ss"; - DateFormat utcFormatter = null; - Date dt = null; - String errMsg = String.format( - "Date String %s not in valid UTC/local format", dateString); - if (dateString == null || dateString.isEmpty()) { - return null; - } else { - if (dateString.endsWith("Z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat(utcPattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - utcFormatter = new SimpleDateFormat(pattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - // dateString = dateString.substring(0, 10)+"T12:00:00Z"; - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e1) { - utcFormatter = new SimpleDateFormat(localPattern1); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException ex) { - - utcFormatter = new SimpleDateFormat(utcPattern1); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - } - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e2) { - throw new IllegalArgumentException(errMsg, e); - } - - } - // throw new IllegalArgumentException(errMsg,e); - } - } else if (dateString.endsWith("z")) { - // String in UTC format yyyy-MM-ddTHH:mm:ssZ - utcFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'z'"); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - throw new IllegalArgumentException(e); - } - } else { - // dateString is not ending with Z. - // Check for yyyy-MM-ddTHH:mm:ss+/-HH:mm pattern - Matcher localTimeMatcher = localTimePattern.matcher(dateString); - if (localTimeMatcher.find()) { - System.out.println("Pattern matched"); - String date = localTimeMatcher.group(1); - String zone = localTimeMatcher.group(2); - // Add the string GMT between DateTime and TimeZone - // since 'z' in yyyy-MM-dd'T'HH:mm:ssz matches - // either format GMT+/-HH:mm or +/-HHmm - dateString = String.format("%sGMT%s", date, zone); - try { - utcFormatter = new SimpleDateFormat(localPattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - try { - utcFormatter = new SimpleDateFormat(pattern); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - dt = utcFormatter.parse(dateString); - } catch (ParseException ex) { - throw new IllegalArgumentException(ex); - } - } - } else { - // Invalid format - utcFormatter = new SimpleDateFormat(localPattern2); - utcFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - dt = utcFormatter.parse(dateString); - } catch (ParseException e) { - e.printStackTrace(); - throw new IllegalArgumentException(errMsg); - } - } - } - return dt; - } - } - - /** - * Converts xs:dateTime string with either "Z", "-00:00" bias, or "" - * suffixes to unspecified StartDate value ignoring the suffix.Needs to fix - * E14:232996. - * - * @param value The string value to parse. - * @return The parsed DateTime value. - */ - protected Date convertStartDateToUnspecifiedDateTime(String value) throws ParseException { - if (value == null || value.isEmpty()) { - return null; - } else { - DateFormat df = new SimpleDateFormat("yyyy-MM-dd'Z'"); - return df.parse(value); - } - } - /** * Converts the date time to universal date time string. * diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 0b65bc03e..e2603e2ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -10,6 +10,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import microsoft.exchange.webservices.data.util.DateTimeParser; + import javax.xml.stream.XMLStreamException; import java.lang.reflect.Array; import java.util.*; @@ -581,8 +583,7 @@ private Object constructObject(UserConfigurationDictionaryObjectType type, } else if (type.equals(UserConfigurationDictionaryObjectType.ByteArray)) { dictionaryObject = Base64EncoderStream.decode(value.get(0)); } else if (type.equals(UserConfigurationDictionaryObjectType.DateTime)) { - Date dateTime = reader.getService() - .convertUniversalDateTimeStringToDate(value.get(0)); + Date dateTime = new DateTimeParser().convertDateTimeStringToDate(value.get(0)); if (dateTime != null) { dictionaryObject = dateTime; } else { diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java new file mode 100644 index 000000000..6bbbb3484 --- /dev/null +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -0,0 +1,101 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + +package microsoft.exchange.webservices.data.util; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.TimeZone; + +public class DateTimeParser { + + private final SimpleDateFormat[] dateTimeFormats = { + new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX"), + new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"), + new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"), + new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"), + new SimpleDateFormat("yyyy-MM-ddX"), + new SimpleDateFormat("yyyy-MM-dd") + }; + + private final SimpleDateFormat[] dateFormats = { + new SimpleDateFormat("yyyy-MM-ddX"), + new SimpleDateFormat("yyyy-MM-dd") + }; + + + public DateTimeParser() { + // Set default timezone of the formats to UTC, which will be used when the date string doesn't supply a + // timezone itself. + + for (SimpleDateFormat format : dateTimeFormats) { + format.setTimeZone(TimeZone.getTimeZone("UTC")); + } + + for (SimpleDateFormat format : dateFormats) { + format.setTimeZone(TimeZone.getTimeZone("UTC")); + } + } + + /** + * Converts a date time string to local date time. + * + * Note: this method also allows dates without times, in which case the time will be 00:00:00 in the + * supplied timezone. UTC timezone will be assumed if no timezone is supplied. + * + * @param value The string value to parse. + * @return The parsed {@link Date}. + * + * @throws java.lang.IllegalArgumentException If string can not be parsed. + */ + public Date convertDateTimeStringToDate(String value) { + return parseInternal(value, false); + } + + /** + * Converts a date string to local date time. + * + * UTC timezone will be assumed if no timezone is supplied. + * + * @param value The string value to parse. + * @return The parsed {@link Date}. + * + * @throws java.lang.IllegalArgumentException If string can not be parsed. + */ + public Date convertDateStringToDate(String value) { + return parseInternal(value, true); + } + + private Date parseInternal(String value, boolean dateOnly) { + String originalValue = value; + + if (value == null || value.isEmpty()) { + return null; + } else { + if (value.endsWith("z")) { + // This seems to be an edge case. Let's uppercase the Z to be sure. + value = value.substring(0, value.length() - 1) + "Z"; + } + + SimpleDateFormat[] formats = dateOnly ? dateFormats : dateTimeFormats; + for (SimpleDateFormat format : formats) { + try { + return format.parse(value); + } catch (ParseException e) { + // Ignore and try the next pattern. + } + } + } + + throw new IllegalArgumentException( + String.format("Date String %s not in valid UTC/local format", originalValue)); + } +} From dcbb4b5526e1d7a199b7a9a5487a86f0612edff6 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Thu, 15 Jan 2015 16:42:36 +0100 Subject: [PATCH 086/338] Add unit tests for DateTimeParser. --- .../data/util/DateTimeParserTest.java | 219 ++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java new file mode 100644 index 000000000..cd273f278 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -0,0 +1,219 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + +package microsoft.exchange.webservices.data.util; + +import microsoft.exchange.webservices.data.util.DateTimeParser; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +import java.util.Calendar; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import static org.junit.Assert.assertEquals; + +@RunWith(JUnit4.class) +public class DateTimeParserTest { + + private DateTimeParser parser; + + @Before + public void setUp() { + parser = new DateTimeParser(); + } + + + + // Tests for DateTimeParser.convertDateTimeStringToDate() + + @Test + public void testDateTimeZulu() { + String dateString = "2015-01-08T10:11:12Z"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(10, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateTimeZuluLowerZ() { + String dateString = "2015-01-08T10:11:12z"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(10, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateTimeZuluWithPrecision() { + String dateString = "2015-01-08T10:11:12.123Z"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(10, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateTimeWithTimeZone() { + String dateString = "2015-01-08T10:11:12+0200"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(8, calendar.get(Calendar.HOUR)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateTimeWithTimeZoneWithColon() { + String dateString = "2015-01-08T10:11:12-02:00"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(12, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateTime() { + String dateString = "2015-01-08T10:11:12"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(10, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(11, calendar.get(Calendar.MINUTE)); + assertEquals(12, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateZulu() { + String dateString = "2015-01-08Z"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + } + + @Test + public void testDateOnly() { + String dateString = "2015-01-08"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + } + + + + // Tests for DateTimeParser.convertDateStringToDate() + + @Test + public void testDateOnlyZulu() { + String dateString = "2015-01-08Z"; + Date parsed = parser.convertDateStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(0, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(0, calendar.get(Calendar.MINUTE)); + assertEquals(0, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateOnlyZuluWithLowerZ() { + String dateString = "2015-01-08z"; + Date parsed = parser.convertDateStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(0, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(0, calendar.get(Calendar.MINUTE)); + assertEquals(0, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateOnlyWithTimeZone() { + String dateString = "2015-01-08+0200"; + Date parsed = parser.convertDateStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(7, calendar.get(Calendar.DATE)); + assertEquals(22, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(0, calendar.get(Calendar.MINUTE)); + assertEquals(0, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateOnlyWithTimeZoneWithColon() { + String dateString = "2015-01-08-02:00"; + Date parsed = parser.convertDateStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(2, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(0, calendar.get(Calendar.MINUTE)); + assertEquals(0, calendar.get(Calendar.SECOND)); + } + + @Test + public void testDateOnlyWithoutTimeZone() { + String dateString = "2015-01-08"; + Date parsed = parser.convertDateStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(2015, calendar.get(Calendar.YEAR)); + assertEquals(0, calendar.get(Calendar.MONTH)); + assertEquals(8, calendar.get(Calendar.DATE)); + assertEquals(0, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(0, calendar.get(Calendar.MINUTE)); + assertEquals(0, calendar.get(Calendar.SECOND)); + } +} From 0ac94705d41aa59837770f73746f697285710086 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Thu, 8 Jan 2015 12:06:53 +0100 Subject: [PATCH 087/338] Fix exception handling when initializing HttpClientConnectionManager. --- .../webservices/data/ExchangeServiceBase.java | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 6c37330ff..80716abb0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -26,6 +26,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.File; import java.io.IOException; import java.net.*; +import java.security.KeyManagementException; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -133,18 +136,25 @@ protected HttpClientConnectionManager getHttpConnectionManager() { * every other constructor. */ protected ExchangeServiceBase() { - this.setUseDefaultCredentials(true); + setUseDefaultCredentials(true); + EwsSSLProtocolSocketFactory factory; try { - EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(null); - Registry registry = RegistryBuilder.create() - .register("http", new PlainConnectionSocketFactory()) - .register("https", factory) - .build(); - this.httpConnectionManager = new PoolingHttpClientConnectionManager(registry); - } catch (Exception err) { - err.printStackTrace(); + factory = EwsSSLProtocolSocketFactory.build(null); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); + } catch (KeyStoreException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); + } catch (KeyManagementException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); } + + Registry registry = RegistryBuilder.create() + .register("http", new PlainConnectionSocketFactory()) + .register("https", factory) + .build(); + + httpConnectionManager = new PoolingHttpClientConnectionManager(registry); } protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { From 7a866935a956ad1944d167c041555cb168599df6 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 12 Jan 2015 15:42:19 +0100 Subject: [PATCH 088/338] Rewrite ExchangeServiceBase, HttpWebRequest, etc. to reuse HttpClient. Also added close() method to ExchangeServiceBase to be able to shut down the HTTP connection manager cleanly. --- .../webservices/data/AutodiscoverService.java | 51 ++-- .../webservices/data/ExchangeServiceBase.java | 141 +++++------ .../data/HttpClientWebRequest.java | 220 +++++------------- .../data/HttpProxyCredentials.java | 109 --------- .../webservices/data/HttpWebRequest.java | 78 ++++--- .../webservices/data/WebCredentials.java | 9 +- .../exchange/webservices/data/WebProxy.java | 52 +++-- .../webservices/data/WebProxyCredentials.java | 38 +++ 8 files changed, 252 insertions(+), 446 deletions(-) delete mode 100644 src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java create mode 100644 src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index eb879e110..0121bc6be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -333,7 +333,7 @@ private URI getRedirectUrl(String domainName) HttpWebRequest request = null; try { - request = new HttpClientWebRequest(this.getHttpConnectionManager()); + request = new HttpClientWebRequest(httpClient, httpContext); try { request.setUrl(URI.create(url).toURL()); @@ -342,26 +342,18 @@ private URI getRedirectUrl(String domainName) throw new ServiceLocalException(strErr); } - request.setAllowAutoRedirect(false); - request.setPreAuthenticate(false); request.setRequestMethod("GET"); - request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings.CredentialsRequired); - } - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); + request.setAllowAutoRedirect(false); - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } + // Do NOT allow authentication as this single request will be made over plain HTTP. + request.setAllowAuthentication(false); + + prepareCredentials(request); + request.prepareConnection(); try { - request.prepareAsyncConnection(); - } catch (Exception e) { - log.warn("Error while preparing asynchronous connection.", e); + request.executeRequest(); + } catch (IOException e) { traceMessage(TraceFlags.AutodiscoverConfiguration, "No Autodiscover redirection URL was returned."); return null; } @@ -1475,7 +1467,7 @@ private boolean tryGetEnabledEndpointsForHost(String host, HttpWebRequest request = null; try { - request = new HttpClientWebRequest(this.getHttpConnectionManager()); + request = new HttpClientWebRequest(httpClient, httpContext); try { request.setUrl(autoDiscoverUrl.toURL()); @@ -1489,31 +1481,18 @@ private boolean tryGetEnabledEndpointsForHost(String host, request.setPreAuthenticate(false); request.setUseDefaultCredentials(this.getUseDefaultCredentials()); - if (!this.getUseDefaultCredentials()) { - ExchangeCredentials serviceCredentials = this.getCredentials(); - if (null == serviceCredentials) { - throw new ServiceLocalException(Strings.CredentialsRequired); - } - - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); - - // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } + prepareCredentials(request); + request.prepareConnection(); try { - request.prepareAsyncConnection(); - } catch (Exception e) { - log.warn("Error while preparing asynchronous connection.", e); + request.executeRequest(); + } catch (IOException e) { return false; } - URI redirectUrl; OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = outParam.getParam(); + URI redirectUrl = outParam.getParam(); this.traceMessage(TraceFlags.AutodiscoverConfiguration, String.format("Host returned redirection to host '%s'", redirectUrl.getHost())); diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 80716abb0..36c92cd13 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -10,19 +10,21 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import org.apache.http.client.CookieStore; +import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.config.Registry; import org.apache.http.config.RegistryBuilder; import org.apache.http.conn.HttpClientConnectionManager; import org.apache.http.conn.socket.ConnectionSocketFactory; import org.apache.http.conn.socket.PlainConnectionSocketFactory; -import org.apache.http.cookie.Cookie; -import org.apache.http.impl.client.BasicCookieStore; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; import java.io.ByteArrayOutputStream; +import java.io.Closeable; import java.io.File; import java.io.IOException; import java.net.*; @@ -39,7 +41,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of /** * Represents an abstract binding to an Exchange Service. */ -public abstract class ExchangeServiceBase { +public abstract class ExchangeServiceBase implements Closeable { /** * Prefix for "extended" headers. @@ -112,11 +114,11 @@ public abstract class ExchangeServiceBase { private WebProxy webProxy; - private HttpClientConnectionManager httpConnectionManager; + protected CloseableHttpClient httpClient; - HttpClientWebRequest request = null; + protected HttpClientContext httpContext = HttpClientContext.create(); - private CookieStore cookieStore; + protected HttpClientWebRequest request = null; // protected static HttpStatusCode AccountIsLocked = (HttpStatusCode)456; @@ -125,10 +127,6 @@ public abstract class ExchangeServiceBase { */ private static String defaultUserAgent = "ExchangeServicesClient/" + EwsUtilities.getBuildVersion(); - protected HttpClientConnectionManager getHttpConnectionManager() { - return httpConnectionManager; - } - /** * Initializes a new instance. * @@ -137,24 +135,7 @@ protected HttpClientConnectionManager getHttpConnectionManager() { */ protected ExchangeServiceBase() { setUseDefaultCredentials(true); - - EwsSSLProtocolSocketFactory factory; - try { - factory = EwsSSLProtocolSocketFactory.build(null); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); - } catch (KeyStoreException e) { - throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); - } catch (KeyManagementException e) { - throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); - } - - Registry registry = RegistryBuilder.create() - .register("http", new PlainConnectionSocketFactory()) - .register("https", factory) - .build(); - - httpConnectionManager = new PoolingHttpClientConnectionManager(registry); + initializeHttpClient(); } protected ExchangeServiceBase(ExchangeVersion requestedServerVersion) { @@ -176,6 +157,37 @@ protected ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion reque this.httpHeaders = service.getHttpHeaders(); } + private void initializeHttpClient() { + EwsSSLProtocolSocketFactory factory; + try { + factory = EwsSSLProtocolSocketFactory.build(null); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); + } catch (KeyStoreException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); + } catch (KeyManagementException e) { + throw new RuntimeException("Could not initialize HttpClientConnectionManager.", e); + } + + Registry registry = RegistryBuilder.create() + .register("http", new PlainConnectionSocketFactory()) + .register("https", factory) + .build(); + + HttpClientConnectionManager httpConnectionManager = new PoolingHttpClientConnectionManager(registry); + HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(httpConnectionManager); + httpClient = httpClientBuilder.build(); + } + + @Override + public void close() { + try { + httpClient.close(); + } catch (IOException e) { + // Ignore exceptions while closing the HttpClient. + } + } + // Event handlers /** @@ -210,70 +222,52 @@ protected void doOnSerializeCustomSoapHeaders(XMLStreamWriter writer) { * @throws java.net.URISyntaxException the uRI syntax exception */ protected HttpWebRequest prepareHttpWebRequestForUrl(URI url, boolean acceptGzipEncoding, - boolean allowAutoRedirect) throws ServiceLocalException, URISyntaxException { + boolean allowAutoRedirect) throws ServiceLocalException, URISyntaxException { // Verify that the protocol is something that we can handle - if (!url.getScheme().equalsIgnoreCase("HTTP") - && !url.getScheme().equalsIgnoreCase("HTTPS")) { - String strErr = String.format(Strings.UnsupportedWebProtocol, url. - getScheme()); + if (!url.getScheme().equalsIgnoreCase("HTTP") && !url.getScheme().equalsIgnoreCase("HTTPS")) { + String strErr = String.format(Strings.UnsupportedWebProtocol, url.getScheme()); throw new ServiceLocalException(strErr); } - request = new HttpClientWebRequest(this.httpConnectionManager); + request = new HttpClientWebRequest(httpClient, httpContext); try { request.setUrl(url.toURL()); } catch (MalformedURLException e) { String strErr = String.format("Incorrect format : %s", url); throw new ServiceLocalException(strErr); } - request.setPreAuthenticate(this.preAuthenticate); - request.setTimeout(this.timeout); + + request.setPreAuthenticate(preAuthenticate); + request.setTimeout(timeout); request.setContentType("text/xml; charset=utf-8"); request.setAccept("text/xml"); - request.setUserAgent(this.userAgent); + request.setUserAgent(userAgent); request.setAllowAutoRedirect(allowAutoRedirect); - //request.setKeepAlive(true); + request.setAcceptGzipEncoding(acceptGzipEncoding); + request.setHeaders(getHttpHeaders()); - if (acceptGzipEncoding) { - request.setAcceptGzipEncoding(acceptGzipEncoding); - } + prepareCredentials(request); - if (this.webProxy != null) { - request.setProxy(this.webProxy); - } + request.prepareConnection(); - //if (this.getHttpHeaders().size() > 0){ - request.setHeaders(this.getHttpHeaders()); - //} + httpResponseHeaders.clear(); + return request; + } + + protected void prepareCredentials(HttpWebRequest request) throws ServiceLocalException, URISyntaxException { request.setUseDefaultCredentials(useDefaultCredentials); if (!useDefaultCredentials) { - ExchangeCredentials serviceCredentials = this.credentials; - if (null == serviceCredentials) { + if (credentials == null) { throw new ServiceLocalException(Strings.CredentialsRequired); } - if (cookieStore != null) { - request.setUserCookie(cookieStore.getCookies()); - } - // Make sure that credentials have been authenticated if required - serviceCredentials.preAuthenticate(); + credentials.preAuthenticate(); // Apply credentials to the request - serviceCredentials.prepareWebRequest(request); - } - - try { - request.prepareConnection(); - } catch (Exception e) { - String strErr = String.format("%s : Connection error ", url); - throw new ServiceLocalException(strErr); + credentials.prepareWebRequest(request); } - - this.httpResponseHeaders.clear(); - - return request; } /** @@ -799,19 +793,6 @@ private void saveHttpResponseHeaders(Map headers) { for (String key : headers.keySet()) { this.httpResponseHeaders.put(key, headers.get(key)); } - - // Save the cookies for subsequent requests - if (this.request.getCookies() != null) { - if (cookieStore == null) { - cookieStore = new BasicCookieStore(); - } - - cookieStore.clear(); - for (Cookie c : this.request.getCookies()) { - cookieStore.addCookie(c); - } - } - } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 23a03d957..5806bff25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -15,20 +15,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.HttpResponse; import org.apache.http.auth.AuthScope; import org.apache.http.auth.NTCredentials; -import org.apache.http.client.CookieStore; import org.apache.http.client.CredentialsProvider; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.HttpPost; +import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.config.SocketConfig; -import org.apache.http.conn.HttpClientConnectionManager; -import org.apache.http.cookie.Cookie; import org.apache.http.impl.client.*; -import org.apache.http.impl.conn.DefaultSchemePortResolver; -import javax.net.ssl.TrustManager; import java.io.*; import java.util.HashMap; -import java.util.List; import java.util.Map; @@ -38,31 +33,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ class HttpClientWebRequest extends HttpWebRequest { - /** - * The Http Client. - */ - private CloseableHttpClient client = null; - private CookieStore cookieStore = null; - /** * The Http Method. */ - private HttpPost httpPostReq = null; + private HttpPost httpPost = null; private HttpResponse response = null; - /** - * The TrustManager. - */ - private TrustManager trustManger = null; - - private HttpClientConnectionManager httpClientConnMng = null; + private final CloseableHttpClient httpClient; + private final HttpClientContext httpContext; /** * Instantiates a new http native web request. */ - public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { - this.httpClientConnMng = simpleHttpConnMng; + public HttpClientWebRequest(CloseableHttpClient httpClient, HttpClientContext httpContext) { + this.httpClient = httpClient; + this.httpContext = httpContext; } /** @@ -70,163 +56,71 @@ public HttpClientWebRequest(HttpClientConnectionManager simpleHttpConnMng) { */ @Override public void close() { - if (null != httpPostReq) { - httpPostReq.releaseConnection(); + if (null != httpPost) { + httpPost.releaseConnection(); //postMethod.abort(); } - httpPostReq = null; + httpPost = null; } /** - * Prepare connection - * - * @throws microsoft.exchange.webservices.data.EWSHttpException the eWS http exception + * Prepares the request by setting appropriate headers, authentication, timeouts, etc. */ @Override - public void prepareConnection() throws EWSHttpException { - try { - HttpClientBuilder builder = HttpClients.custom(); - builder.setConnectionManager(this.httpClientConnMng); + public void prepareConnection() { + httpPost = new HttpPost(getUrl().toString()); + + // Populate headers. + httpPost.addHeader("Content-type", getContentType()); + httpPost.addHeader("User-Agent", getUserAgent()); + httpPost.addHeader("Accept", getAccept()); + httpPost.addHeader("Keep-Alive", "300"); + httpPost.addHeader("Connection", "Keep-Alive"); + + if (isAcceptGzipEncoding()) { + httpPost.addHeader("Accept-Encoding", "gzip,deflate"); + } - //create the cookie store - if (cookieStore == null) { - cookieStore = new BasicCookieStore(); - } - builder.setDefaultCookieStore(cookieStore); - - if (getProxy() != null) { - HttpHost proxy = new HttpHost(getProxy().getHost(), getProxy().getPort()); - builder.setProxy(proxy); - - if (HttpProxyCredentials.isProxySet()) { - NTCredentials cred = - new NTCredentials(HttpProxyCredentials.getUserName(), HttpProxyCredentials.getPassword(), "", - HttpProxyCredentials.getDomain()); - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider.setCredentials(new AuthScope(proxy), cred); - builder.setDefaultCredentialsProvider(credsProvider); - } - } - if (getUserName() != null) { - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider - .setCredentials(AuthScope.ANY, new NTCredentials(getUserName(), getPassword(), "", getDomain())); - builder.setDefaultCredentialsProvider(credsProvider); + if (getHeaders() != null) { + for (Map.Entry httpHeader : getHeaders().entrySet()) { + httpPost.addHeader(httpHeader.getKey(), httpHeader.getValue()); } + } - //fix socket config - SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); - builder.setDefaultSocketConfig(sc); - - RequestConfig.Builder rcBuilder = RequestConfig.custom(); - rcBuilder.setAuthenticationEnabled(true); - rcBuilder.setConnectionRequestTimeout(getTimeout()); - rcBuilder.setConnectTimeout(getTimeout()); - rcBuilder.setRedirectsEnabled(isAllowAutoRedirect()); - rcBuilder.setSocketTimeout(getTimeout()); - builder.setDefaultRequestConfig(rcBuilder.build()); - - httpPostReq = new HttpPost(getUrl().toString()); - httpPostReq.addHeader("Content-type", getContentType()); - //httpPostReq.setDoAuthentication(true); - httpPostReq.addHeader("User-Agent", getUserAgent()); - httpPostReq.addHeader("Accept", getAccept()); - httpPostReq.addHeader("Keep-Alive", "300"); - httpPostReq.addHeader("Connection", "Keep-Alive"); - - if (isAcceptGzipEncoding()) { - httpPostReq.addHeader("Accept-Encoding", "gzip,deflate"); - } + // Build request configuration. + RequestConfig.Builder requestConfigBuilder = RequestConfig.custom() + .setAuthenticationEnabled(true) + .setConnectionRequestTimeout(getTimeout()) + .setConnectTimeout(getTimeout()) + .setRedirectsEnabled(isAllowAutoRedirect()) + .setSocketTimeout(getTimeout()); - if (getHeaders().size() > 0) { - for (Map.Entry httpHeader : getHeaders().entrySet()) { - httpPostReq.addHeader(httpHeader.getKey(), httpHeader.getValue()); - } - } + CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); - //create the client - client = builder.build(); - } catch (Exception er) { - er.printStackTrace(); - } - } + // Add proxy credentials if necessary. + WebProxy proxy = getProxy(); + if (proxy != null) { + HttpHost proxyHost = new HttpHost(proxy.getHost(), proxy.getPort()); + requestConfigBuilder.setProxy(proxyHost); - /** - * Prepare asynchronous connection. - * - * @throws microsoft.exchange.webservices.data.EWSHttpException throws EWSHttpException - */ - public void prepareAsyncConnection() throws EWSHttpException { - try { - //ssl config - HttpClientBuilder builder = HttpClients.custom(); - builder.setConnectionManager(this.httpClientConnMng); - builder.setSchemePortResolver(new DefaultSchemePortResolver()); - - EwsSSLProtocolSocketFactory factory = EwsSSLProtocolSocketFactory.build(trustManger); - builder.setSSLSocketFactory(factory); - builder.setSslcontext(factory.getContext()); - - //create the cookie store - if (cookieStore == null) { - cookieStore = new BasicCookieStore(); + if (proxy.hasCredentials()) { + NTCredentials proxyCredentials = new NTCredentials(proxy.getCredentials().getUsername(), + proxy.getCredentials().getPassword(), "", proxy.getCredentials().getDomain()); + + credentialsProvider.setCredentials(new AuthScope(proxyHost), proxyCredentials); } - builder.setDefaultCookieStore(cookieStore); - - CredentialsProvider credsProvider = new BasicCredentialsProvider(); - credsProvider - .setCredentials(AuthScope.ANY, new NTCredentials(getUserName(), getPassword(), "", getDomain())); - builder.setDefaultCredentialsProvider(credsProvider); - - //fix socket config - SocketConfig sc = SocketConfig.custom().setSoTimeout(getTimeout()).build(); - builder.setDefaultSocketConfig(sc); - - RequestConfig.Builder rcBuilder = RequestConfig.custom(); - rcBuilder.setConnectionRequestTimeout(getTimeout()); - rcBuilder.setConnectTimeout(getTimeout()); - rcBuilder.setSocketTimeout(getTimeout()); - builder.setDefaultRequestConfig(rcBuilder.build()); - - //HttpClientParams.setRedirecting(client.getParams(), isAllowAutoRedirect()); by default it follows redirects - //create the client and execute requests - client = builder.build(); - httpPostReq = new HttpPost(getUrl().toString()); - response = client.execute(httpPostReq); - } catch (IOException e) { - client = null; - httpPostReq = null; - throw new EWSHttpException("Unable to open connection to " + this.getUrl()); - } catch (Exception e) { - client = null; - httpPostReq = null; - e.printStackTrace(); - throw new EWSHttpException("SSL problem " + this.getUrl()); } - } - - /** - * Method for getting the cookie values. - */ - public List getCookies() { - return this.cookieStore.getCookies(); - } - /** - * Method for setting the cookie values. - */ - public void setUserCookie(List rcookies) { - if (rcookies != null && rcookies.size() > 0) { - if (this.cookieStore == null) { - this.cookieStore = new BasicCookieStore(); - } - for (Cookie c : rcookies) { - this.cookieStore.addCookie(c); - } + // Add web service credentials if necessary. + if (isAllowAuthentication() && getUsername() != null) { + NTCredentials webServiceCredentials = new NTCredentials(getUsername(), getPassword(), "", getDomain()); + credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY), webServiceCredentials); } - } + httpContext.setCredentialsProvider(credentialsProvider); + httpPost.setConfig(requestConfigBuilder.build()); + } /** * Gets the input stream. @@ -277,7 +171,7 @@ public OutputStream getOutputStream() throws EWSHttpException { throwIfRequestIsNull(); os = new ByteArrayOutputStream(); - httpPostReq.setEntity(new ByteArrayOSRequestEntity(os)); + httpPost.setEntity(new ByteArrayOSRequestEntity(os)); return os; } @@ -365,7 +259,7 @@ public String getResponseContentType() throws EWSHttpException { @Override public int executeRequest() throws EWSHttpException, IOException { throwIfRequestIsNull(); - response = client.execute(httpPostReq); + response = httpClient.execute(httpPost, httpContext); return response.getStatusLine().getStatusCode(); // ?? don't know what is wanted in return } @@ -398,7 +292,7 @@ public String getResponseText() throws EWSHttpException { * @throws EWSHttpException the eWS http exception */ private void throwIfRequestIsNull() throws EWSHttpException { - if (null == httpPostReq) { + if (null == httpPost) { throw new EWSHttpException("Connection not established"); } } @@ -419,7 +313,7 @@ public Map getRequestProperty() throws EWSHttpException { throwIfRequestIsNull(); Map map = new HashMap(); - Header[] hM = httpPostReq.getAllHeaders(); + Header[] hM = httpPost.getAllHeaders(); for (Header header : hM) { map.put(header.getName(), header.getValue()); } diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java deleted file mode 100644 index fb11a195e..000000000 --- a/src/main/java/microsoft/exchange/webservices/data/HttpProxyCredentials.java +++ /dev/null @@ -1,109 +0,0 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - -package microsoft.exchange.webservices.data; - -/** - * The Class HttpProxyCredentials. - */ -class HttpProxyCredentials { - - /** - * The user name. - */ - private static String userName; - - /** - * The password. - */ - private static String password; - - /** - * The domain. - */ - private static String domain; - - /** - * The is proxy set. - */ - private static boolean isProxySet; - - /** - * Sets the credentials. - * - * @param user the user - * @param pwd the password - * @param dmn the domain - */ - public static void setCredentials(String user, String pwd, String dmn) { - userName = user; - password = pwd; - domain = dmn; - isProxySet = true; - - } - - /** - * Clear proxy credentials. - */ - public static void clearProxyCredentials() { - isProxySet = false; - } - - /** - * Checks if is proxy set. - * - * @return true, if is proxy set - */ - public static boolean isProxySet() { - return isProxySet; - } - - /** - * Gets the user name. - * - * @return the user name - */ - public static String getUserName() { - if (isProxySet) { - return userName; - } else { - return null; - } - } - - /** - * Gets the password. - * - * @return the password - */ - public static String getPassword() { - if (isProxySet) { - return password; - } else { - return null; - } - - } - - /** - * Gets the domain. - * - * @return the domain - */ - public static String getDomain() { - if (isProxySet) { - return domain; - } else { - return null; - } - - } -} diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index 71235d140..988d5a9aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -71,10 +71,12 @@ abstract class HttpWebRequest { */ private boolean useDefaultCredentials; + private boolean allowAuthentication = true; + /** * The user name. */ - private String userName; + private String username; /** * The password. @@ -125,12 +127,7 @@ public void setProxy(WebProxy proxy) { * @return true, if is http scheme */ public boolean isHttpScheme() { - - if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTP_SCHEME)) { - return true; - } else { - return false; - } + return getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTP_SCHEME); } /** @@ -139,11 +136,7 @@ public boolean isHttpScheme() { * @return true, if is https scheme */ public boolean isHttpsScheme() { - if (getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTPS_SCHEME)) { - return true; - } else { - return false; - } + return getUrl().getProtocol().equalsIgnoreCase(EWSConstants.HTTPS_SCHEME); } /** @@ -151,17 +144,17 @@ public boolean isHttpsScheme() { * * @return the user name */ - public String getUserName() { - return userName; + public String getUsername() { + return username; } /** * Sets the user name. * - * @param userName the new user name + * @param username the new user name */ - public void setUserName(String userName) { - this.userName = userName; + public void setUsername(String username) { + this.username = username; } /** @@ -220,18 +213,14 @@ public void setUrl(URL url) { } /** - * Checks if is pre authenticate. - * - * @return true, if is pre authenticate + * Whether to use preemptive authentication. Currently not implemented, though. */ public boolean isPreAuthenticate() { return preAuthenticate; } /** - * Sets the pre authenticate. - * - * @param preAuthenticate the new pre authenticate + * Whether to use preemptive authentication. Currently not implemented, though. */ public void setPreAuthenticate(boolean preAuthenticate) { this.preAuthenticate = preAuthenticate; @@ -381,6 +370,34 @@ public void setUseDefaultCredentials(boolean useDefaultCredentials) { this.useDefaultCredentials = useDefaultCredentials; } + /** + * Whether web service authentication is allowed. + * This can be set to {@code false} to disallow sending credentials with this request. + * + * This is useful for the autodiscover request to the legacy HTTP url, because this single request doesn't + * require authentication and we don't want to send credentials over HTTP. + * + * @return {@code true} if authentication is allowed. + */ + public boolean isAllowAuthentication() { + return allowAuthentication; + } + + /** + * Whether web service authentication is allowed. + * This can be set to {@code false} to disallow sending credentials with this request. + * + * This is useful for the autodiscover request to the legacy HTTP url, because this single request doesn't + * require authentication and we don't want to send credentials over HTTP. + * + * Default is {@code true}. + * + * @param allowAuthentication {@code true} if authentication is allowed. + */ + public void setAllowAuthentication(boolean allowAuthentication) { + this.allowAuthentication = allowAuthentication; + } + /** * Gets the request method type. * @@ -426,7 +443,7 @@ public void setHeaders(Map headers) { */ public void setCredentials(String domain, String user, String pwd) { this.domain = domain; - this.userName = user; + this.username = user; this.password = pwd; } @@ -462,10 +479,8 @@ public void setCredentials(String domain, String user, String pwd) { /** * Prepare connection. - * - * @throws EWSHttpException the eWS http exception */ - public abstract void prepareConnection() throws EWSHttpException; + public abstract void prepareConnection(); /** * Gets the response headers. @@ -518,13 +533,6 @@ public abstract Map getResponseHeaders() public abstract String getResponseHeaderField(String headerName) throws EWSHttpException; - /** - * Prepare asynchronous connection. - * - * @throws EWSHttpException the eWS http exception - */ - public abstract void prepareAsyncConnection() throws EWSHttpException, UnsupportedEncodingException; - /** * Gets the request properties. * @@ -541,7 +549,7 @@ public abstract Map getRequestProperty() * @throws HttpException the http exception * @throws java.io.IOException the IO Exception */ - public abstract int executeRequest() throws EWSHttpException, HttpErrorException, IOException; + public abstract int executeRequest() throws EWSHttpException, IOException; public IAsyncResult beginGetResponse(Object webRequestAsyncCallback, WebAsyncCallStateAnchor wrappedState) { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index c2d1647c3..96dd8b083 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -115,15 +115,14 @@ public WebCredentials(String username, String password) { * This method is called to apply credentials to a service request before * the request is made. * - * @param client The request. + * @param request The request. */ @Override - protected void prepareWebRequest(HttpWebRequest client) { + protected void prepareWebRequest(HttpWebRequest request) { if (useDefaultCredentials) { - client.setUseDefaultCredentials(true); + request.setUseDefaultCredentials(true); } else { - client.setCredentials(domain, user, pwd); + request.setCredentials(domain, user, pwd); } } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index 290697b5f..ae8848cad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -16,16 +16,13 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public class WebProxy { - /** - * proxy host. - */ private String host; - /** - * proxy post. - */ private int port; + private WebProxyCredentials credentials; + + /** * Initializes a new instance to use specified proxy details. * @@ -47,10 +44,29 @@ public WebProxy(String host) { this.port = 80; } - /*public WebProxy(ProxyHost httpproxy) throws UnknownHostException { - this.host = httpproxy.getHostName(); - this.port = httpproxy.getPort(); - } */ + /** + * Initializes a new instance to use specified proxy with default port 80. + * + * @param host proxy host. + * @param credentials the credentials to use for the proxy. + */ + public WebProxy(String host, WebProxyCredentials credentials) { + this.host = host; + this.credentials = credentials; + } + + /** + * Initializes a new instance to use specified proxy details. + * + * @param host proxy host. + * @param port proxy port. + * @param credentials the credentials to use for the proxy. + */ + public WebProxy(String host, int port, WebProxyCredentials credentials) { + this.host = host; + this.port = port; + this.credentials = credentials; + } /** * Gets the Proxy Host. @@ -70,16 +86,16 @@ protected int getPort() { return this.port; } + public boolean hasCredentials() { + return credentials != null; + } + /** - * This method is used to set proxy credentials to a Web Request before - * the request is made. + * Gets the Proxy Credentials. * - * @param user The proxy username. - * @param pwd The proxy password. - * @param domain The proxy domain. + * @return the proxy credentials */ - public void setCredentials(String user, String pwd, String domain) { - HttpProxyCredentials.setCredentials(user, pwd, domain); - HttpProxyCredentials.isProxySet(); + public WebProxyCredentials getCredentials() { + return credentials; } } diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java new file mode 100644 index 000000000..8949b686b --- /dev/null +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java @@ -0,0 +1,38 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + +package microsoft.exchange.webservices.data; + +public class WebProxyCredentials { + + private String username; + + private String password; + + private String domain; + + public WebProxyCredentials(String username, String password, String domain) { + this.username = username; + this.password = password; + this.domain = domain; + } + + public String getUsername() { + return username; + } + + public String getPassword() { + return password; + } + + public String getDomain() { + return domain; + } +} From 359f1e7aec1df0351a927a9123869ae06da1479e Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 12 Jan 2015 16:01:55 +0100 Subject: [PATCH 089/338] Replace PoolingHttpClientConnectionManager by BasicHttpClientConnectionManager. --- .../exchange/webservices/data/ExchangeServiceBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 36c92cd13..df2656285 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -19,7 +19,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.impl.client.HttpClients; -import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import org.apache.http.impl.conn.BasicHttpClientConnectionManager; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; @@ -174,7 +174,7 @@ private void initializeHttpClient() { .register("https", factory) .build(); - HttpClientConnectionManager httpConnectionManager = new PoolingHttpClientConnectionManager(registry); + HttpClientConnectionManager httpConnectionManager = new BasicHttpClientConnectionManager(registry); HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(httpConnectionManager); httpClient = httpClientBuilder.build(); } From 33c9a4aadf8d18bc694881f265a6fee1ccbc2cb6 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 12 Jan 2015 16:06:36 +0100 Subject: [PATCH 090/338] Don't touch the global CookieHandler. --- .../exchange/webservices/data/ExchangeServiceBase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index df2656285..3d812dec3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -27,7 +27,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.io.Closeable; import java.io.File; import java.io.IOException; -import java.net.*; +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URISyntaxException; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; @@ -563,7 +565,6 @@ public ExchangeCredentials getCredentials() { public void setCredentials(ExchangeCredentials credentials) { this.credentials = credentials; this.useDefaultCredentials = false; - CookieHandler.setDefault(new CookieManager()); } /** @@ -589,7 +590,6 @@ public void setUseDefaultCredentials(boolean value) { this.useDefaultCredentials = value; if (value) { this.credentials = null; - CookieHandler.setDefault(null); } } From da3bdcea8879dc0aa5b746f1f4fda9f5a3281eb3 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 19 Jan 2015 13:29:16 +0100 Subject: [PATCH 091/338] Fix request not being closed on early return in AutodiscoverService. --- .../webservices/data/AutodiscoverService.java | 164 +++++++++--------- 1 file changed, 85 insertions(+), 79 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 0121bc6be..f1b2f1393 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -200,89 +200,95 @@ TSettings getLegacyUserSettingsAtUrl( emailAddress, url)); TSettings settings = cls.newInstance(); - HttpWebRequest request = this.prepareHttpWebRequestForUrl(url); - - this.traceHttpRequestHeaders( - TraceFlags.AutodiscoverRequestHttpHeaders, - request); - // OutputStreamWriter out = new - // OutputStreamWriter(request.getOutputStream()); - OutputStream urlOutStream = request.getOutputStream(); - - // If tracing is enabled, we generate the request in-memory so that we - // can pass it along to the ITraceListener. Then we copy the stream to - // the request stream. - if (this.isTraceEnabledFor(TraceFlags.AutodiscoverRequest)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - - PrintWriter writer = new PrintWriter(memoryStream); - this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); - writer.flush(); - - this.traceXml(TraceFlags.AutodiscoverRequest, memoryStream); - // out.write(memoryStream.toString()); - // out.close(); - memoryStream.writeTo(urlOutStream); - urlOutStream.flush(); - urlOutStream.close(); - memoryStream.close(); - } else { - PrintWriter writer = new PrintWriter(urlOutStream); - this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); - - /* Flush Start */ - writer.flush(); - urlOutStream.flush(); - urlOutStream.close(); - /* Flush End */ - } - request.executeRequest(); - request.getResponseCode(); - URI redirectUrl; - OutParam outParam = new OutParam(); - if (this.tryGetRedirectionResponse(request, outParam)) { - redirectUrl = outParam.getParam(); - settings.makeRedirectionResponse(redirectUrl); - return settings; - } - InputStream serviceResponseStream = request.getInputStream(); - // If tracing is enabled, we read the entire response into a - // MemoryStream so that we - // can pass it along to the ITraceListener. Then we parse the response - // from the - // MemoryStream. - if (this.isTraceEnabledFor(TraceFlags.AutodiscoverResponse)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - memoryStream.flush(); - this.traceResponse(request, memoryStream); - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); - reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - settings.loadFromXml(reader); + HttpWebRequest request = null; + try { + request = this.prepareHttpWebRequestForUrl(url); + + this.traceHttpRequestHeaders( + TraceFlags.AutodiscoverRequestHttpHeaders, + request); + // OutputStreamWriter out = new + // OutputStreamWriter(request.getOutputStream()); + OutputStream urlOutStream = request.getOutputStream(); + + // If tracing is enabled, we generate the request in-memory so that we + // can pass it along to the ITraceListener. Then we copy the stream to + // the request stream. + if (this.isTraceEnabledFor(TraceFlags.AutodiscoverRequest)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + + PrintWriter writer = new PrintWriter(memoryStream); + this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); + writer.flush(); + + this.traceXml(TraceFlags.AutodiscoverRequest, memoryStream); + // out.write(memoryStream.toString()); + // out.close(); + memoryStream.writeTo(urlOutStream); + urlOutStream.flush(); + urlOutStream.close(); + memoryStream.close(); + } else { + PrintWriter writer = new PrintWriter(urlOutStream); + this.writeLegacyAutodiscoverRequest(emailAddress, settings, writer); + + /* Flush Start */ + writer.flush(); + urlOutStream.flush(); + urlOutStream.close(); + /* Flush End */ + } + request.executeRequest(); + request.getResponseCode(); + URI redirectUrl; + OutParam outParam = new OutParam(); + if (this.tryGetRedirectionResponse(request, outParam)) { + redirectUrl = outParam.getParam(); + settings.makeRedirectionResponse(redirectUrl); + return settings; + } + InputStream serviceResponseStream = request.getInputStream(); + // If tracing is enabled, we read the entire response into a + // MemoryStream so that we + // can pass it along to the ITraceListener. Then we parse the response + // from the + // MemoryStream. + if (this.isTraceEnabledFor(TraceFlags.AutodiscoverResponse)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + memoryStream.flush(); - } else { - EwsXmlReader reader = new EwsXmlReader(serviceResponseStream); - reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); - settings.loadFromXml(reader); - } + this.traceResponse(request, memoryStream); + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsXmlReader reader = new EwsXmlReader(memoryStreamIn); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + settings.loadFromXml(reader); - serviceResponseStream.close(); + } else { + EwsXmlReader reader = new EwsXmlReader(serviceResponseStream); + reader.read(new XmlNodeType(XmlNodeType.START_DOCUMENT)); + settings.loadFromXml(reader); + } - try { - request.close(); - } catch (Exception e2) { - // do nothing + serviceResponseStream.close(); + } finally { + if (request != null) { + try { + request.close(); + } catch (Exception e2) { + // Ignore exceptions while closing the request. + } + } } return settings; From 5c94fcb59f9d1c5a8676f58a083e63133ca59bdf Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Mon, 19 Jan 2015 13:31:36 +0100 Subject: [PATCH 092/338] Remove JCIFS dependency, as HttpClient 4 includes NTLM support. --- pom.xml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pom.xml b/pom.xml index 91191ad43..1d74529e1 100644 --- a/pom.xml +++ b/pom.xml @@ -55,18 +55,6 @@ 1.2 - - jcifs - jcifs - 1.3.17 - - - javax.servlet - servlet-api - - - - junit junit From f31bd42d4b10388cdd993b92806019dfd99fa28f Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Wed, 21 Jan 2015 10:55:07 +0100 Subject: [PATCH 093/338] Add dependency on joda-time 2.7. --- .idea/libraries/Maven__joda_time_joda_time_2_7.xml | 13 +++++++++++++ ews-java-api.iml | 1 + pom.xml | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 .idea/libraries/Maven__joda_time_joda_time_2_7.xml diff --git a/.idea/libraries/Maven__joda_time_joda_time_2_7.xml b/.idea/libraries/Maven__joda_time_joda_time_2_7.xml new file mode 100644 index 000000000..1259ecab6 --- /dev/null +++ b/.idea/libraries/Maven__joda_time_joda_time_2_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/ews-java-api.iml b/ews-java-api.iml index 6ba8b2e4a..199bce1b5 100644 --- a/ews-java-api.iml +++ b/ews-java-api.iml @@ -14,6 +14,7 @@ + diff --git a/pom.xml b/pom.xml index 7966b7dac..47565c6c5 100644 --- a/pom.xml +++ b/pom.xml @@ -55,6 +55,12 @@ 1.2 + + joda-time + joda-time + 2.7 + + jcifs jcifs From cf42b78594fa7f4aa2b70bf2f9c17801f8feead3 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Wed, 21 Jan 2015 10:56:26 +0100 Subject: [PATCH 094/338] Update DateTimeParser to use joda-time, because Java 6 lacks proper timezone parsing support. Fixes OfficeDev/ews-java-api#181. --- .../webservices/data/util/DateTimeParser.java | 47 +++++++------------ 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java index 6bbbb3484..6e737abd8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -10,41 +10,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data.util; -import java.text.ParseException; -import java.text.SimpleDateFormat; +import org.joda.time.format.DateTimeFormat; +import org.joda.time.format.DateTimeFormatter; + import java.util.Date; -import java.util.TimeZone; public class DateTimeParser { - private final SimpleDateFormat[] dateTimeFormats = { - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX"), - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"), - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"), - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"), - new SimpleDateFormat("yyyy-MM-ddX"), - new SimpleDateFormat("yyyy-MM-dd") + private final DateTimeFormatter[] dateTimeFormats = { + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ssZ").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-ddZ").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd").withZoneUTC() }; - private final SimpleDateFormat[] dateFormats = { - new SimpleDateFormat("yyyy-MM-ddX"), - new SimpleDateFormat("yyyy-MM-dd") + private final DateTimeFormatter[] dateFormats = { + DateTimeFormat.forPattern("yyyy-MM-ddZ").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd").withZoneUTC() }; - public DateTimeParser() { - // Set default timezone of the formats to UTC, which will be used when the date string doesn't supply a - // timezone itself. - - for (SimpleDateFormat format : dateTimeFormats) { - format.setTimeZone(TimeZone.getTimeZone("UTC")); - } - - for (SimpleDateFormat format : dateFormats) { - format.setTimeZone(TimeZone.getTimeZone("UTC")); - } - } - /** * Converts a date time string to local date time. * @@ -85,11 +72,11 @@ private Date parseInternal(String value, boolean dateOnly) { value = value.substring(0, value.length() - 1) + "Z"; } - SimpleDateFormat[] formats = dateOnly ? dateFormats : dateTimeFormats; - for (SimpleDateFormat format : formats) { + DateTimeFormatter[] formats = dateOnly ? dateFormats : dateTimeFormats; + for (DateTimeFormatter format : formats) { try { - return format.parse(value); - } catch (ParseException e) { + return format.parseDateTime(value).toDate(); + } catch (IllegalArgumentException e) { // Ignore and try the next pattern. } } From 78249df35bf082bc98c076084d03cba422772929 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Wed, 21 Jan 2015 10:57:47 +0100 Subject: [PATCH 095/338] Add tests for null and empty string values in DateTimeParserTest. --- .../webservices/data/util/DateTimeParserTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java index cd273f278..611d34061 100644 --- a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -10,7 +10,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data.util; -import microsoft.exchange.webservices.data.util.DateTimeParser; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -22,6 +21,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import java.util.TimeZone; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; @RunWith(JUnit4.class) public class DateTimeParserTest { @@ -37,6 +37,12 @@ public void setUp() { // Tests for DateTimeParser.convertDateTimeStringToDate() + @Test + public void testDateTimeEmpty() { + assertNull(parser.convertDateTimeStringToDate(null)); + assertNull(parser.convertDateTimeStringToDate("")); + } + @Test public void testDateTimeZulu() { String dateString = "2015-01-08T10:11:12Z"; @@ -147,6 +153,12 @@ public void testDateOnly() { // Tests for DateTimeParser.convertDateStringToDate() + @Test + public void testDateOnlyEmpty() { + assertNull(parser.convertDateStringToDate(null)); + assertNull(parser.convertDateStringToDate("")); + } + @Test public void testDateOnlyZulu() { String dateString = "2015-01-08Z"; From bd0029cb5ae7452497e9f2612d5cfab685892f3c Mon Sep 17 00:00:00 2001 From: Mike Noordermeer Date: Thu, 22 Jan 2015 17:36:33 +0100 Subject: [PATCH 096/338] Use NTLM and Basic authentication, exclude Kerberos. This fixes any delays and warnings if Kerberos is not configured. Fixes OfficeDev/ews-java-api#144 Fixes OfficeDev/ews-java-api#160 --- .../exchange/webservices/data/HttpClientWebRequest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 5806bff25..8b44f08e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -16,6 +16,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.auth.AuthScope; import org.apache.http.auth.NTCredentials; import org.apache.http.client.CredentialsProvider; +import org.apache.http.client.config.AuthSchemes; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.protocol.HttpClientContext; @@ -23,6 +24,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of import org.apache.http.impl.client.*; import java.io.*; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -88,12 +90,15 @@ public void prepareConnection() { } // Build request configuration. + // Disable Kerberos in the preferred auth schemes - EWS should usually allow NTLM or Basic auth RequestConfig.Builder requestConfigBuilder = RequestConfig.custom() .setAuthenticationEnabled(true) .setConnectionRequestTimeout(getTimeout()) .setConnectTimeout(getTimeout()) .setRedirectsEnabled(isAllowAutoRedirect()) - .setSocketTimeout(getTimeout()); + .setSocketTimeout(getTimeout()) + .setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM, AuthSchemes.BASIC)) + .setProxyPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM, AuthSchemes.BASIC)); CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); From 81443a33da0b433a66b289ec3b2e8f4de2200564 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 24 Jan 2015 10:43:43 -0800 Subject: [PATCH 097/338] Revert "Add configurations to make library OSGi compatible" This reverts commit c0d3fdf5f3950b41186e08842abf49bd375b79af. Conflicts: pom.xml --- pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pom.xml b/pom.xml index 9ca642654..b1c948d8e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,6 @@ com.microsoft.office ews-java-api 1.3-SNAPSHOT - bundle Exchange Web Services Java API Exchange Web Services (EWS) Java API @@ -87,12 +86,6 @@ ${javaLanguage.version} - - org.apache.felix - maven-bundle-plugin - 2.4.0 - true - org.apache.maven.plugins maven-compiler-plugin @@ -86,6 +111,33 @@ ${javaLanguage.version} + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + attach-sources + + jar-no-fork + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.5 + true + + + true + + org.apache.maven.plugins maven-compiler-plugin @@ -137,7 +159,7 @@ - + UTF-8 1.6 + + + + + default-jdk18-profile + + [1.8,) + + + -Xdoclint:none + + + + org.apache.httpcomponents @@ -80,6 +94,7 @@ org.apache.maven.plugins maven-compiler-plugin + 3.2 ${project.build.sourceEncoding} ${javaLanguage.version} @@ -135,6 +150,7 @@ 2.9.1 true + ${javadoc.doclint.param} From 10784db176c91d71768ac8a24c0b868a2b47d031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Wed, 28 Jan 2015 13:54:03 +0100 Subject: [PATCH 107/338] update travis.yml - add several jdks to run the build against --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ad07365d..50138977d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ language: java +jdk: + - oraclejdk8 + - oraclejdk7 + - openjdk6 + notifications: webhooks: urls: - https://webhooks.gitter.im/e/04643d955d03eb39e24e - on_success: change # options: [always|never|change] default: always - on_failure: always # options: [always|never|change] default: always - on_start: false # default: false + on_success: change From 7bdfa15278f7b7f6bfde8df31fab5d5a5aaf68da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Aarrestad?= Date: Tue, 3 Feb 2015 17:53:16 +0100 Subject: [PATCH 108/338] Removed Abstract from ILazyMember interface. It is not needed, and for newer java-versions it seems to clutter up the compiling a bit. --- .../java/microsoft/exchange/webservices/data/ILazyMember.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index 29fe0fe43..637fa1c76 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -15,7 +15,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of * * @param the generic type */ -abstract interface ILazyMember { +interface ILazyMember { /** * Creates the instance. From 5b9720be7f5bfa2cdc9637a6ef45bf83941f1db0 Mon Sep 17 00:00:00 2001 From: superelchi Date: Thu, 5 Feb 2015 15:41:13 +0100 Subject: [PATCH 109/338] Keep whitespace in plain text email messagebodys Fixes #198 --- .../webservices/data/EwsXmlReader.java | 43 +++++++++++++++---- .../webservices/data/MessageBody.java | 3 +- 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index c18d98a83..ffb4ff61f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -147,6 +147,17 @@ private void internalReadElement(String namespacePrefix, String localName, */ public void read() throws ServiceXmlDeserializationException, XMLStreamException { + read(false); + } + + /** + * Reads the specified node type. + * + * @throws ServiceXmlDeserializationException the service xml deserialization exception + * @throws javax.xml.stream.XMLStreamException the xML stream exception + */ + private void read(boolean keepWhiteSpace) throws ServiceXmlDeserializationException, + XMLStreamException { // The caller to EwsXmlReader.Read expects // that there's another node to // read. Throw an exception if not true. @@ -158,9 +169,10 @@ public void read() throws ServiceXmlDeserializationException, XMLEvent event = xmlReader.nextEvent(); if (event.getEventType() == XMLStreamConstants.CHARACTERS) { Characters characters = (Characters) event; - if (characters.isIgnorableWhiteSpace() - || characters.isWhiteSpace()) { - continue; + if (!keepWhiteSpace) + if (characters.isIgnorableWhiteSpace() + || characters.isWhiteSpace()) { + continue; } } this.prevEvent = this.presentEvent; @@ -389,18 +401,31 @@ public T readElementValue(Class cls) throws Exception { */ public String readValue() throws XMLStreamException, ServiceXmlDeserializationException { + return readValue(false); + } + /** + * Reads the value. Should return content element or text node as string + * Present event must be START ELEMENT. After executing this function + * Present event will be set on END ELEMENT + * + * @return String + * @throws javax.xml.stream.XMLStreamException the xML stream exception + * @throws ServiceXmlDeserializationException the service xml deserialization exception + */ + public String readValue(boolean keepWhiteSpace) throws XMLStreamException, + ServiceXmlDeserializationException { String errMsg = String.format("Could not read value from %s.", XmlNodeType.getString(this.presentEvent.getEventType())); if (this.presentEvent.isStartElement()) { // Go to next event and check for Characters event - this.read(); + this.read(keepWhiteSpace); if (this.presentEvent.isCharacters()) { StringBuffer elementValue = new StringBuffer(); do { if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { Characters characters = (Characters) this.presentEvent; - if (!characters.isIgnorableWhiteSpace() - && !characters.isWhiteSpace()) { + if (keepWhiteSpace || (!characters.isIgnorableWhiteSpace() + && !characters.isWhiteSpace())) { if (characters.getData().length() != 0) { elementValue.append(characters.getData()); } @@ -427,11 +452,11 @@ public String readValue() throws XMLStreamException, StringBuffer data = new StringBuffer(this.presentEvent .asCharacters().getData()); do { - this.read(); + this.read(keepWhiteSpace); if (this.getNodeType().nodeType == XmlNodeType.CHARACTERS) { Characters characters = (Characters) this.presentEvent; - if (!characters.isIgnorableWhiteSpace() - && !characters.isWhiteSpace()) { + if (keepWhiteSpace || (!characters.isIgnorableWhiteSpace() + && !characters.isWhiteSpace())) { if (characters.getData().length() != 0) { data.append(characters.getData()); } diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index d06c1607f..ac8934645 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -100,7 +100,8 @@ protected void readAttributesFromXml(EwsServiceXmlReader reader) @Override protected void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException { - this.text = reader.readValue(); + boolean keepWhiteSpace = this.getBodyType() == BodyType.Text; + this.text = reader.readValue(keepWhiteSpace); } /** From 755f1dff91cbc0e059298c7dee2b91d642d01e8d Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Thu, 5 Feb 2015 15:51:29 +0100 Subject: [PATCH 110/338] Properly close request when HttpErrorException is encountered. --- .../webservices/data/ServiceRequestBase.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 31f5c8865..248709d9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -621,13 +621,24 @@ protected HttpWebRequest validateAndEmitRequest() throws ServiceLocalException, this.validate(); HttpWebRequest request = this.buildEwsHttpWebRequest(); + try { - return this.getEwsHttpWebResponse(request); - } catch (HttpErrorException e) { - processWebException(e, request); + try { + return this.getEwsHttpWebResponse(request); + } catch (HttpErrorException e) { + processWebException(e, request); - // Wrap exception if the above code block didn't throw - throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + // Wrap exception if the above code block didn't throw + throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); + } + } catch (Exception e) { + try { + request.close(); + } catch (Exception e2) { + // Ignore exceptions while closing the request. + } + + throw e; } } From d1adf6b101582426cd557bae849941cea2c1be9d Mon Sep 17 00:00:00 2001 From: superelchi Date: Thu, 5 Feb 2015 17:25:12 +0100 Subject: [PATCH 111/338] Unneccessary variable removed --- .../java/microsoft/exchange/webservices/data/MessageBody.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index ac8934645..4ac9b8891 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -100,8 +100,7 @@ protected void readAttributesFromXml(EwsServiceXmlReader reader) @Override protected void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException { - boolean keepWhiteSpace = this.getBodyType() == BodyType.Text; - this.text = reader.readValue(keepWhiteSpace); + this.text = reader.readValue(this.getBodyType() == BodyType.Text); } /** From e00c76d9291323d4b0afab02d75e913ded18b067 Mon Sep 17 00:00:00 2001 From: superelchi Date: Thu, 5 Feb 2015 18:10:55 +0100 Subject: [PATCH 112/338] Missing JavaDocs added --- .../java/microsoft/exchange/webservices/data/EwsXmlReader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index ffb4ff61f..177698a79 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -152,6 +152,8 @@ public void read() throws ServiceXmlDeserializationException, /** * Reads the specified node type. + * + * @param keepWhiteSpace Do not remove whitespace characters if true * * @throws ServiceXmlDeserializationException the service xml deserialization exception * @throws javax.xml.stream.XMLStreamException the xML stream exception @@ -408,6 +410,7 @@ public String readValue() throws XMLStreamException, * Present event must be START ELEMENT. After executing this function * Present event will be set on END ELEMENT * + * @param keepWhiteSpace Do not remove whitespace characters if true * @return String * @throws javax.xml.stream.XMLStreamException the xML stream exception * @throws ServiceXmlDeserializationException the service xml deserialization exception From 25b4ac8d1e037439a0a04cb5892ee616184911e5 Mon Sep 17 00:00:00 2001 From: superelchi Date: Fri, 6 Feb 2015 11:56:47 +0100 Subject: [PATCH 113/338] Logging added to MessageBody.java --- .../exchange/webservices/data/MessageBody.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index 4ac9b8891..2e5a3f711 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -10,6 +10,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import javax.xml.stream.XMLStreamException; /** @@ -17,6 +20,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ public final class MessageBody extends ComplexProperty { + private static final Log log = LogFactory.getLog(MessageBody.class); + /** * The body type. */ @@ -100,7 +105,15 @@ protected void readAttributesFromXml(EwsServiceXmlReader reader) @Override protected void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException { + if (log.isDebugEnabled()) { + log.debug("Reading text value from XML. BodyType = " + this.getBodyType() + + ", keepWhiteSpace = " + + ((this.getBodyType() == BodyType.Text) ? "true." : "false.")); + } this.text = reader.readValue(this.getBodyType() == BodyType.Text); + if (log.isDebugEnabled()) { + log.debug("Text value read:\n---\n" + this.text + "\n---"); + } } /** From 294a101fb41dd4646cbe6810a2a4288b7e437210 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 7 Feb 2015 10:36:37 -0800 Subject: [PATCH 114/338] Fix group id to match sonatype Needed to change id to match what is provisioned in sonatype repository and fix an access denied issue. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fc1aad3e5..fcc0d443b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.microsoft.ewsjavaapi + com.microsoft.ews-java-api ews-java-api 2.0-SNAPSHOT From fb0684c28345b6f5614dbb4d3696a6be4a62dc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Aarrestad?= Date: Sat, 7 Feb 2015 20:46:49 +0100 Subject: [PATCH 115/338] Removed broken code and switched to getSimpleName() where it was used. Added two tests triggering new changed code --- .../webservices/data/EwsUtilities.java | 92 ++----------------- .../data/ExtendedPropertyCollection.java | 4 +- .../webservices/data/PropertyBag.java | 4 +- .../data/ExtendedPropertyCollectionTest.java | 39 ++++++++ .../webservices/data/PropertyBagTest.java | 32 +++++++ 5 files changed, 85 insertions(+), 86 deletions(-) create mode 100644 src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java create mode 100644 src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index f178cc950..98188db10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -10,23 +10,28 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamWriter; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.lang.reflect.Field; -import java.lang.reflect.Type; import java.net.URISyntaxException; import java.text.DateFormat; import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.*; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamWriter; + /** * EWS utilities. */ @@ -315,24 +320,6 @@ public Map, Map> createInstance() { } }); - /** - * Dictionary to map from special CLR type names to their "short" names. - */ - private static LazyMember> - typeNameToShortNameMap = - new LazyMember>( - new ILazyMember>() { - public Map createInstance() { - Map result = - new HashMap(); - result.put("Boolean", "bool"); - result.put("Int16", "short"); - result.put("Int32", "int"); - result.put("String", "string"); - return result; - } - }); - /** * Regular expression for legal domain names. */ @@ -1119,65 +1106,6 @@ public static String timeSpanToXSTime(TimeSpan timeSpan) { .getMinutes()), myFormatter.format(timeSpan.getSeconds())); } - /** - * Gets the printable name of a CLR type. - * - * @param type The class. - * @return Printable name. - */ - public static String getPrintableTypeName(Class type) { - // Note: building array of generic parameters is - //done recursively. Each parameter could be any type. - Type[] genericArgs = type.getGenericInterfaces(); - if (genericArgs.length > 0) { - // Convert generic type to printable form (e.g. List) - String genericPrefix = type.getName().substring(0, - type.getName().indexOf('`')); - StringBuilder nameBuilder = new StringBuilder(genericPrefix); - - //List genericList = new ArrayList(); - StringBuffer genericArgsStr = new StringBuffer(); - for (int i = 0; i < genericArgs.length; i++) { - - if (!"".equals(genericArgsStr.toString())) { - genericArgsStr.append(","); - } - genericArgsStr.append(getPrintableTypeName( - genericArgs[i].getClass())); - } - nameBuilder.append("<"); - nameBuilder.append(genericArgsStr.toString()); - nameBuilder.append(">"); - return nameBuilder.toString(); - } else if (type.isArray()) { - // Convert array type to printable form. - String arrayPrefix = type.getName().substring(0, - type.getName().indexOf('[')); - StringBuilder nameBuilder = - new StringBuilder(EwsUtilities. - getSimplifiedTypeName(arrayPrefix)); - - for (int rank = 0; rank < getDim(type); rank++) { - nameBuilder.append("[]"); - } - return nameBuilder.toString(); - } else { - return EwsUtilities.getSimplifiedTypeName(type.getName()); - } - } - - /** - * Gets the printable name of a CLR type. - * - * @param typeName The type name. - * @return Printable name. - */ - private static String getSimplifiedTypeName(String typeName) { - // If type has a shortname (e.g. int for Int32) map to the short name. - return typeNameToShortNameMap.getMember().containsKey(typeName) ? - typeNameToShortNameMap.getMember().get(typeName) : typeName; - } - /** * Gets the domain name from an email address. * diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 61a4ec3cc..8b477c006 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -178,8 +178,8 @@ protected boolean tryGetValue(Class cls, if (cls.isAssignableFrom(propertyDefinition.getType())) { String errorMessage = String.format( Strings.PropertyDefinitionTypeMismatch, - EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), - EwsUtilities.getPrintableTypeName(cls)); + propertyDefinition.getType().getSimpleName(), + cls.getSimpleName()); throw new ArgumentException(errorMessage, "propertyDefinition"); } propertyValueOut.setParam((T) extendedProperty.getValue()); diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index d3737188b..0bd43e779 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -222,8 +222,8 @@ protected boolean tryGetPropertyType(Class cls, if (!cls.isAssignableFrom(propertyDefinition.getType())) { String errorMessage = String.format( Strings.PropertyDefinitionTypeMismatch, - EwsUtilities.getPrintableTypeName(propertyDefinition.getType()), - EwsUtilities.getPrintableTypeName(cls)); + propertyDefinition.getType().getSimpleName(), + cls.getSimpleName()); throw new ArgumentException(errorMessage, "propertyDefinition"); } diff --git a/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java new file mode 100644 index 000000000..d15ca2445 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java @@ -0,0 +1,39 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ + +package microsoft.exchange.webservices.data; + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class ExtendedPropertyCollectionTest { + + /** + * Calling tryGetValue with invalid input + * expecting exception. + * + * @throws Exception + */ + @Test(expected=ArgumentException.class) + public void tryGetValue() throws Exception{ + ExtendedPropertyCollection epc = new ExtendedPropertyCollection(); + epc.setExtendedProperty(new ExtendedPropertyDefinition(), new ArrayList()); + Class cls = String.class; + ExtendedPropertyDefinition propertyDefinition = new ExtendedPropertyDefinition(); + + OutParam propertyValueOut = new OutParam(); + Assert.assertTrue(epc.tryGetValue(cls, propertyDefinition, propertyValueOut)); + } +} diff --git a/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java new file mode 100644 index 000000000..4973edca9 --- /dev/null +++ b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java @@ -0,0 +1,32 @@ +/************************************************************************** + Exchange Web Services Java API + Copyright (c) Microsoft Corporation + All rights reserved. + MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************/ +package microsoft.exchange.webservices.data; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class PropertyBagTest { + + /** + * Calling tryGetPropertyType with invalid data. + * Expecting exception + * + * @throws Exception + */ + @Test(expected=ArgumentException.class) + public void tryGetPropertyType() throws Exception{ + ExchangeService es = new ExchangeService(); + ServiceObject owner = new Item(es); + PropertyBag pb = new PropertyBag(owner); + pb.tryGetPropertyType(String.class, new RecurrencePropertyDefinition("test", "none", null, ExchangeVersion.Exchange2010_SP2), new OutParam()); + } +} From c00ca03555eaa7b478c3c3b8b4b7efa55aa58ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Sun, 8 Feb 2015 11:44:34 +0100 Subject: [PATCH 116/338] update license.txt --- license.txt | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/license.txt b/license.txt index d60bc954c..364ee36bf 100644 --- a/license.txt +++ b/license.txt @@ -1,22 +1,20 @@ -Exchange Web Services Java API +The MIT License +Copyright (c) 2012 Microsoft Corporation -Copyright (c) Microsoft Corporation -All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -MIT License +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -Permission is hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the ""Software""), to deal in the Software -without restriction, including without limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons -to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or -substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. From 8a20081eb7b58d96057efc0b56b2a60d53164f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Sun, 8 Feb 2015 12:48:42 +0100 Subject: [PATCH 117/338] remove malformed license-headers --- .../webservices/data/AbsoluteDateTransition.java | 10 ---------- .../data/AbsoluteDayOfMonthTransition.java | 10 ---------- .../webservices/data/AbsoluteMonthTransition.java | 10 ---------- .../webservices/data/AbstractAsyncCallback.java | 10 ---------- .../webservices/data/AbstractFolderIdWrapper.java | 10 ---------- .../webservices/data/AbstractItemIdWrapper.java | 10 ---------- .../data/AcceptMeetingInvitationMessage.java | 10 ---------- .../webservices/data/AccountIsLockedException.java | 10 ---------- .../webservices/data/AddDelegateRequest.java | 10 ---------- .../webservices/data/AffectedTaskOccurrence.java | 10 ---------- .../exchange/webservices/data/AggregateType.java | 10 ---------- .../exchange/webservices/data/AlternateId.java | 10 ---------- .../exchange/webservices/data/AlternateIdBase.java | 10 ---------- .../exchange/webservices/data/AlternateMailbox.java | 10 ---------- .../webservices/data/AlternateMailboxCollection.java | 10 ---------- .../webservices/data/AlternatePublicFolderId.java | 10 ---------- .../data/AlternatePublicFolderItemId.java | 10 ---------- .../data/ApplyConversationActionRequest.java | 10 ---------- .../exchange/webservices/data/Appointment.java | 10 ---------- .../webservices/data/AppointmentOccurrenceId.java | 10 ---------- .../exchange/webservices/data/AppointmentSchema.java | 10 ---------- .../exchange/webservices/data/AppointmentType.java | 10 ---------- .../exchange/webservices/data/ArgumentException.java | 10 ---------- .../webservices/data/ArgumentNullException.java | 10 ---------- .../data/ArgumentOutOfRangeException.java | 10 ---------- .../exchange/webservices/data/AsyncCallback.java | 10 ---------- .../data/AsyncCallbackImplementation.java | 10 ---------- .../exchange/webservices/data/AsyncExecutor.java | 10 ---------- .../webservices/data/AsyncRequestResult.java | 10 ---------- .../exchange/webservices/data/Attachable.java | 10 ---------- .../exchange/webservices/data/Attachment.java | 10 ---------- .../webservices/data/AttachmentCollection.java | 10 ---------- .../data/AttachmentsPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/Attendee.java | 10 ---------- .../webservices/data/AttendeeAvailability.java | 10 ---------- .../webservices/data/AttendeeCollection.java | 10 ---------- .../exchange/webservices/data/AttendeeInfo.java | 10 ---------- .../webservices/data/AutodiscoverDnsClient.java | 10 ---------- .../webservices/data/AutodiscoverEndpoints.java | 10 ---------- .../exchange/webservices/data/AutodiscoverError.java | 10 ---------- .../webservices/data/AutodiscoverErrorCode.java | 10 ---------- .../webservices/data/AutodiscoverLocalException.java | 10 ---------- .../data/AutodiscoverRemoteException.java | 10 ---------- .../webservices/data/AutodiscoverRequest.java | 10 ---------- .../webservices/data/AutodiscoverResponse.java | 10 ---------- .../data/AutodiscoverResponseCollection.java | 10 ---------- .../data/AutodiscoverResponseException.java | 10 ---------- .../webservices/data/AutodiscoverResponseType.java | 10 ---------- .../webservices/data/AutodiscoverService.java | 10 ---------- .../exchange/webservices/data/AvailabilityData.java | 10 ---------- .../webservices/data/AvailabilityOptions.java | 10 ---------- .../microsoft/exchange/webservices/data/Base64.java | 10 ---------- .../webservices/data/Base64EncoderStream.java | 10 ---------- .../exchange/webservices/data/BasePropertySet.java | 10 ---------- .../exchange/webservices/data/BodyType.java | 10 ---------- .../webservices/data/BoolPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/ByteArrayArray.java | 10 ---------- .../webservices/data/ByteArrayOSRequestEntity.java | 10 ---------- .../data/ByteArrayPropertyDefinition.java | 10 ---------- .../webservices/data/CalendarActionResults.java | 10 ---------- .../exchange/webservices/data/CalendarEvent.java | 10 ---------- .../webservices/data/CalendarEventDetails.java | 10 ---------- .../exchange/webservices/data/CalendarFolder.java | 10 ---------- .../webservices/data/CalendarResponseMessage.java | 10 ---------- .../data/CalendarResponseMessageBase.java | 10 ---------- .../data/CalendarResponseObjectSchema.java | 10 ---------- .../exchange/webservices/data/CalendarView.java | 10 ---------- .../exchange/webservices/data/CallableMethod.java | 10 ---------- .../exchange/webservices/data/Callback.java | 10 ---------- .../webservices/data/CancelMeetingMessage.java | 10 ---------- .../webservices/data/CancelMeetingMessageSchema.java | 10 ---------- .../microsoft/exchange/webservices/data/Change.java | 10 ---------- .../exchange/webservices/data/ChangeCollection.java | 10 ---------- .../exchange/webservices/data/ChangeType.java | 10 ---------- .../exchange/webservices/data/ComparisonMode.java | 10 ---------- .../exchange/webservices/data/CompleteName.java | 10 ---------- .../webservices/data/ComplexFunctionDelegate.java | 10 ---------- .../exchange/webservices/data/ComplexProperty.java | 10 ---------- .../webservices/data/ComplexPropertyCollection.java | 10 ---------- .../webservices/data/ComplexPropertyDefinition.java | 10 ---------- .../data/ComplexPropertyDefinitionBase.java | 10 ---------- .../webservices/data/ConfigurationSettingsBase.java | 10 ---------- .../exchange/webservices/data/Conflict.java | 10 ---------- .../webservices/data/ConflictResolutionMode.java | 10 ---------- .../exchange/webservices/data/ConflictType.java | 10 ---------- .../exchange/webservices/data/ConnectingIdType.java | 10 ---------- .../webservices/data/ConnectionFailureCause.java | 10 ---------- .../microsoft/exchange/webservices/data/Contact.java | 10 ---------- .../exchange/webservices/data/ContactGroup.java | 10 ---------- .../webservices/data/ContactGroupSchema.java | 10 ---------- .../exchange/webservices/data/ContactSchema.java | 10 ---------- .../exchange/webservices/data/ContactSource.java | 10 ---------- .../exchange/webservices/data/ContactsFolder.java | 10 ---------- .../data/ContainedPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/ContainmentMode.java | 10 ---------- .../exchange/webservices/data/Conversation.java | 10 ---------- .../webservices/data/ConversationAction.java | 10 ---------- .../webservices/data/ConversationActionType.java | 10 ---------- .../webservices/data/ConversationFlagStatus.java | 10 ---------- .../exchange/webservices/data/ConversationId.java | 10 ---------- .../data/ConversationIndexedItemView.java | 10 ---------- .../webservices/data/ConversationSchema.java | 10 ---------- .../exchange/webservices/data/ConvertIdRequest.java | 10 ---------- .../exchange/webservices/data/ConvertIdResponse.java | 10 ---------- .../exchange/webservices/data/CopyFolderRequest.java | 10 ---------- .../exchange/webservices/data/CopyItemRequest.java | 10 ---------- .../webservices/data/CreateAttachmentException.java | 10 ---------- .../webservices/data/CreateAttachmentRequest.java | 10 ---------- .../webservices/data/CreateAttachmentResponse.java | 10 ---------- .../webservices/data/CreateFolderRequest.java | 10 ---------- .../webservices/data/CreateFolderResponse.java | 10 ---------- .../exchange/webservices/data/CreateItemRequest.java | 10 ---------- .../webservices/data/CreateItemRequestBase.java | 10 ---------- .../webservices/data/CreateItemResponse.java | 10 ---------- .../webservices/data/CreateItemResponseBase.java | 10 ---------- .../exchange/webservices/data/CreateRequest.java | 10 ---------- .../data/CreateResponseObjectRequest.java | 10 ---------- .../data/CreateResponseObjectResponse.java | 10 ---------- .../webservices/data/CreateRuleOperation.java | 10 ---------- .../data/CreateUserConfigurationRequest.java | 10 ---------- .../webservices/data/CredentialConstants.java | 10 ---------- .../exchange/webservices/data/DateTimePrecision.java | 10 ---------- .../webservices/data/DateTimePropertyDefinition.java | 10 ---------- .../exchange/webservices/data/DayOfTheWeek.java | 10 ---------- .../webservices/data/DayOfTheWeekCollection.java | 10 ---------- .../exchange/webservices/data/DayOfTheWeekIndex.java | 10 ---------- .../data/DeclineMeetingInvitationMessage.java | 10 ---------- .../webservices/data/DefaultExtendedPropertySet.java | 10 ---------- .../data/DelegateFolderPermissionLevel.java | 10 ---------- .../webservices/data/DelegateInformation.java | 10 ---------- .../data/DelegateManagementRequestBase.java | 10 ---------- .../webservices/data/DelegateManagementResponse.java | 10 ---------- .../webservices/data/DelegatePermissions.java | 10 ---------- .../exchange/webservices/data/DelegateUser.java | 10 ---------- .../webservices/data/DelegateUserResponse.java | 10 ---------- .../webservices/data/DeleteAttachmentException.java | 10 ---------- .../webservices/data/DeleteAttachmentRequest.java | 10 ---------- .../webservices/data/DeleteAttachmentResponse.java | 10 ---------- .../webservices/data/DeleteFolderRequest.java | 10 ---------- .../exchange/webservices/data/DeleteItemRequest.java | 10 ---------- .../exchange/webservices/data/DeleteMode.java | 10 ---------- .../exchange/webservices/data/DeleteRequest.java | 10 ---------- .../webservices/data/DeleteRuleOperation.java | 10 ---------- .../data/DeleteUserConfigurationRequest.java | 10 ---------- .../webservices/data/DeletedOccurrenceInfo.java | 10 ---------- .../data/DeletedOccurrenceInfoCollection.java | 10 ---------- .../webservices/data/DictionaryEntryProperty.java | 10 ---------- .../webservices/data/DictionaryProperty.java | 10 ---------- .../webservices/data/DisconnectPhoneCallRequest.java | 10 ---------- .../exchange/webservices/data/DnsClient.java | 10 ---------- .../exchange/webservices/data/DnsException.java | 10 ---------- .../exchange/webservices/data/DnsRecord.java | 10 ---------- .../exchange/webservices/data/DnsRecordType.java | 10 ---------- .../exchange/webservices/data/DnsSrvRecord.java | 10 ---------- .../webservices/data/DomainSettingError.java | 10 ---------- .../exchange/webservices/data/DomainSettingName.java | 10 ---------- .../webservices/data/DoublePropertyDefinition.java | 10 ---------- .../exchange/webservices/data/EWSConstants.java | 10 ---------- .../exchange/webservices/data/EWSHttpException.java | 10 ---------- .../exchange/webservices/data/EditorBrowsable.java | 10 ---------- .../webservices/data/EditorBrowsableState.java | 10 ---------- .../exchange/webservices/data/EffectiveRights.java | 10 ---------- .../data/EffectiveRightsPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/EmailAddress.java | 10 ---------- .../webservices/data/EmailAddressCollection.java | 10 ---------- .../webservices/data/EmailAddressDictionary.java | 10 ---------- .../exchange/webservices/data/EmailAddressEntry.java | 10 ---------- .../exchange/webservices/data/EmailAddressKey.java | 10 ---------- .../exchange/webservices/data/EmailMessage.java | 10 ---------- .../webservices/data/EmailMessageSchema.java | 10 ---------- .../webservices/data/EmptyFolderRequest.java | 10 ---------- .../webservices/data/EndDateRecurrenceRange.java | 10 ---------- .../exchange/webservices/data/EventType.java | 10 ---------- .../microsoft/exchange/webservices/data/EwsEnum.java | 10 ---------- .../data/EwsSSLProtocolSocketFactory.java | 10 ---------- .../data/EwsServiceMultiResponseXmlReader.java | 10 ---------- .../webservices/data/EwsServiceXmlReader.java | 10 ---------- .../webservices/data/EwsServiceXmlWriter.java | 10 ---------- .../exchange/webservices/data/EwsTraceListener.java | 10 ---------- .../exchange/webservices/data/EwsUtilities.java | 10 ---------- .../webservices/data/EwsX509TrustManager.java | 10 ---------- .../exchange/webservices/data/EwsXmlReader.java | 10 ---------- .../webservices/data/ExchangeCredentials.java | 10 ---------- .../webservices/data/ExchangeServerInfo.java | 10 ---------- .../exchange/webservices/data/ExchangeService.java | 10 ---------- .../webservices/data/ExchangeServiceBase.java | 10 ---------- .../exchange/webservices/data/ExchangeVersion.java | 10 ---------- .../data/ExecuteDiagnosticMethodRequest.java | 10 ---------- .../data/ExecuteDiagnosticMethodResponse.java | 10 ---------- .../webservices/data/ExpandGroupRequest.java | 10 ---------- .../webservices/data/ExpandGroupResponse.java | 10 ---------- .../webservices/data/ExpandGroupResults.java | 10 ---------- .../exchange/webservices/data/ExtendedProperty.java | 10 ---------- .../webservices/data/ExtendedPropertyCollection.java | 10 ---------- .../webservices/data/ExtendedPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/FileAsMapping.java | 10 ---------- .../exchange/webservices/data/FileAttachment.java | 10 ---------- .../webservices/data/FindConversationRequest.java | 10 ---------- .../webservices/data/FindConversationResponse.java | 10 ---------- .../exchange/webservices/data/FindFolderRequest.java | 10 ---------- .../webservices/data/FindFolderResponse.java | 10 ---------- .../webservices/data/FindFoldersResults.java | 10 ---------- .../exchange/webservices/data/FindItemRequest.java | 10 ---------- .../exchange/webservices/data/FindItemResponse.java | 10 ---------- .../exchange/webservices/data/FindItemsResults.java | 10 ---------- .../exchange/webservices/data/FindRequest.java | 10 ---------- .../exchange/webservices/data/FlaggedForAction.java | 10 ---------- .../microsoft/exchange/webservices/data/Flags.java | 10 ---------- .../microsoft/exchange/webservices/data/Folder.java | 10 ---------- .../exchange/webservices/data/FolderChange.java | 10 ---------- .../exchange/webservices/data/FolderEvent.java | 10 ---------- .../exchange/webservices/data/FolderId.java | 10 ---------- .../webservices/data/FolderIdCollection.java | 10 ---------- .../exchange/webservices/data/FolderIdWrapper.java | 10 ---------- .../webservices/data/FolderIdWrapperList.java | 10 ---------- .../exchange/webservices/data/FolderPermission.java | 10 ---------- .../webservices/data/FolderPermissionCollection.java | 10 ---------- .../webservices/data/FolderPermissionLevel.java | 10 ---------- .../webservices/data/FolderPermissionReadAccess.java | 10 ---------- .../exchange/webservices/data/FolderSchema.java | 10 ---------- .../exchange/webservices/data/FolderTraversal.java | 10 ---------- .../exchange/webservices/data/FolderView.java | 10 ---------- .../exchange/webservices/data/FolderWrapper.java | 10 ---------- .../exchange/webservices/data/FormatException.java | 10 ---------- .../exchange/webservices/data/FreeBusyViewType.java | 10 ---------- .../webservices/data/GenericItemAttachment.java | 10 ---------- .../webservices/data/GenericPropertyDefinition.java | 10 ---------- .../webservices/data/GetAttachmentRequest.java | 10 ---------- .../webservices/data/GetAttachmentResponse.java | 10 ---------- .../webservices/data/GetDelegateRequest.java | 10 ---------- .../webservices/data/GetDelegateResponse.java | 10 ---------- .../webservices/data/GetDomainSettingsRequest.java | 10 ---------- .../webservices/data/GetDomainSettingsResponse.java | 10 ---------- .../data/GetDomainSettingsResponseCollection.java | 10 ---------- .../exchange/webservices/data/GetEventsRequest.java | 10 ---------- .../exchange/webservices/data/GetEventsResponse.java | 10 ---------- .../exchange/webservices/data/GetEventsResults.java | 10 ---------- .../exchange/webservices/data/GetFolderRequest.java | 10 ---------- .../webservices/data/GetFolderRequestBase.java | 10 ---------- .../webservices/data/GetFolderRequestForLoad.java | 10 ---------- .../exchange/webservices/data/GetFolderResponse.java | 10 ---------- .../webservices/data/GetInboxRulesRequest.java | 10 ---------- .../webservices/data/GetInboxRulesResponse.java | 10 ---------- .../exchange/webservices/data/GetItemRequest.java | 10 ---------- .../webservices/data/GetItemRequestBase.java | 10 ---------- .../webservices/data/GetItemRequestForLoad.java | 10 ---------- .../exchange/webservices/data/GetItemResponse.java | 10 ---------- .../data/GetPasswordExpirationDateRequest.java | 10 ---------- .../data/GetPasswordExpirationDateResponse.java | 10 ---------- .../webservices/data/GetPhoneCallRequest.java | 10 ---------- .../webservices/data/GetPhoneCallResponse.java | 10 ---------- .../exchange/webservices/data/GetRequest.java | 10 ---------- .../webservices/data/GetRoomListsRequest.java | 10 ---------- .../webservices/data/GetRoomListsResponse.java | 10 ---------- .../exchange/webservices/data/GetRoomsRequest.java | 10 ---------- .../exchange/webservices/data/GetRoomsResponse.java | 10 ---------- .../webservices/data/GetServerTimeZonesRequest.java | 10 ---------- .../webservices/data/GetServerTimeZonesResponse.java | 10 ---------- .../webservices/data/GetStreamingEventsRequest.java | 10 ---------- .../webservices/data/GetStreamingEventsResponse.java | 10 ---------- .../webservices/data/GetStreamingEventsResults.java | 10 ---------- .../webservices/data/GetUserAvailabilityRequest.java | 10 ---------- .../webservices/data/GetUserAvailabilityResults.java | 10 ---------- .../data/GetUserConfigurationRequest.java | 10 ---------- .../data/GetUserConfigurationResponse.java | 10 ---------- .../webservices/data/GetUserOofSettingsRequest.java | 10 ---------- .../webservices/data/GetUserOofSettingsResponse.java | 10 ---------- .../webservices/data/GetUserSettingsRequest.java | 10 ---------- .../webservices/data/GetUserSettingsResponse.java | 10 ---------- .../data/GetUserSettingsResponseCollection.java | 10 ---------- .../exchange/webservices/data/GroupMember.java | 10 ---------- .../webservices/data/GroupMemberCollection.java | 10 ---------- .../data/GroupMemberPropertyDefinition.java | 10 ---------- .../webservices/data/GroupedFindItemsResults.java | 10 ---------- .../exchange/webservices/data/Grouping.java | 10 ---------- .../webservices/data/HangingTraceStream.java | 10 ---------- .../webservices/data/HttpClientWebRequest.java | 10 ---------- .../webservices/data/HttpErrorException.java | 10 ---------- .../exchange/webservices/data/HttpWebRequest.java | 10 ---------- .../microsoft/exchange/webservices/data/IAction.java | 10 ---------- .../exchange/webservices/data/IAsyncResult.java | 10 ---------- .../data/IAutodiscoverRedirectionUrl.java | 10 ---------- .../webservices/data/ICalendarActionProvider.java | 10 ---------- .../webservices/data/IComplexPropertyChanged.java | 10 ---------- .../data/IComplexPropertyChangedDelegate.java | 10 ---------- .../data/ICreateComplexPropertyDelegate.java | 10 ---------- .../ICreateServiceObjectWithAttachmentParam.java | 10 ---------- .../data/ICreateServiceObjectWithServiceParam.java | 10 ---------- .../webservices/data/ICustomXmlSerialization.java | 10 ---------- .../webservices/data/ICustomXmlUpdateSerializer.java | 10 ---------- .../data/IDateTimePropertyDefinition.java | 12 +----------- .../exchange/webservices/data/IDisposable.java | 10 ---------- .../data/IFileAttachmentContentHandler.java | 10 ---------- .../microsoft/exchange/webservices/data/IFunc.java | 10 ---------- .../exchange/webservices/data/IFuncDelegate.java | 10 ---------- .../exchange/webservices/data/IFunction.java | 10 ---------- .../exchange/webservices/data/IFunctionDelegate.java | 10 ---------- .../webservices/data/IGetObjectInstanceDelegate.java | 10 ---------- .../data/IGetPropertyDefinitionCallback.java | 10 ---------- .../exchange/webservices/data/ILazyMember.java | 10 ---------- .../exchange/webservices/data/IOwnedProperty.java | 10 ---------- .../exchange/webservices/data/IPredicate.java | 10 ---------- .../data/IPropertyBagChangedDelegate.java | 10 ---------- .../webservices/data/ISearchStringProvider.java | 10 ---------- .../exchange/webservices/data/ISelfValidate.java | 10 ---------- .../data/IServiceObjectChangedDelegate.java | 10 ---------- .../exchange/webservices/data/ITraceListener.java | 10 ---------- .../exchange/webservices/data/IdFormat.java | 10 ---------- .../webservices/data/ImAddressDictionary.java | 10 ---------- .../exchange/webservices/data/ImAddressEntry.java | 10 ---------- .../exchange/webservices/data/ImAddressKey.java | 10 ---------- .../webservices/data/ImpersonatedUserId.java | 10 ---------- .../exchange/webservices/data/Importance.java | 10 ---------- .../webservices/data/IndexedPropertyDefinition.java | 10 ---------- .../webservices/data/IntPropertyDefinition.java | 10 ---------- .../webservices/data/InternetMessageHeader.java | 10 ---------- .../data/InternetMessageHeaderCollection.java | 10 ---------- .../webservices/data/InvalidOperationException.java | 10 ---------- .../microsoft/exchange/webservices/data/Item.java | 10 ---------- .../exchange/webservices/data/ItemAttachment.java | 10 ---------- .../exchange/webservices/data/ItemChange.java | 10 ---------- .../exchange/webservices/data/ItemCollection.java | 10 ---------- .../exchange/webservices/data/ItemEvent.java | 10 ---------- .../exchange/webservices/data/ItemGroup.java | 10 ---------- .../microsoft/exchange/webservices/data/ItemId.java | 10 ---------- .../exchange/webservices/data/ItemIdCollection.java | 10 ---------- .../exchange/webservices/data/ItemIdWrapper.java | 10 ---------- .../exchange/webservices/data/ItemIdWrapperList.java | 10 ---------- .../exchange/webservices/data/ItemSchema.java | 10 ---------- .../exchange/webservices/data/ItemTraversal.java | 10 ---------- .../exchange/webservices/data/ItemView.java | 10 ---------- .../exchange/webservices/data/ItemWrapper.java | 10 ---------- .../exchange/webservices/data/LazyMember.java | 10 ---------- .../webservices/data/LegacyAvailabilityTimeZone.java | 10 ---------- .../data/LegacyAvailabilityTimeZoneTime.java | 10 ---------- .../webservices/data/LegacyFreeBusyStatus.java | 10 ---------- .../exchange/webservices/data/LogicalOperator.java | 10 ---------- .../microsoft/exchange/webservices/data/Mailbox.java | 10 ---------- .../exchange/webservices/data/MailboxType.java | 10 ---------- .../webservices/data/ManagedFolderInformation.java | 10 ---------- .../exchange/webservices/data/MapiPropertyType.java | 10 ---------- .../exchange/webservices/data/MapiTypeConverter.java | 10 ---------- .../webservices/data/MapiTypeConverterMap.java | 10 ---------- .../webservices/data/MapiTypeConverterMapEntry.java | 10 ---------- .../webservices/data/MeetingAttendeeType.java | 10 ---------- .../webservices/data/MeetingCancellation.java | 10 ---------- .../exchange/webservices/data/MeetingMessage.java | 10 ---------- .../webservices/data/MeetingMessageSchema.java | 10 ---------- .../exchange/webservices/data/MeetingRequest.java | 10 ---------- .../webservices/data/MeetingRequestSchema.java | 10 ---------- .../webservices/data/MeetingRequestType.java | 10 ---------- .../data/MeetingRequestsDeliveryScope.java | 10 ---------- .../exchange/webservices/data/MeetingResponse.java | 10 ---------- .../webservices/data/MeetingResponseType.java | 10 ---------- .../exchange/webservices/data/MeetingTimeZone.java | 10 ---------- .../data/MeetingTimeZonePropertyDefinition.java | 10 ---------- .../exchange/webservices/data/MemberStatus.java | 10 ---------- .../exchange/webservices/data/MessageBody.java | 10 ---------- .../webservices/data/MessageDisposition.java | 10 ---------- .../exchange/webservices/data/MimeContent.java | 10 ---------- .../exchange/webservices/data/MobilePhone.java | 10 ---------- .../microsoft/exchange/webservices/data/Month.java | 10 ---------- .../webservices/data/MoveCopyFolderRequest.java | 10 ---------- .../webservices/data/MoveCopyFolderResponse.java | 10 ---------- .../webservices/data/MoveCopyItemRequest.java | 10 ---------- .../webservices/data/MoveCopyItemResponse.java | 10 ---------- .../exchange/webservices/data/MoveCopyRequest.java | 10 ---------- .../exchange/webservices/data/MoveFolderRequest.java | 10 ---------- .../exchange/webservices/data/MoveItemRequest.java | 10 ---------- .../data/MultiResponseServiceRequest.java | 10 ---------- .../exchange/webservices/data/NameResolution.java | 10 ---------- .../webservices/data/NameResolutionCollection.java | 10 ---------- .../webservices/data/NoEndRecurrenceRange.java | 10 ---------- .../webservices/data/NotSupportedException.java | 10 ---------- .../exchange/webservices/data/NotificationEvent.java | 10 ---------- .../webservices/data/NotificationEventArgs.java | 10 ---------- .../webservices/data/NumberedRecurrenceRange.java | 10 ---------- .../exchange/webservices/data/OccurrenceInfo.java | 10 ---------- .../webservices/data/OccurrenceInfoCollection.java | 10 ---------- .../exchange/webservices/data/OffsetBasePoint.java | 10 ---------- .../webservices/data/OofExternalAudience.java | 10 ---------- .../exchange/webservices/data/OofReply.java | 10 ---------- .../exchange/webservices/data/OofSettings.java | 10 ---------- .../exchange/webservices/data/OofState.java | 10 ---------- .../exchange/webservices/data/OrderByCollection.java | 10 ---------- .../exchange/webservices/data/OutParam.java | 10 ---------- .../exchange/webservices/data/OutlookAccount.java | 10 ---------- .../data/OutlookConfigurationSettings.java | 10 ---------- .../exchange/webservices/data/OutlookProtocol.java | 10 ---------- .../webservices/data/OutlookProtocolType.java | 10 ---------- .../exchange/webservices/data/OutlookUser.java | 10 ---------- .../exchange/webservices/data/PagedView.java | 10 ---------- .../microsoft/exchange/webservices/data/Param.java | 10 ---------- .../data/PermissionCollectionPropertyDefinition.java | 6 ------ .../exchange/webservices/data/PermissionScope.java | 10 ---------- .../exchange/webservices/data/PhoneCall.java | 10 ---------- .../exchange/webservices/data/PhoneCallId.java | 10 ---------- .../exchange/webservices/data/PhoneCallState.java | 10 ---------- .../webservices/data/PhoneNumberDictionary.java | 10 ---------- .../exchange/webservices/data/PhoneNumberEntry.java | 10 ---------- .../exchange/webservices/data/PhoneNumberKey.java | 10 ---------- .../webservices/data/PhysicalAddressDictionary.java | 10 ---------- .../webservices/data/PhysicalAddressEntry.java | 10 ---------- .../webservices/data/PhysicalAddressIndex.java | 10 ---------- .../webservices/data/PhysicalAddressKey.java | 10 ---------- .../webservices/data/PlayOnPhoneRequest.java | 10 ---------- .../webservices/data/PlayOnPhoneResponse.java | 10 ---------- .../exchange/webservices/data/PostItem.java | 10 ---------- .../exchange/webservices/data/PostItemSchema.java | 10 ---------- .../exchange/webservices/data/PostReply.java | 10 ---------- .../exchange/webservices/data/PostReplySchema.java | 10 ---------- .../exchange/webservices/data/PropertyBag.java | 10 ---------- .../webservices/data/PropertyDefinition.java | 10 ---------- .../webservices/data/PropertyDefinitionBase.java | 10 ---------- .../webservices/data/PropertyDefinitionFlags.java | 10 ---------- .../exchange/webservices/data/PropertyException.java | 10 ---------- .../exchange/webservices/data/PropertySet.java | 10 ---------- .../webservices/data/ProtocolConnection.java | 10 ---------- .../data/ProtocolConnectionCollection.java | 10 ---------- .../exchange/webservices/data/PullSubscription.java | 10 ---------- .../exchange/webservices/data/PushSubscription.java | 10 ---------- .../exchange/webservices/data/Recurrence.java | 10 ---------- .../data/RecurrencePropertyDefinition.java | 10 ---------- .../exchange/webservices/data/RecurrenceRange.java | 10 ---------- .../data/RecurringAppointmentMasterId.java | 10 ---------- .../exchange/webservices/data/RefParam.java | 10 ---------- .../data/RelativeDayOfMonthTransition.java | 10 ---------- .../webservices/data/RemoveDelegateRequest.java | 10 ---------- .../webservices/data/RemoveFromCalendar.java | 10 ---------- .../webservices/data/RequiredServerVersion.java | 10 ---------- .../webservices/data/ResolveNameSearchLocation.java | 10 ---------- .../webservices/data/ResolveNamesRequest.java | 10 ---------- .../webservices/data/ResolveNamesResponse.java | 10 ---------- .../exchange/webservices/data/ResponseActions.java | 10 ---------- .../exchange/webservices/data/ResponseMessage.java | 10 ---------- .../webservices/data/ResponseMessageSchema.java | 10 ---------- .../webservices/data/ResponseMessageType.java | 10 ---------- .../exchange/webservices/data/ResponseObject.java | 10 ---------- .../webservices/data/ResponseObjectSchema.java | 10 ---------- .../data/ResponseObjectsPropertyDefinition.java | 10 ---------- .../microsoft/exchange/webservices/data/Rule.java | 10 ---------- .../exchange/webservices/data/RuleActions.java | 10 ---------- .../exchange/webservices/data/RuleCollection.java | 10 ---------- .../exchange/webservices/data/RuleError.java | 10 ---------- .../exchange/webservices/data/RuleErrorCode.java | 10 ---------- .../webservices/data/RuleErrorCollection.java | 10 ---------- .../exchange/webservices/data/RuleOperation.java | 10 ---------- .../webservices/data/RuleOperationError.java | 10 ---------- .../data/RuleOperationErrorCollection.java | 10 ---------- .../webservices/data/RulePredicateDateRange.java | 10 ---------- .../webservices/data/RulePredicateSizeRange.java | 10 ---------- .../exchange/webservices/data/RulePredicates.java | 10 ---------- .../exchange/webservices/data/RuleProperty.java | 10 ---------- .../exchange/webservices/data/SafeXmlDocument.java | 10 ---------- .../exchange/webservices/data/SafeXmlFactory.java | 10 ---------- .../exchange/webservices/data/SafeXmlSchema.java | 10 ---------- .../microsoft/exchange/webservices/data/Schema.java | 10 ---------- .../exchange/webservices/data/SearchFilter.java | 10 ---------- .../exchange/webservices/data/SearchFolder.java | 10 ---------- .../webservices/data/SearchFolderParameters.java | 10 ---------- .../webservices/data/SearchFolderSchema.java | 10 ---------- .../webservices/data/SearchFolderTraversal.java | 10 ---------- .../webservices/data/SendCancellationsMode.java | 10 ---------- .../webservices/data/SendInvitationsMode.java | 10 ---------- .../data/SendInvitationsOrCancellationsMode.java | 10 ---------- .../exchange/webservices/data/SendItemRequest.java | 10 ---------- .../exchange/webservices/data/Sensitivity.java | 10 ---------- .../exchange/webservices/data/ServiceError.java | 10 ---------- .../webservices/data/ServiceErrorHandling.java | 10 ---------- .../exchange/webservices/data/ServiceId.java | 10 ---------- .../webservices/data/ServiceLocalException.java | 10 ---------- .../exchange/webservices/data/ServiceObject.java | 10 ---------- .../webservices/data/ServiceObjectDefinition.java | 10 ---------- .../exchange/webservices/data/ServiceObjectInfo.java | 10 ---------- .../data/ServiceObjectPropertyDefinition.java | 10 ---------- .../data/ServiceObjectPropertyException.java | 10 ---------- .../webservices/data/ServiceObjectSchema.java | 10 ---------- .../exchange/webservices/data/ServiceObjectType.java | 10 ---------- .../webservices/data/ServiceRemoteException.java | 10 ---------- .../webservices/data/ServiceRequestBase.java | 10 ---------- .../webservices/data/ServiceRequestException.java | 10 ---------- .../exchange/webservices/data/ServiceResponse.java | 10 ---------- .../webservices/data/ServiceResponseCollection.java | 10 ---------- .../webservices/data/ServiceResponseException.java | 10 ---------- .../exchange/webservices/data/ServiceResult.java | 10 ---------- .../webservices/data/ServiceValidationException.java | 10 ---------- .../webservices/data/ServiceVersionException.java | 10 ---------- .../data/ServiceXmlDeserializationException.java | 10 ---------- .../data/ServiceXmlSerializationException.java | 10 ---------- .../exchange/webservices/data/SetRuleOperation.java | 10 ---------- .../webservices/data/SetUserOofSettingsRequest.java | 10 ---------- .../exchange/webservices/data/SimplePropertyBag.java | 10 ---------- .../webservices/data/SimpleServiceRequestBase.java | 10 ---------- .../exchange/webservices/data/SoapFaultDetails.java | 10 ---------- .../exchange/webservices/data/SortDirection.java | 10 ---------- .../exchange/webservices/data/StandardUser.java | 10 ---------- .../data/StartTimeZonePropertyDefinition.java | 10 ---------- .../webservices/data/StreamingSubscription.java | 10 ---------- .../data/StreamingSubscriptionConnection.java | 10 ---------- .../exchange/webservices/data/StringList.java | 10 ---------- .../webservices/data/StringPropertyDefinition.java | 10 ---------- .../microsoft/exchange/webservices/data/Strings.java | 10 ---------- .../exchange/webservices/data/SubscribeRequest.java | 10 ---------- .../exchange/webservices/data/SubscribeResponse.java | 10 ---------- .../data/SubscribeToPullNotificationsRequest.java | 10 ---------- .../data/SubscribeToPushNotificationsRequest.java | 10 ---------- .../SubscribeToStreamingNotificationsRequest.java | 10 ---------- .../exchange/webservices/data/SubscriptionBase.java | 10 ---------- .../webservices/data/SubscriptionErrorEventArgs.java | 10 ---------- .../exchange/webservices/data/Suggestion.java | 10 ---------- .../exchange/webservices/data/SuggestionQuality.java | 10 ---------- .../webservices/data/SuggestionsResponse.java | 10 ---------- .../webservices/data/SuppressReadReceipt.java | 10 ---------- .../webservices/data/SyncFolderHierarchyRequest.java | 10 ---------- .../data/SyncFolderHierarchyResponse.java | 10 ---------- .../webservices/data/SyncFolderItemsRequest.java | 10 ---------- .../webservices/data/SyncFolderItemsResponse.java | 10 ---------- .../webservices/data/SyncFolderItemsScope.java | 10 ---------- .../exchange/webservices/data/SyncResponse.java | 10 ---------- .../microsoft/exchange/webservices/data/Task.java | 10 ---------- .../webservices/data/TaskDelegationState.java | 10 ---------- .../data/TaskDelegationStatePropertyDefinition.java | 10 ---------- .../exchange/webservices/data/TaskMode.java | 10 ---------- .../exchange/webservices/data/TaskSchema.java | 10 ---------- .../exchange/webservices/data/TaskStatus.java | 10 ---------- .../exchange/webservices/data/TasksFolder.java | 10 ---------- .../microsoft/exchange/webservices/data/Time.java | 10 ---------- .../exchange/webservices/data/TimeChange.java | 10 ---------- .../webservices/data/TimeChangeRecurrence.java | 10 ---------- .../exchange/webservices/data/TimeSpan.java | 10 ---------- .../webservices/data/TimeSpanPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/TimeSuggestion.java | 10 ---------- .../exchange/webservices/data/TimeWindow.java | 10 ---------- .../data/TimeZoneConversionException.java | 10 ---------- .../webservices/data/TimeZoneDefinition.java | 10 ---------- .../exchange/webservices/data/TimeZonePeriod.java | 10 ---------- .../webservices/data/TimeZonePropertyDefinition.java | 10 ---------- .../webservices/data/TimeZoneTransition.java | 10 ---------- .../webservices/data/TimeZoneTransitionGroup.java | 10 ---------- .../exchange/webservices/data/TokenCredentials.java | 10 ---------- .../exchange/webservices/data/TraceFlags.java | 10 ---------- .../webservices/data/TypedPropertyDefinition.java | 10 ---------- .../exchange/webservices/data/UnifiedMessaging.java | 10 ---------- .../exchange/webservices/data/UniqueBody.java | 10 ---------- .../webservices/data/UnsubscribeRequest.java | 10 ---------- .../webservices/data/UpdateDelegateRequest.java | 10 ---------- .../webservices/data/UpdateFolderRequest.java | 10 ---------- .../webservices/data/UpdateFolderResponse.java | 10 ---------- .../webservices/data/UpdateInboxRulesException.java | 10 ---------- .../webservices/data/UpdateInboxRulesRequest.java | 10 ---------- .../webservices/data/UpdateInboxRulesResponse.java | 10 ---------- .../exchange/webservices/data/UpdateItemRequest.java | 10 ---------- .../webservices/data/UpdateItemResponse.java | 10 ---------- .../data/UpdateUserConfigurationRequest.java | 10 ---------- .../exchange/webservices/data/UserConfiguration.java | 10 ---------- .../data/UserConfigurationDictionary.java | 10 ---------- .../data/UserConfigurationDictionaryObjectType.java | 10 ---------- .../data/UserConfigurationProperties.java | 10 ---------- .../microsoft/exchange/webservices/data/UserId.java | 10 ---------- .../exchange/webservices/data/UserSettingError.java | 10 ---------- .../exchange/webservices/data/UserSettingName.java | 10 ---------- .../exchange/webservices/data/ViewBase.java | 10 ---------- .../webservices/data/WSSecurityBasedCredentials.java | 10 ---------- .../exchange/webservices/data/WaitHandle.java | 10 ---------- .../webservices/data/WebAsyncCallStateAnchor.java | 10 ---------- .../exchange/webservices/data/WebClientUrl.java | 10 ---------- .../webservices/data/WebClientUrlCollection.java | 10 ---------- .../exchange/webservices/data/WebCredentials.java | 10 ---------- .../webservices/data/WebExceptionStatus.java | 10 ---------- .../exchange/webservices/data/WebProxy.java | 10 ---------- .../webservices/data/WebProxyCredentials.java | 10 ---------- .../webservices/data/WellKnownFolderName.java | 10 ---------- .../webservices/data/WindowsLiveCredentials.java | 10 ---------- .../exchange/webservices/data/WorkingHours.java | 10 ---------- .../exchange/webservices/data/WorkingPeriod.java | 10 ---------- .../exchange/webservices/data/XmlAttributeNames.java | 10 ---------- .../exchange/webservices/data/XmlDtdException.java | 10 ---------- .../exchange/webservices/data/XmlElementNames.java | 10 ---------- .../exchange/webservices/data/XmlException.java | 10 ---------- .../exchange/webservices/data/XmlNameTable.java | 10 ---------- .../exchange/webservices/data/XmlNamespace.java | 10 ---------- .../exchange/webservices/data/XmlNodeType.java | 10 ---------- .../webservices/data/util/DateTimeParser.java | 10 ---------- .../exchange/webservices/data/BaseTest.java | 9 --------- .../exchange/webservices/data/EmailAddressTest.java | 9 --------- .../exchange/webservices/data/EwsUtilitiesTest.java | 10 ---------- .../webservices/data/GetUserSettingsRequestTest.java | 10 ---------- .../exchange/webservices/data/TaskTest.java | 9 --------- .../exchange/webservices/data/TimeSpanTest.java | 10 ---------- .../data/UserConfigurationDictionaryTest.java | 9 --------- .../webservices/data/util/DateTimeParserTest.java | 10 ---------- 591 files changed, 1 insertion(+), 5903 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java index f7b557d7a..0dce739b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java index 1c30adaed..b59be6cbc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java index 051b86aff..cd858a0ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index a0cd713c4..9540c6e62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java index 0f0c70adb..a791a3e3c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java index 7120a41c4..826461f25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java index cb24fccb4..d35e36993 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index d4725eade..78e1bc94f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java index f1bd1d455..a583634eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java index 657ac3210..2977aee22 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java index 5866cb9b0..fa73efc6a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java index 9d7234cec..76d3735f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java index 0c791fe10..6ffa15a7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index e5ad59895..6b9fc7ea6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index b4174bb90..6a07d6465 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java index a761ab8ea..3c52eb51c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java index 6136c2fb2..c249b3db9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java index a64936281..0ec567266 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Appointment.java b/src/main/java/microsoft/exchange/webservices/data/Appointment.java index a2c7f25b4..4d3a07c89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Appointment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Appointment.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java index 0b66dd484..129880fe3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java index 19c2b037d..fb58c40da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java index ab968eeb5..637be48ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 866279fea..26084f40d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index 8a5b31ea4..91f1cb9a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index a6c38725c..6e17b817d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index 319e5b028..742b777a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index 5ef52b33e..a5b1808c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index 7a76b1e19..cb4499a46 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index 7d3048107..ae73b705f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachable.java b/src/main/java/microsoft/exchange/webservices/data/Attachable.java index 1541877ff..aaca56688 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachable.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachable.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index 54d49b9f4..ac9bf3cc5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index 6703a7e23..258f81a9e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java index e2ecb1132..dfee5794c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attendee.java b/src/main/java/microsoft/exchange/webservices/data/Attendee.java index f1299c4cb..841cf4034 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attendee.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attendee.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java index f673e405d..f4eb95390 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java index 18812712f..2a93385a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java index ae57c1b9f..aeb51afad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index 96a786c0f..86b57a7e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index e7007eefc..e02ad33a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index b05f6ae7b..b8f3b7cd2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java index 67ef9f820..514c7735f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index 8e056dda6..8db79b9eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 9eb2f060f..65b39e1a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index 1ffc52fe4..140ba1dd3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java index c0b3cd986..87cbfcbf0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index 6d56c45dd..42661a412 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index 63d50514e..dc40e2acc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java index 54d02ab96..8e091821b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index f1b2f1393..ca458c560 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java index 8a03f92a0..4ac0756be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java index af678a61b..a9be67a10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index df3a892ac..df63433cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index 8cc65d3b6..72864e3cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Vector; diff --git a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java index b5d5938ce..b1adba2ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BodyType.java b/src/main/java/microsoft/exchange/webservices/data/BodyType.java index ba919522f..463819ef7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BodyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/BodyType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java index c79d2eec5..1db7be6bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java index 9fd1258b6..32c3e1a7d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index 645adb348..43579881a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index abaa927d4..1179afbb1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java index ceb32da5e..e71d56626 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java index 70a58657b..d5ad0b6b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java index a959f4f0d..292dbf285 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java index 4bc7da873..d231db4df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java index 709f2e210..d42b50600 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java index 80b64fc8e..31abd366b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java index 728edc1ac..092882ae6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java index 06053ebff..21be04d2f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index 10d0cab45..aea3acaf3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index 952b14dce..3e74a4fc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java index b4e2ab84b..44ceef3ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index a48e9c2f2..604a44de6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Change.java b/src/main/java/microsoft/exchange/webservices/data/Change.java index 92229b580..a315f5408 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Change.java +++ b/src/main/java/microsoft/exchange/webservices/data/Change.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java index 310fda58c..0c172227d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java index c5a12480b..1a493f5f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java index b8e672311..ebc70d49f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java index 5a62fc76e..232babffb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java +++ b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java index f2bbe68a9..649e1dd2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; interface ComplexFunctionDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index 72154fb21..1d63e9c4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index 7ef6677b7..8b817f440 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index 970c1ec30..f64d45096 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index a1dde8542..32ed715a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java index 818ad9382..a2db8bc63 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/Conflict.java b/src/main/java/microsoft/exchange/webservices/data/Conflict.java index 11f3c1b29..5f57d3277 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conflict.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conflict.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java index 8523f3e52..fd8586b6b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java index e34dbaa76..f9dac9978 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java index 38fbbc2e3..4fb28e734 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java index c437cdbac..61c60a4ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index 7985fc58b..88aadc6d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java index 4cc58a362..856c3f1f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java index 0ad075fbf..be9f80267 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java index 49cacf4c4..da4058451 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java index a03be07ef..1ff2bdb6c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java index 2801e864d..3ceacf5d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index 6fa837059..74e87ea48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java index e2aa2a5b6..ac4dee4dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index e1f4271e6..f12eae0a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java index 7c332d46b..efc70da1d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java index 67df3b10b..502089d84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java index dfb810b39..3b3d0eafb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java index 01158cdc7..a985564a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java index 9431db525..17b923786 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index 18abe1b43..1192af77f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java index 2514f2cd6..ae9545e06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java index 53bacd6a9..26a4900bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java index 47f0d04f1..1f9ca07eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java index 79643e93d..2949d2411 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index 4e0626c44..db1c53541 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java index fe068cd28..fe6d469b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index 69e4e695d..7064af1a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java index 355162b47..16134db04 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java index 70ee18f4d..2a983e2d8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java index 6d0383bb6..aaa0520cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java index bf9893b7c..14ae8c0ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java index 51ca6981f..4defe46f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java index cd5310327..490fbbc4f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java index 0a714f726..062ae8010 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java index 19dcd4eff..acd14f540 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java index 04abd40cd..f830202fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java index 28a1c2f0f..6fedabf28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java index 0d316dcee..98859233a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java index 1df41ffb7..38a05f1c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; //These constants needs to be defined as per user configurations. diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java index 780f4703c..298052ea4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index 84d679306..bee4e284a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index 3483d9042..7e935ec16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java index 5c44d44a4..38edc4519 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java index eb1f2d0a5..1baf0aca9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java index 206ae2b31..b480d82d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java index 668636809..8fd96a758 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java index 865c55eec..bd5ac76ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java index 7ef438384..2141b839d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index bf1a75a4c..552bc4f8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java index 421543c14..d559c2d45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 875cb7834..67c546022 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java index 5554403dd..ac98a4a28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java index 2b7c25000..74d889081 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index d3124cbed..120108b98 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java index f6f7b3d8d..0b2b76a21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java index 5ca3ca374..288b3bfa0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java index 4c41ae785..937a64735 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java index a64521f2b..ac070f120 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java index 889a805d2..b9ffb0ae0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java index c1fda3be4..11399d107 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java index b684fb689..523dfc402 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java index 70937c2ee..28a5574c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java index 1f467dcc2..5228ffd83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java index 6744cbdf7..88edcdc85 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java index ec2c73279..7cd13b6f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java index d1a2942a0..53f571fcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index bc49079c5..c332c6330 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java index e777006e9..9ec0f2cd0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.naming.NamingEnumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index b40973f3f..c75945623 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index c9d86a40f..96354ae05 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index 8285b2735..d745a25d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index dcd067e5a..841aad25c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.NoSuchElementException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index 227a1aaaa..2e65f0dda 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java index 70bae751c..d1f30377f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java index 9ca33676d..db1577d94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index 8b2022e5e..280d89a0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index 47ce5ffb6..abaff7816 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java index a396c4b2f..a6e101de4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java index 9b2686ed2..cbea920a2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index 8063e848f..28c8b1600 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index 4f05fe91c..48afb9b95 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 3f1ca2308..9e34a9a59 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java index 0060cb097..60d7813b8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java index a79bbf732..8c9c873f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index dc475fc0d..eff303614 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java index 84da64a7b..721913331 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java index 28534c1d4..30d3e7d77 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index 7272a4bf7..95bfac416 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java index b17142776..fc6dbcabb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java index ad852f355..ed818433c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/EventType.java b/src/main/java/microsoft/exchange/webservices/data/EventType.java index 698ec6472..8c1227080 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EventType.java +++ b/src/main/java/microsoft/exchange/webservices/data/EventType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java index 735072bd2..317c6c8ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index 8d896fd6a..9608b2f3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java index 0f50bc342..aa92a4f91 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLEventReader; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index b9562f368..5ee1cd14c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java index 72c72e7b9..ec71fccbe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.w3c.dom.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java index 0f55c1323..628f9c1e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index 98188db10..39587ec02 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java index 536bdad9d..5ee2fef64 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index c18d98a83..ab168aa9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.namespace.QName; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java index d52940c61..d25898499 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java index 8551ed372..a6c3c98db 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index ed454a9f4..ab73e2fc6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 3d812dec3..c0cffa334 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.http.client.protocol.HttpClientContext; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java index fda5568c8..8beb76bca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java index b5476e334..51050df9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.w3c.dom.Node; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index 4f0a6807c..d1eeb22c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java index bfabb27e3..29e5a7392 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java index 5fd1d38d3..66fd4ac4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java index ebb16a500..8e66c2a44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index a1838041a..2620f0b6f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 8b477c006..7e67ed8f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index b6cdf1cf0..ce4013dbc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java index dfacdaa9d..93dc76169 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index 3a6205859..bb253943b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index c548191d0..20407b28b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index 76a32c884..b133d69cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java index 47f49477a..bcf891ab4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index b1943ca9e..527ff661d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java index d6a206bb9..b067f322d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java index 0360ae917..42b0e9ff4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index e77b3c335..20e66d097 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index 44b828cd7..3672da00b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java index 115ab9df3..590a31b19 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java index f121aa474..6bf59a0fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Flags.java b/src/main/java/microsoft/exchange/webservices/data/Flags.java index 7dd565b32..6933e0acf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Flags.java +++ b/src/main/java/microsoft/exchange/webservices/data/Flags.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index cca27a7cd..6f875d48c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java index f2fc1cc99..98f39ae36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java index 114451165..8d9c9d9a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderId.java b/src/main/java/microsoft/exchange/webservices/data/FolderId.java index a0a4fbf14..5f71f7d68 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java index 6fe0a1386..c601c1586 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java index 1a606a5f3..ffc5861b8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java index 0b478fe2e..e5d8fdc23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java index 881c04e9f..bc1e8891d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java index ca9b69011..46b66b2a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java index 03074a0d4..fccbe3ad4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; //TODO : Do we want to include more information about diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java index 031ba2460..ba0856f5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java index d20a91d7b..f4ab0cb5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java index d3f8b19a0..adc1fcf04 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderView.java b/src/main/java/microsoft/exchange/webservices/data/FolderView.java index efe20b125..990a10f4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderView.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderView.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java index 3603dcc2c..6a1f92799 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index 7188707e1..5f0cd52d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java index ff32757e8..1d34002b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java +++ b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java index 3467f598f..ff4e22d64 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java index 2dbd08d1a..8b3f61668 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.text.ParseException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java index eab974b2f..c50b3535d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index 20ac52c0d..1a401d9a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java index e5390675a..5c11096dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java index 2d251469b..3fe7e9161 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java index c500bd33b..a1f090151 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index e3be31617..67bcc64a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java index 47349dd8c..048cf08a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java index 8ae11267f..3b6032079 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java index 0fa596bb1..155c40ba4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java index 28680720e..f65d6d3ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java index 8f9eda848..902490219 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java index afc1d48a6..2ecf61843 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java index c59391912..0c09b35a3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index 5534b3f76..c50182381 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index 2e250e702..7a168a5e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java index b7a70441f..f62fc3785 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java index c72cbc4a4..9715cb5c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java index 4be0e2c34..96237c7b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java index 623ce5042..67db7fb09 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index f005cb635..93f6604ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index 5c5470198..a222adb21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java index a9f35a33e..b25f9fea3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 75c9f97c8..11c4ca0a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java index 2e78632c8..197cb3cfd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java index 6b659d133..1db6b0cc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 16cebf85a..2ef6327bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java index cfaf8cd55..19c92ca9e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index 5b6f350b5..ada3f96fb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java index 90165cd6a..228561f6c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java index 0b4d0fa1d..4315b2cf5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java index a370af14a..795302d3c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index 3c6ca5987..a0965e2a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index b9793e05d..bd9c6dacc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index 71cb775ac..c61317148 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index baf0bcdca..a5fb06954 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java index 6916676f9..6992ee0d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java index 12374443e..8587fbc39 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java index 930829203..12bb10560 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index be49852a5..1b65828bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java index 763fbd41b..13eba98dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index e3e6ae039..74eab8f64 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 4da323055..2a390afd0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java index 8b3f3e30b..c06fe8196 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java index 1b87898b6..3e3515ff3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java index f8d4c08b4..1e86d28bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index 0f2d7275a..f39033ae2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java index 7432b7526..e8ae561a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Grouping.java b/src/main/java/microsoft/exchange/webservices/data/Grouping.java index b1ca57b28..b8c6d65df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Grouping.java +++ b/src/main/java/microsoft/exchange/webservices/data/Grouping.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java index b625002cd..9afc10f55 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 8b44f08e9..d1f7a510a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index 7b53d45bb..a1b87c1aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index 988d5a9aa..68ad74b9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.http.HttpException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAction.java b/src/main/java/microsoft/exchange/webservices/data/IAction.java index d41eaeca3..62822fa69 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAction.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index 980102e4b..3dbdfe19d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java index 1658c7516..4675d4f94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java index d959beee8..52d5c937e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java index 883a28f23..e101513e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java index 5b2e39564..520e7406e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java index 1ae1882ac..4bece27e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java index 028408b83..b23344dc6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java index 8685fbaec..b707d19f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java index 756bc71fd..6451dc5ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamWriter; diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java index 43574695c..f0b1582b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java index 6346fefe5..92e13d53b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** @@ -15,4 +5,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of */ interface IDateTimePropertyDefinition { -} \ No newline at end of file +} diff --git a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java index 49b234ee9..ae2ca31c7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java index 8a07d9156..1d0c46fad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.OutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunc.java b/src/main/java/microsoft/exchange/webservices/data/IFunc.java index 1bf6306f1..428175938 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunc.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunc.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java index 86174201d..9f5cd95d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunction.java b/src/main/java/microsoft/exchange/webservices/data/IFunction.java index 2ea418f83..bf775d1e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunction.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index b3748865b..77d8c81a3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java index 77726dfcd..6c0a1d9dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java index 4ddb5e1b2..6dda006a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index 637fa1c76..adf27e8c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java index 978da782b..4c4771285 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java index 20c985455..0a9601378 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java index afdd62c94..0a47c429d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java index bf88bb52e..536f14ec4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java index 7bc0cdc9a..fa0a06048 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java index e3cb06927..db33d694c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java index 307a1dab1..b02671ab4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java index c5ac3b6e5..47e732ae8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java +++ b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java index 8b52f98ab..b8e7f7b07 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java index 9776d9de5..2a48ecf54 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java index 4c78e1a34..7d0152b86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java index a5ccc4c7a..ac21d5162 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Importance.java b/src/main/java/microsoft/exchange/webservices/data/Importance.java index 08ab8a2e8..a33a63d4e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Importance.java +++ b/src/main/java/microsoft/exchange/webservices/data/Importance.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java index 5a63d38f5..bdbf86b45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java index d3144355b..c7cdc7558 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java index c14999c5b..a29fcd2fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java index 885e328f4..47d678a94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index c72daf176..86a52501a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Item.java b/src/main/java/microsoft/exchange/webservices/data/Item.java index 348cba32d..dcd1474a2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Item.java +++ b/src/main/java/microsoft/exchange/webservices/data/Item.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 2361545c8..76e175550 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java index 0d262f33e..fbddb8e0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index 77a2de73e..9008dd91f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java index 79f811986..cd2bc6f37 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java index 63b21fc3a..20b45634e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemId.java b/src/main/java/microsoft/exchange/webservices/data/ItemId.java index 4f4a52397..68267a784 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java index 52ccf669f..fbc0d1ba2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java index 60f11a11b..01a4ef7b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java index b5ef71a94..177225a6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index 8e1ec9470..6a998c79f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java index 30f8b96db..bfd761399 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemView.java b/src/main/java/microsoft/exchange/webservices/data/ItemView.java index 26ea6a8d2..17ea145a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemView.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java index ae9935e5c..b74a15d35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java index 7f27c3e82..16d74e312 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java index 0f683e8d9..9b1ff30ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java index 6b7a4537e..418d0288d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 2a07e7ca7..728d31494 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java index a46fd34f8..2618ec240 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java +++ b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java index 865fee34f..4275aee41 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java index d5f0d4529..e78d0f591 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java index 6cb56829a..73ac01c2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java index 03dc64302..5eebb3827 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index ebb7ce0d9..37dd21d0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index 27ebcb20d..0621d3f89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index 4f5221126..d47746cf9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java index 246b2fe38..e68ad66b1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java index 1125bbc27..17286f6a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index 3b1f8ac45..c046dc016 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index 8f99dcc36..14032e9a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java index 733c5c4c3..c266a6d32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java index 72ee60ac9..c94db6886 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java index 98d13745a..b42fc4c33 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java index dcebd439e..ce2aa871a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java index a85b39c47..6750bb93d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java index 15762fe8e..f344d8c27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java index 4280ae700..7c2155aeb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index c6b99d8c8..66f036b11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java index c2ae2cc24..c8918be85 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index d06c1607f..aae563670 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java index b2ed6eee7..42ab60acf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java index 492137b15..237c017ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java +++ b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java index 2a3bb93fe..ae74f5d2b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index 2f35331ee..9ba28c6e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java index 8c90adb90..5b51b9cb4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index 474b798a7..79cc8471d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java index 3cb67997c..8d715a476 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index f028c5309..c79438cec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java index 5144931b7..ffaec13fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java index ba77c102f..e44fe262f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java index 8ac7c7e64..0921e3078 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index 13857c146..41cebd820 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java index 6cbd6822a..316278765 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java index 38cf89efb..0217d0bf0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java index c0dd9e42b..c01655caa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index da99457e9..00c970dab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java index 595dbae29..12bbb66ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java index e124513c5..3fe3aafb5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java index e319555f1..22c641af5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java index 873fa267f..1f5e101b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java index ac41f11d7..f3b630db6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java index 4baadfa0c..d6982cfaa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java +++ b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java index ccd889e56..1626ddffe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofReply.java b/src/main/java/microsoft/exchange/webservices/data/OofReply.java index 3b3b27e4d..00538cc58 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofReply.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java index 32a277838..61271139e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofState.java b/src/main/java/microsoft/exchange/webservices/data/OofState.java index 637de1478..3652369c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofState.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofState.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index 9380acc03..df677ca63 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutParam.java b/src/main/java/microsoft/exchange/webservices/data/OutParam.java index 781ec0bea..b94054558 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutParam.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index f3b539641..12708b75b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java index 12eb28ac5..395a564c7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index ec6f12b6d..12f7900dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java index eaa7ac2e5..7c544ae0e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index 4829b8930..d4ca2869b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/PagedView.java b/src/main/java/microsoft/exchange/webservices/data/PagedView.java index 27b7e7b92..6e5fe61bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PagedView.java +++ b/src/main/java/microsoft/exchange/webservices/data/PagedView.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Param.java b/src/main/java/microsoft/exchange/webservices/data/Param.java index cc5019faa..79e435317 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Param.java +++ b/src/main/java/microsoft/exchange/webservices/data/Param.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java index 0f47f1681..fd766fcc1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java @@ -1,9 +1,3 @@ -/************************************************************************** - * copyright file="PermissionCollectionPropertyDefinition.java" company="Microsoft" - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * Defines the PermissionCollectionPropertyDefinition class. - **************************************************************************/ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java index 5756fe774..105c2cb6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java index 908c3e4cd..ddd400f31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java index fac450a6d..36c02ff91 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java index b34d1584c..3789418b8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index d3ad09d78..95e0be9c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java index fa81a6e12..77c9692ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java index 9b246ccdc..7b4a26119 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java index ce05859fe..808823d21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index 6a942b64b..9d68122b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java index 7d7524892..0daf564df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java index d034e3b0a..1fcaddc52 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index 4934fbdd6..117b7e22c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java index b1f65afc0..cebaf5786 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItem.java b/src/main/java/microsoft/exchange/webservices/data/PostItem.java index af9b73e90..ee939c3c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItem.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItem.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java index c4ab1124b..6095dde5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReply.java b/src/main/java/microsoft/exchange/webservices/data/PostReply.java index 852beb155..01cc76610 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReply.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java index ef3e88ec5..e929f7b45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index 0bd43e779..9d9cf12d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java index e5567d82a..10f7ba6a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index 42dc1abc2..27a97dfd6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java index c022248b4..8210e37a3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index f0ff324ba..92e80b6d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 2dee837ff..2e9e0692c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index f88aea01b..a3c65ac24 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index 2d74e33c9..d4ec22369 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java index 11ce8ab48..a2f49a907 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java index ab5ff6feb..94df1bd40 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java index c09e31103..5e3d8696b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index 437a2144b..5ab102bb3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java index 79bcaed6e..97639c0f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java index fb0878e2a..48d3ad327 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RefParam.java b/src/main/java/microsoft/exchange/webservices/data/RefParam.java index 8845f7c2e..95cca70c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RefParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/RefParam.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java index dd11fe9fd..df9ab98bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java index b39548ca2..b04f43877 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index 92a82ffe1..6b16e4aff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java index 521ff6f4d..1fe2e2dd7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java index 6e9903f95..c25edc15e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index db17fe455..5ed4f3734 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java index b7ba3d1ee..6bd2549f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index f12dd80ae..ca3189d3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java index 4e009433a..8c18c8999 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java index 60b35b7a9..66b0fbbe5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java index 4d50dcb7e..36098eaab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java index d7032f878..cd8fb13bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index f2a00c693..a848873da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index bdd7d3e72..dfbebbd33 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Rule.java b/src/main/java/microsoft/exchange/webservices/data/Rule.java index 7edfbd5d1..713ec3f10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Rule.java +++ b/src/main/java/microsoft/exchange/webservices/data/Rule.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java index 3431e24f6..8fc3849d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java index 238a00bb4..2fd384472 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleError.java b/src/main/java/microsoft/exchange/webservices/data/RuleError.java index 484c269e9..246654fbb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java index 24c9be741..7499d66e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java index 0f1488e6f..ca066cb4b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java index bd0b0b93e..c970d46ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java index c0f163e5b..1ca374e34 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java index 27e2b4d1b..066d4fbda 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java index c9f6b4b79..101e8bc1c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java index 14e283211..80c788572 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 396688ee5..7c3e76313 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java index e22f60075..fb7b87e80 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public enum RuleProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java index ea2f9f58b..7edf7066d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.w3c.dom.DOMImplementation; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java index bc4283a92..4b68c429e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLInputFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java index d6510f3c6..a99ed1ea4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.bind.ValidationEventHandler; diff --git a/src/main/java/microsoft/exchange/webservices/data/Schema.java b/src/main/java/microsoft/exchange/webservices/data/Schema.java index f9fb49721..f7cf9e138 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Schema.java +++ b/src/main/java/microsoft/exchange/webservices/data/Schema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java index f6eee638f..c74610e7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java index 041554768..361445a5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java index f591387b3..6b053ba1a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java index ce7ee5f66..524769469 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java index 0fa000f61..e4e0f516d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java index 5b48993b7..9919aaf97 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java index dcf704cc8..54148b89e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java index 19f1ced5f..27896388f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java index 9a35c2056..507049924 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java index 682084357..079e312bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java +++ b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java index 5cdd84ef5..689dfa700 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java index c965dd9aa..6da7f9bb2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java index 54e1773d2..0dab3a08b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index 18df8aba8..e5d99204b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java index f5efe6c3e..0607c90b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java index 16b4abc5b..1aefcfa78 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java index 65dac5fd1..677df9173 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java index 900666379..d92f5c0ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index b0c41fb15..efbc0af38 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index 93b3a4cad..b715dba8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.lang.reflect.Field; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java index 559701c64..16b15bda4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index cca17cc43..f2c191e63 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 248709d9d..6b881a8a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index 3681bd4d5..364cd4e8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java index 424b248c6..dd4412691 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java index df78557c4..8e376bb0e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Enumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index 4d242e0e5..88b8db99d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java index 829924564..c47d4dc28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index d463c1a8f..51edf57d8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index d44a60c56..c61657652 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index 84bf8d6c4..b25bf627a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index 7cc87c6d4..b7f07a8ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java index 4c75cded0..400fe72a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index f7379bc7a..deefd073b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index bb1c42eda..9a284617e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 084075936..9e373363b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index b178ac548..d99990305 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java index 277c12baf..9a9b49c50 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java +++ b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java index d83f533ba..dd374034c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index 2282aa7fb..0c55469bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index 71b2562e7..7ce27ca62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index 37407aa75..60e1a3940 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.io.Closeable; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringList.java b/src/main/java/microsoft/exchange/webservices/data/StringList.java index 72de167c0..78f8f72c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringList.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringList.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index 755a2765c..cee83b079 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Strings.java b/src/main/java/microsoft/exchange/webservices/data/Strings.java index 4fc092252..3f5c6715c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Strings.java +++ b/src/main/java/microsoft/exchange/webservices/data/Strings.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public abstract class Strings { diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java index 8afafb677..224664141 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java index afa2b94de..f961aeb5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java index b2c4d2de1..f39523400 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java index 61329413d..58a33d563 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java index b546ae09d..5d41c038c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java index ca81fe9c8..2dcf4a0f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java index 642dd358d..c0803b290 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java index ffc30e1e1..2ce810a90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java index 6de5308d1..01b9e6b57 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java index d3a5f52b2..0bff4471e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index a687f7574..e5c1c9636 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java index 052c92293..56d4a5f0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java index 48cd6c4bd..ad6dfef62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java index 7aba9393a..6e6d887ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java index a96762441..1f17f1556 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java index 023349a7e..ce8f703bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java index f4e5b7eac..0d8c92197 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index 57ab2b417..b38753765 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java index 47369bdc9..f3db46c62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java index 497d7c524..7c4ef9137 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index c8d5b765d..bf8a16a90 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index 9323f9d33..4759306c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java index be68f702e..e45beeb9c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java index 9701e7baf..ced819b4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index 8ef41de2d..51479ba94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java index 7f68043c2..cf415432b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.text.SimpleDateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java index d289c38a5..607e88925 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index 6bae2ba31..ff5bdfbf9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java index 8a253483c..3e44796c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java index 849a14299..888fa09c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java index 5743b7d72..fad09f9bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index 3c0afa571..99fca5dae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index 051464fe4..698d53674 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java index 234cca484..d3eddd9e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index e7ecd87b8..e677ef44f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java index babfa6a90..bc3e0656b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java index 568b185d1..a1e0fb7d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java index 49e3574bf..bb541c13d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.net.URISyntaxException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java index 0d51c7d8a..37dc420cf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java index a31a5f892..582a5f4bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java index a61820917..68ce1caff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java index 4aaa6d604..ee340017e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java index 1e9bdd3db..30cb15ac4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java index 115e5fec9..6cee0b0ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java index c0290e50a..3d782aee9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java index 59ec99538..e782881cf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index 6c3c421d0..fb4e67a2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index 39d0485a5..c5c87430d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index 82af2419c..c91dbf514 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java index f6bdc3c89..61c36d0c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index b19cdcfb6..dcf321f8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java index 134907500..8fa06d419 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index 80ec2f9f9..b8c0be7b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index e2603e2ed..f65497dcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java index 18bb404d3..aab72508c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index b919ac3e2..4c79ba313 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserId.java b/src/main/java/microsoft/exchange/webservices/data/UserId.java index 479bf13e7..7b1e5b785 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserId.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index 22f88ec72..b8a472c41 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java index 550f72d77..d0e1547d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java index d8dfab975..051471119 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java index f7dbff9e4..e8908c55e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java index 2739ab833..c7731dddb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java +++ b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class WaitHandle { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java index 712d86ed7..51682876f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class WebAsyncCallStateAnchor { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index 8ab2135e4..1c9e1e7cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index 7004c2d16..125d94d8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index 96dd8b083..f409b4325 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java index ee4c02a28..17ee661a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public enum WebExceptionStatus { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index ae8848cad..44f420a0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java index 8949b686b..5d0443613 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class WebProxyCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java index e93cf1978..a87f202a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java +++ b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java index ddfd03ef5..402459355 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class WindowsLiveCredentials extends WSSecurityBasedCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java index e8f583b21..baa2695cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java index d608142fa..c02e57e08 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java index bc763a6c9..fc70ca8e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index 7f1f57068..ad049abf4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java index 13976e811..d2bcd3b5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index 20c032ce6..398502e20 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; public class XmlException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index 6178bcacc..d9666c035 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java index 28a806bcc..cfb529247 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index d1d13699c..6d978d8dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamConstants; diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java index 6e737abd8..ddcb8b5bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data.util; import org.joda.time.format.DateTimeFormat; diff --git a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java index 8262b8f08..f50379d5d 100644 --- a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java @@ -1,12 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ package microsoft.exchange.webservices.data; import org.junit.BeforeClass; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java index 994a68fed..d62320911 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java @@ -1,12 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index 24e28a332..ccad35244 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java index d7de1f227..faa551cb2 100644 --- a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java index f0fac655e..88a89fdf0 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -1,12 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ package microsoft.exchange.webservices.data; import org.hamcrest.core.IsEqual; diff --git a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java index 724a5a57d..ea890616d 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data; import org.junit.Test; diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index e51211d6a..2fce5f0c2 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -1,12 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java index 611d34061..a4ec9291d 100644 --- a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -1,13 +1,3 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - package microsoft.exchange.webservices.data.util; import org.junit.Before; From 4c16032133e43a26b820ad4ae7bd3d9be4698e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Tue, 10 Feb 2015 09:54:28 +0100 Subject: [PATCH 118/338] added valid (and formatted) license-headers --- pom.xml | 24 ++++++++++++++ .../data/AbsoluteDateTransition.java | 22 +++++++++++++ .../data/AbsoluteDayOfMonthTransition.java | 22 +++++++++++++ .../data/AbsoluteMonthTransition.java | 22 +++++++++++++ .../data/AbstractAsyncCallback.java | 22 +++++++++++++ .../data/AbstractFolderIdWrapper.java | 22 +++++++++++++ .../data/AbstractItemIdWrapper.java | 22 +++++++++++++ .../data/AcceptMeetingInvitationMessage.java | 22 +++++++++++++ .../data/AccountIsLockedException.java | 22 +++++++++++++ .../webservices/data/AddDelegateRequest.java | 22 +++++++++++++ .../data/AffectedTaskOccurrence.java | 22 +++++++++++++ .../webservices/data/AggregateType.java | 22 +++++++++++++ .../webservices/data/AlternateId.java | 22 +++++++++++++ .../webservices/data/AlternateIdBase.java | 22 +++++++++++++ .../webservices/data/AlternateMailbox.java | 22 +++++++++++++ .../data/AlternateMailboxCollection.java | 22 +++++++++++++ .../data/AlternatePublicFolderId.java | 22 +++++++++++++ .../data/AlternatePublicFolderItemId.java | 22 +++++++++++++ .../data/ApplyConversationActionRequest.java | 22 +++++++++++++ .../webservices/data/Appointment.java | 22 +++++++++++++ .../data/AppointmentOccurrenceId.java | 22 +++++++++++++ .../webservices/data/AppointmentSchema.java | 22 +++++++++++++ .../webservices/data/AppointmentType.java | 22 +++++++++++++ .../webservices/data/ArgumentException.java | 22 +++++++++++++ .../data/ArgumentNullException.java | 22 +++++++++++++ .../data/ArgumentOutOfRangeException.java | 22 +++++++++++++ .../webservices/data/AsyncCallback.java | 22 +++++++++++++ .../data/AsyncCallbackImplementation.java | 22 +++++++++++++ .../webservices/data/AsyncExecutor.java | 22 +++++++++++++ .../webservices/data/AsyncRequestResult.java | 22 +++++++++++++ .../exchange/webservices/data/Attachable.java | 22 +++++++++++++ .../exchange/webservices/data/Attachment.java | 22 +++++++++++++ .../data/AttachmentCollection.java | 22 +++++++++++++ .../data/AttachmentsPropertyDefinition.java | 22 +++++++++++++ .../exchange/webservices/data/Attendee.java | 22 +++++++++++++ .../data/AttendeeAvailability.java | 22 +++++++++++++ .../webservices/data/AttendeeCollection.java | 22 +++++++++++++ .../webservices/data/AttendeeInfo.java | 22 +++++++++++++ .../data/AutodiscoverDnsClient.java | 22 +++++++++++++ .../data/AutodiscoverEndpoints.java | 22 +++++++++++++ .../webservices/data/AutodiscoverError.java | 22 +++++++++++++ .../data/AutodiscoverErrorCode.java | 22 +++++++++++++ .../data/AutodiscoverLocalException.java | 22 +++++++++++++ .../data/AutodiscoverRemoteException.java | 22 +++++++++++++ .../webservices/data/AutodiscoverRequest.java | 22 +++++++++++++ .../data/AutodiscoverResponse.java | 22 +++++++++++++ .../data/AutodiscoverResponseCollection.java | 22 +++++++++++++ .../data/AutodiscoverResponseException.java | 22 +++++++++++++ .../data/AutodiscoverResponseType.java | 22 +++++++++++++ .../webservices/data/AutodiscoverService.java | 22 +++++++++++++ .../webservices/data/AvailabilityData.java | 22 +++++++++++++ .../webservices/data/AvailabilityOptions.java | 22 +++++++++++++ .../exchange/webservices/data/Base64.java | 22 +++++++++++++ .../webservices/data/Base64EncoderStream.java | 22 +++++++++++++ .../webservices/data/BasePropertySet.java | 22 +++++++++++++ .../exchange/webservices/data/BodyType.java | 22 +++++++++++++ .../data/BoolPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/ByteArrayArray.java | 22 +++++++++++++ .../data/ByteArrayOSRequestEntity.java | 22 +++++++++++++ .../data/ByteArrayPropertyDefinition.java | 22 +++++++++++++ .../data/CalendarActionResults.java | 22 +++++++++++++ .../webservices/data/CalendarEvent.java | 22 +++++++++++++ .../data/CalendarEventDetails.java | 22 +++++++++++++ .../webservices/data/CalendarFolder.java | 22 +++++++++++++ .../data/CalendarResponseMessage.java | 22 +++++++++++++ .../data/CalendarResponseMessageBase.java | 22 +++++++++++++ .../data/CalendarResponseObjectSchema.java | 22 +++++++++++++ .../webservices/data/CalendarView.java | 22 +++++++++++++ .../webservices/data/CallableMethod.java | 22 +++++++++++++ .../exchange/webservices/data/Callback.java | 22 +++++++++++++ .../data/CancelMeetingMessage.java | 22 +++++++++++++ .../data/CancelMeetingMessageSchema.java | 22 +++++++++++++ .../exchange/webservices/data/Change.java | 22 +++++++++++++ .../webservices/data/ChangeCollection.java | 22 +++++++++++++ .../exchange/webservices/data/ChangeType.java | 22 +++++++++++++ .../webservices/data/ComparisonMode.java | 22 +++++++++++++ .../webservices/data/CompleteName.java | 22 +++++++++++++ .../data/ComplexFunctionDelegate.java | 22 +++++++++++++ .../webservices/data/ComplexProperty.java | 22 +++++++++++++ .../data/ComplexPropertyCollection.java | 22 +++++++++++++ .../data/ComplexPropertyDefinition.java | 22 +++++++++++++ .../data/ComplexPropertyDefinitionBase.java | 22 +++++++++++++ .../data/ConfigurationSettingsBase.java | 22 +++++++++++++ .../exchange/webservices/data/Conflict.java | 22 +++++++++++++ .../data/ConflictResolutionMode.java | 22 +++++++++++++ .../webservices/data/ConflictType.java | 22 +++++++++++++ .../webservices/data/ConnectingIdType.java | 22 +++++++++++++ .../data/ConnectionFailureCause.java | 22 +++++++++++++ .../exchange/webservices/data/Contact.java | 22 +++++++++++++ .../webservices/data/ContactGroup.java | 22 +++++++++++++ .../webservices/data/ContactGroupSchema.java | 22 +++++++++++++ .../webservices/data/ContactSchema.java | 22 +++++++++++++ .../webservices/data/ContactSource.java | 22 +++++++++++++ .../webservices/data/ContactsFolder.java | 22 +++++++++++++ .../data/ContainedPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/ContainmentMode.java | 22 +++++++++++++ .../webservices/data/Conversation.java | 22 +++++++++++++ .../webservices/data/ConversationAction.java | 22 +++++++++++++ .../data/ConversationActionType.java | 22 +++++++++++++ .../data/ConversationFlagStatus.java | 22 +++++++++++++ .../webservices/data/ConversationId.java | 22 +++++++++++++ .../data/ConversationIndexedItemView.java | 22 +++++++++++++ .../webservices/data/ConversationSchema.java | 22 +++++++++++++ .../webservices/data/ConvertIdRequest.java | 22 +++++++++++++ .../webservices/data/ConvertIdResponse.java | 22 +++++++++++++ .../webservices/data/CopyFolderRequest.java | 22 +++++++++++++ .../webservices/data/CopyItemRequest.java | 22 +++++++++++++ .../data/CreateAttachmentException.java | 22 +++++++++++++ .../data/CreateAttachmentRequest.java | 22 +++++++++++++ .../data/CreateAttachmentResponse.java | 22 +++++++++++++ .../webservices/data/CreateFolderRequest.java | 22 +++++++++++++ .../data/CreateFolderResponse.java | 22 +++++++++++++ .../webservices/data/CreateItemRequest.java | 22 +++++++++++++ .../data/CreateItemRequestBase.java | 22 +++++++++++++ .../webservices/data/CreateItemResponse.java | 22 +++++++++++++ .../data/CreateItemResponseBase.java | 22 +++++++++++++ .../webservices/data/CreateRequest.java | 22 +++++++++++++ .../data/CreateResponseObjectRequest.java | 22 +++++++++++++ .../data/CreateResponseObjectResponse.java | 22 +++++++++++++ .../webservices/data/CreateRuleOperation.java | 22 +++++++++++++ .../data/CreateUserConfigurationRequest.java | 22 +++++++++++++ .../webservices/data/CredentialConstants.java | 22 +++++++++++++ .../webservices/data/DateTimePrecision.java | 22 +++++++++++++ .../data/DateTimePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/DayOfTheWeek.java | 22 +++++++++++++ .../data/DayOfTheWeekCollection.java | 22 +++++++++++++ .../webservices/data/DayOfTheWeekIndex.java | 22 +++++++++++++ .../data/DeclineMeetingInvitationMessage.java | 22 +++++++++++++ .../data/DefaultExtendedPropertySet.java | 22 +++++++++++++ .../data/DelegateFolderPermissionLevel.java | 22 +++++++++++++ .../webservices/data/DelegateInformation.java | 22 +++++++++++++ .../data/DelegateManagementRequestBase.java | 22 +++++++++++++ .../data/DelegateManagementResponse.java | 22 +++++++++++++ .../webservices/data/DelegatePermissions.java | 22 +++++++++++++ .../webservices/data/DelegateUser.java | 22 +++++++++++++ .../data/DelegateUserResponse.java | 22 +++++++++++++ .../data/DeleteAttachmentException.java | 22 +++++++++++++ .../data/DeleteAttachmentRequest.java | 22 +++++++++++++ .../data/DeleteAttachmentResponse.java | 22 +++++++++++++ .../webservices/data/DeleteFolderRequest.java | 22 +++++++++++++ .../webservices/data/DeleteItemRequest.java | 22 +++++++++++++ .../exchange/webservices/data/DeleteMode.java | 22 +++++++++++++ .../webservices/data/DeleteRequest.java | 22 +++++++++++++ .../webservices/data/DeleteRuleOperation.java | 22 +++++++++++++ .../data/DeleteUserConfigurationRequest.java | 22 +++++++++++++ .../data/DeletedOccurrenceInfo.java | 22 +++++++++++++ .../data/DeletedOccurrenceInfoCollection.java | 22 +++++++++++++ .../data/DictionaryEntryProperty.java | 22 +++++++++++++ .../webservices/data/DictionaryProperty.java | 22 +++++++++++++ .../data/DisconnectPhoneCallRequest.java | 22 +++++++++++++ .../exchange/webservices/data/DnsClient.java | 22 +++++++++++++ .../webservices/data/DnsException.java | 22 +++++++++++++ .../exchange/webservices/data/DnsRecord.java | 22 +++++++++++++ .../webservices/data/DnsRecordType.java | 22 +++++++++++++ .../webservices/data/DnsSrvRecord.java | 22 +++++++++++++ .../webservices/data/DomainSettingError.java | 22 +++++++++++++ .../webservices/data/DomainSettingName.java | 22 +++++++++++++ .../data/DoublePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/EWSConstants.java | 22 +++++++++++++ .../webservices/data/EWSHttpException.java | 22 +++++++++++++ .../webservices/data/EditorBrowsable.java | 22 +++++++++++++ .../data/EditorBrowsableState.java | 22 +++++++++++++ .../webservices/data/EffectiveRights.java | 22 +++++++++++++ .../EffectiveRightsPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/EmailAddress.java | 22 +++++++++++++ .../data/EmailAddressCollection.java | 22 +++++++++++++ .../data/EmailAddressDictionary.java | 22 +++++++++++++ .../webservices/data/EmailAddressEntry.java | 22 +++++++++++++ .../webservices/data/EmailAddressKey.java | 22 +++++++++++++ .../webservices/data/EmailMessage.java | 22 +++++++++++++ .../webservices/data/EmailMessageSchema.java | 22 +++++++++++++ .../webservices/data/EmptyFolderRequest.java | 22 +++++++++++++ .../data/EndDateRecurrenceRange.java | 22 +++++++++++++ .../exchange/webservices/data/EventType.java | 22 +++++++++++++ .../exchange/webservices/data/EwsEnum.java | 22 +++++++++++++ .../data/EwsSSLProtocolSocketFactory.java | 22 +++++++++++++ .../EwsServiceMultiResponseXmlReader.java | 22 +++++++++++++ .../webservices/data/EwsServiceXmlReader.java | 22 +++++++++++++ .../webservices/data/EwsServiceXmlWriter.java | 22 +++++++++++++ .../webservices/data/EwsTraceListener.java | 22 +++++++++++++ .../webservices/data/EwsUtilities.java | 22 +++++++++++++ .../webservices/data/EwsX509TrustManager.java | 22 +++++++++++++ .../webservices/data/EwsXmlReader.java | 22 +++++++++++++ .../webservices/data/ExchangeCredentials.java | 22 +++++++++++++ .../webservices/data/ExchangeServerInfo.java | 22 +++++++++++++ .../webservices/data/ExchangeService.java | 22 +++++++++++++ .../webservices/data/ExchangeServiceBase.java | 22 +++++++++++++ .../webservices/data/ExchangeVersion.java | 22 +++++++++++++ .../data/ExecuteDiagnosticMethodRequest.java | 22 +++++++++++++ .../data/ExecuteDiagnosticMethodResponse.java | 22 +++++++++++++ .../webservices/data/ExpandGroupRequest.java | 22 +++++++++++++ .../webservices/data/ExpandGroupResponse.java | 22 +++++++++++++ .../webservices/data/ExpandGroupResults.java | 22 +++++++++++++ .../webservices/data/ExtendedProperty.java | 22 +++++++++++++ .../data/ExtendedPropertyCollection.java | 22 +++++++++++++ .../data/ExtendedPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/FileAsMapping.java | 22 +++++++++++++ .../webservices/data/FileAttachment.java | 22 +++++++++++++ .../data/FindConversationRequest.java | 22 +++++++++++++ .../data/FindConversationResponse.java | 22 +++++++++++++ .../webservices/data/FindFolderRequest.java | 22 +++++++++++++ .../webservices/data/FindFolderResponse.java | 22 +++++++++++++ .../webservices/data/FindFoldersResults.java | 22 +++++++++++++ .../webservices/data/FindItemRequest.java | 22 +++++++++++++ .../webservices/data/FindItemResponse.java | 22 +++++++++++++ .../webservices/data/FindItemsResults.java | 22 +++++++++++++ .../webservices/data/FindRequest.java | 22 +++++++++++++ .../webservices/data/FlaggedForAction.java | 22 +++++++++++++ .../exchange/webservices/data/Flags.java | 22 +++++++++++++ .../exchange/webservices/data/Folder.java | 22 +++++++++++++ .../webservices/data/FolderChange.java | 22 +++++++++++++ .../webservices/data/FolderEvent.java | 22 +++++++++++++ .../exchange/webservices/data/FolderId.java | 22 +++++++++++++ .../webservices/data/FolderIdCollection.java | 22 +++++++++++++ .../webservices/data/FolderIdWrapper.java | 22 +++++++++++++ .../webservices/data/FolderIdWrapperList.java | 22 +++++++++++++ .../webservices/data/FolderPermission.java | 22 +++++++++++++ .../data/FolderPermissionCollection.java | 22 +++++++++++++ .../data/FolderPermissionLevel.java | 22 +++++++++++++ .../data/FolderPermissionReadAccess.java | 22 +++++++++++++ .../webservices/data/FolderSchema.java | 22 +++++++++++++ .../webservices/data/FolderTraversal.java | 22 +++++++++++++ .../exchange/webservices/data/FolderView.java | 22 +++++++++++++ .../webservices/data/FolderWrapper.java | 22 +++++++++++++ .../webservices/data/FormatException.java | 22 +++++++++++++ .../webservices/data/FreeBusyViewType.java | 22 +++++++++++++ .../data/GenericItemAttachment.java | 22 +++++++++++++ .../data/GenericPropertyDefinition.java | 22 +++++++++++++ .../data/GetAttachmentRequest.java | 22 +++++++++++++ .../data/GetAttachmentResponse.java | 22 +++++++++++++ .../webservices/data/GetDelegateRequest.java | 22 +++++++++++++ .../webservices/data/GetDelegateResponse.java | 22 +++++++++++++ .../data/GetDomainSettingsRequest.java | 22 +++++++++++++ .../data/GetDomainSettingsResponse.java | 22 +++++++++++++ .../GetDomainSettingsResponseCollection.java | 22 +++++++++++++ .../webservices/data/GetEventsRequest.java | 22 +++++++++++++ .../webservices/data/GetEventsResponse.java | 22 +++++++++++++ .../webservices/data/GetEventsResults.java | 22 +++++++++++++ .../webservices/data/GetFolderRequest.java | 22 +++++++++++++ .../data/GetFolderRequestBase.java | 22 +++++++++++++ .../data/GetFolderRequestForLoad.java | 22 +++++++++++++ .../webservices/data/GetFolderResponse.java | 22 +++++++++++++ .../data/GetInboxRulesRequest.java | 22 +++++++++++++ .../data/GetInboxRulesResponse.java | 22 +++++++++++++ .../webservices/data/GetItemRequest.java | 22 +++++++++++++ .../webservices/data/GetItemRequestBase.java | 22 +++++++++++++ .../data/GetItemRequestForLoad.java | 22 +++++++++++++ .../webservices/data/GetItemResponse.java | 22 +++++++++++++ .../GetPasswordExpirationDateRequest.java | 22 +++++++++++++ .../GetPasswordExpirationDateResponse.java | 22 +++++++++++++ .../webservices/data/GetPhoneCallRequest.java | 22 +++++++++++++ .../data/GetPhoneCallResponse.java | 22 +++++++++++++ .../exchange/webservices/data/GetRequest.java | 22 +++++++++++++ .../webservices/data/GetRoomListsRequest.java | 22 +++++++++++++ .../data/GetRoomListsResponse.java | 22 +++++++++++++ .../webservices/data/GetRoomsRequest.java | 22 +++++++++++++ .../webservices/data/GetRoomsResponse.java | 22 +++++++++++++ .../data/GetServerTimeZonesRequest.java | 22 +++++++++++++ .../data/GetServerTimeZonesResponse.java | 22 +++++++++++++ .../data/GetStreamingEventsRequest.java | 22 +++++++++++++ .../data/GetStreamingEventsResponse.java | 22 +++++++++++++ .../data/GetStreamingEventsResults.java | 22 +++++++++++++ .../data/GetUserAvailabilityRequest.java | 22 +++++++++++++ .../data/GetUserAvailabilityResults.java | 22 +++++++++++++ .../data/GetUserConfigurationRequest.java | 22 +++++++++++++ .../data/GetUserConfigurationResponse.java | 22 +++++++++++++ .../data/GetUserOofSettingsRequest.java | 22 +++++++++++++ .../data/GetUserOofSettingsResponse.java | 22 +++++++++++++ .../data/GetUserSettingsRequest.java | 22 +++++++++++++ .../data/GetUserSettingsResponse.java | 22 +++++++++++++ .../GetUserSettingsResponseCollection.java | 22 +++++++++++++ .../webservices/data/GroupMember.java | 22 +++++++++++++ .../data/GroupMemberCollection.java | 22 +++++++++++++ .../data/GroupMemberPropertyDefinition.java | 22 +++++++++++++ .../data/GroupedFindItemsResults.java | 22 +++++++++++++ .../exchange/webservices/data/Grouping.java | 22 +++++++++++++ .../data/HangingServiceRequestBase.java | 22 +++++++++++++ .../webservices/data/HangingTraceStream.java | 22 +++++++++++++ .../data/HttpClientWebRequest.java | 22 +++++++++++++ .../webservices/data/HttpErrorException.java | 22 +++++++++++++ .../webservices/data/HttpWebRequest.java | 22 +++++++++++++ .../exchange/webservices/data/IAction.java | 22 +++++++++++++ .../webservices/data/IAsyncResult.java | 22 +++++++++++++ .../data/IAutodiscoverRedirectionUrl.java | 22 +++++++++++++ .../data/ICalendarActionProvider.java | 22 +++++++++++++ .../data/IComplexPropertyChanged.java | 22 +++++++++++++ .../data/IComplexPropertyChangedDelegate.java | 22 +++++++++++++ .../data/ICreateComplexPropertyDelegate.java | 22 +++++++++++++ ...reateServiceObjectWithAttachmentParam.java | 22 +++++++++++++ .../ICreateServiceObjectWithServiceParam.java | 22 +++++++++++++ .../data/ICustomXmlSerialization.java | 22 +++++++++++++ .../data/ICustomXmlUpdateSerializer.java | 22 +++++++++++++ .../data/IDateTimePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/IDisposable.java | 22 +++++++++++++ .../data/IFileAttachmentContentHandler.java | 22 +++++++++++++ .../exchange/webservices/data/IFunc.java | 22 +++++++++++++ .../webservices/data/IFuncDelegate.java | 22 +++++++++++++ .../exchange/webservices/data/IFunction.java | 22 +++++++++++++ .../webservices/data/IFunctionDelegate.java | 22 +++++++++++++ .../data/IGetObjectInstanceDelegate.java | 22 +++++++++++++ .../data/IGetPropertyDefinitionCallback.java | 22 +++++++++++++ .../webservices/data/ILazyMember.java | 22 +++++++++++++ .../webservices/data/IOwnedProperty.java | 22 +++++++++++++ .../exchange/webservices/data/IPredicate.java | 22 +++++++++++++ .../data/IPropertyBagChangedDelegate.java | 22 +++++++++++++ .../data/ISearchStringProvider.java | 22 +++++++++++++ .../webservices/data/ISelfValidate.java | 22 +++++++++++++ .../data/IServiceObjectChangedDelegate.java | 22 +++++++++++++ .../webservices/data/ITraceListener.java | 22 +++++++++++++ .../exchange/webservices/data/IdFormat.java | 22 +++++++++++++ .../webservices/data/ImAddressDictionary.java | 22 +++++++++++++ .../webservices/data/ImAddressEntry.java | 22 +++++++++++++ .../webservices/data/ImAddressKey.java | 22 +++++++++++++ .../webservices/data/ImpersonatedUserId.java | 22 +++++++++++++ .../exchange/webservices/data/Importance.java | 22 +++++++++++++ .../data/IndexedPropertyDefinition.java | 22 +++++++++++++ .../data/IntPropertyDefinition.java | 22 +++++++++++++ .../data/InternetMessageHeader.java | 22 +++++++++++++ .../data/InternetMessageHeaderCollection.java | 22 +++++++++++++ .../data/InvalidOperationException.java | 22 +++++++++++++ .../exchange/webservices/data/Item.java | 22 +++++++++++++ .../webservices/data/ItemAttachment.java | 22 +++++++++++++ .../exchange/webservices/data/ItemChange.java | 22 +++++++++++++ .../webservices/data/ItemCollection.java | 22 +++++++++++++ .../exchange/webservices/data/ItemEvent.java | 22 +++++++++++++ .../exchange/webservices/data/ItemGroup.java | 22 +++++++++++++ .../exchange/webservices/data/ItemId.java | 22 +++++++++++++ .../webservices/data/ItemIdCollection.java | 22 +++++++++++++ .../webservices/data/ItemIdWrapper.java | 22 +++++++++++++ .../webservices/data/ItemIdWrapperList.java | 22 +++++++++++++ .../exchange/webservices/data/ItemSchema.java | 22 +++++++++++++ .../webservices/data/ItemTraversal.java | 22 +++++++++++++ .../exchange/webservices/data/ItemView.java | 22 +++++++++++++ .../webservices/data/ItemWrapper.java | 22 +++++++++++++ .../exchange/webservices/data/LazyMember.java | 22 +++++++++++++ .../data/LegacyAvailabilityTimeZone.java | 22 +++++++++++++ .../data/LegacyAvailabilityTimeZoneTime.java | 22 +++++++++++++ .../data/LegacyFreeBusyStatus.java | 22 +++++++++++++ .../webservices/data/LogicalOperator.java | 22 +++++++++++++ .../exchange/webservices/data/Mailbox.java | 22 +++++++++++++ .../webservices/data/MailboxType.java | 22 +++++++++++++ .../data/ManagedFolderInformation.java | 22 +++++++++++++ .../webservices/data/MapiPropertyType.java | 22 +++++++++++++ .../webservices/data/MapiTypeConverter.java | 22 +++++++++++++ .../data/MapiTypeConverterMap.java | 22 +++++++++++++ .../data/MapiTypeConverterMapEntry.java | 22 +++++++++++++ .../webservices/data/MeetingAttendeeType.java | 22 +++++++++++++ .../webservices/data/MeetingCancellation.java | 22 +++++++++++++ .../webservices/data/MeetingMessage.java | 22 +++++++++++++ .../data/MeetingMessageSchema.java | 22 +++++++++++++ .../webservices/data/MeetingRequest.java | 22 +++++++++++++ .../data/MeetingRequestSchema.java | 22 +++++++++++++ .../webservices/data/MeetingRequestType.java | 22 +++++++++++++ .../data/MeetingRequestsDeliveryScope.java | 22 +++++++++++++ .../webservices/data/MeetingResponse.java | 22 +++++++++++++ .../webservices/data/MeetingResponseType.java | 22 +++++++++++++ .../webservices/data/MeetingTimeZone.java | 22 +++++++++++++ .../MeetingTimeZonePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/MemberStatus.java | 22 +++++++++++++ .../webservices/data/MessageBody.java | 22 +++++++++++++ .../webservices/data/MessageDisposition.java | 22 +++++++++++++ .../webservices/data/MimeContent.java | 22 +++++++++++++ .../webservices/data/MobilePhone.java | 22 +++++++++++++ .../exchange/webservices/data/Month.java | 22 +++++++++++++ .../data/MoveCopyFolderRequest.java | 22 +++++++++++++ .../data/MoveCopyFolderResponse.java | 22 +++++++++++++ .../webservices/data/MoveCopyItemRequest.java | 22 +++++++++++++ .../data/MoveCopyItemResponse.java | 22 +++++++++++++ .../webservices/data/MoveCopyRequest.java | 22 +++++++++++++ .../webservices/data/MoveFolderRequest.java | 22 +++++++++++++ .../webservices/data/MoveItemRequest.java | 22 +++++++++++++ .../data/MultiResponseServiceRequest.java | 22 +++++++++++++ .../webservices/data/NameResolution.java | 22 +++++++++++++ .../data/NameResolutionCollection.java | 22 +++++++++++++ .../data/NoEndRecurrenceRange.java | 22 +++++++++++++ .../data/NotSupportedException.java | 22 +++++++++++++ .../webservices/data/NotificationEvent.java | 22 +++++++++++++ .../data/NotificationEventArgs.java | 22 +++++++++++++ .../data/NumberedRecurrenceRange.java | 22 +++++++++++++ .../webservices/data/OccurrenceInfo.java | 22 +++++++++++++ .../data/OccurrenceInfoCollection.java | 22 +++++++++++++ .../webservices/data/OffsetBasePoint.java | 22 +++++++++++++ .../webservices/data/OofExternalAudience.java | 22 +++++++++++++ .../exchange/webservices/data/OofReply.java | 22 +++++++++++++ .../webservices/data/OofSettings.java | 22 +++++++++++++ .../exchange/webservices/data/OofState.java | 22 +++++++++++++ .../webservices/data/OrderByCollection.java | 22 +++++++++++++ .../exchange/webservices/data/OutParam.java | 22 +++++++++++++ .../webservices/data/OutlookAccount.java | 22 +++++++++++++ .../data/OutlookConfigurationSettings.java | 22 +++++++++++++ .../webservices/data/OutlookProtocol.java | 22 +++++++++++++ .../webservices/data/OutlookProtocolType.java | 22 +++++++++++++ .../webservices/data/OutlookUser.java | 22 +++++++++++++ .../exchange/webservices/data/PagedView.java | 22 +++++++++++++ .../exchange/webservices/data/Param.java | 22 +++++++++++++ ...ermissionCollectionPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/PermissionScope.java | 22 +++++++++++++ .../exchange/webservices/data/PhoneCall.java | 22 +++++++++++++ .../webservices/data/PhoneCallId.java | 22 +++++++++++++ .../webservices/data/PhoneCallState.java | 22 +++++++++++++ .../data/PhoneNumberDictionary.java | 22 +++++++++++++ .../webservices/data/PhoneNumberEntry.java | 22 +++++++++++++ .../webservices/data/PhoneNumberKey.java | 22 +++++++++++++ .../data/PhysicalAddressDictionary.java | 22 +++++++++++++ .../data/PhysicalAddressEntry.java | 22 +++++++++++++ .../data/PhysicalAddressIndex.java | 22 +++++++++++++ .../webservices/data/PhysicalAddressKey.java | 22 +++++++++++++ .../webservices/data/PlayOnPhoneRequest.java | 22 +++++++++++++ .../webservices/data/PlayOnPhoneResponse.java | 22 +++++++++++++ .../exchange/webservices/data/PostItem.java | 22 +++++++++++++ .../webservices/data/PostItemSchema.java | 22 +++++++++++++ .../exchange/webservices/data/PostReply.java | 22 +++++++++++++ .../webservices/data/PostReplySchema.java | 22 +++++++++++++ .../webservices/data/PropertyBag.java | 22 +++++++++++++ .../webservices/data/PropertyDefinition.java | 22 +++++++++++++ .../data/PropertyDefinitionBase.java | 22 +++++++++++++ .../data/PropertyDefinitionFlags.java | 22 +++++++++++++ .../webservices/data/PropertyException.java | 22 +++++++++++++ .../webservices/data/PropertySet.java | 22 +++++++++++++ .../webservices/data/ProtocolConnection.java | 22 +++++++++++++ .../data/ProtocolConnectionCollection.java | 22 +++++++++++++ .../webservices/data/PullSubscription.java | 22 +++++++++++++ .../webservices/data/PushSubscription.java | 22 +++++++++++++ .../exchange/webservices/data/Recurrence.java | 22 +++++++++++++ .../data/RecurrencePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/RecurrenceRange.java | 22 +++++++++++++ .../data/RecurringAppointmentMasterId.java | 22 +++++++++++++ .../exchange/webservices/data/RefParam.java | 22 +++++++++++++ .../data/RelativeDayOfMonthTransition.java | 22 +++++++++++++ .../data/RemoveDelegateRequest.java | 22 +++++++++++++ .../webservices/data/RemoveFromCalendar.java | 22 +++++++++++++ .../data/RequiredServerVersion.java | 22 +++++++++++++ .../data/ResolveNameSearchLocation.java | 22 +++++++++++++ .../webservices/data/ResolveNamesRequest.java | 22 +++++++++++++ .../data/ResolveNamesResponse.java | 22 +++++++++++++ .../webservices/data/ResponseActions.java | 22 +++++++++++++ .../webservices/data/ResponseMessage.java | 22 +++++++++++++ .../data/ResponseMessageSchema.java | 22 +++++++++++++ .../webservices/data/ResponseMessageType.java | 22 +++++++++++++ .../webservices/data/ResponseObject.java | 22 +++++++++++++ .../data/ResponseObjectSchema.java | 22 +++++++++++++ .../ResponseObjectsPropertyDefinition.java | 22 +++++++++++++ .../exchange/webservices/data/Rule.java | 22 +++++++++++++ .../webservices/data/RuleActions.java | 22 +++++++++++++ .../webservices/data/RuleCollection.java | 22 +++++++++++++ .../exchange/webservices/data/RuleError.java | 22 +++++++++++++ .../webservices/data/RuleErrorCode.java | 22 +++++++++++++ .../webservices/data/RuleErrorCollection.java | 22 +++++++++++++ .../webservices/data/RuleOperation.java | 22 +++++++++++++ .../webservices/data/RuleOperationError.java | 22 +++++++++++++ .../data/RuleOperationErrorCollection.java | 22 +++++++++++++ .../data/RulePredicateDateRange.java | 22 +++++++++++++ .../data/RulePredicateSizeRange.java | 22 +++++++++++++ .../webservices/data/RulePredicates.java | 22 +++++++++++++ .../webservices/data/RuleProperty.java | 22 +++++++++++++ .../webservices/data/SafeXmlDocument.java | 22 +++++++++++++ .../webservices/data/SafeXmlFactory.java | 22 +++++++++++++ .../webservices/data/SafeXmlSchema.java | 22 +++++++++++++ .../exchange/webservices/data/Schema.java | 22 +++++++++++++ .../webservices/data/SearchFilter.java | 22 +++++++++++++ .../webservices/data/SearchFolder.java | 22 +++++++++++++ .../data/SearchFolderParameters.java | 22 +++++++++++++ .../webservices/data/SearchFolderSchema.java | 22 +++++++++++++ .../data/SearchFolderTraversal.java | 22 +++++++++++++ .../data/SendCancellationsMode.java | 22 +++++++++++++ .../webservices/data/SendInvitationsMode.java | 22 +++++++++++++ .../SendInvitationsOrCancellationsMode.java | 22 +++++++++++++ .../webservices/data/SendItemRequest.java | 22 +++++++++++++ .../webservices/data/Sensitivity.java | 22 +++++++++++++ .../webservices/data/ServiceError.java | 22 +++++++++++++ .../data/ServiceErrorHandling.java | 22 +++++++++++++ .../exchange/webservices/data/ServiceId.java | 22 +++++++++++++ .../data/ServiceLocalException.java | 22 +++++++++++++ .../webservices/data/ServiceObject.java | 22 +++++++++++++ .../data/ServiceObjectDefinition.java | 22 +++++++++++++ .../webservices/data/ServiceObjectInfo.java | 22 +++++++++++++ .../data/ServiceObjectPropertyDefinition.java | 22 +++++++++++++ .../data/ServiceObjectPropertyException.java | 22 +++++++++++++ .../webservices/data/ServiceObjectSchema.java | 22 +++++++++++++ .../webservices/data/ServiceObjectType.java | 22 +++++++++++++ .../data/ServiceRemoteException.java | 22 +++++++++++++ .../webservices/data/ServiceRequestBase.java | 22 +++++++++++++ .../data/ServiceRequestException.java | 22 +++++++++++++ .../webservices/data/ServiceResponse.java | 22 +++++++++++++ .../data/ServiceResponseCollection.java | 22 +++++++++++++ .../data/ServiceResponseException.java | 22 +++++++++++++ .../webservices/data/ServiceResult.java | 22 +++++++++++++ .../data/ServiceValidationException.java | 22 +++++++++++++ .../data/ServiceVersionException.java | 22 +++++++++++++ .../ServiceXmlDeserializationException.java | 22 +++++++++++++ .../ServiceXmlSerializationException.java | 22 +++++++++++++ .../webservices/data/SetRuleOperation.java | 22 +++++++++++++ .../data/SetUserOofSettingsRequest.java | 22 +++++++++++++ .../webservices/data/SimplePropertyBag.java | 22 +++++++++++++ .../data/SimpleServiceRequestBase.java | 22 +++++++++++++ .../webservices/data/SoapFaultDetails.java | 22 +++++++++++++ .../webservices/data/SortDirection.java | 22 +++++++++++++ .../webservices/data/StandardUser.java | 22 +++++++++++++ .../data/StartTimeZonePropertyDefinition.java | 22 +++++++++++++ .../data/StreamingSubscription.java | 22 +++++++++++++ .../data/StreamingSubscriptionConnection.java | 22 +++++++++++++ .../exchange/webservices/data/StringList.java | 22 +++++++++++++ .../data/StringPropertyDefinition.java | 22 +++++++++++++ .../exchange/webservices/data/Strings.java | 22 +++++++++++++ .../webservices/data/SubscribeRequest.java | 22 +++++++++++++ .../webservices/data/SubscribeResponse.java | 22 +++++++++++++ .../SubscribeToPullNotificationsRequest.java | 22 +++++++++++++ .../SubscribeToPushNotificationsRequest.java | 22 +++++++++++++ ...scribeToStreamingNotificationsRequest.java | 22 +++++++++++++ .../webservices/data/SubscriptionBase.java | 22 +++++++++++++ .../data/SubscriptionErrorEventArgs.java | 22 +++++++++++++ .../exchange/webservices/data/Suggestion.java | 22 +++++++++++++ .../webservices/data/SuggestionQuality.java | 22 +++++++++++++ .../webservices/data/SuggestionsResponse.java | 22 +++++++++++++ .../webservices/data/SuppressReadReceipt.java | 22 +++++++++++++ .../data/SyncFolderHierarchyRequest.java | 22 +++++++++++++ .../data/SyncFolderHierarchyResponse.java | 22 +++++++++++++ .../data/SyncFolderItemsRequest.java | 22 +++++++++++++ .../data/SyncFolderItemsResponse.java | 22 +++++++++++++ .../data/SyncFolderItemsScope.java | 22 +++++++++++++ .../webservices/data/SyncResponse.java | 22 +++++++++++++ .../exchange/webservices/data/Task.java | 22 +++++++++++++ .../webservices/data/TaskDelegationState.java | 22 +++++++++++++ ...TaskDelegationStatePropertyDefinition.java | 22 +++++++++++++ .../exchange/webservices/data/TaskMode.java | 22 +++++++++++++ .../exchange/webservices/data/TaskSchema.java | 22 +++++++++++++ .../exchange/webservices/data/TaskStatus.java | 22 +++++++++++++ .../webservices/data/TasksFolder.java | 22 +++++++++++++ .../exchange/webservices/data/Time.java | 22 +++++++++++++ .../exchange/webservices/data/TimeChange.java | 22 +++++++++++++ .../data/TimeChangeRecurrence.java | 22 +++++++++++++ .../exchange/webservices/data/TimeSpan.java | 22 +++++++++++++ .../data/TimeSpanPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/TimeSuggestion.java | 22 +++++++++++++ .../exchange/webservices/data/TimeWindow.java | 22 +++++++++++++ .../data/TimeZoneConversionException.java | 22 +++++++++++++ .../webservices/data/TimeZoneDefinition.java | 22 +++++++++++++ .../webservices/data/TimeZonePeriod.java | 22 +++++++++++++ .../data/TimeZonePropertyDefinition.java | 22 +++++++++++++ .../webservices/data/TimeZoneTransition.java | 22 +++++++++++++ .../data/TimeZoneTransitionGroup.java | 22 +++++++++++++ .../webservices/data/TokenCredentials.java | 22 +++++++++++++ .../exchange/webservices/data/TraceFlags.java | 22 +++++++++++++ .../data/TypedPropertyDefinition.java | 22 +++++++++++++ .../webservices/data/UnifiedMessaging.java | 22 +++++++++++++ .../exchange/webservices/data/UniqueBody.java | 22 +++++++++++++ .../webservices/data/UnsubscribeRequest.java | 22 +++++++++++++ .../data/UpdateDelegateRequest.java | 22 +++++++++++++ .../webservices/data/UpdateFolderRequest.java | 22 +++++++++++++ .../data/UpdateFolderResponse.java | 22 +++++++++++++ .../data/UpdateInboxRulesException.java | 22 +++++++++++++ .../data/UpdateInboxRulesRequest.java | 22 +++++++++++++ .../data/UpdateInboxRulesResponse.java | 22 +++++++++++++ .../webservices/data/UpdateItemRequest.java | 22 +++++++++++++ .../webservices/data/UpdateItemResponse.java | 22 +++++++++++++ .../data/UpdateUserConfigurationRequest.java | 22 +++++++++++++ .../webservices/data/UserConfiguration.java | 22 +++++++++++++ .../data/UserConfigurationDictionary.java | 22 +++++++++++++ ...UserConfigurationDictionaryObjectType.java | 22 +++++++++++++ .../data/UserConfigurationProperties.java | 22 +++++++++++++ .../exchange/webservices/data/UserId.java | 22 +++++++++++++ .../webservices/data/UserSettingError.java | 22 +++++++++++++ .../webservices/data/UserSettingName.java | 22 +++++++++++++ .../exchange/webservices/data/ViewBase.java | 22 +++++++++++++ .../data/WSSecurityBasedCredentials.java | 22 +++++++++++++ .../exchange/webservices/data/WaitHandle.java | 22 +++++++++++++ .../data/WebAsyncCallStateAnchor.java | 22 +++++++++++++ .../webservices/data/WebClientUrl.java | 22 +++++++++++++ .../data/WebClientUrlCollection.java | 22 +++++++++++++ .../webservices/data/WebCredentials.java | 22 +++++++++++++ .../webservices/data/WebExceptionStatus.java | 22 +++++++++++++ .../exchange/webservices/data/WebProxy.java | 22 +++++++++++++ .../webservices/data/WebProxyCredentials.java | 22 +++++++++++++ .../webservices/data/WellKnownFolderName.java | 22 +++++++++++++ .../data/WindowsLiveCredentials.java | 22 +++++++++++++ .../webservices/data/WorkingHours.java | 22 +++++++++++++ .../webservices/data/WorkingPeriod.java | 22 +++++++++++++ .../webservices/data/XmlAttributeNames.java | 22 +++++++++++++ .../webservices/data/XmlDtdException.java | 22 +++++++++++++ .../webservices/data/XmlElementNames.java | 22 +++++++++++++ .../webservices/data/XmlException.java | 22 +++++++++++++ .../webservices/data/XmlNameTable.java | 22 +++++++++++++ .../webservices/data/XmlNamespace.java | 22 +++++++++++++ .../webservices/data/XmlNodeType.java | 22 +++++++++++++ .../webservices/data/util/DateTimeParser.java | 22 +++++++++++++ src/site/site.xml | 24 ++++++++++++++ .../exchange/webservices/data/BaseTest.java | 22 +++++++++++++ .../webservices/data/EmailAddressTest.java | 22 +++++++++++++ .../webservices/data/EwsUtilitiesTest.java | 22 +++++++++++++ .../data/ExtendedPropertyCollectionTest.java | 32 +++++++++++++------ .../data/GetUserSettingsRequestTest.java | 22 +++++++++++++ .../webservices/data/PropertyBagTest.java | 31 ++++++++++++------ .../exchange/webservices/data/TaskTest.java | 22 +++++++++++++ .../webservices/data/TimeSpanTest.java | 22 +++++++++++++ .../data/UserConfigurationDictionaryTest.java | 22 +++++++++++++ .../data/util/DateTimeParserTest.java | 22 +++++++++++++ 596 files changed, 13116 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index fcc0d443b..7abe75dc4 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,28 @@ + diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java index 0dce739b2..e2c8dfba9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java index b59be6cbc..488023271 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java index cd858a0ef..bbd4dac5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index 9540c6e62..e34ca8900 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java index a791a3e3c..8f6ce5a7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java index 826461f25..cce3c7e03 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java index d35e36993..203e3fe13 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index 78e1bc94f..fb447c901 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java index a583634eb..b20b17d7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java index 2977aee22..19a41b3ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java index fa73efc6a..d0f38a620 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java index 76d3735f2..94ab6cd58 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java index 6ffa15a7c..31f7a941a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index 6b9fc7ea6..7f9735254 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index 6a07d6465..0b02e97c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java index 3c52eb51c..99265bbf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java index c249b3db9..915677978 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java index 0ec567266..d28c765b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Appointment.java b/src/main/java/microsoft/exchange/webservices/data/Appointment.java index 4d3a07c89..504de7577 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Appointment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Appointment.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java index 129880fe3..00bfff81b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java index fb58c40da..0e6cf3f2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java index 637be48ff..e1492951c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 26084f40d..56aecb590 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index 91f1cb9a8..687d0c97c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index 6e17b817d..53860b6f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index 742b777a4..53adda5c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index a5b1808c3..ea1c8944a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index cb4499a46..95b8d3f2d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index ae73b705f..21afed3c7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachable.java b/src/main/java/microsoft/exchange/webservices/data/Attachable.java index aaca56688..ccbf577a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachable.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachable.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index ac9bf3cc5..2e01fd9e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index 258f81a9e..d9419742c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java index dfee5794c..213cb36a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attendee.java b/src/main/java/microsoft/exchange/webservices/data/Attendee.java index 841cf4034..99d0326ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attendee.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attendee.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java index f4eb95390..0a80329b5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java index 2a93385a8..c796f47b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java index aeb51afad..c75ac5fd9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index 86b57a7e5..b0824171f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index e02ad33a0..796b05cc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index b8f3b7cd2..74719623a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java index 514c7735f..2104327a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index 8db79b9eb..e4c289179 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index 65b39e1a6..e5cf5f2ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index 140ba1dd3..8971c8ee6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java index 87cbfcbf0..c6f2b14b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index 42661a412..d461235bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index dc40e2acc..607ef37b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java index 8e091821b..18a396fa9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index ca458c560..00a4b0911 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java index 4ac0756be..1a91c1d8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java index a9be67a10..1b8d571fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index df63433cd..9620b1c84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index 72864e3cc..b45e83581 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Vector; diff --git a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java index b1adba2ce..a32715bf4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BodyType.java b/src/main/java/microsoft/exchange/webservices/data/BodyType.java index 463819ef7..eff9b196e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BodyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/BodyType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java index 1db7be6bb..12789a8eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java index 32c3e1a7d..310f91ce8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index 43579881a..22b3c689f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index 1179afbb1..fe516ab11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java index e71d56626..e1587aac0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java index d5ad0b6b7..a9d98fadc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java index 292dbf285..055c1a60b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java index d231db4df..c94d5848a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java index d42b50600..5b7a16e43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java index 31abd366b..4ebd86b8c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java index 092882ae6..b50be199f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java index 21be04d2f..0f26bf9c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index aea3acaf3..560f9d3fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index 3e74a4fc9..5cb278bbf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java index 44ceef3ae..aca754b91 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index 604a44de6..8f8aef52a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Change.java b/src/main/java/microsoft/exchange/webservices/data/Change.java index a315f5408..51250d872 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Change.java +++ b/src/main/java/microsoft/exchange/webservices/data/Change.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java index 0c172227d..64c0a543e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java index 1a493f5f6..13f6e6f31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java index ebc70d49f..5ffa2d4ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java index 232babffb..ffa74bafe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java +++ b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java index 649e1dd2c..f78426a82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; interface ComplexFunctionDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index 1d63e9c4a..a91091bd3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index 8b817f440..64d09eae2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index f64d45096..bc4a71bc1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index 32ed715a5..af2c55119 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java index a2db8bc63..55f7379ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/Conflict.java b/src/main/java/microsoft/exchange/webservices/data/Conflict.java index 5f57d3277..c83c148fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conflict.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conflict.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java index fd8586b6b..93c88ead6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java index f9dac9978..e20dcc68f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java index 4fb28e734..aa1339068 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java index 61c60a4ae..006c11023 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index 88aadc6d5..0b1aee6ab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java index 856c3f1f4..d735420f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java index be9f80267..07e9aa1a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java index da4058451..5b000eaea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java index 1ff2bdb6c..b5b20f1df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java index 3ceacf5d6..afc4c0cc6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index 74e87ea48..d25ae89a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java index ac4dee4dd..b86d3c2c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index f12eae0a6..622c46100 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java index efc70da1d..802080dd6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java index 502089d84..6ae8c9395 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java index 3b3d0eafb..a0fe42ba9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java index a985564a9..3c53cc769 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java index 17b923786..25837b96f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index 1192af77f..6be368a8c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java index ae9545e06..537e51bd9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java index 26a4900bc..48a7b2651 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java index 1f9ca07eb..5a3f7c3c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java index 2949d2411..54435c143 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index db1c53541..5147e019d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java index fe6d469b3..05e62ea66 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index 7064af1a7..b30296411 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java index 16134db04..354cf6b2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java index 2a983e2d8..3f7c42ed0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java index aaa0520cc..8f3544d95 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java index 14ae8c0ed..5fcdf2a1a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java index 4defe46f1..b278271ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java index 490fbbc4f..4020551de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java index 062ae8010..665809cf0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java index acd14f540..71a1c0a0a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java index f830202fa..5ff95444c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java index 6fedabf28..6ef968f62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java index 98859233a..5a2e8d076 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java index 38a05f1c5..1035818d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; //These constants needs to be defined as per user configurations. diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java index 298052ea4..6e48061f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index bee4e284a..a3b81f878 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index 7e935ec16..b7dd0073f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java index 38edc4519..d4331f69c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java index 1baf0aca9..e3d17a09c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java index b480d82d7..afbbcb18f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java index 8fd96a758..9adf5f854 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java index bd5ac76ea..91d7652d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java index 2141b839d..f4e5d08d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index 552bc4f8f..246ad018d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java index d559c2d45..6c3a735d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 67c546022..15fc1b8cf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java index ac98a4a28..7e2f3ffbe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java index 74d889081..ce61443ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index 120108b98..45cbef252 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java index 0b2b76a21..f2456a18b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java index 288b3bfa0..b049c74ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java index 937a64735..4b214082d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java index ac070f120..de8bea500 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java index b9ffb0ae0..85ba834f7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java index 11399d107..d52dd5e18 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java index 523dfc402..50b1c7e57 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java index 28a5574c8..5bd2346ba 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java index 5228ffd83..ccb45bf1f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java index 88edcdc85..ccb2940e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java index 7cd13b6f4..525db2f6f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java index 53f571fcd..df54c8904 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index c332c6330..d70816d9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java index 9ec0f2cd0..13265a53b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.naming.NamingEnumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index c75945623..6b66d0c70 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index 96354ae05..e323efff1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index d745a25d3..36c22df42 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index 841aad25c..91051c457 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.NoSuchElementException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index 2e65f0dda..86c688783 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java index d1f30377f..94464da4f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java index db1577d94..3741d9963 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index 280d89a0b..b0bcf07d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index abaff7816..50bb98da2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java index a6e101de4..cc15c6886 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java index cbea920a2..5cd9d571b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index 28c8b1600..ddf7d261a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index 48afb9b95..6975bf12f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 9e34a9a59..8f40aa5e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java index 60d7813b8..fe9f3fe60 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java index 8c9c873f0..acd687d0f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index eff303614..1100a27fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java index 721913331..321fe025c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java index 30d3e7d77..7a85793cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index 95bfac416..b834bbb13 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java index fc6dbcabb..b5169a9f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java index ed818433c..9f2bc994d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/EventType.java b/src/main/java/microsoft/exchange/webservices/data/EventType.java index 8c1227080..e5924410b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EventType.java +++ b/src/main/java/microsoft/exchange/webservices/data/EventType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java index 317c6c8ac..ea88f60ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index 9608b2f3e..eca19ff3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java index aa92a4f91..96eaa272a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLEventReader; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index 5ee1cd14c..08d5ad579 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java index ec71fccbe..b7c289fc8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.w3c.dom.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java index 628f9c1e7..35ca73b70 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index 39587ec02..362c71715 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java index 5ee2fef64..13097070e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index ab168aa9f..ade3513f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.namespace.QName; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java index d25898499..0ce395c9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java index a6c3c98db..3b4b593c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index ab73e2fc6..73173a3ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index c0cffa334..8842bc2ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.http.client.protocol.HttpClientContext; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java index 8beb76bca..05d4e0388 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java index 51050df9d..294963b7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.w3c.dom.Node; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index d1eeb22c8..dee8062fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java index 29e5a7392..f93cc62a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java index 66fd4ac4d..dc66b2c1f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java index 8e66c2a44..f6f06d85e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index 2620f0b6f..571edb844 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 7e67ed8f3..8a6508015 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index ce4013dbc..e9214a951 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java index 93dc76169..25e1c38ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index bb253943b..1e57c8140 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index 20407b28b..d1562dd3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index b133d69cc..9e0441c63 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java index bcf891ab4..302f85f7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index 527ff661d..b4a11fcca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java index b067f322d..cf84e3c94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java index 42b0e9ff4..bdcf4170a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index 20e66d097..53ca0e4af 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index 3672da00b..c3df81dc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java index 590a31b19..b26227530 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java index 6bf59a0fd..55ee8f3ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Flags.java b/src/main/java/microsoft/exchange/webservices/data/Flags.java index 6933e0acf..e83bc5a1c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Flags.java +++ b/src/main/java/microsoft/exchange/webservices/data/Flags.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index 6f875d48c..781fc9839 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java index 98f39ae36..87196c728 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java index 8d9c9d9a5..f6483b97f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderId.java b/src/main/java/microsoft/exchange/webservices/data/FolderId.java index 5f71f7d68..bc88d6c5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java index c601c1586..7fd72c015 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java index ffc5861b8..d4a82e34e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java index e5d8fdc23..1e69ba601 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java index bc1e8891d..4de0b16f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java index 46b66b2a6..fb2b22991 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java index fccbe3ad4..0f2439ac4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; //TODO : Do we want to include more information about diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java index ba0856f5a..191ff2b8a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java index f4ab0cb5a..004e055d4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java index adc1fcf04..b4ca3f369 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderView.java b/src/main/java/microsoft/exchange/webservices/data/FolderView.java index 990a10f4d..1e95fe3a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderView.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderView.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java index 6a1f92799..0b36a5dc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index 5f0cd52d2..df55f88fb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java index 1d34002b0..e30dd1504 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java +++ b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java index ff4e22d64..f3f57f62f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java index 8b3f61668..03f26eab5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.text.ParseException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java index c50b3535d..6795300dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index 1a401d9a0..b7079bf3a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java index 5c11096dc..6d2c44fb4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java index 3fe7e9161..ec449a91b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java index a1f090151..4958b2010 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index 67bcc64a0..373aa3995 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java index 048cf08a7..5069f4942 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java index 3b6032079..9db0117fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java index 155c40ba4..425b46fca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java index f65d6d3ce..4e154a6ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java index 902490219..29b457f82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java index 2ecf61843..601cbc3eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java index 0c09b35a3..dd57b7a27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index c50182381..9a14b0e53 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index 7a168a5e6..a3960b936 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java index f62fc3785..f9451bbb8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java index 9715cb5c0..7a9beb148 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java index 96237c7b7..3495f9952 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java index 67db7fb09..3aaca2902 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index 93f6604ab..c2c903cb1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index a222adb21..9a3d23efe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java index b25f9fea3..2bb96ffa9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 11c4ca0a6..5d3948d83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java index 197cb3cfd..f3719c821 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java index 1db6b0cc3..e7de39273 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 2ef6327bc..0ea357717 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java index 19c92ca9e..4e8f39dee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index ada3f96fb..cb5c44670 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java index 228561f6c..e3f09bd36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java index 4315b2cf5..7e4694c43 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java index 795302d3c..d6b263274 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index a0965e2a7..b47206eee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index bd9c6dacc..c77284ec9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index c61317148..8f2ad9091 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index a5fb06954..0556a9e70 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java index 6992ee0d0..33c1abcaf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java index 8587fbc39..eabd921de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java index 12bb10560..321c28b5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index 1b65828bc..2fc2ee61a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java index 13eba98dc..f214a33dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index 74eab8f64..d2e70e7c0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 2a390afd0..77418e2ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java index c06fe8196..74aa73205 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java index 3e3515ff3..3a9318160 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java index 1e86d28bd..0a2308fa7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index f39033ae2..275b2940f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java index e8ae561a6..0c3b4ae62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Grouping.java b/src/main/java/microsoft/exchange/webservices/data/Grouping.java index b8c6d65df..636817c12 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Grouping.java +++ b/src/main/java/microsoft/exchange/webservices/data/Grouping.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index af2a5b29e..57e1d2458 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java index 9afc10f55..e48afe4d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index d1f7a510a..9739539b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index a1b87c1aa..dd5257394 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index 68ad74b9d..365626246 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.http.HttpException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAction.java b/src/main/java/microsoft/exchange/webservices/data/IAction.java index 62822fa69..fe8133db8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAction.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index 3dbdfe19d..ba1e3631a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java index 4675d4f94..f3db15f37 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java index 52d5c937e..16b37ee49 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java index e101513e6..005b24997 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java index 520e7406e..7b632ae00 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java index 4bece27e7..4f3a150c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java index b23344dc6..67d125460 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java index b707d19f2..6b626825e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java index 6451dc5ff..f1e67c03b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamWriter; diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java index f0b1582b6..08c85b7b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java index 92e13d53b..8a4f8778a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java index ae2ca31c7..e65367588 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java index 1d0c46fad..3cc8b0099 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.OutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunc.java b/src/main/java/microsoft/exchange/webservices/data/IFunc.java index 428175938..219bffae3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunc.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunc.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java index 9f5cd95d7..38b11fe7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunction.java b/src/main/java/microsoft/exchange/webservices/data/IFunction.java index bf775d1e8..2b1f9f798 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunction.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index 77d8c81a3..29d0acb1a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java index 6c0a1d9dc..c4f5248c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java index 6dda006a0..a299ee4c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index adf27e8c0..e760a230e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java index 4c4771285..e35b8a366 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java index 0a9601378..0b5348e4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java index 0a47c429d..a88ea6ea5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java index 536f14ec4..54044f22f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java index fa0a06048..461a769de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java index db33d694c..0000bdcea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java index b02671ab4..babcb2843 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java index 47e732ae8..5851ee90c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java +++ b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java index b8e7f7b07..0a9492ea0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java index 2a48ecf54..93918bed3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java index 7d0152b86..b262b0111 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java index ac21d5162..63cda7991 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Importance.java b/src/main/java/microsoft/exchange/webservices/data/Importance.java index a33a63d4e..88b920a26 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Importance.java +++ b/src/main/java/microsoft/exchange/webservices/data/Importance.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java index bdbf86b45..2cd75d2ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java index c7cdc7558..1f4ff6885 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java index a29fcd2fc..4f11c0d8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java index 47d678a94..911df8a1b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index 86a52501a..bf3573e78 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Item.java b/src/main/java/microsoft/exchange/webservices/data/Item.java index dcd1474a2..91b353c8b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Item.java +++ b/src/main/java/microsoft/exchange/webservices/data/Item.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 76e175550..61d587b18 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java index fbddb8e0f..c887a2542 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index 9008dd91f..efff751a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java index cd2bc6f37..08391c052 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java index 20b45634e..f9bfdaaf6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemId.java b/src/main/java/microsoft/exchange/webservices/data/ItemId.java index 68267a784..ec1968a73 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java index fbc0d1ba2..91176935f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java index 01a4ef7b4..9e920a20d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java index 177225a6d..d8f8a082a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index 6a998c79f..700966773 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java index bfd761399..da38f6493 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemView.java b/src/main/java/microsoft/exchange/webservices/data/ItemView.java index 17ea145a8..ebc6c3643 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemView.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java index b74a15d35..ae6738dc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java index 16d74e312..bc97d11c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java index 9b1ff30ec..a12ebd623 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java index 418d0288d..8a04b4794 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 728d31494..83a04bbf6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java index 2618ec240..36df9a61d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java +++ b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java index 4275aee41..ef6c5c2b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java index e78d0f591..6fd7c65a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java index 73ac01c2c..67d906261 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java index 5eebb3827..f7f188dc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index 37dd21d0f..5b9bc2be8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index 0621d3f89..aff543cbd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index d47746cf9..069488e95 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java index e68ad66b1..cd5fc0b85 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java index 17286f6a5..c7c0f1da4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index c046dc016..83ee5f49a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index 14032e9a1..eda8699be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java index c266a6d32..f48460343 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java index c94db6886..670c9462e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java index b42fc4c33..ade1c4723 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java index ce2aa871a..b6aac733b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java index 6750bb93d..78ddc32d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java index f344d8c27..ac3108697 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java index 7c2155aeb..396dc82e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index 66f036b11..f3f511915 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java index c8918be85..1cfb0313e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index aae563670..ab5ae86ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java index 42ab60acf..6700b23e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java index 237c017ce..79076a3a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java +++ b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java index ae74f5d2b..d8e9b6aee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index 9ba28c6e6..9f1520b7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java index 5b51b9cb4..a7856c6c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index 79cc8471d..680467f38 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java index 8d715a476..704633587 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index c79438cec..4b1be7050 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java index ffaec13fa..b0cf8efbe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java index e44fe262f..4f9c7465b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java index 0921e3078..b3a6d0412 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index 41cebd820..b985a58c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java index 316278765..c14864b10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java index 0217d0bf0..71d017655 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java index c01655caa..e9caff1a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index 00c970dab..e55a89d2d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java index 12bbb66ae..c352a4755 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java index 3fe3aafb5..e80a86ca5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java index 22c641af5..813a56488 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java index 1f5e101b4..942ec7987 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java index f3b630db6..ffebd0d46 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java index d6982cfaa..028649743 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java +++ b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java index 1626ddffe..1113330fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofReply.java b/src/main/java/microsoft/exchange/webservices/data/OofReply.java index 00538cc58..48171887c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofReply.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java index 61271139e..d9242abc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofState.java b/src/main/java/microsoft/exchange/webservices/data/OofState.java index 3652369c8..f1564b4d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofState.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofState.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index df677ca63..af680f741 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutParam.java b/src/main/java/microsoft/exchange/webservices/data/OutParam.java index b94054558..966a3ec32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutParam.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index 12708b75b..8e4cb861a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java index 395a564c7..0c8c5fd3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index 12f7900dc..2bcfb4f9c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java index 7c544ae0e..ee4824087 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index d4ca2869b..d05f7e68d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/PagedView.java b/src/main/java/microsoft/exchange/webservices/data/PagedView.java index 6e5fe61bf..b8faacdae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PagedView.java +++ b/src/main/java/microsoft/exchange/webservices/data/PagedView.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Param.java b/src/main/java/microsoft/exchange/webservices/data/Param.java index 79e435317..18a95f385 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Param.java +++ b/src/main/java/microsoft/exchange/webservices/data/Param.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java index fd766fcc1..c2e09452c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java index 105c2cb6d..7d9f00e9d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java index ddd400f31..fc2d53e68 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java index 36c02ff91..5a5417ae5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java index 3789418b8..8274d20f5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index 95e0be9c4..bae3999f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java index 77c9692ca..22d7e09c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java index 7b4a26119..bac3915e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java index 808823d21..0d415c976 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index 9d68122b6..881379c04 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java index 0daf564df..ffa39e179 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java index 1fcaddc52..beaa5ebbf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index 117b7e22c..be4fc64c8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java index cebaf5786..dc962a8d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItem.java b/src/main/java/microsoft/exchange/webservices/data/PostItem.java index ee939c3c1..9a358bc5b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItem.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItem.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java index 6095dde5e..18087ccd3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReply.java b/src/main/java/microsoft/exchange/webservices/data/PostReply.java index 01cc76610..10c547060 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReply.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java index e929f7b45..427390e97 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index 9d9cf12d6..3a3e9388e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java index 10f7ba6a5..0c9778008 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index 27a97dfd6..b2e4e7223 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java index 8210e37a3..d3e9d8824 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index 92e80b6d4..ca6856a6e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 2e9e0692c..04738dcfd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index a3c65ac24..470f304ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index d4ec22369..92e2cd89d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java index a2f49a907..532809f2b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java index 94df1bd40..4a6bd8047 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java index 5e3d8696b..c2b8463f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index 5ab102bb3..c5f3131f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java index 97639c0f8..7b4f9bf83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java index 48d3ad327..0876558b5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RefParam.java b/src/main/java/microsoft/exchange/webservices/data/RefParam.java index 95cca70c4..a2fa2032e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RefParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/RefParam.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java index df9ab98bc..4d4be447b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java index b04f43877..648af5ce7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index 6b16e4aff..365582e07 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java index 1fe2e2dd7..b797a645a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java index c25edc15e..07af892d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index 5ed4f3734..317af7b82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java index 6bd2549f4..c158ad467 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index ca3189d3f..21cfda5b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java index 8c18c8999..1f7d04af7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java index 66b0fbbe5..055d38803 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java index 36098eaab..5653ec760 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java index cd8fb13bd..dd36913de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index a848873da..b0e3cc14c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index dfbebbd33..07ea633fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Rule.java b/src/main/java/microsoft/exchange/webservices/data/Rule.java index 713ec3f10..9c18ed2b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Rule.java +++ b/src/main/java/microsoft/exchange/webservices/data/Rule.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java index 8fc3849d9..111a234ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java index 2fd384472..3d600df7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleError.java b/src/main/java/microsoft/exchange/webservices/data/RuleError.java index 246654fbb..a2f378184 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java index 7499d66e1..dd72faea9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java index ca066cb4b..9f2739470 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java index c970d46ef..7518bb62d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java index 1ca374e34..af98f6530 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java index 066d4fbda..bd3ed9157 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java index 101e8bc1c..dc6c52715 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java index 80c788572..d4e29d747 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 7c3e76313..17c0d9ca4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java index fb7b87e80..aeead6d44 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public enum RuleProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java index 7edf7066d..8e54159c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.w3c.dom.DOMImplementation; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java index 4b68c429e..0bbb07c99 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLInputFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java index a99ed1ea4..660c1279b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.bind.ValidationEventHandler; diff --git a/src/main/java/microsoft/exchange/webservices/data/Schema.java b/src/main/java/microsoft/exchange/webservices/data/Schema.java index f7cf9e138..4eb7266f2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Schema.java +++ b/src/main/java/microsoft/exchange/webservices/data/Schema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java index c74610e7c..f10ead114 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java index 361445a5f..48fc9543f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java index 6b053ba1a..3786d0518 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java index 524769469..4932e7ab1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java index e4e0f516d..c735f8b48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java index 9919aaf97..f8288bdb5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java index 54148b89e..d7bd9179a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java index 27896388f..2820667f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java index 507049924..13c9ae6f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java index 079e312bf..b94de00c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java +++ b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java index 689dfa700..3bcad13b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java index 6da7f9bb2..bd0b832c2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java index 0dab3a08b..3829a40b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index e5d99204b..9dcf02ee1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java index 0607c90b3..1fc41e862 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java index 1aefcfa78..c5dab384a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java index 677df9173..1714cc294 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java index d92f5c0ca..f20910460 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index efbc0af38..e21c5e433 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index b715dba8d..eb6a49c5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.lang.reflect.Field; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java index 16b15bda4..3389387f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index f2c191e63..29771677b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 6b881a8a8..31abc5a23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index 364cd4e8f..f47ee5174 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java index dd4412691..526264372 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java index 8e376bb0e..24933e54b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Enumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index 88b8db99d..8b918b3eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java index c47d4dc28..b342fd32f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index 51edf57d8..f69edf9f5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index c61657652..43cce66d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index b25bf627a..7f598b83d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index b7f07a8ba..249a57cfc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java index 400fe72a4..b5d1039d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index deefd073b..560d36d98 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index 9a284617e..0a082dfd5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 9e373363b..d88df76bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index d99990305..6c5a66f2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java index 9a9b49c50..838c79ab1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java +++ b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java index dd374034c..dca7af23f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index 0c55469bb..33e95d74a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index 7ce27ca62..f2127bfa5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index 60e1a3940..a1426d4dd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.io.Closeable; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringList.java b/src/main/java/microsoft/exchange/webservices/data/StringList.java index 78f8f72c8..e9a26506e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringList.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringList.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index cee83b079..253de4c0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Strings.java b/src/main/java/microsoft/exchange/webservices/data/Strings.java index 3f5c6715c..1272ae76a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Strings.java +++ b/src/main/java/microsoft/exchange/webservices/data/Strings.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public abstract class Strings { diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java index 224664141..2cfcbd159 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java index f961aeb5e..9bab2dfbb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java index f39523400..798d1bfd8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java index 58a33d563..34b665a36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java index 5d41c038c..4864f5470 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java index 2dcf4a0f1..2e1bc123c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java index c0803b290..818bda886 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java index 2ce810a90..9f671b22a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java index 01b9e6b57..37facd516 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java index 0bff4471e..c17d87ea7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index e5c1c9636..082437a35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java index 56d4a5f0f..f4c053225 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java index ad6dfef62..1f46be3c3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java index 6e6d887ff..ac00e49b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java index 1f17f1556..9059cea1a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java index ce8f703bf..150aa59da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java index 0d8c92197..3fe6af7ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index b38753765..66896e39b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java index f3db46c62..fd8f36d70 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java index 7c4ef9137..045259279 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index bf8a16a90..edc3ef7f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index 4759306c8..48c47f2bf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java index e45beeb9c..053870c25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java index ced819b4a..ce2b366b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index 51479ba94..2179dbf84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java index cf415432b..ac71bbe1e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.text.SimpleDateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java index 607e88925..1fe26bb58 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index ff5bdfbf9..a51c65c3f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java index 3e44796c0..98d3f4c62 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java index 888fa09c9..a16e19dab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java index fad09f9bd..060f22294 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index 99fca5dae..7d20cab11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index 698d53674..d8a98d822 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java index d3eddd9e8..776f3ee5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index e677ef44f..fee38a481 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java index bc3e0656b..5d6843f78 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java index a1e0fb7d2..405f65b28 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java index bb541c13d..224128017 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.net.URISyntaxException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java index 37dc420cf..458a58022 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java index 582a5f4bb..5301c2fda 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java index 68ce1caff..86a89e98c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java index ee340017e..c0af434e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java index 30cb15ac4..52eb432a1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java index 6cee0b0ba..ecb3f9b07 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java index 3d782aee9..b188e9bf9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java index e782881cf..59831aca0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index fb4e67a2e..75c62093b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index c5c87430d..7865457e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index c91dbf514..33bb6235a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java index 61c36d0c6..26247d03c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index dcf321f8d..38b9aeba3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java index 8fa06d419..35174a904 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index b8c0be7b2..cfba0d7a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index f65497dcd..5ecab87ca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java index aab72508c..b7e1a4ea3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index 4c79ba313..b9307af9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserId.java b/src/main/java/microsoft/exchange/webservices/data/UserId.java index 7b1e5b785..de75cd0d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserId.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index b8a472c41..3505293e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java index d0e1547d4..660724d2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java index 051471119..84b26ba36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java index e8908c55e..c12cb34ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java index c7731dddb..5b1166398 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java +++ b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class WaitHandle { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java index 51682876f..daa952bb3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class WebAsyncCallStateAnchor { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index 1c9e1e7cc..d3ece428c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index 125d94d8e..d077c52b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index f409b4325..fb76dfebf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java index 17ee661a7..c3c581e54 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public enum WebExceptionStatus { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index 44f420a0f..9eb95cb2e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java index 5d0443613..d2c65a96f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class WebProxyCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java index a87f202a7..5a2cb68de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java +++ b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java index 402459355..eb0baf7ea 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class WindowsLiveCredentials extends WSSecurityBasedCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java index baa2695cc..6e9aed554 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java index c02e57e08..00f7ee0f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java index fc70ca8e1..6ca9af46b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index ad049abf4..d06b81d9a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java index d2bcd3b5f..48d61cad5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index 398502e20..dd28b8332 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; public class XmlException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index d9666c035..88a031644 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java index cfb529247..5a02859bd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index 6d978d8dc..84f27b843 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamConstants; diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java index ddcb8b5bf..e5f9476de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data.util; import org.joda.time.format.DateTimeFormat; diff --git a/src/site/site.xml b/src/site/site.xml index a3e3210cb..2024b2361 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,4 +1,28 @@ + Maven diff --git a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java index f50379d5d..afd2901bf 100644 --- a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.BeforeClass; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java index d62320911..3505687f6 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index ccad35244..ddbcfbeaa 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java index d15ca2445..ab72b6b1d 100644 --- a/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java @@ -1,13 +1,25 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ - +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java index faa551cb2..d8a6d9294 100644 --- a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; diff --git a/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java index 4973edca9..aad289331 100644 --- a/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java @@ -1,12 +1,25 @@ -/************************************************************************** - Exchange Web Services Java API - Copyright (c) Microsoft Corporation - All rights reserved. - MIT License - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - **************************************************************************/ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.Test; diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java index 88a89fdf0..020efde0a 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.hamcrest.core.IsEqual; diff --git a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java index ea890616d..0fbace496 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.Test; diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index 2fce5f0c2..a65467029 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java index a4ec9291d..2e2d98eff 100644 --- a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -1,3 +1,25 @@ +/** + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package microsoft.exchange.webservices.data.util; import org.junit.Before; From e5a52e383cc39b176f9e1642c488df7dc59d8f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Tue, 3 Feb 2015 20:56:57 +0100 Subject: [PATCH 119/338] remove Object return-parameters in -> readResponse(..) and parseResponse(..) --- .../data/DelegateManagementRequestBase.java | 15 +-- .../data/DisconnectPhoneCallRequest.java | 10 +- .../data/FindConversationRequest.java | 10 +- .../data/GetInboxRulesRequest.java | 10 +- .../GetPasswordExpirationDateRequest.java | 10 +- .../webservices/data/GetPhoneCallRequest.java | 10 +- .../webservices/data/GetRoomListsRequest.java | 10 +- .../webservices/data/GetRoomsRequest.java | 10 +- .../data/GetStreamingEventsRequest.java | 10 +- .../data/GetUserAvailabilityRequest.java | 10 +- .../data/GetUserOofSettingsRequest.java | 10 +- .../data/HangingServiceRequestBase.java | 9 +- .../data/MultiResponseServiceRequest.java | 10 +- .../webservices/data/PlayOnPhoneRequest.java | 10 +- .../webservices/data/ServiceRequestBase.java | 118 ++++++++++++++---- .../data/SetUserOofSettingsRequest.java | 10 +- .../data/SimpleServiceRequestBase.java | 84 +------------ .../data/UpdateInboxRulesRequest.java | 10 +- 18 files changed, 146 insertions(+), 220 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index 246ad018d..1fdbc0b16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -27,9 +27,8 @@ * * @param The type of the response. */ -abstract class DelegateManagementRequestBase - - extends SimpleServiceRequestBase { +abstract class DelegateManagementRequestBase + extends SimpleServiceRequestBase { /** * The mailbox. @@ -80,16 +79,12 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) protected abstract TResponse createResponse(); /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected TResponse parseResponse(EwsServiceXmlReader reader) throws Exception { - DelegateManagementResponse response = this.createResponse(); + TResponse response = this.createResponse(); response.loadFromXml(reader, this.getResponseXmlElementName()); return response; } diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index d70816d9b..1792771a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -25,7 +25,7 @@ /** * Represents a DisconnectPhoneCall request. */ -final class DisconnectPhoneCallRequest extends SimpleServiceRequestBase { +final class DisconnectPhoneCallRequest extends SimpleServiceRequestBase { /** * The id. @@ -77,14 +77,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected ServiceResponse parseResponse(EwsServiceXmlReader reader) throws Exception { ServiceResponse serviceResponse = new ServiceResponse(); serviceResponse.loadFromXml(reader, diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index d1562dd3f..277e5b09e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -25,7 +25,7 @@ /** * Represents a request to a Find Conversation operation */ -final class FindConversationRequest extends SimpleServiceRequestBase { +final class FindConversationRequest extends SimpleServiceRequestBase { private ConversationIndexedItemView view; @@ -132,14 +132,10 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) } /** - * Parses the response. - * - * @param reader The reader. - * @return Response object. - * @throws Exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected FindConversationResponse parseResponse(EwsServiceXmlReader reader) throws Exception { FindConversationResponse response = new FindConversationResponse(); response.loadFromXml(reader, diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index a3960b936..434717d98 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -27,7 +27,7 @@ /** * Represents a GetInboxRules request. */ -final class GetInboxRulesRequest extends SimpleServiceRequestBase { +final class GetInboxRulesRequest extends SimpleServiceRequestBase { /** * The smtp address of the mailbox from which to get the inbox rules. @@ -101,14 +101,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader The reader. - * @return Response object. - * @throws Exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetInboxRulesResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetInboxRulesResponse response = new GetInboxRulesResponse(); response.loadFromXml(reader, XmlElementNames.GetInboxRulesResponse); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index 9a3d23efe..6715893a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -24,7 +24,7 @@ import javax.xml.stream.XMLStreamException; -public final class GetPasswordExpirationDateRequest extends SimpleServiceRequestBase { +public final class GetPasswordExpirationDateRequest extends SimpleServiceRequestBase { @Override protected ExchangeVersion getMinimumRequiredServerVersion() { @@ -64,15 +64,13 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer) } /** - * Parses the response - * - * @return GEtPasswordExpirationDateResponse + * {@inheritDoc} */ - protected Object parseResponse(EwsServiceXmlReader reader) throws Exception { + @Override + protected GetPasswordExpirationDateResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetPasswordExpirationDateResponse response = new GetPasswordExpirationDateResponse(); response.loadFromXml(reader, XmlElementNames.GetPasswordExpirationDateResponse); return response; - } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 5d3948d83..45c55327c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -25,7 +25,7 @@ /** * Represents a GetPhoneCall request. */ -final class GetPhoneCallRequest extends SimpleServiceRequestBase { +final class GetPhoneCallRequest extends SimpleServiceRequestBase { /** * The id. @@ -77,14 +77,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetPhoneCallResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetPhoneCallResponse response = new GetPhoneCallResponse(getService()); response.loadFromXml(reader, XmlElementNames.GetPhoneCallResponse); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 0ea357717..c8fd92871 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -25,7 +25,7 @@ /** * Represents a GetRoomList request. */ -final class GetRoomListsRequest extends SimpleServiceRequestBase { +final class GetRoomListsRequest extends SimpleServiceRequestBase { /** * Initializes a new instance of the class. @@ -69,14 +69,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetRoomListsResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetRoomListsResponse response = new GetRoomListsResponse(); response.loadFromXml(reader, XmlElementNames.GetRoomListsResponse); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index cb5c44670..5bd4dd7d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -25,7 +25,7 @@ /** * Represents a GetRooms request. */ -final class GetRoomsRequest extends SimpleServiceRequestBase { +final class GetRoomsRequest extends SimpleServiceRequestBase { /** * Represents a GetRooms request. @@ -72,14 +72,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetRoomsResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetRoomsResponse response = new GetRoomsResponse(); response.loadFromXml(reader, XmlElementNames.GetRoomsResponse); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index b47206eee..1d4200bb8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -27,7 +27,7 @@ /** * Defines the GetStreamingEventsRequest class. */ -class GetStreamingEventsRequest extends HangingServiceRequestBase { +class GetStreamingEventsRequest extends HangingServiceRequestBase { protected final static int HeartbeatFrequencyDefault = 45000; ////45s in ms private static int heartbeatFrequency = HeartbeatFrequencyDefault; @@ -113,14 +113,10 @@ protected ExchangeVersion getMinimumRequiredServerVersion() { } /** - * Parses the response. - * - * @param reader The reader - * @return response - * @throws Exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetStreamingEventsResponse parseResponse(EwsServiceXmlReader reader) throws Exception { reader.readStartElement(XmlNamespace.Messages, XmlElementNames.ResponseMessages); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index 0556a9e70..3a96cd623 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -25,7 +25,7 @@ /** * Represents a GetUserAvailability request. */ -final class GetUserAvailabilityRequest extends SimpleServiceRequestBase { +final class GetUserAvailabilityRequest extends SimpleServiceRequestBase { /** * The attendees. @@ -147,14 +147,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetUserAvailabilityResults parseResponse(EwsServiceXmlReader reader) throws Exception { GetUserAvailabilityResults serviceResponse = new GetUserAvailabilityResults(); diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index 2fc2ee61a..d840cdea2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -27,7 +27,7 @@ /** * Represents a GetUserOofSettings request. */ -final class GetUserOofSettingsRequest extends SimpleServiceRequestBase { +final class GetUserOofSettingsRequest extends SimpleServiceRequestBase { /** * The smtp address. @@ -83,14 +83,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected GetUserOofSettingsResponse parseResponse(EwsServiceXmlReader reader) throws Exception { GetUserOofSettingsResponse serviceResponse = new GetUserOofSettingsResponse(); diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index 57e1d2458..64977f414 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -128,7 +128,7 @@ protected void setException(Exception value) { /** * Represents an abstract, hanging service request. */ -abstract class HangingServiceRequestBase extends ServiceRequestBase { +abstract class HangingServiceRequestBase extends ServiceRequestBase { protected interface IHandleResponseObject { @@ -251,9 +251,8 @@ protected void internalExecute() throws ServiceLocalException, Exception { /** * Parses the responses. * - * @param state The state. */ - private void parseResponses(Object state) { + private void parseResponses() { HangingTraceStream tracingStream = null; ByteArrayOutputStream responseCopy = null; @@ -275,7 +274,7 @@ private void parseResponses(Object state) { while (this.isConnected()) { - Object responseObject = null; + T responseObject = null; if (traceEWSResponse) { /*try{*/ EwsServiceMultiResponseXmlReader ewsXmlReader = @@ -413,7 +412,7 @@ private void internalOnConnect() throws XMLStreamException, keepAliveTime, TimeUnit.SECONDS, queue); threadPool.execute(new Runnable() { public void run() { - parseResponses(null); + parseResponses(); } }); threadPool.shutdown(); diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index b985a58c9..69b97a0d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -28,7 +28,7 @@ * @param The type of the response. */ abstract class MultiResponseServiceRequest - extends SimpleServiceRequestBase { + extends SimpleServiceRequestBase> { /** * The error handling mode. @@ -36,14 +36,10 @@ abstract class MultiResponseServiceRequest private ServiceErrorHandling errorHandlingMode; /** - * Parses the response. - * - * @param reader The reader. - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected ServiceResponseCollection parseResponse(EwsServiceXmlReader reader) throws Exception { ServiceResponseCollection serviceResponses = new ServiceResponseCollection(); diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index be4fc64c8..b7d8b687d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -25,7 +25,7 @@ /** * Represents a PlayOnPhone request. */ -final class PlayOnPhoneRequest extends SimpleServiceRequestBase { +final class PlayOnPhoneRequest extends SimpleServiceRequestBase { /** * The item id. @@ -84,14 +84,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Response object. - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected PlayOnPhoneResponse parseResponse(EwsServiceXmlReader reader) throws Exception { PlayOnPhoneResponse serviceResponse = new PlayOnPhoneResponse(this .getService()); diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 31abc5a23..397b29180 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -23,17 +23,15 @@ package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; +import javax.xml.ws.http.HTTPException; +import java.io.*; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; /** * Represents an abstract service request. */ -abstract class ServiceRequestBase { +abstract class ServiceRequestBase { // Private Constants // private final String XMLSchemaNamespace = @@ -69,6 +67,16 @@ abstract class ServiceRequestBase { */ protected abstract ExchangeVersion getMinimumRequiredServerVersion(); + /** + * Parses the response. + * + * @param reader The reader. + * @return the Response Object. + * @throws Exception the exception + */ + protected abstract T parseResponse(EwsServiceXmlReader reader) + throws Exception; + /** * Writes XML elements. * @@ -86,26 +94,6 @@ protected abstract void writeElementsToXml(EwsServiceXmlWriter writer) ServiceLocalException, InstantiationException, IllegalAccessException, ServiceValidationException, Exception; - /** - * Parses the response. - * - * @param reader The reader. - * @return Response object. - * @throws ServiceXmlDeserializationException the service xml deserialization exception - * @throws javax.xml.stream.XMLStreamException the xML stream exception - * @throws InstantiationException the instantiation exception - * @throws IllegalAccessException the illegal access exception - * @throws ServiceLocalException the service local exception - * @throws ServiceResponseException the service response exception - * @throws IndexOutOfBoundsException the index out of bounds exception - * @throws Exception the exception - */ - protected abstract Object parseResponse(EwsServiceXmlReader reader) - throws ServiceXmlDeserializationException, XMLStreamException, - InstantiationException, IllegalAccessException, - ServiceLocalException, ServiceResponseException, - IndexOutOfBoundsException, Exception; - /** * Validate request. * @@ -377,6 +365,82 @@ private static InputStream getResponseErrorStream(HttpWebRequest request) return responseStream; } + /** + * Reads the response. + * + * @return serviceResponse + * @throws Exception + */ + protected T readResponse(HttpWebRequest response) throws Exception { + T serviceResponse; + + if (!response.getResponseContentType().startsWith("text/xml")) { + String line = new BufferedReader(new InputStreamReader(ServiceRequestBase.getResponseStream(response))) + .readLine(); + throw new ServiceRequestException(Strings.ServiceResponseDoesNotContainXml); + } + + /** + * If tracing is enabled, we read the entire response into a + * MemoryStream so that we can pass it along to the ITraceListener. Then + * we parse the response from the MemoryStream. + */ + + try { + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, response); + + if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponse)) { + ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); + InputStream serviceResponseStream = ServiceRequestBase + .getResponseStream(response); + while (true) { + int data = serviceResponseStream.read(); + if (-1 == data) { + break; + } else { + memoryStream.write(data); + } + } + + this.traceResponse(response, memoryStream); + ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( + memoryStream.toByteArray()); + EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( + memoryStreamIn, this.getService()); + serviceResponse = this.readResponse(ewsXmlReader); + serviceResponseStream.close(); + memoryStream.flush(); + } else { + InputStream responseStream = ServiceRequestBase + .getResponseStream(response); + EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( + responseStream, this.getService()); + serviceResponse = this.readResponse(ewsXmlReader); + + } + } catch (HTTPException e) { + if (e.getMessage() != null) { + this.getService().processHttpResponseHeaders( + TraceFlags.EwsResponseHttpHeaders, response); + } + + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, e.getMessage()), e); + } catch (IOException e) { + // Wrap exception. + throw new ServiceRequestException(String.format( + Strings.ServiceRequestFailed, e.getMessage()), e); + } finally { + if (response != null) { + response.close(); + } + } + + return serviceResponse; + + } + /** * Reads the response. * @@ -384,9 +448,9 @@ private static InputStream getResponseErrorStream(HttpWebRequest request) * @return Service response. * @throws Exception the exception */ - protected Object readResponse(EwsServiceXmlReader ewsXmlReader) + protected T readResponse(EwsServiceXmlReader ewsXmlReader) throws Exception { - Object serviceResponse; + T serviceResponse; this.readPreamble(ewsXmlReader); ewsXmlReader.readStartElement(XmlNamespace.Soap, XmlElementNames.SOAPEnvelopeElementName); diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index 560d36d98..3c6bf49d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -25,7 +25,7 @@ /** * Represents a SetUserOofSettings request. */ -final class SetUserOofSettingsRequest extends SimpleServiceRequestBase { +final class SetUserOofSettingsRequest extends SimpleServiceRequestBase { /** * The smtp address. @@ -89,14 +89,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader the reader - * @return Service response - * @throws Exception the exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected ServiceResponse parseResponse(EwsServiceXmlReader reader) throws Exception { ServiceResponse serviceResponse = new ServiceResponse(); serviceResponse.loadFromXml(reader, XmlElementNames.ResponseMessage); diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index d88df76bb..1676d3abc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -33,7 +33,7 @@ /** * Defines the SimpleServiceRequestBase class. */ -abstract class SimpleServiceRequestBase extends ServiceRequestBase { +abstract class SimpleServiceRequestBase extends ServiceRequestBase { private static final Log log = LogFactory.getLog(SimpleServiceRequestBase.class); @@ -51,7 +51,7 @@ protected SimpleServiceRequestBase(ExchangeService service) * @throws Exception * @throws microsoft.exchange.webservices.data.ServiceLocalException */ - protected Object internalExecute() throws ServiceLocalException, Exception { + protected T internalExecute() throws ServiceLocalException, Exception { HttpWebRequest response = null; try { @@ -85,7 +85,7 @@ protected Object internalExecute() throws ServiceLocalException, Exception { * @param asyncResult The async result * @return Service response object. */ - protected Object endInternalExecute(IAsyncResult asyncResult) throws Exception { + protected T endInternalExecute(IAsyncResult asyncResult) throws Exception { HttpWebRequest response = (HttpWebRequest) asyncResult.get(); return this.readResponse(response); } @@ -119,82 +119,4 @@ protected AsyncRequestResult beginExecute(AsyncCallback callback, Object state) // return new AsyncRequestResult(this, request, webAsyncResult, state /* // user state */); } - - /** - * Reads the response. - * - * @return serviceResponse - * @throws Exception - */ - private Object readResponse(HttpWebRequest response) throws Exception { - Object serviceResponse; - - if (!response.getResponseContentType().startsWith("text/xml")) { - String line = new BufferedReader(new InputStreamReader(ServiceRequestBase.getResponseStream(response))) - .readLine(); - log.error("Response content type not XML; first line: '" + line + "'"); - throw new ServiceRequestException(Strings.ServiceResponseDoesNotContainXml); - } - - /** - * If tracing is enabled, we read the entire response into a - * MemoryStream so that we can pass it along to the ITraceListener. Then - * we parse the response from the MemoryStream. - */ - - try { - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, response); - - if (this.getService().isTraceEnabledFor(TraceFlags.EwsResponse)) { - ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); - InputStream serviceResponseStream = ServiceRequestBase - .getResponseStream(response); - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { - memoryStream.write(data); - } - } - - this.traceResponse(response, memoryStream); - ByteArrayInputStream memoryStreamIn = new ByteArrayInputStream( - memoryStream.toByteArray()); - EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( - memoryStreamIn, this.getService()); - serviceResponse = this.readResponse(ewsXmlReader); - serviceResponseStream.close(); - memoryStream.flush(); - } else { - InputStream responseStream = ServiceRequestBase - .getResponseStream(response); - EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( - responseStream, this.getService()); - serviceResponse = this.readResponse(ewsXmlReader); - - } - } catch (HTTPException e) { - if (e.getMessage() != null) { - this.getService().processHttpResponseHeaders( - TraceFlags.EwsResponseHttpHeaders, response); - } - - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); - } catch (IOException e) { - // Wrap exception. - throw new ServiceRequestException(String.format( - Strings.ServiceRequestFailed, e.getMessage()), e); - } finally { - if (response != null) { - response.close(); - } - } - - return serviceResponse; - - } - } diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index 7865457e1..3ea87447b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -25,7 +25,7 @@ /** * Represents a UpdateInboxRulesRequest request. */ -final class UpdateInboxRulesRequest extends SimpleServiceRequestBase { +final class UpdateInboxRulesRequest extends SimpleServiceRequestBase { /** * The smtp address of the mailbox from which to get the inbox rules. */ @@ -100,14 +100,10 @@ protected String getResponseXmlElementName() { } /** - * Parses the response. - * - * @param reader The reader. - * @return Response object. - * @throws Exception + * {@inheritDoc} */ @Override - protected Object parseResponse(EwsServiceXmlReader reader) + protected UpdateInboxRulesResponse parseResponse(EwsServiceXmlReader reader) throws Exception { UpdateInboxRulesResponse response = new UpdateInboxRulesResponse(); response.loadFromXml(reader, XmlElementNames.UpdateInboxRulesResponse); From afa3487c7b93c0eca85a9f3b6b2549378e3b8034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Tue, 3 Feb 2015 21:11:27 +0100 Subject: [PATCH 120/338] fix #28: trying to double-close response object --- .../exchange/webservices/data/ServiceRequestBase.java | 10 +++------- .../webservices/data/SimpleServiceRequestBase.java | 8 -------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 397b29180..160a508a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -417,28 +417,24 @@ protected T readResponse(HttpWebRequest response) throws Exception { EwsServiceXmlReader ewsXmlReader = new EwsServiceXmlReader( responseStream, this.getService()); serviceResponse = this.readResponse(ewsXmlReader); - } + + return serviceResponse; } catch (HTTPException e) { if (e.getMessage() != null) { this.getService().processHttpResponseHeaders( TraceFlags.EwsResponseHttpHeaders, response); } - throw new ServiceRequestException(String.format( Strings.ServiceRequestFailed, e.getMessage()), e); } catch (IOException e) { - // Wrap exception. throw new ServiceRequestException(String.format( Strings.ServiceRequestFailed, e.getMessage()), e); - } finally { + } finally { // close the underlying response if (response != null) { response.close(); } } - - return serviceResponse; - } /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index 1676d3abc..bef6f9a82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -68,14 +68,6 @@ protected T internalExecute() throws ServiceLocalException, Exception { } throw new ServiceRequestException(String.format(Strings.ServiceRequestFailed, e.getMessage()), e); - } finally { - try { - if (response != null) { - response.close(); - } - } catch (Exception e2) { - response = null; - } } } From 86db4bc37c5f233fba5c26848cf2773149da3a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Sun, 8 Feb 2015 17:41:26 +0100 Subject: [PATCH 121/338] interchanged while(true) loop with a more appropriate condition --- .../exchange/webservices/data/ServiceRequestBase.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 160a508a4..a2aa5f9ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -394,13 +394,11 @@ protected T readResponse(HttpWebRequest response) throws Exception { ByteArrayOutputStream memoryStream = new ByteArrayOutputStream(); InputStream serviceResponseStream = ServiceRequestBase .getResponseStream(response); - while (true) { - int data = serviceResponseStream.read(); - if (-1 == data) { - break; - } else { + + int data = serviceResponseStream.read(); + while (data != -1) { memoryStream.write(data); - } + data = serviceResponseStream.read(); } this.traceResponse(response, memoryStream); From 7a3b6d30a7afcccd754d9a6707975a01cdde3d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Aarrestad?= Date: Wed, 11 Feb 2015 18:03:31 +0100 Subject: [PATCH 122/338] Added more date-patterns and a test to resolve the milliseconds issue. Fixes OfficeDev/ews-java-api#206 --- .../webservices/data/util/DateTimeParser.java | 6 ++++-- .../webservices/data/util/DateTimeParserTest.java | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java index 6e737abd8..e6313c02d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -10,18 +10,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of package microsoft.exchange.webservices.data.util; +import java.util.Date; + import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; -import java.util.Date; - public class DateTimeParser { private final DateTimeFormatter[] dateTimeFormats = { DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ssZ").withZoneUTC(), DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSZ").withZoneUTC(), DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss").withZoneUTC(), DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS").withZoneUTC(), + DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSS").withZoneUTC(), DateTimeFormat.forPattern("yyyy-MM-ddZ").withZoneUTC(), DateTimeFormat.forPattern("yyyy-MM-dd").withZoneUTC() }; diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java index 611d34061..1f89eca6d 100644 --- a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -85,6 +85,20 @@ public void testDateTimeZuluWithPrecision() { assertEquals(12, calendar.get(Calendar.SECOND)); } + @Test + public void testDateTimeZuluWithMilliseconds() { + String dateString = "9999-12-30T23:59:59.9999999Z"; + Date parsed = parser.convertDateTimeStringToDate(dateString); + Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); + calendar.setTime(parsed); + assertEquals(9999, calendar.get(Calendar.YEAR)); + assertEquals(11, calendar.get(Calendar.MONTH)); + assertEquals(30, calendar.get(Calendar.DATE)); + assertEquals(23, calendar.get(Calendar.HOUR_OF_DAY)); + assertEquals(59, calendar.get(Calendar.MINUTE)); + assertEquals(59, calendar.get(Calendar.SECOND)); + } + @Test public void testDateTimeWithTimeZone() { String dateString = "2015-01-08T10:11:12+0200"; From ba69b7f388040b4e98f33bd5cf8b65cdf3d177d4 Mon Sep 17 00:00:00 2001 From: Christophe Grosjean Date: Sun, 15 Feb 2015 17:45:22 +0100 Subject: [PATCH 123/338] exchange2007CompatibilityMode flag is now taken into account to create the request SOAP version header. Previously a Exchange2007_SP1 version was always sent as Exchange2007 (with potential problem like no access to PublicFoldersRoot). Now behaviour can be decided than to the flag. --- .../exchange/webservices/data/ExchangeService.java | 12 ++++++++---- .../webservices/data/ServiceRequestBase.java | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 73173a3ae..60b793ccc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -65,10 +65,14 @@ public final class ExchangeService extends ExchangeServiceBase implements */ private UnifiedMessaging unifiedMessaging; - // private boolean exchange2007CompatibilityMode; private boolean enableScpLookup = true; - private boolean exchange2007CompatibilityMode; + /** + * When false, used to indicate that we should use "Exchange2007" as the server version String rather than + * Exchange2007_SP1 (@see #getExchange2007CompatibilityMode). + * + */ + private boolean exchange2007CompatibilityMode = false; /** * Create response object. @@ -3833,11 +3837,11 @@ public void setEnableScpLookup(boolean value) { * should use "Exchange2007" as the server version String rather than * Exchange2007_SP1. */ - protected boolean getExchange2007CompatibilityMode() { + public boolean getExchange2007CompatibilityMode() { return this.exchange2007CompatibilityMode; } - protected void setExchange2007CompatibilityMode(boolean value) { + public void setExchange2007CompatibilityMode(boolean value) { this.exchange2007CompatibilityMode = value; } diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index 31abc5a23..a4b86a530 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -285,7 +285,7 @@ protected void writeToXml(EwsServiceXmlWriter writer) throws Exception { * @return String representation of requested server version. */ private String getRequestedServiceVersionString() { - if (this.service.getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) { + if (this.service.getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1 && this.service.getExchange2007CompatibilityMode()) { return "Exchange2007"; } else { return this.service.getRequestedServerVersion().toString(); From fe10329a8434ceceaf672655b7baba88d539548c Mon Sep 17 00:00:00 2001 From: Christophe Grosjean Date: Fri, 20 Feb 2015 22:42:27 +0100 Subject: [PATCH 124/338] Refactored getter/setter javadoc --- .../webservices/data/ExchangeService.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index 60b793ccc..bb1c973c7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -3826,21 +3826,29 @@ public boolean getEnableScpLookup() { return this.enableScpLookup; } + public void setEnableScpLookup(boolean value) { this.enableScpLookup = value; } /** - * Gets or sets a value indicating whether Exchange2007 compatibility mode - * is enabled. In order to support E12 servers, the - * Exchange2007CompatibilityMode property can be used to indicate that we - * should use "Exchange2007" as the server version String rather than - * Exchange2007_SP1. + * Returns true whether Exchange2007 compatibility mode is enabled, false otherwise. */ public boolean getExchange2007CompatibilityMode() { return this.exchange2007CompatibilityMode; } + /** + * Set the flag indicating if the Exchange2007 compatibility mode is enabled. + * + * + * In order to support E12 servers, the exchange2007CompatibilityMode property, + * set to true, can be used to indicate that we should use "Exchange2007" as the server version String + * rather than Exchange2007_SP1. + * + * + * @param value true if the Exchange2007 compatibility mode is enabled. + */ public void setExchange2007CompatibilityMode(boolean value) { this.exchange2007CompatibilityMode = value; } From f86846d52f7bffb4b20a4612d4d070081d8929a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Wed, 11 Feb 2015 19:50:58 +0100 Subject: [PATCH 125/338] license-header with checkstyle google-style - the license header was treated as a normal javadoc due to /** -> /* solves the problem - there should be a blank between license header and package --- .../exchange/webservices/data/AbsoluteDateTransition.java | 3 ++- .../webservices/data/AbsoluteDayOfMonthTransition.java | 3 ++- .../exchange/webservices/data/AbsoluteMonthTransition.java | 3 ++- .../exchange/webservices/data/AbstractAsyncCallback.java | 3 ++- .../exchange/webservices/data/AbstractFolderIdWrapper.java | 3 ++- .../exchange/webservices/data/AbstractItemIdWrapper.java | 3 ++- .../webservices/data/AcceptMeetingInvitationMessage.java | 3 ++- .../exchange/webservices/data/AccountIsLockedException.java | 3 ++- .../exchange/webservices/data/AddDelegateRequest.java | 3 ++- .../exchange/webservices/data/AffectedTaskOccurrence.java | 3 ++- .../microsoft/exchange/webservices/data/AggregateType.java | 3 ++- .../java/microsoft/exchange/webservices/data/AlternateId.java | 3 ++- .../microsoft/exchange/webservices/data/AlternateIdBase.java | 3 ++- .../microsoft/exchange/webservices/data/AlternateMailbox.java | 3 ++- .../exchange/webservices/data/AlternateMailboxCollection.java | 3 ++- .../exchange/webservices/data/AlternatePublicFolderId.java | 3 ++- .../exchange/webservices/data/AlternatePublicFolderItemId.java | 3 ++- .../webservices/data/ApplyConversationActionRequest.java | 3 ++- .../java/microsoft/exchange/webservices/data/Appointment.java | 3 ++- .../exchange/webservices/data/AppointmentOccurrenceId.java | 3 ++- .../microsoft/exchange/webservices/data/AppointmentSchema.java | 3 ++- .../microsoft/exchange/webservices/data/AppointmentType.java | 3 ++- .../microsoft/exchange/webservices/data/ArgumentException.java | 3 ++- .../exchange/webservices/data/ArgumentNullException.java | 3 ++- .../exchange/webservices/data/ArgumentOutOfRangeException.java | 3 ++- .../microsoft/exchange/webservices/data/AsyncCallback.java | 3 ++- .../exchange/webservices/data/AsyncCallbackImplementation.java | 3 ++- .../microsoft/exchange/webservices/data/AsyncExecutor.java | 3 ++- .../exchange/webservices/data/AsyncRequestResult.java | 3 ++- .../java/microsoft/exchange/webservices/data/Attachable.java | 3 ++- .../java/microsoft/exchange/webservices/data/Attachment.java | 3 ++- .../exchange/webservices/data/AttachmentCollection.java | 3 ++- .../webservices/data/AttachmentsPropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/Attendee.java | 3 ++- .../exchange/webservices/data/AttendeeAvailability.java | 3 ++- .../exchange/webservices/data/AttendeeCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/AttendeeInfo.java | 3 ++- .../exchange/webservices/data/AutodiscoverDnsClient.java | 3 ++- .../exchange/webservices/data/AutodiscoverEndpoints.java | 3 ++- .../microsoft/exchange/webservices/data/AutodiscoverError.java | 3 ++- .../exchange/webservices/data/AutodiscoverErrorCode.java | 3 ++- .../exchange/webservices/data/AutodiscoverLocalException.java | 3 ++- .../exchange/webservices/data/AutodiscoverRemoteException.java | 3 ++- .../exchange/webservices/data/AutodiscoverRequest.java | 3 ++- .../exchange/webservices/data/AutodiscoverResponse.java | 3 ++- .../webservices/data/AutodiscoverResponseCollection.java | 3 ++- .../webservices/data/AutodiscoverResponseException.java | 3 ++- .../exchange/webservices/data/AutodiscoverResponseType.java | 3 ++- .../exchange/webservices/data/AutodiscoverService.java | 3 ++- .../microsoft/exchange/webservices/data/AvailabilityData.java | 3 ++- .../exchange/webservices/data/AvailabilityOptions.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Base64.java | 3 ++- .../exchange/webservices/data/Base64EncoderStream.java | 3 ++- .../microsoft/exchange/webservices/data/BasePropertySet.java | 3 ++- .../java/microsoft/exchange/webservices/data/BodyType.java | 3 ++- .../exchange/webservices/data/BoolPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/ByteArrayArray.java | 3 ++- .../exchange/webservices/data/ByteArrayOSRequestEntity.java | 3 ++- .../exchange/webservices/data/ByteArrayPropertyDefinition.java | 3 ++- .../exchange/webservices/data/CalendarActionResults.java | 3 ++- .../microsoft/exchange/webservices/data/CalendarEvent.java | 3 ++- .../exchange/webservices/data/CalendarEventDetails.java | 3 ++- .../microsoft/exchange/webservices/data/CalendarFolder.java | 3 ++- .../exchange/webservices/data/CalendarResponseMessage.java | 3 ++- .../exchange/webservices/data/CalendarResponseMessageBase.java | 3 ++- .../webservices/data/CalendarResponseObjectSchema.java | 3 ++- .../java/microsoft/exchange/webservices/data/CalendarView.java | 3 ++- .../microsoft/exchange/webservices/data/CallableMethod.java | 3 ++- .../java/microsoft/exchange/webservices/data/Callback.java | 3 ++- .../exchange/webservices/data/CancelMeetingMessage.java | 3 ++- .../exchange/webservices/data/CancelMeetingMessageSchema.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Change.java | 3 ++- .../microsoft/exchange/webservices/data/ChangeCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/ChangeType.java | 3 ++- .../microsoft/exchange/webservices/data/ComparisonMode.java | 3 ++- .../java/microsoft/exchange/webservices/data/CompleteName.java | 3 ++- .../exchange/webservices/data/ComplexFunctionDelegate.java | 3 ++- .../microsoft/exchange/webservices/data/ComplexProperty.java | 3 ++- .../exchange/webservices/data/ComplexPropertyCollection.java | 3 ++- .../exchange/webservices/data/ComplexPropertyDefinition.java | 3 ++- .../webservices/data/ComplexPropertyDefinitionBase.java | 3 ++- .../exchange/webservices/data/ConfigurationSettingsBase.java | 3 ++- .../java/microsoft/exchange/webservices/data/Conflict.java | 3 ++- .../exchange/webservices/data/ConflictResolutionMode.java | 3 ++- .../java/microsoft/exchange/webservices/data/ConflictType.java | 3 ++- .../microsoft/exchange/webservices/data/ConnectingIdType.java | 3 ++- .../exchange/webservices/data/ConnectionFailureCause.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Contact.java | 3 ++- .../java/microsoft/exchange/webservices/data/ContactGroup.java | 3 ++- .../exchange/webservices/data/ContactGroupSchema.java | 3 ++- .../microsoft/exchange/webservices/data/ContactSchema.java | 3 ++- .../microsoft/exchange/webservices/data/ContactSource.java | 3 ++- .../microsoft/exchange/webservices/data/ContactsFolder.java | 3 ++- .../exchange/webservices/data/ContainedPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/ContainmentMode.java | 3 ++- .../java/microsoft/exchange/webservices/data/Conversation.java | 3 ++- .../exchange/webservices/data/ConversationAction.java | 3 ++- .../exchange/webservices/data/ConversationActionType.java | 3 ++- .../exchange/webservices/data/ConversationFlagStatus.java | 3 ++- .../microsoft/exchange/webservices/data/ConversationId.java | 3 ++- .../exchange/webservices/data/ConversationIndexedItemView.java | 3 ++- .../exchange/webservices/data/ConversationSchema.java | 3 ++- .../microsoft/exchange/webservices/data/ConvertIdRequest.java | 3 ++- .../microsoft/exchange/webservices/data/ConvertIdResponse.java | 3 ++- .../microsoft/exchange/webservices/data/CopyFolderRequest.java | 3 ++- .../microsoft/exchange/webservices/data/CopyItemRequest.java | 3 ++- .../exchange/webservices/data/CreateAttachmentException.java | 3 ++- .../exchange/webservices/data/CreateAttachmentRequest.java | 3 ++- .../exchange/webservices/data/CreateAttachmentResponse.java | 3 ++- .../exchange/webservices/data/CreateFolderRequest.java | 3 ++- .../exchange/webservices/data/CreateFolderResponse.java | 3 ++- .../microsoft/exchange/webservices/data/CreateItemRequest.java | 3 ++- .../exchange/webservices/data/CreateItemRequestBase.java | 3 ++- .../exchange/webservices/data/CreateItemResponse.java | 3 ++- .../exchange/webservices/data/CreateItemResponseBase.java | 3 ++- .../microsoft/exchange/webservices/data/CreateRequest.java | 3 ++- .../exchange/webservices/data/CreateResponseObjectRequest.java | 3 ++- .../webservices/data/CreateResponseObjectResponse.java | 3 ++- .../exchange/webservices/data/CreateRuleOperation.java | 3 ++- .../webservices/data/CreateUserConfigurationRequest.java | 3 ++- .../exchange/webservices/data/CredentialConstants.java | 3 ++- .../microsoft/exchange/webservices/data/DateTimePrecision.java | 3 ++- .../exchange/webservices/data/DateTimePropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/DayOfTheWeek.java | 3 ++- .../exchange/webservices/data/DayOfTheWeekCollection.java | 3 ++- .../microsoft/exchange/webservices/data/DayOfTheWeekIndex.java | 3 ++- .../webservices/data/DeclineMeetingInvitationMessage.java | 3 ++- .../exchange/webservices/data/DefaultExtendedPropertySet.java | 3 ++- .../webservices/data/DelegateFolderPermissionLevel.java | 3 ++- .../exchange/webservices/data/DelegateInformation.java | 3 ++- .../webservices/data/DelegateManagementRequestBase.java | 3 ++- .../exchange/webservices/data/DelegateManagementResponse.java | 3 ++- .../exchange/webservices/data/DelegatePermissions.java | 3 ++- .../java/microsoft/exchange/webservices/data/DelegateUser.java | 3 ++- .../exchange/webservices/data/DelegateUserResponse.java | 3 ++- .../exchange/webservices/data/DeleteAttachmentException.java | 3 ++- .../exchange/webservices/data/DeleteAttachmentRequest.java | 3 ++- .../exchange/webservices/data/DeleteAttachmentResponse.java | 3 ++- .../exchange/webservices/data/DeleteFolderRequest.java | 3 ++- .../microsoft/exchange/webservices/data/DeleteItemRequest.java | 3 ++- .../java/microsoft/exchange/webservices/data/DeleteMode.java | 3 ++- .../microsoft/exchange/webservices/data/DeleteRequest.java | 3 ++- .../exchange/webservices/data/DeleteRuleOperation.java | 3 ++- .../webservices/data/DeleteUserConfigurationRequest.java | 3 ++- .../exchange/webservices/data/DeletedOccurrenceInfo.java | 3 ++- .../webservices/data/DeletedOccurrenceInfoCollection.java | 3 ++- .../exchange/webservices/data/DictionaryEntryProperty.java | 3 ++- .../exchange/webservices/data/DictionaryProperty.java | 3 ++- .../exchange/webservices/data/DisconnectPhoneCallRequest.java | 3 ++- .../java/microsoft/exchange/webservices/data/DnsClient.java | 3 ++- .../java/microsoft/exchange/webservices/data/DnsException.java | 3 ++- .../java/microsoft/exchange/webservices/data/DnsRecord.java | 3 ++- .../microsoft/exchange/webservices/data/DnsRecordType.java | 3 ++- .../java/microsoft/exchange/webservices/data/DnsSrvRecord.java | 3 ++- .../exchange/webservices/data/DomainSettingError.java | 3 ++- .../microsoft/exchange/webservices/data/DomainSettingName.java | 3 ++- .../exchange/webservices/data/DoublePropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/EWSConstants.java | 3 ++- .../microsoft/exchange/webservices/data/EWSHttpException.java | 3 ++- .../microsoft/exchange/webservices/data/EditorBrowsable.java | 3 ++- .../exchange/webservices/data/EditorBrowsableState.java | 3 ++- .../microsoft/exchange/webservices/data/EffectiveRights.java | 3 ++- .../webservices/data/EffectiveRightsPropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/EmailAddress.java | 3 ++- .../exchange/webservices/data/EmailAddressCollection.java | 3 ++- .../exchange/webservices/data/EmailAddressDictionary.java | 3 ++- .../microsoft/exchange/webservices/data/EmailAddressEntry.java | 3 ++- .../microsoft/exchange/webservices/data/EmailAddressKey.java | 3 ++- .../java/microsoft/exchange/webservices/data/EmailMessage.java | 3 ++- .../exchange/webservices/data/EmailMessageSchema.java | 3 ++- .../exchange/webservices/data/EmptyFolderRequest.java | 3 ++- .../exchange/webservices/data/EndDateRecurrenceRange.java | 3 ++- .../java/microsoft/exchange/webservices/data/EventType.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/EwsEnum.java | 3 ++- .../exchange/webservices/data/EwsSSLProtocolSocketFactory.java | 3 ++- .../webservices/data/EwsServiceMultiResponseXmlReader.java | 3 ++- .../exchange/webservices/data/EwsServiceXmlReader.java | 3 ++- .../exchange/webservices/data/EwsServiceXmlWriter.java | 3 ++- .../microsoft/exchange/webservices/data/EwsTraceListener.java | 3 ++- .../java/microsoft/exchange/webservices/data/EwsUtilities.java | 3 ++- .../exchange/webservices/data/EwsX509TrustManager.java | 3 ++- .../java/microsoft/exchange/webservices/data/EwsXmlReader.java | 3 ++- .../exchange/webservices/data/ExchangeCredentials.java | 3 ++- .../exchange/webservices/data/ExchangeServerInfo.java | 3 ++- .../microsoft/exchange/webservices/data/ExchangeService.java | 3 ++- .../exchange/webservices/data/ExchangeServiceBase.java | 3 ++- .../microsoft/exchange/webservices/data/ExchangeVersion.java | 3 ++- .../webservices/data/ExecuteDiagnosticMethodRequest.java | 3 ++- .../webservices/data/ExecuteDiagnosticMethodResponse.java | 3 ++- .../exchange/webservices/data/ExpandGroupRequest.java | 3 ++- .../exchange/webservices/data/ExpandGroupResponse.java | 3 ++- .../exchange/webservices/data/ExpandGroupResults.java | 3 ++- .../microsoft/exchange/webservices/data/ExtendedProperty.java | 3 ++- .../exchange/webservices/data/ExtendedPropertyCollection.java | 3 ++- .../exchange/webservices/data/ExtendedPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/FileAsMapping.java | 3 ++- .../microsoft/exchange/webservices/data/FileAttachment.java | 3 ++- .../exchange/webservices/data/FindConversationRequest.java | 3 ++- .../exchange/webservices/data/FindConversationResponse.java | 3 ++- .../microsoft/exchange/webservices/data/FindFolderRequest.java | 3 ++- .../exchange/webservices/data/FindFolderResponse.java | 3 ++- .../exchange/webservices/data/FindFoldersResults.java | 3 ++- .../microsoft/exchange/webservices/data/FindItemRequest.java | 3 ++- .../microsoft/exchange/webservices/data/FindItemResponse.java | 3 ++- .../microsoft/exchange/webservices/data/FindItemsResults.java | 3 ++- .../java/microsoft/exchange/webservices/data/FindRequest.java | 3 ++- .../microsoft/exchange/webservices/data/FlaggedForAction.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Flags.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Folder.java | 3 ++- .../java/microsoft/exchange/webservices/data/FolderChange.java | 3 ++- .../java/microsoft/exchange/webservices/data/FolderEvent.java | 3 ++- .../java/microsoft/exchange/webservices/data/FolderId.java | 3 ++- .../exchange/webservices/data/FolderIdCollection.java | 3 ++- .../microsoft/exchange/webservices/data/FolderIdWrapper.java | 3 ++- .../exchange/webservices/data/FolderIdWrapperList.java | 3 ++- .../microsoft/exchange/webservices/data/FolderPermission.java | 3 ++- .../exchange/webservices/data/FolderPermissionCollection.java | 3 ++- .../exchange/webservices/data/FolderPermissionLevel.java | 3 ++- .../exchange/webservices/data/FolderPermissionReadAccess.java | 3 ++- .../java/microsoft/exchange/webservices/data/FolderSchema.java | 3 ++- .../microsoft/exchange/webservices/data/FolderTraversal.java | 3 ++- .../java/microsoft/exchange/webservices/data/FolderView.java | 3 ++- .../microsoft/exchange/webservices/data/FolderWrapper.java | 3 ++- .../microsoft/exchange/webservices/data/FormatException.java | 3 ++- .../microsoft/exchange/webservices/data/FreeBusyViewType.java | 3 ++- .../exchange/webservices/data/GenericItemAttachment.java | 3 ++- .../exchange/webservices/data/GenericPropertyDefinition.java | 3 ++- .../exchange/webservices/data/GetAttachmentRequest.java | 3 ++- .../exchange/webservices/data/GetAttachmentResponse.java | 3 ++- .../exchange/webservices/data/GetDelegateRequest.java | 3 ++- .../exchange/webservices/data/GetDelegateResponse.java | 3 ++- .../exchange/webservices/data/GetDomainSettingsRequest.java | 3 ++- .../exchange/webservices/data/GetDomainSettingsResponse.java | 3 ++- .../webservices/data/GetDomainSettingsResponseCollection.java | 3 ++- .../microsoft/exchange/webservices/data/GetEventsRequest.java | 3 ++- .../microsoft/exchange/webservices/data/GetEventsResponse.java | 3 ++- .../microsoft/exchange/webservices/data/GetEventsResults.java | 3 ++- .../microsoft/exchange/webservices/data/GetFolderRequest.java | 3 ++- .../exchange/webservices/data/GetFolderRequestBase.java | 3 ++- .../exchange/webservices/data/GetFolderRequestForLoad.java | 3 ++- .../microsoft/exchange/webservices/data/GetFolderResponse.java | 3 ++- .../exchange/webservices/data/GetInboxRulesRequest.java | 3 ++- .../exchange/webservices/data/GetInboxRulesResponse.java | 3 ++- .../microsoft/exchange/webservices/data/GetItemRequest.java | 3 ++- .../exchange/webservices/data/GetItemRequestBase.java | 3 ++- .../exchange/webservices/data/GetItemRequestForLoad.java | 3 ++- .../microsoft/exchange/webservices/data/GetItemResponse.java | 3 ++- .../webservices/data/GetPasswordExpirationDateRequest.java | 3 ++- .../webservices/data/GetPasswordExpirationDateResponse.java | 3 ++- .../exchange/webservices/data/GetPhoneCallRequest.java | 3 ++- .../exchange/webservices/data/GetPhoneCallResponse.java | 3 ++- .../java/microsoft/exchange/webservices/data/GetRequest.java | 3 ++- .../exchange/webservices/data/GetRoomListsRequest.java | 3 ++- .../exchange/webservices/data/GetRoomListsResponse.java | 3 ++- .../microsoft/exchange/webservices/data/GetRoomsRequest.java | 3 ++- .../microsoft/exchange/webservices/data/GetRoomsResponse.java | 3 ++- .../exchange/webservices/data/GetServerTimeZonesRequest.java | 3 ++- .../exchange/webservices/data/GetServerTimeZonesResponse.java | 3 ++- .../exchange/webservices/data/GetStreamingEventsRequest.java | 3 ++- .../exchange/webservices/data/GetStreamingEventsResponse.java | 3 ++- .../exchange/webservices/data/GetStreamingEventsResults.java | 3 ++- .../exchange/webservices/data/GetUserAvailabilityRequest.java | 3 ++- .../exchange/webservices/data/GetUserAvailabilityResults.java | 3 ++- .../exchange/webservices/data/GetUserConfigurationRequest.java | 3 ++- .../webservices/data/GetUserConfigurationResponse.java | 3 ++- .../exchange/webservices/data/GetUserOofSettingsRequest.java | 3 ++- .../exchange/webservices/data/GetUserOofSettingsResponse.java | 3 ++- .../exchange/webservices/data/GetUserSettingsRequest.java | 3 ++- .../exchange/webservices/data/GetUserSettingsResponse.java | 3 ++- .../webservices/data/GetUserSettingsResponseCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/GroupMember.java | 3 ++- .../exchange/webservices/data/GroupMemberCollection.java | 3 ++- .../webservices/data/GroupMemberPropertyDefinition.java | 3 ++- .../exchange/webservices/data/GroupedFindItemsResults.java | 3 ++- .../java/microsoft/exchange/webservices/data/Grouping.java | 3 ++- .../exchange/webservices/data/HangingServiceRequestBase.java | 3 ++- .../exchange/webservices/data/HangingTraceStream.java | 3 ++- .../exchange/webservices/data/HttpClientWebRequest.java | 3 ++- .../exchange/webservices/data/HttpErrorException.java | 3 ++- .../microsoft/exchange/webservices/data/HttpWebRequest.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/IAction.java | 3 ++- .../java/microsoft/exchange/webservices/data/IAsyncResult.java | 3 ++- .../exchange/webservices/data/IAutodiscoverRedirectionUrl.java | 3 ++- .../exchange/webservices/data/ICalendarActionProvider.java | 3 ++- .../exchange/webservices/data/IComplexPropertyChanged.java | 3 ++- .../webservices/data/IComplexPropertyChangedDelegate.java | 3 ++- .../webservices/data/ICreateComplexPropertyDelegate.java | 3 ++- .../data/ICreateServiceObjectWithAttachmentParam.java | 3 ++- .../webservices/data/ICreateServiceObjectWithServiceParam.java | 3 ++- .../exchange/webservices/data/ICustomXmlSerialization.java | 3 ++- .../exchange/webservices/data/ICustomXmlUpdateSerializer.java | 3 ++- .../exchange/webservices/data/IDateTimePropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/IDisposable.java | 3 ++- .../webservices/data/IFileAttachmentContentHandler.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/IFunc.java | 3 ++- .../microsoft/exchange/webservices/data/IFuncDelegate.java | 3 ++- .../java/microsoft/exchange/webservices/data/IFunction.java | 3 ++- .../microsoft/exchange/webservices/data/IFunctionDelegate.java | 3 ++- .../exchange/webservices/data/IGetObjectInstanceDelegate.java | 3 ++- .../webservices/data/IGetPropertyDefinitionCallback.java | 3 ++- .../java/microsoft/exchange/webservices/data/ILazyMember.java | 3 ++- .../microsoft/exchange/webservices/data/IOwnedProperty.java | 3 ++- .../java/microsoft/exchange/webservices/data/IPredicate.java | 3 ++- .../exchange/webservices/data/IPropertyBagChangedDelegate.java | 3 ++- .../exchange/webservices/data/ISearchStringProvider.java | 3 ++- .../microsoft/exchange/webservices/data/ISelfValidate.java | 3 ++- .../webservices/data/IServiceObjectChangedDelegate.java | 3 ++- .../microsoft/exchange/webservices/data/ITraceListener.java | 3 ++- .../java/microsoft/exchange/webservices/data/IdFormat.java | 3 ++- .../exchange/webservices/data/ImAddressDictionary.java | 3 ++- .../microsoft/exchange/webservices/data/ImAddressEntry.java | 3 ++- .../java/microsoft/exchange/webservices/data/ImAddressKey.java | 3 ++- .../exchange/webservices/data/ImpersonatedUserId.java | 3 ++- .../java/microsoft/exchange/webservices/data/Importance.java | 3 ++- .../exchange/webservices/data/IndexedPropertyDefinition.java | 3 ++- .../exchange/webservices/data/IntPropertyDefinition.java | 3 ++- .../exchange/webservices/data/InternetMessageHeader.java | 3 ++- .../webservices/data/InternetMessageHeaderCollection.java | 3 ++- .../exchange/webservices/data/InvalidOperationException.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Item.java | 3 ++- .../microsoft/exchange/webservices/data/ItemAttachment.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemChange.java | 3 ++- .../microsoft/exchange/webservices/data/ItemCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemEvent.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemGroup.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/ItemId.java | 3 ++- .../microsoft/exchange/webservices/data/ItemIdCollection.java | 3 ++- .../microsoft/exchange/webservices/data/ItemIdWrapper.java | 3 ++- .../microsoft/exchange/webservices/data/ItemIdWrapperList.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemSchema.java | 3 ++- .../microsoft/exchange/webservices/data/ItemTraversal.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemView.java | 3 ++- .../java/microsoft/exchange/webservices/data/ItemWrapper.java | 3 ++- .../java/microsoft/exchange/webservices/data/LazyMember.java | 3 ++- .../exchange/webservices/data/LegacyAvailabilityTimeZone.java | 3 ++- .../webservices/data/LegacyAvailabilityTimeZoneTime.java | 3 ++- .../exchange/webservices/data/LegacyFreeBusyStatus.java | 3 ++- .../microsoft/exchange/webservices/data/LogicalOperator.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Mailbox.java | 3 ++- .../java/microsoft/exchange/webservices/data/MailboxType.java | 3 ++- .../exchange/webservices/data/ManagedFolderInformation.java | 3 ++- .../microsoft/exchange/webservices/data/MapiPropertyType.java | 3 ++- .../microsoft/exchange/webservices/data/MapiTypeConverter.java | 3 ++- .../exchange/webservices/data/MapiTypeConverterMap.java | 3 ++- .../exchange/webservices/data/MapiTypeConverterMapEntry.java | 3 ++- .../exchange/webservices/data/MeetingAttendeeType.java | 3 ++- .../exchange/webservices/data/MeetingCancellation.java | 3 ++- .../microsoft/exchange/webservices/data/MeetingMessage.java | 3 ++- .../exchange/webservices/data/MeetingMessageSchema.java | 3 ++- .../microsoft/exchange/webservices/data/MeetingRequest.java | 3 ++- .../exchange/webservices/data/MeetingRequestSchema.java | 3 ++- .../exchange/webservices/data/MeetingRequestType.java | 3 ++- .../webservices/data/MeetingRequestsDeliveryScope.java | 3 ++- .../microsoft/exchange/webservices/data/MeetingResponse.java | 3 ++- .../exchange/webservices/data/MeetingResponseType.java | 3 ++- .../microsoft/exchange/webservices/data/MeetingTimeZone.java | 3 ++- .../webservices/data/MeetingTimeZonePropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/MemberStatus.java | 3 ++- .../java/microsoft/exchange/webservices/data/MessageBody.java | 3 ++- .../exchange/webservices/data/MessageDisposition.java | 3 ++- .../java/microsoft/exchange/webservices/data/MimeContent.java | 3 ++- .../java/microsoft/exchange/webservices/data/MobilePhone.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Month.java | 3 ++- .../exchange/webservices/data/MoveCopyFolderRequest.java | 3 ++- .../exchange/webservices/data/MoveCopyFolderResponse.java | 3 ++- .../exchange/webservices/data/MoveCopyItemRequest.java | 3 ++- .../exchange/webservices/data/MoveCopyItemResponse.java | 3 ++- .../microsoft/exchange/webservices/data/MoveCopyRequest.java | 3 ++- .../microsoft/exchange/webservices/data/MoveFolderRequest.java | 3 ++- .../microsoft/exchange/webservices/data/MoveItemRequest.java | 3 ++- .../exchange/webservices/data/MultiResponseServiceRequest.java | 3 ++- .../microsoft/exchange/webservices/data/NameResolution.java | 3 ++- .../exchange/webservices/data/NameResolutionCollection.java | 3 ++- .../exchange/webservices/data/NoEndRecurrenceRange.java | 3 ++- .../exchange/webservices/data/NotSupportedException.java | 3 ++- .../microsoft/exchange/webservices/data/NotificationEvent.java | 3 ++- .../exchange/webservices/data/NotificationEventArgs.java | 3 ++- .../exchange/webservices/data/NumberedRecurrenceRange.java | 3 ++- .../microsoft/exchange/webservices/data/OccurrenceInfo.java | 3 ++- .../exchange/webservices/data/OccurrenceInfoCollection.java | 3 ++- .../microsoft/exchange/webservices/data/OffsetBasePoint.java | 3 ++- .../exchange/webservices/data/OofExternalAudience.java | 3 ++- .../java/microsoft/exchange/webservices/data/OofReply.java | 3 ++- .../java/microsoft/exchange/webservices/data/OofSettings.java | 3 ++- .../java/microsoft/exchange/webservices/data/OofState.java | 3 ++- .../microsoft/exchange/webservices/data/OrderByCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/OutParam.java | 3 ++- .../microsoft/exchange/webservices/data/OutlookAccount.java | 3 ++- .../webservices/data/OutlookConfigurationSettings.java | 3 ++- .../microsoft/exchange/webservices/data/OutlookProtocol.java | 3 ++- .../exchange/webservices/data/OutlookProtocolType.java | 3 ++- .../java/microsoft/exchange/webservices/data/OutlookUser.java | 3 ++- .../java/microsoft/exchange/webservices/data/PagedView.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Param.java | 3 ++- .../data/PermissionCollectionPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/PermissionScope.java | 3 ++- .../java/microsoft/exchange/webservices/data/PhoneCall.java | 3 ++- .../java/microsoft/exchange/webservices/data/PhoneCallId.java | 3 ++- .../microsoft/exchange/webservices/data/PhoneCallState.java | 3 ++- .../exchange/webservices/data/PhoneNumberDictionary.java | 3 ++- .../microsoft/exchange/webservices/data/PhoneNumberEntry.java | 3 ++- .../microsoft/exchange/webservices/data/PhoneNumberKey.java | 3 ++- .../exchange/webservices/data/PhysicalAddressDictionary.java | 3 ++- .../exchange/webservices/data/PhysicalAddressEntry.java | 3 ++- .../exchange/webservices/data/PhysicalAddressIndex.java | 3 ++- .../exchange/webservices/data/PhysicalAddressKey.java | 3 ++- .../exchange/webservices/data/PlayOnPhoneRequest.java | 3 ++- .../exchange/webservices/data/PlayOnPhoneResponse.java | 3 ++- .../java/microsoft/exchange/webservices/data/PostItem.java | 3 ++- .../microsoft/exchange/webservices/data/PostItemSchema.java | 3 ++- .../java/microsoft/exchange/webservices/data/PostReply.java | 3 ++- .../microsoft/exchange/webservices/data/PostReplySchema.java | 3 ++- .../java/microsoft/exchange/webservices/data/PropertyBag.java | 3 ++- .../exchange/webservices/data/PropertyDefinition.java | 3 ++- .../exchange/webservices/data/PropertyDefinitionBase.java | 3 ++- .../exchange/webservices/data/PropertyDefinitionFlags.java | 3 ++- .../microsoft/exchange/webservices/data/PropertyException.java | 3 ++- .../java/microsoft/exchange/webservices/data/PropertySet.java | 3 ++- .../exchange/webservices/data/ProtocolConnection.java | 3 ++- .../webservices/data/ProtocolConnectionCollection.java | 3 ++- .../microsoft/exchange/webservices/data/PullSubscription.java | 3 ++- .../microsoft/exchange/webservices/data/PushSubscription.java | 3 ++- .../java/microsoft/exchange/webservices/data/Recurrence.java | 3 ++- .../webservices/data/RecurrencePropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/RecurrenceRange.java | 3 ++- .../webservices/data/RecurringAppointmentMasterId.java | 3 ++- .../java/microsoft/exchange/webservices/data/RefParam.java | 3 ++- .../webservices/data/RelativeDayOfMonthTransition.java | 3 ++- .../exchange/webservices/data/RemoveDelegateRequest.java | 3 ++- .../exchange/webservices/data/RemoveFromCalendar.java | 3 ++- .../exchange/webservices/data/RequiredServerVersion.java | 3 ++- .../exchange/webservices/data/ResolveNameSearchLocation.java | 3 ++- .../exchange/webservices/data/ResolveNamesRequest.java | 3 ++- .../exchange/webservices/data/ResolveNamesResponse.java | 3 ++- .../microsoft/exchange/webservices/data/ResponseActions.java | 3 ++- .../microsoft/exchange/webservices/data/ResponseMessage.java | 3 ++- .../exchange/webservices/data/ResponseMessageSchema.java | 3 ++- .../exchange/webservices/data/ResponseMessageType.java | 3 ++- .../microsoft/exchange/webservices/data/ResponseObject.java | 3 ++- .../exchange/webservices/data/ResponseObjectSchema.java | 3 ++- .../webservices/data/ResponseObjectsPropertyDefinition.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Rule.java | 3 ++- .../java/microsoft/exchange/webservices/data/RuleActions.java | 3 ++- .../microsoft/exchange/webservices/data/RuleCollection.java | 3 ++- .../java/microsoft/exchange/webservices/data/RuleError.java | 3 ++- .../microsoft/exchange/webservices/data/RuleErrorCode.java | 3 ++- .../exchange/webservices/data/RuleErrorCollection.java | 3 ++- .../microsoft/exchange/webservices/data/RuleOperation.java | 3 ++- .../exchange/webservices/data/RuleOperationError.java | 3 ++- .../webservices/data/RuleOperationErrorCollection.java | 3 ++- .../exchange/webservices/data/RulePredicateDateRange.java | 3 ++- .../exchange/webservices/data/RulePredicateSizeRange.java | 3 ++- .../microsoft/exchange/webservices/data/RulePredicates.java | 3 ++- .../java/microsoft/exchange/webservices/data/RuleProperty.java | 3 ++- .../microsoft/exchange/webservices/data/SafeXmlDocument.java | 3 ++- .../microsoft/exchange/webservices/data/SafeXmlFactory.java | 3 ++- .../microsoft/exchange/webservices/data/SafeXmlSchema.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Schema.java | 3 ++- .../java/microsoft/exchange/webservices/data/SearchFilter.java | 3 ++- .../java/microsoft/exchange/webservices/data/SearchFolder.java | 3 ++- .../exchange/webservices/data/SearchFolderParameters.java | 3 ++- .../exchange/webservices/data/SearchFolderSchema.java | 3 ++- .../exchange/webservices/data/SearchFolderTraversal.java | 3 ++- .../exchange/webservices/data/SendCancellationsMode.java | 3 ++- .../exchange/webservices/data/SendInvitationsMode.java | 3 ++- .../webservices/data/SendInvitationsOrCancellationsMode.java | 3 ++- .../microsoft/exchange/webservices/data/SendItemRequest.java | 3 ++- .../java/microsoft/exchange/webservices/data/Sensitivity.java | 3 ++- .../java/microsoft/exchange/webservices/data/ServiceError.java | 3 ++- .../exchange/webservices/data/ServiceErrorHandling.java | 3 ++- .../java/microsoft/exchange/webservices/data/ServiceId.java | 3 ++- .../exchange/webservices/data/ServiceLocalException.java | 3 ++- .../microsoft/exchange/webservices/data/ServiceObject.java | 3 ++- .../exchange/webservices/data/ServiceObjectDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/ServiceObjectInfo.java | 3 ++- .../webservices/data/ServiceObjectPropertyDefinition.java | 3 ++- .../webservices/data/ServiceObjectPropertyException.java | 3 ++- .../exchange/webservices/data/ServiceObjectSchema.java | 3 ++- .../microsoft/exchange/webservices/data/ServiceObjectType.java | 3 ++- .../exchange/webservices/data/ServiceRemoteException.java | 3 ++- .../exchange/webservices/data/ServiceRequestBase.java | 3 ++- .../exchange/webservices/data/ServiceRequestException.java | 3 ++- .../microsoft/exchange/webservices/data/ServiceResponse.java | 3 ++- .../exchange/webservices/data/ServiceResponseCollection.java | 3 ++- .../exchange/webservices/data/ServiceResponseException.java | 3 ++- .../microsoft/exchange/webservices/data/ServiceResult.java | 3 ++- .../exchange/webservices/data/ServiceValidationException.java | 3 ++- .../exchange/webservices/data/ServiceVersionException.java | 3 ++- .../webservices/data/ServiceXmlDeserializationException.java | 3 ++- .../webservices/data/ServiceXmlSerializationException.java | 3 ++- .../microsoft/exchange/webservices/data/SetRuleOperation.java | 3 ++- .../exchange/webservices/data/SetUserOofSettingsRequest.java | 3 ++- .../microsoft/exchange/webservices/data/SimplePropertyBag.java | 3 ++- .../exchange/webservices/data/SimpleServiceRequestBase.java | 3 ++- .../microsoft/exchange/webservices/data/SoapFaultDetails.java | 3 ++- .../microsoft/exchange/webservices/data/SortDirection.java | 3 ++- .../java/microsoft/exchange/webservices/data/StandardUser.java | 3 ++- .../webservices/data/StartTimeZonePropertyDefinition.java | 3 ++- .../exchange/webservices/data/StreamingSubscription.java | 3 ++- .../webservices/data/StreamingSubscriptionConnection.java | 3 ++- .../java/microsoft/exchange/webservices/data/StringList.java | 3 ++- .../exchange/webservices/data/StringPropertyDefinition.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Strings.java | 3 ++- .../microsoft/exchange/webservices/data/SubscribeRequest.java | 3 ++- .../microsoft/exchange/webservices/data/SubscribeResponse.java | 3 ++- .../webservices/data/SubscribeToPullNotificationsRequest.java | 3 ++- .../webservices/data/SubscribeToPushNotificationsRequest.java | 3 ++- .../data/SubscribeToStreamingNotificationsRequest.java | 3 ++- .../microsoft/exchange/webservices/data/SubscriptionBase.java | 3 ++- .../exchange/webservices/data/SubscriptionErrorEventArgs.java | 3 ++- .../java/microsoft/exchange/webservices/data/Suggestion.java | 3 ++- .../microsoft/exchange/webservices/data/SuggestionQuality.java | 3 ++- .../exchange/webservices/data/SuggestionsResponse.java | 3 ++- .../exchange/webservices/data/SuppressReadReceipt.java | 3 ++- .../exchange/webservices/data/SyncFolderHierarchyRequest.java | 3 ++- .../exchange/webservices/data/SyncFolderHierarchyResponse.java | 3 ++- .../exchange/webservices/data/SyncFolderItemsRequest.java | 3 ++- .../exchange/webservices/data/SyncFolderItemsResponse.java | 3 ++- .../exchange/webservices/data/SyncFolderItemsScope.java | 3 ++- .../java/microsoft/exchange/webservices/data/SyncResponse.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Task.java | 3 ++- .../exchange/webservices/data/TaskDelegationState.java | 3 ++- .../data/TaskDelegationStatePropertyDefinition.java | 3 ++- .../java/microsoft/exchange/webservices/data/TaskMode.java | 3 ++- .../java/microsoft/exchange/webservices/data/TaskSchema.java | 3 ++- .../java/microsoft/exchange/webservices/data/TaskStatus.java | 3 ++- .../java/microsoft/exchange/webservices/data/TasksFolder.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/Time.java | 3 ++- .../java/microsoft/exchange/webservices/data/TimeChange.java | 3 ++- .../exchange/webservices/data/TimeChangeRecurrence.java | 3 ++- .../java/microsoft/exchange/webservices/data/TimeSpan.java | 3 ++- .../exchange/webservices/data/TimeSpanPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/TimeSuggestion.java | 3 ++- .../java/microsoft/exchange/webservices/data/TimeWindow.java | 3 ++- .../exchange/webservices/data/TimeZoneConversionException.java | 3 ++- .../exchange/webservices/data/TimeZoneDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/TimeZonePeriod.java | 3 ++- .../exchange/webservices/data/TimeZonePropertyDefinition.java | 3 ++- .../exchange/webservices/data/TimeZoneTransition.java | 3 ++- .../exchange/webservices/data/TimeZoneTransitionGroup.java | 3 ++- .../microsoft/exchange/webservices/data/TokenCredentials.java | 3 ++- .../java/microsoft/exchange/webservices/data/TraceFlags.java | 3 ++- .../exchange/webservices/data/TypedPropertyDefinition.java | 3 ++- .../microsoft/exchange/webservices/data/UnifiedMessaging.java | 3 ++- .../java/microsoft/exchange/webservices/data/UniqueBody.java | 3 ++- .../exchange/webservices/data/UnsubscribeRequest.java | 3 ++- .../exchange/webservices/data/UpdateDelegateRequest.java | 3 ++- .../exchange/webservices/data/UpdateFolderRequest.java | 3 ++- .../exchange/webservices/data/UpdateFolderResponse.java | 3 ++- .../exchange/webservices/data/UpdateInboxRulesException.java | 3 ++- .../exchange/webservices/data/UpdateInboxRulesRequest.java | 3 ++- .../exchange/webservices/data/UpdateInboxRulesResponse.java | 3 ++- .../microsoft/exchange/webservices/data/UpdateItemRequest.java | 3 ++- .../exchange/webservices/data/UpdateItemResponse.java | 3 ++- .../webservices/data/UpdateUserConfigurationRequest.java | 3 ++- .../microsoft/exchange/webservices/data/UserConfiguration.java | 3 ++- .../exchange/webservices/data/UserConfigurationDictionary.java | 3 ++- .../data/UserConfigurationDictionaryObjectType.java | 3 ++- .../exchange/webservices/data/UserConfigurationProperties.java | 3 ++- src/main/java/microsoft/exchange/webservices/data/UserId.java | 3 ++- .../microsoft/exchange/webservices/data/UserSettingError.java | 3 ++- .../microsoft/exchange/webservices/data/UserSettingName.java | 3 ++- .../java/microsoft/exchange/webservices/data/ViewBase.java | 3 ++- .../exchange/webservices/data/WSSecurityBasedCredentials.java | 3 ++- .../java/microsoft/exchange/webservices/data/WaitHandle.java | 3 ++- .../exchange/webservices/data/WebAsyncCallStateAnchor.java | 3 ++- .../java/microsoft/exchange/webservices/data/WebClientUrl.java | 3 ++- .../exchange/webservices/data/WebClientUrlCollection.java | 3 ++- .../microsoft/exchange/webservices/data/WebCredentials.java | 3 ++- .../exchange/webservices/data/WebExceptionStatus.java | 3 ++- .../java/microsoft/exchange/webservices/data/WebProxy.java | 3 ++- .../exchange/webservices/data/WebProxyCredentials.java | 3 ++- .../exchange/webservices/data/WellKnownFolderName.java | 3 ++- .../exchange/webservices/data/WindowsLiveCredentials.java | 3 ++- .../java/microsoft/exchange/webservices/data/WorkingHours.java | 3 ++- .../microsoft/exchange/webservices/data/WorkingPeriod.java | 3 ++- .../microsoft/exchange/webservices/data/XmlAttributeNames.java | 3 ++- .../microsoft/exchange/webservices/data/XmlDtdException.java | 3 ++- .../microsoft/exchange/webservices/data/XmlElementNames.java | 3 ++- .../java/microsoft/exchange/webservices/data/XmlException.java | 3 ++- .../java/microsoft/exchange/webservices/data/XmlNameTable.java | 3 ++- .../java/microsoft/exchange/webservices/data/XmlNamespace.java | 3 ++- .../java/microsoft/exchange/webservices/data/XmlNodeType.java | 3 ++- .../exchange/webservices/data/util/DateTimeParser.java | 3 ++- .../java/microsoft/exchange/webservices/data/BaseTest.java | 3 ++- .../microsoft/exchange/webservices/data/EmailAddressTest.java | 3 ++- .../microsoft/exchange/webservices/data/EwsUtilitiesTest.java | 3 ++- .../webservices/data/ExtendedPropertyCollectionTest.java | 3 ++- .../exchange/webservices/data/GetUserSettingsRequestTest.java | 3 ++- .../microsoft/exchange/webservices/data/PropertyBagTest.java | 3 ++- .../java/microsoft/exchange/webservices/data/TaskTest.java | 3 ++- .../java/microsoft/exchange/webservices/data/TimeSpanTest.java | 3 ++- .../webservices/data/UserConfigurationDictionaryTest.java | 3 ++- .../exchange/webservices/data/util/DateTimeParserTest.java | 3 ++- 594 files changed, 1188 insertions(+), 594 deletions(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java index e2c8dfba9..73d61aa35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDateTransition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java index 488023271..f38d2df7e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteDayOfMonthTransition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java index bbd4dac5e..bc8a88632 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbsoluteMonthTransition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java index e34ca8900..537e72e79 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractAsyncCallback.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java index 8f6ce5a7c..9b0b05333 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractFolderIdWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java index cce3c7e03..667f1cbc2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/AbstractItemIdWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java index 203e3fe13..2057abea0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/AcceptMeetingInvitationMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java index fb447c901..363835c25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AccountIsLockedException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java index b20b17d7e..3f1621c07 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AddDelegateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java index 19a41b3ac..6cc87026b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/AffectedTaskOccurrence.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java index d0f38a620..b68a5166f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AggregateType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AggregateType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java index 94ab6cd58..c1e0b2591 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java index 31f7a941a..ef71229fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateIdBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java index 7f9735254..7f8e5a2ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailbox.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java index 0b02e97c4..d61221fcb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternateMailboxCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java index 99265bbf8..561031a79 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java index 915677978..35ea7368c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AlternatePublicFolderItemId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java index d28c765b4..ce2eeea80 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ApplyConversationActionRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Appointment.java b/src/main/java/microsoft/exchange/webservices/data/Appointment.java index 504de7577..609a64c32 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Appointment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Appointment.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java index 00bfff81b..c087ebf29 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentOccurrenceId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java index 0e6cf3f2c..3fc7756b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java index e1492951c..2dc3d5095 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AppointmentType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java index 56aecb590..9e2deebe5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java index 687d0c97c..113cb55b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentNullException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java index 53860b6f9..af8a1538e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ArgumentOutOfRangeException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java index 53adda5c3..a1bb48142 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallback.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java index ea1c8944a..f26bf535d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncCallbackImplementation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java index 95b8d3f2d..a40bed43c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncExecutor.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java index 21afed3c7..4be27b950 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/AsyncRequestResult.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachable.java b/src/main/java/microsoft/exchange/webservices/data/Attachable.java index ccbf577a0..3dc4921e3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachable.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachable.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attachment.java b/src/main/java/microsoft/exchange/webservices/data/Attachment.java index 2e01fd9e7..04bec2c4d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attachment.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java index d9419742c..929beb2ad 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java index 213cb36a8..d497223ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttachmentsPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Attendee.java b/src/main/java/microsoft/exchange/webservices/data/Attendee.java index 99d0326ff..663d16a27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Attendee.java +++ b/src/main/java/microsoft/exchange/webservices/data/Attendee.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java index 0a80329b5..3c47ef545 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeAvailability.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java index c796f47b9..d501cdf11 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java index c75ac5fd9..ed02544c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/AttendeeInfo.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java index b0824171f..f5c3197d9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverDnsClient.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java index 796b05cc3..0747ae148 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverEndpoints.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java index 74719623a..ddd8ed98d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java index 2104327a0..14d0b8d13 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverErrorCode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java index e4c289179..7ac36ccf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverLocalException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java index e5cf5f2ac..d92d98ad6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRemoteException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java index 8971c8ee6..bcd5c06dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java index c6f2b14b6..b398d685e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java index d461235bf..8f4f9d5c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java index 607ef37b3..8e8186547 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java index 18a396fa9..800b0bb1c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverResponseType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java index 00a4b0911..f97c958ec 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java +++ b/src/main/java/microsoft/exchange/webservices/data/AutodiscoverService.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java index 1a91c1d8b..d1d2088be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityData.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java index 1b8d571fc..ad448664c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java +++ b/src/main/java/microsoft/exchange/webservices/data/AvailabilityOptions.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64.java b/src/main/java/microsoft/exchange/webservices/data/Base64.java index 9620b1c84..6438027d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java index b45e83581..3ef2e74bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/Base64EncoderStream.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Vector; diff --git a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java index a32715bf4..8d3242918 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/BasePropertySet.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BodyType.java b/src/main/java/microsoft/exchange/webservices/data/BodyType.java index eff9b196e..45a1423b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BodyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/BodyType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java index 12789a8eb..de89b68ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/BoolPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java index 310f91ce8..93c1a3a10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayArray.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java index 22b3c689f..f56fe6faf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayOSRequestEntity.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java index fe516ab11..f1caa301e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ByteArrayPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java index e1587aac0..6dd1f08ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarActionResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java index a9d98fadc..f93c67c8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEvent.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java index 055c1a60b..5419dcc93 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarEventDetails.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java index c94d5848a..666f7bd68 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarFolder.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java index 5b7a16e43..352ec02a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java index 4ebd86b8c..9b4356169 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseMessageBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java index b50be199f..ba9b5a0ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java index 0f26bf9c1..be624d7a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CalendarView.java +++ b/src/main/java/microsoft/exchange/webservices/data/CalendarView.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java index 560f9d3fd..89ca0dcaa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java +++ b/src/main/java/microsoft/exchange/webservices/data/CallableMethod.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.IOException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Callback.java b/src/main/java/microsoft/exchange/webservices/data/Callback.java index 5cb278bbf..c500ef511 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Callback.java +++ b/src/main/java/microsoft/exchange/webservices/data/Callback.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java index aca754b91..3ece85cf8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java index 8f8aef52a..1c3433727 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/CancelMeetingMessageSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Change.java b/src/main/java/microsoft/exchange/webservices/data/Change.java index 51250d872..93b2301a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Change.java +++ b/src/main/java/microsoft/exchange/webservices/data/Change.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java index 64c0a543e..f043430a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java index 13f6e6f31..73f3f3c16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ChangeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ChangeType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java index 5ffa2d4ad..6650cc148 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComparisonMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java index ffa74bafe..35433969c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CompleteName.java +++ b/src/main/java/microsoft/exchange/webservices/data/CompleteName.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java index f78426a82..badf25f93 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexFunctionDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; interface ComplexFunctionDelegate { diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java index a91091bd3..c4789dfbc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java index 64d09eae2..a95ed5fe6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java index bc4a71bc1..0542e836d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java index af2c55119..0acbe8344 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ComplexPropertyDefinitionBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java index 55f7379ac..29632d7ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConfigurationSettingsBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.net.URI; diff --git a/src/main/java/microsoft/exchange/webservices/data/Conflict.java b/src/main/java/microsoft/exchange/webservices/data/Conflict.java index c83c148fe..53c992f4a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conflict.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conflict.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java index 93c88ead6..49cc70ba5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictResolutionMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java index e20dcc68f..566e648a3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConflictType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConflictType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java index aa1339068..5246f7a00 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectingIdType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java index 006c11023..dbfa2e09b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConnectionFailureCause.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Contact.java b/src/main/java/microsoft/exchange/webservices/data/Contact.java index 0b1aee6ab..7603654c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Contact.java +++ b/src/main/java/microsoft/exchange/webservices/data/Contact.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.File; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java index d735420f2..1314f8411 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroup.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java index 07e9aa1a7..b22fe8157 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactGroupSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java index 5b000eaea..337045be5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java index b5b20f1df..34d1f57c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactSource.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactSource.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java index afc4c0cc6..640d9432e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContactsFolder.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java index d25ae89a4..db93b3b3d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainedPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java index b86d3c2c2..e26106bb0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/ContainmentMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Conversation.java b/src/main/java/microsoft/exchange/webservices/data/Conversation.java index 622c46100..0043410d6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Conversation.java +++ b/src/main/java/microsoft/exchange/webservices/data/Conversation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java index 802080dd6..2ffc29df9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationAction.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java index 6ae8c9395..03c74cb51 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationActionType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java index a0fe42ba9..116e9e532 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationFlagStatus.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java index 3c53cc769..8fd1e66f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java index 25837b96f..dc07781ef 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationIndexedItemView.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java index 6be368a8c..fe15b76ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConversationSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java index 537e51bd9..15da801ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java index 48a7b2651..c721349e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ConvertIdResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java index 5a3f7c3c2..f913ae854 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java index 54435c143..2da9d771e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CopyItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java index 5147e019d..bf4ddca8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java index 05e62ea66..f2f03b069 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java index b30296411..f4e07af54 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateAttachmentResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java index 354cf6b2e..8147b70b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java index 3f7c42ed0..0dc214ed1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateFolderResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java index 8f3544d95..b56e4744e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java index 5fcdf2a1a..7a3f63098 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java index b278271ea..d1d33eaf9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java index 4020551de..a324aef92 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateItemResponseBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java index 665809cf0..a80f77343 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java index 71a1c0a0a..0cdb8495e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java index 5ff95444c..74a300780 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateResponseObjectResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java index 6ef968f62..c2237892b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateRuleOperation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java index 5a2e8d076..42bce9292 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/CreateUserConfigurationRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java index 1035818d3..c3cc5bd3d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/CredentialConstants.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; //These constants needs to be defined as per user configurations. diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java index 6e48061f0..06fce65f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePrecision.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java index a3b81f878..fea5e4f6b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DateTimePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java index b7dd0073f..411ebd9b7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeek.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java index d4331f69c..e972a157a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java index e3d17a09c..e4fb12480 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/DayOfTheWeekIndex.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java index afbbcb18f..343b023ee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeclineMeetingInvitationMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java index 9adf5f854..fd20710be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/DefaultExtendedPropertySet.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java index 91d7652d7..17a3e8185 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateFolderPermissionLevel.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java index f4e5d08d7..a0106c570 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateInformation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java index 246ad018d..85b19b338 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java index 6c3a735d4..b7fa07212 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateManagementResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java index 15fc1b8cf..bb83077a8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegatePermissions.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java index 7e2f3ffbe..2e7c8e718 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUser.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java index ce61443ad..ec40fb2fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DelegateUserResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java index 45cbef252..35299a81b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java index f2456a18b..b5450eb4e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java index b049c74ef..1db9fe03c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteAttachmentResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java index 4b214082d..fb7c80a0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java index de8bea500..b2efb2109 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java index 85ba834f7..2d6de5b65 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java index d52dd5e18..4de4a59fa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java index 50b1c7e57..79a38ef0a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteRuleOperation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java index 5bd2346ba..9e8c4feee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeleteUserConfigurationRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java index ccb45bf1f..5bc47c906 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfo.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java index ccb2940e0..0c3495454 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/DeletedOccurrenceInfoCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java index 525db2f6f..57a674d55 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryEntryProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java index df54c8904..09a05d308 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/DictionaryProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java index d70816d9b..925a5124a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/DisconnectPhoneCallRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java index 13265a53b..a831c885d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsClient.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsClient.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.naming.NamingEnumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsException.java b/src/main/java/microsoft/exchange/webservices/data/DnsException.java index 6b66d0c70..04c1ddb7d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsException.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java index e323efff1..aa96ed872 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecord.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java index 36c22df42..5158817ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsRecordType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java index 91051c457..d19c8ae27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java +++ b/src/main/java/microsoft/exchange/webservices/data/DnsSrvRecord.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.NoSuchElementException; diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java index 86c688783..b9da2d62d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java index 94464da4f..7c5f5988e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/DomainSettingName.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java index 3741d9963..d6e9caf5a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/DoublePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java index b0bcf07d2..b2812beca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSConstants.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java index 50bb98da2..c7725649c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java +++ b/src/main/java/microsoft/exchange/webservices/data/EWSHttpException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java index cc15c6886..78b54bcfe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsable.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java index 5cd9d571b..36fd2b600 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java +++ b/src/main/java/microsoft/exchange/webservices/data/EditorBrowsableState.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java index ddf7d261a..df2e058a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRights.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java index 6975bf12f..3080ed2a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/EffectiveRightsPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java index 8f40aa5e0..d20dc1f61 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddress.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java index fe9f3fe60..bf1f8b01c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java index acd687d0f..ebdf8525c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressDictionary.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java index 1100a27fc..833f3073e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressEntry.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java index 321fe025c..02d4b2c06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailAddressKey.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java index 7a85793cd..228e3a2e2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java index b834bbb13..dd1232946 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmailMessageSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java index b5169a9f8..2a0ef1c9a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/EmptyFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java index 9f2bc994d..58aa4ea19 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/EndDateRecurrenceRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/EventType.java b/src/main/java/microsoft/exchange/webservices/data/EventType.java index e5924410b..7aadbba25 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EventType.java +++ b/src/main/java/microsoft/exchange/webservices/data/EventType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java index ea88f60ad..c87b1eff3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsEnum.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java index eca19ff3f..b81f87d84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsSSLProtocolSocketFactory.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java index 96eaa272a..19ec9c453 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceMultiResponseXmlReader.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLEventReader; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java index 08d5ad579..7db3645cd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlReader.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java index b7c289fc8..b8c837c9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsServiceXmlWriter.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.w3c.dom.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java index 35ca73b70..7d9ae9eb0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsTraceListener.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java index 362c71715..69de7132c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.ByteArrayInputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java index 13097070e..a0230451a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsX509TrustManager.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java index 8cc5d592c..08b944f0e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java +++ b/src/main/java/microsoft/exchange/webservices/data/EwsXmlReader.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.namespace.QName; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java index 0ce395c9b..17e7a8b74 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java index 3b4b593c0..6e66d6429 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServerInfo.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java index bb1c973c7..79e0a193b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeService.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 8842bc2ff..68c2d823c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.http.client.protocol.HttpClientContext; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java index 05d4e0388..a842e48fe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeVersion.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java index 294963b7e..2398beed7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.w3c.dom.Node; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java index dee8062fa..d7f4286de 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExecuteDiagnosticMethodResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.w3c.dom.Document; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java index f93cc62a7..4e2eb059b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java index dc66b2c1f..e921905c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java index f6f06d85e..37b9e149d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExpandGroupResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java index 571edb844..2ae887280 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java index 8a6508015..db0792201 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java index e9214a951..e1ccd6fc6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExtendedPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java index 25e1c38ef..78c120ead 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAsMapping.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java index 1e57c8140..0e94c741b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/FileAttachment.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java index d1562dd3f..ee0b02a84 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java index 9e0441c63..ae644c9e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindConversationResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java index 302f85f7e..192ad2ccc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java index b4a11fcca..daa195627 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFolderResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java index cf84e3c94..8f302ed06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindFoldersResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java index bdcf4170a..0ce765103 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java index 53ca0e4af..e5e4f4000 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java index c3df81dc9..d27868d0b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindItemsResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java index b26227530..7888fd05b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FindRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/FindRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java index 55ee8f3ca..08f091dac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/FlaggedForAction.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Flags.java b/src/main/java/microsoft/exchange/webservices/data/Flags.java index e83bc5a1c..56b5b930b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Flags.java +++ b/src/main/java/microsoft/exchange/webservices/data/Flags.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/Folder.java b/src/main/java/microsoft/exchange/webservices/data/Folder.java index 781fc9839..168a4072d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Folder.java +++ b/src/main/java/microsoft/exchange/webservices/data/Folder.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java index 87196c728..6de728ee4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderChange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java index f6483b97f..3b42ec36a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderEvent.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderId.java b/src/main/java/microsoft/exchange/webservices/data/FolderId.java index bc88d6c5e..3377dc90e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderId.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java index 7fd72c015..905bfb0ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java index d4a82e34e..682f15dc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java index 1e69ba601..85254bc24 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderIdWrapperList.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java index 4de0b16f4..8d621242c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermission.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java index fb2b22991..42ceb2771 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java index 0f2439ac4..89ff28de5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionLevel.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; //TODO : Do we want to include more information about diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java index 191ff2b8a..bd3e921f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderPermissionReadAccess.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java index 004e055d4..7bde6abcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java index b4ca3f369..5cc32a1e0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderTraversal.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderView.java b/src/main/java/microsoft/exchange/webservices/data/FolderView.java index 1e95fe3a9..93a3bb7be 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderView.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderView.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java index 0b36a5dc3..4d35fe48a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/FolderWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FormatException.java b/src/main/java/microsoft/exchange/webservices/data/FormatException.java index df55f88fb..16d4249ff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FormatException.java +++ b/src/main/java/microsoft/exchange/webservices/data/FormatException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java index e30dd1504..f9c6e71f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java +++ b/src/main/java/microsoft/exchange/webservices/data/FreeBusyViewType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java index f3f57f62f..a315865e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericItemAttachment.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java index 03f26eab5..838792443 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GenericPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.text.ParseException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java index 6795300dd..88c36f582 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java index b7079bf3a..d785094e5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetAttachmentResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java index 6d2c44fb4..8329f9877 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java index ec449a91b..846175151 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDelegateResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java index 4958b2010..5a4a084f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java index 373aa3995..0c5de32cb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java index 5069f4942..b8f58f2c4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetDomainSettingsResponseCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java index 9db0117fe..83eaf4ef1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java index 425b46fca..fa5473354 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java index 4e154a6ee..9a83e7e94 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetEventsResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java index 29b457f82..3e02b3f86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java index 601cbc3eb..527743cde 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java index dd57b7a27..31e419680 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderRequestForLoad.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java index 9a14b0e53..b14d48caf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetFolderResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java index a3960b936..c1beb58d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java index f9451bbb8..3db73876f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetInboxRulesResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java index 7a9beb148..df8bca42b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java index 3495f9952..2cbcf3d0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java index 3aaca2902..a269289b6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemRequestForLoad.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java index c2c903cb1..58048a739 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetItemResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java index 9a3d23efe..97c1ab316 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java index 2bb96ffa9..b621e0361 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPasswordExpirationDateResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java index 5d3948d83..a404886eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java index f3719c821..51aa85c8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetPhoneCallResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java index e7de39273..516bac8c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java index 0ea357717..4d7401090 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java index 4e8f39dee..d9cde193b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomListsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java index cb5c44670..0a617b3c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java index e3f09bd36..d4d3d8307 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetRoomsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java index 7e4694c43..e32182dbf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java index d6b263274..4dea2beae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetServerTimeZonesResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java index b47206eee..ab3ffc64d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java index c77284ec9..67375fd83 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java index 8f2ad9091..ba98bf549 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetStreamingEventsResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java index 0556a9e70..1c1a6fde3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java index 33c1abcaf..b63a95858 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserAvailabilityResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Collection; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java index eabd921de..adcd8536b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java index 321c28b5a..29aae0fae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserConfigurationResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java index 2fc2ee61a..e4a21cc68 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java index f214a33dd..c465e56f9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserOofSettingsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java index d2e70e7c0..db241ac31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java index 77418e2ea..139b8efc1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java index 74aa73205..a7795c241 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GetUserSettingsResponseCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java index 3a9318160..cf8f7a28e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMember.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java index 0a2308fa7..0cc35baeb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java index 275b2940f..9e447cd23 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupMemberPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java index 0c3b4ae62..77f76680a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java +++ b/src/main/java/microsoft/exchange/webservices/data/GroupedFindItemsResults.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/Grouping.java b/src/main/java/microsoft/exchange/webservices/data/Grouping.java index 636817c12..98a69aac5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Grouping.java +++ b/src/main/java/microsoft/exchange/webservices/data/Grouping.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java index 57e1d2458..5d106597b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingServiceRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java index e48afe4d6..e1adde4a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java +++ b/src/main/java/microsoft/exchange/webservices/data/HangingTraceStream.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java index 9739539b7..ba543cdb5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpClientWebRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.http.Header; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java index dd5257394..8bcf55ff9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpErrorException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; diff --git a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java index 365626246..4318aaeff 100644 --- a/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/HttpWebRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.http.HttpException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAction.java b/src/main/java/microsoft/exchange/webservices/data/IAction.java index fe8133db8..38591ba99 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAction.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java index ba1e3631a..4f89a2e06 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAsyncResult.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.concurrent.Future; diff --git a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java index f3db15f37..5a396e6b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/IAutodiscoverRedirectionUrl.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java index 16b37ee49..5488b2679 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICalendarActionProvider.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java index 005b24997..b3c98adcd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChanged.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java index 7b632ae00..485e561e9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IComplexPropertyChangedDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java index 4f3a150c9..25121e4e6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateComplexPropertyDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java index 67d125460..cfb78a76e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithAttachmentParam.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java index 6b626825e..283700998 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICreateServiceObjectWithServiceParam.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java index f1e67c03b..c3032efc3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlSerialization.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamWriter; diff --git a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java index 08c85b7b4..56afa78fd 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java +++ b/src/main/java/microsoft/exchange/webservices/data/ICustomXmlUpdateSerializer.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java index 8a4f8778a..ebaa034f7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDateTimePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java index e65367588..ea05b3046 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IDisposable.java +++ b/src/main/java/microsoft/exchange/webservices/data/IDisposable.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java index 3cc8b0099..abb82544c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFileAttachmentContentHandler.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.OutputStream; diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunc.java b/src/main/java/microsoft/exchange/webservices/data/IFunc.java index 219bffae3..de76887a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunc.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunc.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java index 38b11fe7e..891e9563f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFuncDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunction.java b/src/main/java/microsoft/exchange/webservices/data/IFunction.java index 2b1f9f798..15653e0ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunction.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunction.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java index 29d0acb1a..29225d818 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IFunctionDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java index c4f5248c5..bd54eac8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetObjectInstanceDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java index a299ee4c2..f1ee34f16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java +++ b/src/main/java/microsoft/exchange/webservices/data/IGetPropertyDefinitionCallback.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java index e760a230e..ad18809e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/ILazyMember.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java index e35b8a366..675a49b7d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/IOwnedProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java index 0b5348e4a..a937c1fae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPredicate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPredicate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java index a88ea6ea5..ef5690798 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IPropertyBagChangedDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java index 54044f22f..3c49bb9da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISearchStringProvider.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java index 461a769de..e1e82e205 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java +++ b/src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java index 0000bdcea..74f3f41f5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java +++ b/src/main/java/microsoft/exchange/webservices/data/IServiceObjectChangedDelegate.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java index babcb2843..c728f5dac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java +++ b/src/main/java/microsoft/exchange/webservices/data/ITraceListener.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java index 5851ee90c..4a86f719b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IdFormat.java +++ b/src/main/java/microsoft/exchange/webservices/data/IdFormat.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java index 0a9492ea0..092de10e7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressDictionary.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java index 93918bed3..3a3da4900 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressEntry.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java index b262b0111..93998e38a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImAddressKey.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java index 63cda7991..080233268 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ImpersonatedUserId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Importance.java b/src/main/java/microsoft/exchange/webservices/data/Importance.java index 88b920a26..6c2733ae7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Importance.java +++ b/src/main/java/microsoft/exchange/webservices/data/Importance.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java index 2cd75d2ef..41d830dbc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IndexedPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java index 1f4ff6885..ced9aad91 100644 --- a/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/IntPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java index 4f11c0d8b..9f7d95f7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeader.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java index 911df8a1b..401f28382 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/InternetMessageHeaderCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java index bf3573e78..0cd3c36df 100644 --- a/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/InvalidOperationException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Item.java b/src/main/java/microsoft/exchange/webservices/data/Item.java index 91b353c8b..9e15c7c7f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Item.java +++ b/src/main/java/microsoft/exchange/webservices/data/Item.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java index 61d587b18..36936b471 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemAttachment.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java index c887a2542..1f5141983 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemChange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java index efff751a6..b8e06480d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java index 08391c052..074c48fee 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemEvent.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java index f9bfdaaf6..39ded35d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemGroup.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemId.java b/src/main/java/microsoft/exchange/webservices/data/ItemId.java index ec1968a73..c5da0fe31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java index 91176935f..1a5cdbd93 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java index 9e920a20d..51cf59f16 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java index d8f8a082a..a4c465c5e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemIdWrapperList.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java index 700966773..242222832 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java index da38f6493..9de38b0d3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemTraversal.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemView.java b/src/main/java/microsoft/exchange/webservices/data/ItemView.java index ebc6c3643..e0c868bb7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemView.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemView.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java index ae6738dc2..cdb9811c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java +++ b/src/main/java/microsoft/exchange/webservices/data/ItemWrapper.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java index bc97d11c6..bf4652044 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LazyMember.java +++ b/src/main/java/microsoft/exchange/webservices/data/LazyMember.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java index a12ebd623..9470e21a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZone.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.UUID; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java index 8a04b4794..202ff6424 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyAvailabilityTimeZoneTime.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java index 83a04bbf6..769b0dff8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/LegacyFreeBusyStatus.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java index 36df9a61d..0ead7e5a7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java +++ b/src/main/java/microsoft/exchange/webservices/data/LogicalOperator.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java index ef6c5c2b7..44a693af9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Mailbox.java +++ b/src/main/java/microsoft/exchange/webservices/data/Mailbox.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java index 6fd7c65a1..67aca35b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MailboxType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MailboxType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java index 67d906261..bfde6bec1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ManagedFolderInformation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java index f7f188dc3..b013ae6aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiPropertyType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java index 5b9bc2be8..52611725a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverter.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java index aff543cbd..388c90f2f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMap.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java index 069488e95..f558027a9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/MapiTypeConverterMapEntry.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.text.DateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java index cd5fc0b85..d6aa2ffd0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingAttendeeType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java index c7c0f1da4..9d3795e81 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingCancellation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java index 83ee5f49a..87e9701b5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java index eda8699be..3bf816e5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingMessageSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java index f48460343..ff6c0df5d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java index 670c9462e..c4bc301d2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java index ade1c4723..82b582e10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java index b6aac733b..55c44615a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingRequestsDeliveryScope.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java index 78ddc32d9..f7b566a27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java index ac3108697..5407999c9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingResponseType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java index 396dc82e0..92e909740 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZone.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java index f3f511915..6a31ec04f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MeetingTimeZonePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java index 1cfb0313e..075b5f3ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/MemberStatus.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java index b6d421b45..452afaeb5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageBody.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java index 6700b23e0..0a7f88088 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java +++ b/src/main/java/microsoft/exchange/webservices/data/MessageDisposition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java index 79076a3a7..22007487c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MimeContent.java +++ b/src/main/java/microsoft/exchange/webservices/data/MimeContent.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java index d8e9b6aee..8dfccbc42 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java +++ b/src/main/java/microsoft/exchange/webservices/data/MobilePhone.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Month.java b/src/main/java/microsoft/exchange/webservices/data/Month.java index 9f1520b7a..53a55dd71 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Month.java +++ b/src/main/java/microsoft/exchange/webservices/data/Month.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java index a7856c6c4..db552c7c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java index 680467f38..c813eab74 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyFolderResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java index 704633587..9ec50f6f7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java index 4b1be7050..11f5a6f5c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyItemResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java index b0cf8efbe..29ae80e4c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveCopyRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java index 4f9c7465b..1671a8f9b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java index b3a6d0412..595b2a322 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MoveItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java index b985a58c9..c4903f97e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/MultiResponseServiceRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java index c14864b10..466a3702a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolution.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolution.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java index 71d017655..3cf357dc9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/NameResolutionCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java index e9caff1a1..eca91b16e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NoEndRecurrenceRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java index e55a89d2d..50a5e821b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotSupportedException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class NotSupportedException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java index c352a4755..b970dcbca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEvent.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java index e80a86ca5..e145f5a57 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/NotificationEventArgs.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java index 813a56488..6967c7466 100644 --- a/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/NumberedRecurrenceRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java index 942ec7987..51df6c7ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfo.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java index ffebd0d46..e568c7c8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OccurrenceInfoCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java index 028649743..6de2bc343 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java +++ b/src/main/java/microsoft/exchange/webservices/data/OffsetBasePoint.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java index 1113330fc..5f7e7f576 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofExternalAudience.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OofReply.java b/src/main/java/microsoft/exchange/webservices/data/OofReply.java index 48171887c..c3904e85e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofReply.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java index d9242abc3..75ecff902 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofSettings.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OofState.java b/src/main/java/microsoft/exchange/webservices/data/OofState.java index f1564b4d3..59c4c3101 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OofState.java +++ b/src/main/java/microsoft/exchange/webservices/data/OofState.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java index af680f741..646dd0b8f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/OrderByCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutParam.java b/src/main/java/microsoft/exchange/webservices/data/OutParam.java index 966a3ec32..ac3b2cc27 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutParam.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java index 8e4cb861a..d726689fc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookAccount.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java index 0c8c5fd3e..8ff6c18c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookConfigurationSettings.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java index 2bcfb4f9c..6576a12d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocol.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java index ee4824087..7a857bf17 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookProtocolType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java index d05f7e68d..31e4bfcc7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/OutlookUser.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/PagedView.java b/src/main/java/microsoft/exchange/webservices/data/PagedView.java index b8faacdae..0da8ca334 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PagedView.java +++ b/src/main/java/microsoft/exchange/webservices/data/PagedView.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/Param.java b/src/main/java/microsoft/exchange/webservices/data/Param.java index 18a95f385..c712c91a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Param.java +++ b/src/main/java/microsoft/exchange/webservices/data/Param.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java index c2e09452c..6804f6fd2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionCollectionPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java index 7d9f00e9d..9ffedc37b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/PermissionScope.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java index fc2d53e68..12ca7f23f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCall.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java index 5a5417ae5..e14bd145f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java index 8274d20f5..6341914b2 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneCallState.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java index bae3999f1..7f4bbffa5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberDictionary.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java index 22d7e09c2..997210d5f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberEntry.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java index bac3915e1..ff9511f1d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhoneNumberKey.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java index 0d415c976..960017196 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressDictionary.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java index 881379c04..7ddd3c45c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressEntry.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java index ffa39e179..a17e234bb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressIndex.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java index beaa5ebbf..b277f6873 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java +++ b/src/main/java/microsoft/exchange/webservices/data/PhysicalAddressKey.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java index be4fc64c8..720ac3d45 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java index dc962a8d9..f7b93d28b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/PlayOnPhoneResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItem.java b/src/main/java/microsoft/exchange/webservices/data/PostItem.java index 9a358bc5b..14191dd48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItem.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItem.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java index 18087ccd3..f3e4ab46d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostItemSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReply.java b/src/main/java/microsoft/exchange/webservices/data/PostReply.java index 10c547060..9774a7b4f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReply.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReply.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java index 427390e97..63e778a35 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/PostReplySchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java index 3a3e9388e..50379bc8c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyBag.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java index 0c9778008..fe75eb7c5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java index b2e4e7223..6f5b13f2f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java index d3e9d8824..49a9ae109 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyDefinitionFlags.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java index ca6856a6e..7c2cc40a0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertyException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java index 04738dcfd..62b6da830 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PropertySet.java +++ b/src/main/java/microsoft/exchange/webservices/data/PropertySet.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java index 470f304ed..c20a4f0ae 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java index 92e2cd89d..352c3ee36 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ProtocolConnectionCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java index 532809f2b..c42cf9128 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PullSubscription.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java index 4a6bd8047..0bd0ade9c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/PushSubscription.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java index c2b8463f2..269437a82 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Recurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/Recurrence.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java index c5f3131f1..145b1ec59 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrencePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java index 7b4f9bf83..fd48c43e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurrenceRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java index 0876558b5..6470b5ee4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java +++ b/src/main/java/microsoft/exchange/webservices/data/RecurringAppointmentMasterId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RefParam.java b/src/main/java/microsoft/exchange/webservices/data/RefParam.java index a2fa2032e..a70a603e4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RefParam.java +++ b/src/main/java/microsoft/exchange/webservices/data/RefParam.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java index 4d4be447b..07d98f492 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/RelativeDayOfMonthTransition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java index 648af5ce7..4a29189c6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveDelegateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java index 365582e07..f68bbf1b3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java +++ b/src/main/java/microsoft/exchange/webservices/data/RemoveFromCalendar.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.List; diff --git a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java index b797a645a..d4f9a07f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java +++ b/src/main/java/microsoft/exchange/webservices/data/RequiredServerVersion.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java index 07af892d0..d3dc7f0b4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNameSearchLocation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java index 317af7b82..2a3af8405 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.HashMap; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java index c158ad467..3fd5c4742 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResolveNamesResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java index 21cfda5b3..23f41fd7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseActions.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java index 1f7d04af7..2b772b96f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessage.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java index 055d38803..23a3a5336 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java index 5653ec760..480d41e7b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseMessageType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java index dd36913de..8dd904af7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObject.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java index b0e3cc14c..a6c9cb57c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java index 07ea633fd..6d06a1c8d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ResponseObjectsPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Rule.java b/src/main/java/microsoft/exchange/webservices/data/Rule.java index 9c18ed2b7..524452bbe 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Rule.java +++ b/src/main/java/microsoft/exchange/webservices/data/Rule.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java index 111a234ed..60700987a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleActions.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleActions.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java index 3d600df7b..a3c930abc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleError.java b/src/main/java/microsoft/exchange/webservices/data/RuleError.java index a2f378184..6ad551d7c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java index dd72faea9..67c2550a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java index 9f2739470..50b6be3ac 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleErrorCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java index 7518bb62d..2784d0cd9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java index af98f6530..601f769ed 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Iterator; diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java index bd3ed9157..d17deb1f1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleOperationErrorCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java index dc6c52715..255921cf7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateDateRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java index d4e29d747..cc4b3d239 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicateSizeRange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java index 17c0d9ca4..3f491a28c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java +++ b/src/main/java/microsoft/exchange/webservices/data/RulePredicates.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java index aeead6d44..f4fc9f7f8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java +++ b/src/main/java/microsoft/exchange/webservices/data/RuleProperty.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public enum RuleProperty { diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java index 8e54159c3..dc2581d92 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlDocument.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.w3c.dom.DOMImplementation; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java index 0bbb07c99..42ff8f5da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlFactory.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLInputFactory; diff --git a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java index 660c1279b..7e7bc6c2c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SafeXmlSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.bind.ValidationEventHandler; diff --git a/src/main/java/microsoft/exchange/webservices/data/Schema.java b/src/main/java/microsoft/exchange/webservices/data/Schema.java index 4eb7266f2..1e3027373 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Schema.java +++ b/src/main/java/microsoft/exchange/webservices/data/Schema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java index f10ead114..ad13f9568 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFilter.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java index 48fc9543f..b647e5b86 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolder.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java index 3786d0518..56c59a995 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderParameters.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java index 4932e7ab1..0b9d5e08d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java index c735f8b48..9a1cd0453 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java +++ b/src/main/java/microsoft/exchange/webservices/data/SearchFolderTraversal.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java index f8288bdb5..81872a015 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendCancellationsMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java index d7bd9179a..59b9961e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java index 2820667f0..297f87bab 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendInvitationsOrCancellationsMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java index 13c9ae6f3..50640fff3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SendItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java index b94de00c5..ce9aa2239 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java +++ b/src/main/java/microsoft/exchange/webservices/data/Sensitivity.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java index 3bcad13b3..c433a7a57 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceError.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java index bd0b832c2..af90a4be5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceErrorHandling.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java index 3829a40b2..7b47bdcdf 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceId.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java index 9dcf02ee1..d645bfd0d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceLocalException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java index 1fc41e862..294f4770e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObject.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java index c5dab384a..4faf84868 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.annotation.ElementType; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java index 1714cc294..9479286dc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectInfo.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java index f20910460..898d46c48 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java index e21c5e433..8cf479ec5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectPropertyException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java index eb6a49c5a..c5696ae7f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.lang.reflect.Field; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java index 3389387f8..3cffd2668 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceObjectType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java index 29771677b..d750e303e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRemoteException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java index a4b86a530..be67d066b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java index f47ee5174..2eb33326c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceRequestException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java index 526264372..e4e1f49aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java index 24933e54b..ea759e6e1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Enumeration; diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java index 8b918b3eb..0709b5feb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResponseException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java index b342fd32f..33c276937 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceResult.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java index f69edf9f5..2ca6b528a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceValidationException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java index 43cce66d3..87cecc64a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceVersionException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java index 7f598b83d..bf89e0d74 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlDeserializationException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java index 249a57cfc..dc142225b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java +++ b/src/main/java/microsoft/exchange/webservices/data/ServiceXmlSerializationException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java index b5d1039d1..2a5f50cd5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetRuleOperation.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java index 560d36d98..7248acf10 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SetUserOofSettingsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java index 0a082dfd5..c821a2940 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimplePropertyBag.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java index d88df76bb..475b33d08 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SimpleServiceRequestBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.apache.commons.logging.Log; diff --git a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java index 6c5a66f2e..402b4f433 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java +++ b/src/main/java/microsoft/exchange/webservices/data/SoapFaultDetails.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java index 838c79ab1..86f8c23a4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SortDirection.java +++ b/src/main/java/microsoft/exchange/webservices/data/SortDirection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java index dca7af23f..fb69899f6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StandardUser.java +++ b/src/main/java/microsoft/exchange/webservices/data/StandardUser.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java index 33e95d74a..17222b1c7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StartTimeZonePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java index f2127bfa5..b6ae63ccb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscription.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java index a1426d4dd..ff11be1bc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java +++ b/src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.io.Closeable; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringList.java b/src/main/java/microsoft/exchange/webservices/data/StringList.java index e9a26506e..c28b284f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringList.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringList.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java index 253de4c0b..86e12b2cc 100644 --- a/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/StringPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/Strings.java b/src/main/java/microsoft/exchange/webservices/data/Strings.java index 1272ae76a..2784374d7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Strings.java +++ b/src/main/java/microsoft/exchange/webservices/data/Strings.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public abstract class Strings { diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java index 2cfcbd159..5b93ecfc0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java index 9bab2dfbb..663dcf93a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java index 798d1bfd8..4e30dc908 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPullNotificationsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java index 34b665a36..9d49f2c88 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToPushNotificationsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java index 4864f5470..4c26254f4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscribeToStreamingNotificationsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java index 2e1bc123c..caca267b0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java index 818bda886..a8d945eca 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java +++ b/src/main/java/microsoft/exchange/webservices/data/SubscriptionErrorEventArgs.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java index 9f671b22a..ded1f2210 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Suggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/Suggestion.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java index 37facd516..8720e5c51 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionQuality.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java index c17d87ea7..bcee6a9aa 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java index 082437a35..4034ae446 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java +++ b/src/main/java/microsoft/exchange/webservices/data/SuppressReadReceipt.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java index f4c053225..2108f243f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java index 1f46be3c3..35f2575d1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderHierarchyResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java index ac00e49b0..c1bceee3e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java index 9059cea1a..130d1d939 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java index 150aa59da..3ff4e8cc7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncFolderItemsScope.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java index 3fe6af7ce..ae5c77e2b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/SyncResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Task.java b/src/main/java/microsoft/exchange/webservices/data/Task.java index 66896e39b..7dd19f9ce 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Task.java +++ b/src/main/java/microsoft/exchange/webservices/data/Task.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Date; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java index fd8f36d70..d749d7b26 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationState.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java index 045259279..ef18b486f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskDelegationStatePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java index edc3ef7f0..b00b2eae1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskMode.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskMode.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java index 48c47f2bf..026e7e158 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskSchema.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java index 053870c25..da1672405 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/TaskStatus.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java index ce2b366b6..808722039 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java +++ b/src/main/java/microsoft/exchange/webservices/data/TasksFolder.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/Time.java b/src/main/java/microsoft/exchange/webservices/data/Time.java index 2179dbf84..6fc19000d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/Time.java +++ b/src/main/java/microsoft/exchange/webservices/data/Time.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.Calendar; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java index ac71bbe1e..21447798e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChange.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChange.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.text.SimpleDateFormat; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java index 1fe26bb58..59a8bde89 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeChangeRecurrence.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java index a51c65c3f..61896a502 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpan.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java index 98d3f4c62..6cffb635c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSpanPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.EnumSet; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java index a16e19dab..e4f7ba583 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeSuggestion.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java index 060f22294..8fe5c784a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeWindow.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java index 7d20cab11..aa46635f3 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneConversionException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java index d8a98d822..06ef6c4a5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.*; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java index 776f3ee5e..7eac2c461 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePeriod.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java index fee38a481..dfffa23da 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZonePropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java index 5d6843f78..59cd85b4f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java index 405f65b28..3c0d075b9 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java +++ b/src/main/java/microsoft/exchange/webservices/data/TimeZoneTransitionGroup.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java index 224128017..9da802886 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/TokenCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.net.URISyntaxException; diff --git a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java index 458a58022..5125449f0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java +++ b/src/main/java/microsoft/exchange/webservices/data/TraceFlags.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java index 5301c2fda..a5c39ad7a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java +++ b/src/main/java/microsoft/exchange/webservices/data/TypedPropertyDefinition.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java index 86a89e98c..28ea42d3d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnifiedMessaging.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java index c0af434e6..f775fa291 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java +++ b/src/main/java/microsoft/exchange/webservices/data/UniqueBody.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java index 52eb432a1..9058f2414 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UnsubscribeRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java index ecb3f9b07..74897b4d5 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateDelegateRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java index b188e9bf9..18092cad4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java index 59831aca0..e7d2af906 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateFolderResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java index 75c62093b..b5a76f16a 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java index 7865457e1..d107595a6 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java index 33bb6235a..d16144d6b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateInboxRulesResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java index 26247d03c..b52417339 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java index 38b9aeba3..bca1d5b9f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateItemResponse.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java index 35174a904..1896d4e47 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java +++ b/src/main/java/microsoft/exchange/webservices/data/UpdateUserConfigurationRequest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java index cfba0d7a4..de41efc41 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java index 5ecab87ca..5b2d08ae7 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionary.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import microsoft.exchange.webservices.data.util.DateTimeParser; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java index b7e1a4ea3..db638b892 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryObjectType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java index b9307af9b..62653425f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserConfigurationProperties.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserId.java b/src/main/java/microsoft/exchange/webservices/data/UserId.java index de75cd0d6..15c710f17 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserId.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserId.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java index 3505293e9..d65ac0615 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingError.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java index 660724d2c..ad1bbf12c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java +++ b/src/main/java/microsoft/exchange/webservices/data/UserSettingName.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java index 84b26ba36..aa7c4972e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ViewBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ViewBase.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java index c12cb34ad..813aa413f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WSSecurityBasedCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamException; diff --git a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java index 5b1166398..afd32d6e8 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java +++ b/src/main/java/microsoft/exchange/webservices/data/WaitHandle.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class WaitHandle { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java index daa952bb3..f2ebca1c1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebAsyncCallStateAnchor.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class WebAsyncCallStateAnchor { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java index d3ece428c..be7af423c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrl.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java index d077c52b9..9e054ca69 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebClientUrlCollection.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java index fb76dfebf..7617f1c8e 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java index c3c581e54..cd3f3e212 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebExceptionStatus.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public enum WebExceptionStatus { diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java index 9eb95cb2e..6c4d5ad4b 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxy.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxy.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java index d2c65a96f..290e92dd1 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WebProxyCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class WebProxyCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java index 5a2cb68de..39146cfcb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java +++ b/src/main/java/microsoft/exchange/webservices/data/WellKnownFolderName.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java index eb0baf7ea..f42e1d1d0 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java +++ b/src/main/java/microsoft/exchange/webservices/data/WindowsLiveCredentials.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class WindowsLiveCredentials extends WSSecurityBasedCredentials { diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java index 6e9aed554..0b518af31 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingHours.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java index 00f7ee0f1..637086df4 100644 --- a/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java +++ b/src/main/java/microsoft/exchange/webservices/data/WorkingPeriod.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java index 6ca9af46b..6ad1dbd21 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlAttributeNames.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java index d06b81d9a..9801d8a6d 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlDtdException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java index 48d61cad5..7f6f0cced 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlElementNames.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlException.java b/src/main/java/microsoft/exchange/webservices/data/XmlException.java index dd28b8332..56714da1c 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlException.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlException.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; public class XmlException extends Exception { diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java index 88a031644..abbba8038 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNameTable.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java index 5a02859bd..e0fe58663 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNamespace.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; /** diff --git a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java index 84f27b843..adc1e94eb 100644 --- a/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java +++ b/src/main/java/microsoft/exchange/webservices/data/XmlNodeType.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import javax.xml.stream.XMLStreamConstants; diff --git a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java index 0993f0bc5..46d46e41f 100644 --- a/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java +++ b/src/main/java/microsoft/exchange/webservices/data/util/DateTimeParser.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data.util; import java.util.Date; diff --git a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java index afd2901bf..d0b9036bb 100644 --- a/src/test/java/microsoft/exchange/webservices/data/BaseTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/BaseTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.BeforeClass; diff --git a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java index 3505687f6..bb579ced5 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EmailAddressTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java index ddbcfbeaa..005c8e742 100644 --- a/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/EwsUtilitiesTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java index ab72b6b1d..c866f0b77 100644 --- a/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/ExtendedPropertyCollectionTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import java.util.ArrayList; diff --git a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java index d8a6d9294..b42a814b2 100644 --- a/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/GetUserSettingsRequestTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; diff --git a/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java index aad289331..95f097f8e 100644 --- a/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/PropertyBagTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.Test; diff --git a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java index 020efde0a..8c913683c 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TaskTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TaskTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.hamcrest.core.IsEqual; diff --git a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java index 0fbace496..e38e20e7e 100644 --- a/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/TimeSpanTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.Test; diff --git a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java index a65467029..873a1f560 100644 --- a/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/UserConfigurationDictionaryTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data; import org.junit.Assert; diff --git a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java index 0e338d0f4..1edc9c395 100644 --- a/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java +++ b/src/test/java/microsoft/exchange/webservices/data/util/DateTimeParserTest.java @@ -1,4 +1,4 @@ -/** +/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * @@ -20,6 +20,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + package microsoft.exchange.webservices.data.util; import org.junit.Before; From 9063dc40f61f00eb889cba11e6660f2c23ce4959 Mon Sep 17 00:00:00 2001 From: Mike Noordermeer Date: Tue, 24 Feb 2015 16:54:08 +0100 Subject: [PATCH 126/338] Add CookieProcessingTargetAuthenticationStrategy.java Fixes OfficeDev/ews-java-api#188 --- ...rocessingTargetAuthenticationStrategy.java | 70 +++++++++++++++++++ .../webservices/data/ExchangeServiceBase.java | 3 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 src/main/java/microsoft/exchange/webservices/data/CookieProcessingTargetAuthenticationStrategy.java diff --git a/src/main/java/microsoft/exchange/webservices/data/CookieProcessingTargetAuthenticationStrategy.java b/src/main/java/microsoft/exchange/webservices/data/CookieProcessingTargetAuthenticationStrategy.java new file mode 100644 index 000000000..410fdebde --- /dev/null +++ b/src/main/java/microsoft/exchange/webservices/data/CookieProcessingTargetAuthenticationStrategy.java @@ -0,0 +1,70 @@ +/* + * The MIT License + * Copyright (c) 2012 Microsoft Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +package microsoft.exchange.webservices.data; + +import org.apache.http.*; +import org.apache.http.auth.AuthScheme; +import org.apache.http.auth.MalformedChallengeException; +import org.apache.http.client.protocol.HttpClientContext; +import org.apache.http.client.protocol.RequestAddCookies; +import org.apache.http.client.protocol.ResponseProcessCookies; +import org.apache.http.impl.client.TargetAuthenticationStrategy; +import org.apache.http.protocol.HttpContext; + +import java.io.IOException; +import java.util.Map; + +/** + * TargetAuthenticationStrategy that also processes the cookies in HTTP 401 responses. While not fully + * according to the RFC's, this is often necessary to ensure good load balancing behaviour (e.g., TMG server + * requires it for authentication, where it sends a HTTP 401 with a new Cookie after 5 minutes of inactivity) + */ +public class CookieProcessingTargetAuthenticationStrategy extends TargetAuthenticationStrategy { + ResponseProcessCookies responseProcessCookies = new ResponseProcessCookies(); + RequestAddCookies requestAddCookies = new RequestAddCookies(); + + @Override + public Map getChallenges(HttpHost authhost, HttpResponse response, HttpContext context) + throws MalformedChallengeException { + try { + // Get the request from the context + HttpClientContext clientContext = HttpClientContext.adapt(context); + HttpRequest request = clientContext.getRequest(); + + // Save new cookies in the context + responseProcessCookies.process(response, context); + + // Remove existing cookies and set the new cookies in the request + request.removeHeaders("Cookie"); + requestAddCookies.process(request, context); + } catch (HttpException e) { + throw new RuntimeException(e); // Looking at the source of responseProcessCookies this never happens + } catch (IOException e) { + throw new RuntimeException(e); // Looking at the source of responseProcessCookies this never happens + } + + return super.getChallenges(authhost, response, context); + } + +} diff --git a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java index 3d812dec3..3c5fae292 100644 --- a/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/ExchangeServiceBase.java @@ -177,7 +177,8 @@ private void initializeHttpClient() { .build(); HttpClientConnectionManager httpConnectionManager = new BasicHttpClientConnectionManager(registry); - HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(httpConnectionManager); + HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(httpConnectionManager) + .setTargetAuthenticationStrategy(new CookieProcessingTargetAuthenticationStrategy()); httpClient = httpClientBuilder.build(); } From 04c909441315fa70998df548efeb158761f5e44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Behrens=20=28serious6=29?= Date: Sat, 28 Feb 2015 18:42:31 +0100 Subject: [PATCH 127/338] fix codestylesettings --- .idea/codeStyleSettings.xml | 59 +++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index fbf4d0404..be2a5e3e3 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -3,20 +3,64 @@ - From 0bf240a7ec4e7bcd13a9b90109b519f2f031b644 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 1 Mar 2015 20:30:37 -0800 Subject: [PATCH 128/338] Fix #216: Remove invalid license. --- src/site/resources/License.docx | Bin 22145 -> 0 bytes src/site/site.xml | 2 -- 2 files changed, 2 deletions(-) delete mode 100644 src/site/resources/License.docx diff --git a/src/site/resources/License.docx b/src/site/resources/License.docx deleted file mode 100644 index 92da18354b4da2f7191ec45b75edaad5b802b161..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22145 zcmeFZ1D9?+uprz#ZQHhOyZf~5K5g5!ZQJH)+qP}no_^n%yS~Al_5FakS*!Mb_O42H zlBX(FNu?qu1q^}=@CyJO004jh;D9*nw-+D)0L3o=03-l#AWb0~Yeyq%M_na1TO$W; zT30Je{Cp4~@>~F*ANv1F{}1;-W8%1ZKRvw2bI@17?B4;&Hu9o@(fk-AEK|r$$~$(1 zMJTh(;cb@-;$mbnTIqU*5vJ#@0>DYz4pvTe!O*eQNSHZZsUFD`Dz533;fErZ>G;sT zBS9`GjCFp){n^Jw+qPSHB!%_VI?#Nd9qutubOgoYUWFptUhqPLR0q0)lvLpE%jfGB zN7P<@I4U?+OkM#3$*9r$bZ;98pp%jKVJm~AB!=Bi6$Sjo*SVu^1^4#A#6%}qEpj}Y zQoq}!z;b(by%LXtS&$?lMg&0Jpgh_xdxGQEgdzeX_l@G9d6b~|nG-5Dyv#s!vm?DW-Zz!YJicVHu_V!r(K$-S}yq<#8FY9ixR=xIs(pf?aW0X0?BQ>TaJsnAA zoPH%F=1s@!nR`KZ$zWIzHAEgn7~Q+4u@<7n*Kzm}1|RD+fqJ9vt_@bEw!r<5?)pFF zWBCX?8|w!n3<3av4FC@4VqY>PNx-quKsLU;uyA+Yj~s+o>{PQs!rP z54;xd2xxNIE94g_m7xPKQw2vq(L%hlE+~5XsAa)|qERgTYa`FPBHa!I;{o79?eng zOCCFk2#9a>^8xKYV=n4tS$t*;0Dy=F004v^p81!#{%5wj(B4!aYK`yO4)p>9twUo% zur|mwD^8owq%S^sqJ^onl9|4k4Avr9=S-AxQc`Z=QN72+vYQ&8Ot3VTd_49E0PLq{ zm|dx+Oe*}CO(~mL(EWPzI%(j_BP#QkiugGKVI;Kq31yWDV`+Wu_p&rb!zeOAWj zy^IuTykAc6`EKrxjOIBc6+#$*P6yB5mp}1d!x*r0?P$kp1!g#qcOuuWB3z89sK&f1 z*O6`0cPVUaZr5F}m@Sc`QWZw%sOb&h!o6HM3ZAbjlLN7>D|v_=zEOU53DMdn-Q_an zIjFmk)EzP~ZGR%L67^b>aJ03|a7}Rn$KzndsrQ*9d!W2#iOF2W$Yr}S-xb1Bf`>6o zh1>6{>KznV8`;bk*ns(b=#p=F{`$krKJN+QbN5U2w95n+^R4(eLUW^{iXXv}&_h3o zHgP-c$#BFdw);g#Q89I+v;PruCC3u~f-jOir%AG}gXOh$DZSTf303k5(@LEXEd-UP zlIaoz6%B}&Ae6pSQ0bG1YZwaIRaSFmTv-)o6h0Und|sx?xz@!|j%!WA zhZBh>`{ni_>AX*NVWg>;@6z=Gs^vKPJ;%8VJi2_kwYBv6V(&2SVWBk7UyX{dv&@** zY~GhQqyj+;i97r}?jXl`&3;7&$U*f%^KGTei}tO`uNlpIy(#L_xRdeQ@&mMB|K-4< zVYba&H_HY6>%MBsenq5VSL-j%lAVU`x~qdFE(4EyJcbQ$L1YUm4#xZ5qipBB)V|c` zT|<8tM@i*nXu>I51Uuwknno&tVpHRv!phzR`SH=a%a2WAo(K2g@f~&V3Gyt~+mFu( z5i3d@!^|Dppa8yKxgvN&_sI`v9Vr)pT4gRW0k{+8e-TqrLwF*H{01~%pg?vUwE>5x z$0heIWJK*R9ZTnNtO-e1B*w4bA(5@) z9}MCOPI_ntv7v2zJSJA-Oty&fs>Zp*V}&i9ju9MO?R!37gn8HaPTI^>JdNllbsQyP zR6d(e_uOZlfV9xnW=HF;KO$+j*7mYq?Ebr&cF%Uaceci1P}0qq`FASC9qj6ao#v%U z`I`Mgv*A8y(iSIgeZ;H|Ph+Ze-dq4Gi%P|&fzSKfcfHyLPPNz=UDUs^>Z~d#;|(m)9|)d&B9bNzz zikJs?)HuTQzJ9YzS8IW5vO-Fwo0|w`$=v&E&P)}}ysln5ujAI+0N|H@T3?B%O*c>q z%xmf>et7G3!Zi$uCpe0VHZBnfhXPdY4l5lIa?g~uJ(V@wb{nvZ( zs(lw{N){{R$CYvg`8^h?z~@Q-R_~SqBK5O4`g5-r&o4Sz&790p@}>HWffkkt%&`pq zXHDv7hXqt?2}8-{AX+=Q<(pn1+a3c0u-+p0*nmg_Ip|WpIWqtYmeeBV$SA|6h|Dm_ zO6m8^+Wj4+*CmG=_~vz;%ME_z2p zgETfJrnMM?`SZ1@V%fQdOb1^JtM2pe4B>u9xYqGJtnBk~sHO*n!OluVJlwY?-?sGW zokFqlIimCcX=r(l_W~h($nkB|Tw1MlHX8Ek9mIRC)1yXq0%!rO#J(r@HxXna>$qV# zQ3eaCgeuaj2GR0!*5ij4egTdyCWh;+3Xj{wK()vp#9P6V3{Q_Z@y_YQj z8xnxg6UJ&4kV^}kw(z!r#H1VU{Kd78ugiKxV^3uf=0mKI;Ty*YO7?bhQHq8}?>I8K zBT>K0IMq}khgb!lYpj}$fvw(EAI<71Nb*wX*`UQXQw|3SR5w5m@`)Vl733mIm7SAg zQsrK?0Ej(4qY9Zicu0Spmn>90T$utwE6F*mgje{h60$-2XJCrV2FRyDdt<|0C60MG zs+a-n?wmPpl+iSw)hv zx4C`t{E{w@wW0FsC3HvLl4Y%~&r;tU=q0g?--6+_J}j2M4}DTh4Som97-K;Efw83lfZLpNM5$ld z=s@+DDaBqgDOX7Qt=1v7LLFd0G6Fl60I2lTJMQ8L8E%jYvK0hX&(+f;qVwq5vge-A zkVNqNCo$XKF^?d@35uM5S6TXd}i7aft~3+Nhn`00LYf?dlVu*&QA~WWrz_sD`KnuOpKMj@WQ0e<_@s zHt~y;e@X)6uCV_pFDki5`uDE(eHZ(p|Mr|>t@y8rS8HuzG*b4?v9o!;y)X9SyLs0t zr)Y`vAuQZfd|+%o(`U(1ZH090aN!=-rKOe_nttD~NuIgx@xT>PoxUd0Uus9)m&S0F z`SSZn2Ne3nv}w52HKkgDan~avEEx8+>22#r>aE@J;j-jhHjKq5U64lEH!1gYa%%Uf z$%l&F-99Vq@ASPzQ^TJz9v%%R@?Bm<_&bLWwUoKSF-o8ZaLA02418(Q!%#H>%x}XR z>)IlN&S+x4QI7PoRM7suDqiM(Z6SxJZyt@pBn7Lj)U5rvY%EMATW=wAsb1)HORGHS zRa>~6e-?}C?|;;ksi37HP~oL;z%(b@%!{;j2%`VUA2J7ffApGHhQhz7uQP`$CZ}(H zUG=J}9235kkoDGWRh`d^b;ziqS1d4mM3AM0gwp5^*+~>93_(W`%-s*1L!DBQY)Azgg~}YLtoa^ zqDY$#uSl$mM1kVrmcN+#ej8v}b6DWLJP*_cbJP;^6#c+&r@j#A?Vho&@z76Z>PSDq z;fRFpre}RYVwXRA5d#{=Faf>xOfQXIhgGqU!n&_ReMPxjDMI}D2ZNyizSu_OE0&7o zFQi50#A5CI^BuA?cVcJAhqJ=0Wok3kknJMS+9M*`YGz_|lhLp-)mWt#bgIUd-JQJO z%(k&aLj<#unX+~yx9a6RWyTVnf{f{WI0|&)BZ%18@y;y$ssFDBJaw>r{rKRUb!lh0 z79r|dr9awLEys5w7Y-n^@D{kJL}E-RRqi~M9>Bh$D}lBjz8`o!M8(8J9lgWk5%&5o zNcSxe>)DBH4^ZHX?I8diygELp#x9GsQ~_d3qtk;n?c|ycYEvMOdHrm3@(T&>ro1pM zPa}zSReA+#EPnnPDtb$Ay|Z7t!^`89F4Mgg2o%N(9&mqDr2yLMA|(%)**%_e>+o7c8w0`uW|vA@xC8T6p%O;7rz=5)pa zUr$q>&n$XrgdBx?@t8rFQ-@B@B4N!_>DG1sUGu=dWTG1)^+0G$PIwElLv6X+vtrh z7odd1O;=;Y9kC=GGR1J-Le*xe68h#!6UpqMF)O$B>r7^(c_+=GPMlK$*D%Y3k%(5) zFZj^u9A)k%Te#7jJA&Dk2p)sG{SP^CQTIZC_?oq0#rVVDc}OMQZytvg!*mjEP<#j} zuQhiL)|Kg_BWcH`#+wVgORvf-q%5{2K7Ac(#*7fJiSX*wi=}+h6o=;t@-TO+Zo9+~ zJ{k%^BkSz(yF*Sr3glEntGCXc`a@Wn?O;Ba%!YaQ{qCdvpt+f3XVCT9b~Z2OJ$FG@ z?W?Ul!MIcsqIDNaT1e9NWL%2xOkN0qBp_MG^Wgb4;hd@#hk~7Ex%2&*1?7;}MzZekIc zdgXxv3UlN1A?4L;nJ z@iw{DjM$1zIg|NP8bd}sc_}-LN*$k2W8dWzm`R+_lPwVYI)bMbPUand-{L@E?&2D# zoJWJy5nEMa__`|cR*y*$CWf!eQ@AX+&Zu|Kgiw!h>jKI(r9Qu_X+vi;%p2Z~YUe@d z`L0FZQ4&8(tdfTfn+tw-b-`Ked*;#k&7m;*!xmQ@fCfe8V*3JIE71zzY) zl!0JsrEx}xv>?;Bc;kQPL}8D|tx#7b5~8+O60PN?L*dh>rlK9P_x(yryr%+Jffk~r z2y=peOuo0awOL);Ld9ed4cX*H=M}cbQB;g-m6%=HNXl{& zrdC}`m#{Yz6))DljS-@Q(Rz-cG~ciDPCXT_cJqy$S!74t$t4C&9G+Q#sG0e2=RE-CbDX5F z(JCnWn*12j-Zkj5W(=2mh4Fl)GOngSW8PZAe-`B4=!a;YK=h#GHkabOW9n&aK3?U% zE*j5LE*(ll#A52EQjE_dwU;%sE)^qBvYN8|dcuFl=0XHqOVTR{Kzh zRu%23eY~K!0)Z>1HiM236kvmT~|;NS3U+AAeM?=+}^GpEqZqfuC4>3|^KbE|dN7vO?)1*n@AGhSAV@ZQ5RX%OL2)C9w4$3?XZEs}~^DH_86 z5`n>tD@M{ML&Bc75_YHFv|R`iR8~Wr?srK?6G;+G5~B1r?NXMmGxewkb`<+Xsvh*D zO31)x>h5($6CW#)&zn84V=7u8@09AESixVZEd<))HjbL|Zr;aMae+JEncFg&$+MSX zG3Vl{W8Sc9nN`ij(IgL1gj6Bl{dxP&2dFS!dN+Li-Ip5VNFjsdMh2%rmfN9#62V5? zamw;oKX1uV`PF(j^T%Hk+&3b1-jEG(tq`bfgndN1i-UupN)7-oy%9G2MLWd+G$V46 zJk>P*yFTC?F*1fx6HCpXW@xU9W2Y%jlA~tY{9@4lmbi%3xovO$?p5OR?Ja+`G)IU1 zBLB-OV~Jfe=H#*3&LQzP#DR5IaNTUmMv-sl9jh$no;;>Nkk|e!zzGI0bo31wl1||j z|9&dIpx`b+dbU|>oy0l@u$2A#s?sk~(D_AVRT-4E8Qq2BwE|O8&P$q;SKr=SCck@l zXam(?$2lwwj0XdA7sYAOR9JD~2L|LB$9i~17VU(Ur@=&F`lud{0z-0gK_rW${nQ)f zT$=#glp#e@eMQYlE&9LUk!|h5`j8I!= zt%=~-j${>9xOuGch*e>KtC)5Qt_0fk#-}(i`}!O~4l0RTWn1}kJ+dl!7SZkjCOXu( zjiK8e33DYB{OT4tgSq9c8Oi#YIY&jf-&f4{#opOGs#JJ~d0-@X4>M!0qn}(G2AaSl zsXBwQY2_I?T9g-H#&|I7tPRM5QNnl{7f^fr?R$e5o(Ae4h&8b+T9k03UEl z=g^ferLo^N#n*B6Js$WD;SnicX>ODfx$52C0nF&4- z!deR z!1sBI$;4}so!xvf-jw?I>scmC7OOT#g-?}_^IAko-YIU)r4Gpwm=5UT72y@@T8CUX z41;~-JD?%N&TQ^cht5Ww0WRJhFa00HIZ=ToZKH2HwW`H>@Cg01$LVOi#1Vg@+ZOWt&F}zO6a2~eFDI@HXHFM<=0vKq4f_5xmvj@W>ASWe!nCQ%zfiz!R-s}jtphA3Ta`~#GYNtV@f8L%M#1T>Ik7)?$Uf;J1XPZ^t#;qY=(xg(tzyk$bcSzjzrI_ z@I{pv3~~`Ux9?~el@HLv8M^kYtjt7Pq)|sB1 z{g%>6)QVlrO8l@6B((xj~{-nrkEJ@rfZ^G!u|Sl&lH9PX*V+FTuOz%tR5+)xMdEVpp6oUK6Y_GG~qc3R<; zRN-leTybytcll&R@ydio0z`nl#^?ez{MFu=^u$2b&EPFov@PeO`yZd%|LMP@-xQ(% z`q`0Ehy?(E@*gf1M^hs!Bf5XD4F7oVF4U!Lki@XNRnJ_|FL6FXapJ+j2BTqUK=KFV z?69w+UBITVDvgIAx|D4zmC7iq+{qPec$BQ-_|Jm8(;Jm&l3pM`r!U+)4Pts@m2y$> zI__USw_~#E=yck!m>h)z3%SkQn(me1;s%ZZrTday8n(HbcL~aD5%q?U=I%&^-BbSZ zee4i!DIkPF0KExY?lfkcn?qQIRh#f~Xv@Gyo(0PU2Kd)5Sy<|<(7a#)C`PncH?N;A zL3;o4^}?f`bfhrA>WtFx7;69-3y$dES~PC@voH0rjCzxC>D=CGwhKd!#fo}^wfHzB zv)P9w$7)G?w!L-gxJ1(dXw?4*>UrIFDV%)=J;wCfOHt2S^8ZyAGK*azITU?8Y2fvxjF& zJp-ylTD7UN9&JeC1eJEkXajIajCM7v^~HIZ;^2;%#>!Nfn&lZI5IcmJ0P>WFmvBJ9 zIYVK*#$y3Z>n=~QnZn%Q%uyl-w$d^kK|7COz-Uhae$VRF_!`yR;Yhz*D%z4*3DlT2 zIZ)lYBXSsWSSHGDVr;}hO@x*Nj;ya4n-)cwlQ^=#n!nI-b^{(sYO?~}J&x(Z!xC{_ zJnv*As3Vwzj>zS;6ls^;>FjqxY2>GPG`o!|_cX&hRhw=0)pZEl$-2;@NEw=Rxuo2l>DqmIh#=`ND#wptE5hj5 zp2A3+atNa3!qaWU2`KkkQ_|p4_Ja}xXa_q~TI7|;xScbk^89}A68vIg;y^|d9LYp` z2vw+ti-Rh*ozJ}brlSW12-C_Z*I1gGB)SYxEGDSQAZJQbX(l!0m9?OGhzg?~l%mB* z^N2afgsiyzc2OjI#j{+}iN(;y@^emHs?pSSCMW2P=1Up4cXn%c!L}Rze=>pi z$}~}o|IFQaCS}}>>1VU8WFlv$h z>ww;OzaA|5sblVTkewoCX{7c}w#@WSNS>iIaBObRAS>RP7)o+PeVY`YOauX6Y2=3R zVgrMSa*Ao5kWl&%AsnI3_Q@SXsFsVpKD^kDazUE%Y!is`wNyR z#^D?49y)jVtJ7SEyBQrs-tj7yQq5m*;EM%5Iz3ifyz?MSw@X}s2V}sd^Gs(kfIH=N zRgmRSTj@Nz(jz6#)=*Y1JV@2}PtKR!q}Qxf8qkDRu&H`47TZb-yg^~Iq3~v8*}Q)M zPP9!ov#kJc~T>kzJ0N_m%7Ha#1`%jg| z+eXPP-_M4R8>s)uFYjRF=xAnb;_#2cXjIvZ-eX1Xs#$R1Z>1H|zXP6Stbotus`%4P z*#Ngg{HxM#Z^T(IwfuU^fDBiU6-T;#jcVd`s=GUL9}X`^l9e5vfTG4Y+GU>;SmCfE zchUOD(?bo0Y>J;!3nle7d?FJmZfba4*XPwXl0+VI;Q&BOiIMg`twFUsT8t>|S|aQa zrbYsECpiL<>V?X=05M{?823k%>hdv+l(IxeoP4|=FtOPU(D#=g&CdODr#T`NL`Mk}{w9k%7K;v)72 z_jpdt0yJ(i#Uap?7&Gvzru;syu{#I4{8qHXhEP&HsyVccaX;9=PLhB}w-hCyHs^oq z&E6GK6-?~6YY&1>q1PggVepGi(ahYX-P_wnS`gZ|VC^v5XT|->CGu>SS3~eMl167D zp2q0ixk0}Mq4mpF(YJ)GAB0haV_zrN377*E+KO{ZyRPeLCDd2k$L=WVQ1EA}P`#nk zD<nWSdn--#b?%8Z~!|k?oL28!7%Q?GXx+D!n)pQor{<`Hdy8z3pkGSMT@Lfe_jc z58sFn*H(b#q;Cj1XnDdUQNHIugaR6K)6-u@O69K%Z1pbDJ26>_ zUbUPB$6D?62>?6g^j z7PVPAsZ?MxfKveC^w1*O0q+*J9fFTs7*UHB)=}1eCiKMv?1LHfhc7;Nko#0bWy>)9 zEtVYOqp>+Vj7#QY%e@%aRqKgR9zAHEm)K4o^U*lA#gFT{iVQ=HJoSkXaANd}JrB;$ zJ&s(hy3OnX6Qa{@c-+G9O3Z9#J!=7`({U?=`oq-Uol0Bui~FMU@(@{?XM83)#i;W6 z0Ix6mAr>RCN+f*zw;Z?Hxise-W}0i}{Ma6b-y%P4oOFV^ExRS4y8e&~eG-jcy5bOM z(xboSWLj0-O4g?{X1*#U*3NwdU8j8Li}p>i^=v_p6Bl=7`0;xdN!0=mO_dhw>X3$V z?F4OZF=ZES;OTrT&#+oAJiX8hZpI&dM+ugXzq2`fy$U4pdujI_c*VMFU&p^KA1?4M zw3aWy$DFq&{x~+PX0s~Z)cCTcz9wACg%AYfp)&c{R!4wdUfCuSP_@rsX|BFd-&alW zjRR3ZP1Vng3DT_h-=Ni|;r+o}D@eBCF!&G;mo@p|l3xdD9cEE)jKD%4))Z(SJ=}p$ zAag~H^`~@QTWTb~MbgTMn4msyOj{jSZNr=&du$2;qOv@`NviwvS)uh1Kv>c{R#G;nW$05&f0%}1|r^a0DynSqkne+IXJpm8vQ%gTxe^%tg|9| zZ96>i-JF;`6Vw^4s$3{G4?D+4$?h*yWnMA~3!-Ah&%`TXKQGgDi3?!*@A<}Va(agm z#W~#CT|?6YP<-6XH#0+Y&2@yTJF}v9ZQ+41L#ZR1xR?Y?H(%>^Vt|N9)Q1vN7nlTq zX+V3w-R6A1?0z+p;~{E*VB=HC%-{TMs2d+V-O@prGLsBnwiICUwi~)jO#CqLZcd5+ z7`MNrG(7cByk(ZzyZdvk=kx8F`{$09+>$jy=q)*DJkhwQaeLgX4?$gJVqZi)Z_`Df z-NdbNL|r_>pN&%*Sx0iOG8h9FD3=-5L8VsxHJwd#SzOTWez)sGH@y-d+7EC zi)|9(_KL28)rx7P21b(rzT+BNzOb5N>}N~Wtc@O3nbqZu`-#+zWiz1%MC$OU%lTtlEvQLPLrtZB*{Veb zJMC!7uc9pE-E6cX&OG)tI&#sf(`P|cHzw=rn^PvyshCveatpWL3gRLSMnC%DveEZV zuZrSu^^^?f_pNOjV@IafQ3$gZytwH^#*k~(=_9U_Ib=28RWglr&H9i=e1#E)@4-{& z?b9^f2SnyMvSu?&ZWl^wKmEc3sYa4d7Xnz(4yLeBCkdxFRSDc7Ae(aC(mBy&5Ix|X zB>OTSYcPqn_WFlgPPSEnh+EW1Asz!CM`H$vRlYa)`yOOrh<|@i{PP1Eddkx&PV|03 z5pz;8#EepKH6MhX4VYpkQS2bpQDyDW!D_3xOT0t^S#cyQvZ3iOnW)+ft=BVQ}NwuizOLn zrtv{Uy|8*`6CX@l+%WTT` zfo;Z+L>i5n>@|RF#08?02p3fxWleg@c(2tbxy+=9hd-Rg~ji% zK?hewSR$VO$jr)$Wk+1fVE5+4up-U#PreI^H6r31hZJGD=9*#i;p?4n=Vz_DmwJ@U zcsAaCyBo&uqet^@2#1dD#d^t=<%z#&D+|ZNixx!E#>>p%DQ3#@BsVPk@-7BtCoKE@ zmqQh41L=qIVp3{Hx6b2>)NYgZ8?%VXuf+vL5A!VJtUj(%cXUyL=*_1kQ@7N6Sj}an ztk%?jrNx_!57GNxB9+c{!3arZ@>kt4ZQYh8-Srz<;xdI@!ZW*R(=?iO*KOmcxn1hJ_mD~|a|MW|O5cYTH4^Kd4UTOM zLQb$%zor{A~Sb&Q%kpEvO&!l^@RWglnP%^#VD}^5%lqY~(lP3WA-(gJNuQj1S5V^5H z5d6PGxhl*i4$9g-Hp*H%JEgFlol>a3vl6)9{|@#_dRGUf@Sy*_`u{Y+zM(ec|F^D? z1ai@k6Is|O`MEeKg8x9{siKYi8g2vLo+?k3?1jsA+g#Gyq-WB4Af{7Dxw+Bs*%xge zsDZBk5E`5qU%@e9)~^^b)zY)qf+IYN0NyK$ zh?Qm7ebk3col6f)}sJ}kXibR{z^%R+@zc!5o?j2 zUcW3DT&;XFpaG{h%p71}h9%Ix7*nuS9wvm5dJ!H_ibc3bVbg*CZ(oZdOkQSLu$;A0 z|0qtfd8ls@CZXO>W*H@5beEsPm=@v3qReAS3jQsS0O*HgN0`Oet^`w%<0tD{X>tX* zg;D`J>x5kbeLp-KK2~tcjwL#$p;T~_!Cymsc4Mj7if{+5zlQO~VkcwSIC)f2&LGG+ zD(KvG&g9Jf&g5+6cB=|V|Dz>QsW(mPH_=h5Db)Kc$k1 z!J6Uay^q#KoUo&Tx>@?fQmOI&qTQie06`HsNa&Jx}d zTwNQV(b;eyuebD>#%aEz7p5!(QcdlYx+KWi8F%%$ge{KAuGW`I3pdh42Oag9Ym-^5I6lINi*&<~1 zkLTjVIAw~rGJs44(U=0{sy*kTL_sn0T?80xQA3!$vt)k2t0dUzQuv6upws`czVV^0N8-_4Np za_4C+nPC-mi` zM*sPtjGwn%hh>fO(up~(tTL5rGbHF8<=sVFMQWRtWer-NmfF!uP=)J-ZB@Y?yz|1- zp(UfrqzkS!F?y;jQC((?ua8pc#LL2)lc-OcgTFPjajwR=DF#3|G34buc!gN+hcWRva^oSUHWEqlv(W7^LyflYb0%5 zbcqqa3Y;ACh*x}+$%;BWqy0SFM7rs02|d{6->eD!;4iQ*e%7WoK)DloSsXFXY3 zU81MEJEh3U$c$Htyvv9$qq9UBeZKgJVLaZr`Y;b!I(q2WOR}@PSz)(PZn9Ycb3T6e zAQ8QcTMOm55su7G?u4JuLT@55BQib+L+=cFNFh9;6AN0KYLK@(34`o3xEB<`LNR}y z5FLyoqkOO)hC;DYD$OFpLK)63oymZrQ)-mYV|BMwisX^cYkv$1XQf=|3XckB`@xaUh%B=R?X3#;&q(3_PzNI+m7zpYkwtltoXFpMT=dU0pz5r z=u=&T@3F!pht*fS95!aa3SF+ZSXXftjnLlEM9ZHtk`ktplJS=BHG^~NYUp#efAg_( z8MKu<--$S$%FGX&4yy%G;4DhPy9B+wCNsbvl!K7XeQZU|L72tamgyfHhrGq z>9+JV47ucS;>pZg3R^heWdeQ5IjfB|S0T1eKh?0xamU=2?2TY(i4w?h&0?$SXU^6M z!uqE+f!+X3YTU*Ot-^hDOi^$9B5hJj~_QAJ)Rd7jU7rF>j) zdu~A__x6aDzGY>`s_jGjeA%okOetd(Ib-L6$9aWoBFn3*4shwzMe(IGs1RKx>XE6Zd83uj|UYrDssa-d-Xud}=28-?!+??0R3JMwY3 z_x()m$$w(QaDSr644fPsZLHL+EdNI+nVF-J)xVyo|B55~>81Zjk<)eIKY@q8c0PBu zdQELIH{`|;N~9ZL`V?ZLtLyLl|;F)%0zaeIMOkuS_jA5myiwK|DTt(r)mJTA_m zMq!ZcSbt?nwxH|Ox%Ao%xS3D}8{p@Ojw$!av&+RARp8P>{xtI6g&u1sD}5vTpM~Xr z9g$k=_8IKxUE671U~o(xs{nhZvYRrI`dQ&Xf|9#M6OOozG~SC<*OK5kyAZd@)fLJPM3maelG@M;d$Si`-M$3zxT+DvV>R#Xo} z->hA=o+-~ZHdat~V0;@l{P3V36yRP^q6qZ{saso-Een|*=96%_A(S?sGb{!VEFJsW zOdlOkIt1r_80!}6b^9KMnsQ7`UzzJcThuJKlz4J;MxwtGb?R~dB)rGdN^P&T&P3ee zyux#uLU*BAUGBV~YggrsSs5GZKErz~kFMbW$zKikGBU%R*fXyfzF^IbI*p8+(}W8G ziy|Vq#gGb-Z!=+qS*&f{4rS$1_)<|`Li?8c?NsA&bccM=vTHQFt9u-KO<9ptZ}zE3 z+TYIRdk3^`r32paFQ<35-+#<#ahVE-)1Q{ zA=NRok=xvIoUt#)fSh@t7$#%6nhLvwvxUpbcn2`HvMozUj900{Vprcx0$3O?0uhgD zkfpSA9K8xc9ipGI5!J|3wmUou!ZKa0PD>Z%vDr!KxMI5{r1P;cDuV5ZlCZlm2?Yzp zW$HAxn&Dx8;J86JiKirj{@!{EJ2w<7PpKJ=(H-(2THKkp+VZhvdZ;zm68t>Wz09A%#5vX0@aUPP5m7FX`PT4OwrYet?(2+G04hPe z+7=EnuRRfW6KP?wEvB?-LvFfB0tORU)0XU>I=J_8e-2MNj4c$vzW#T_MVmPuvh0iK8W^+JU)6~ zQb^Slkm%~XZf2H+B;sO~@Jdv{Z!uj}%IgX;9b(g6cLku%mB>pTOK+KFms#?hMaRtc zsAOMaJ7c^YCb6nrO8GwNYxHk!(FYy?{wf?;avY+JKL!>@GmTH|5YTB~PtWWc^gKO* z=9hMJj>NCDG)lMtxl6cY6|&irb3lLor4zwrRK2{mYaDU$g;-qMSGpaIpHH@0{VlXe;Xi!kELm8SK<&4-% zon2H%7CV$GzIQ^MKvDNhU7UqFDm^f0TBmq5Vb~NOy(TU$V9bF;D4)m)a=uLU;mpHH zT4YA8sdq=+C8Zrfm1z|1w*Bj>(;BoO=xyMzmm_*1_Ou^f=KmL-8SuA9F{J8UQiqyv1@?L7VqNH`%(TXo zdAFr*I~F~i)+HEn9hNn4@OHr*t^~ikc??$BnvF)1M&_cov~9v-wA71l-CZfSOdKce zAz%BNEDBfkBAxbSiHlZW2)HE=_Kf==pBkM=Gl`b##$6$nJgj{CD9dK3f6y9Df56h^ z0p2}MyHN>VqcyR3iSsxJWTW+gVe%Rc*XGdXNYaPL9NW)H75~Y09-ZiU)V&|osr+L| zp#zWu{C|ejKPHr%y^XEIzjhRUJ~04!F8+U5693nGW~{WukBJd{9q<*B+kW0SS>HH7 z@v4@)T-RG&y-ysx0{K^wb?ECI+xaY-D@;t#T_-Vz?*VzU&k+T)5_!|hf-rwGH2RY%%QN65f8BLbEKInF)cz@N zv?674?((&}zy9QX`zN7?ON>S1VEMO3^%*AxHg(RhY_5pRcd1I3hsf=J+JAgO*?i(Z zeHZp~+y}ysA^H<+{%@zz8Q9nx{bPar9QyHJXBhmjOJ=;TO&>n;;C9Ld7c;jN98Dwb zxaeB?n8B4>67r*X z{uBHui;7e@vG$(eTfDyjnF#hVD6XWbCM_(H($}HR$^OsDN6RYzt(|KRXL|qR%l&qa z%P7>Mjl*1KNPY<;%Vi?>qTDYfm!_7aIYf%lgl+D^h;d3W+nGy-1SL0^ZWnzeV*_0efE5x*X#Lw-}}6;&-?Q(xcp3B!=b3DEjVM6f2Kv_LPU`> z-dgp;L*^lj&g$}L*Y42VUxI}|ii_oI=Zr4SxLq#`Zpt_n#xirCXb-V)PVrUUm` z23ihk+1um?)~5D1SfM&E?0g&W(WfGE+sE184b>YSl;14h_~G`Wbe^b8WlMLIeFMK! z-~UN-Yiw%7`gF8W_S$YD_PsWCFdI8j80C>oohvRv0zH%>vg+sr5MNWB;uE~=hZ2)x z?7!IVW6?a}WADHqKc)Qyty2QtcZbx#CBTU&qsV^suWuc1LT za-x&TJdA+qL)G*VP3rfQ$ug(qT~ljn2d-Uuh|glThy1`s5hgtHh1j1TBf$~o2eF4? zx%m2peo?X^(!KC8xYX5md@;i2m%u1e*hrF$O0WdR`s(PRlODH1OTf?@PP-5mmtmep zrD^>z&p+wGwNrA@r79iCWuq{eqB?+uF{(LA>ErW-XVW;PdIfD#+@Pe(T-Q9ninv z3gTU8A&dR&lOS_T7#$g{b_LL%SAxVlEGqo7^v>>-lkV6Hu0|5{TlJUjLu~kP@l^_T zu4VfsEW=NnQHn-!~33z!1UehR*SOFT9GH^5W>S zK8~MO2;#{dqReZ=W6D8Fq~+TeZ~6-XA;v(7yeJ&Q;XxwBHvh`L#eUJ(%1U((J3q$A z|4kz+r3M|-C^5hZJ4)kq$z3J5%KfgD+1A0^dn?yeNiNltY$uEukfBKKH$5l4*eAr_ zko0?T3@%Rn^i6{FkyzVLja~}DuF}W&kzg`E{|-i?eE^2^2h*^Ck7*>*om2zs9FOKV zi{h7-9Cn^R)fN+?1|FP#i$t=bH?pk_=Z~i)7ug~Ey`|Cv@)KU^&0yDr6Q~lT$!M>H zY`IJ3?{;^bu9QT(qzCP)phNI~#a}<C{CDq@hP=7qSymeTiFdBgEBkT%@{E0AiU%U@Qh?{uuLsy$rVv7#UJ~BB_6i;>}_Y>%x{g3*P7Y>=le$8 z<6$2%McHo_*taZOuf8P57Xtm9IohrW11%_iT`8ew4bKi}G3X=P<=pGFlUy2;icHON z`)DnPe|c1TXXO~MfIU4lGJXGww=RDf>*MuA0cP8|Za?mcLfcFFI&eX!FoE+n%X;b-T z6U-h^_CUMzl@@)`^MMsTZ`4K|M@=g)sHHYDUw(>P*k(2{UM+L)IP$ug8bwy$xi{{t zsJy9i;EzPd>@X*?K8ucRbfh?)x-T02f1l3YOPg1| zv)!37xI~lW(^xp>3?U$lB!I*1Y42~N2_=mc8syLtyE2q1mbKo9?r`J4v0&4Mp0qTq zY(vZ}W*|YbI~U~sXsQ$d2`f8X3rTy)sxp8cl)WW0s`xY=C~&rCqS;^g3}~%FSysfi z6;IWz*Df=s^(VvIs4a)XV${I(_ls$Fh*u71dKl*XzE4}#x z13`bgMeTuvr&VWF$&uaTV$RxYLcuUntn1*I&&)AniO>`Q<|(gMbUdVUNA+Z~f692E zH^E%2%79Exe9?HS5v{E^s)Ebx!8@IL`h2-@yAgog%>QOL(rH!M#qViHn53SEx4;Up z&NE}OLF7gx4bn7^%C>%3GoTPUdvLkY#SyalLNdsUH1^tPHgYdaT=?X(xK-7LVvDGX z2-=!tO-lY7rf+HPKvzz|rH#w=^a9`%L6l1Wk2`|hns&b|6M$$XYtDMs=g`}|gla>g z-0qne?Qx{^o?g;zPSI+|%O{E@77}v#-t1;A8W}KS?f4%vrsk0K)ba(vrS{%X`~=#A zC12RFOkLAq|IJ_R$~Hc2whj65V9IZs;oI{EV=5hNxe2&u2 zJd6`K%s!Iv#ln3>bIyGFQUc~>;++(=#icL0$;8RQ3+Furu>~iAH{rZzB6ulydt$dJ zdek>5I6Gu{;k-?5Tk!qb-{AjkdE*6hm(RDL?2&9H0FE5+t1!8X>AYOLMc6GiFk*8d zTqRjvJa-1Vg$4iuEjic1osaUeaOYv1EM-;zz;{_0FPuA$=7g)Dco*>{s^%r&jZwEK zL~S>vz!kCb;(5LG79L^0iRba%ybRn9U+Y G|M~~~F#zZQ diff --git a/src/site/site.xml b/src/site/site.xml index 2024b2361..6d7b6d84b 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -35,10 +35,8 @@ - - From b587c4b37ea2c0dbc20d7341cf9e5e46e137b0a6 Mon Sep 17 00:00:00 2001 From: Erik van Paassen Date: Sun, 1 Mar 2015 22:47:51 +0100 Subject: [PATCH 129/338] Edit code style settings to match Google code style. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Behrens (serious6) --- .idea/codeStyleSettings.xml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index be2a5e3e3..ddacdf3e8 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -29,8 +29,21 @@ +